IMX8QM WM8960 Playback and Recording cannot work at the same time

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX8QM WM8960 Playback and Recording cannot work at the same time

1,262 Views
jack-cap
Contributor III

HardWare: IMX8QM MEK B0

Android Version:  Android P (imx-p9.0.0_2.1.1-auto-ga-android_build)

Kernel Version :4.14.98

Play audio using tinyplay and record audio using tinycap, The command is

tinyplay /sdcard/cd.wav

tinycat /sdcard/123.wav

It's normal when played and recorded separately. But start recording while playing audio, the audio file 123.wav has no any voice.

I replace tinycat with android system app of SoundRecorder recording audio, It's the same effect.

Does wm8960 support simultaneous recording and playback? Or does the Sai interface need to be configured in full duplex mode?

Dose anyone have this problem on imx8 or other platform ?

Please give guidance to solve the problem, Thanks!

0 Kudos
2 Replies

1,068 Views
chyun705
Contributor II

Hi yingjin,

I porting wm8960 in imx8mq, but the record is not work, can you share your wm8960.c to me? thanks.

0 Kudos

1,068 Views
igorpadykov
NXP Employee
NXP Employee

Hi yingjin

both wm8960 and sai interface support simultaneous recording and playback,

seems second tinyplay reinitializes sai, so first tinyplay settings are lost.

In general one can develop custom application using suggestions on

Live Audio Recording and Playing in Android and Thread & callback handling - Stack Overflow 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos