IMX8QM WM8960 Playback and Recording cannot work at the same time

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IMX8QM WM8960 Playback and Recording cannot work at the same time

1,361件の閲覧回数
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 件の賞賛
返信
2 返答(返信)

1,167件の閲覧回数
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 件の賞賛
返信

1,167件の閲覧回数
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 件の賞賛
返信