i.mx6ul record and playback problem

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

i.mx6ul record and playback problem

441 Views
xiaocong_fu
NXP Employee
NXP Employee

Hi,

I have a problem when I use i.mx6ul to record and play a sound at the same time.

For example, I use 'aplay' to play 'a.wav', and start to record 'b.wav' with 'arecord'. As a result, what I have in b.wav is the content of a.wav.

Anyone have the same problem or know the solution?

Thanks a lot.

Xiaocong

Labels (1)
0 Kudos
2 Replies

345 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello Xiaocong,

    If you want play and record can be operated at the same time, SAI on i.MX6UL should work at Asynchronization mode. RX channel and TX Channel have their own Clock(RXC & TXC, RXFS & TXFS). But if your SAI is working at Synchronization mode, play and record can't be done simultaneously.

   


Have a great day,
TIC  Weidong Sun

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

0 Kudos

345 Views
xiaocong_fu
NXP Employee
NXP Employee

Hi Weidong,

Here play and record can work at the same time. The problem is that, what I record is affected by the sound playing. 

Thank you for your answer.

Xiaocong

0 Kudos