Not able to play and record simultaneously

6 posts / 0 new
Last post
arjun.salariya
Offline
Last seen: 4 months 3 weeks ago
Joined: 2019-02-28 12:37
Not able to play and record simultaneously

Hello Team,

We re working on a product based on DB410 Qualcomm processor and Linaro 18.01(Linux platform).

We have connected the DA7212 as per the schematic attached here. We wanted to play and record simultaneously but unable to do so.

Below are the configurations we have set:

amixer -q cset name=‘Aux Switch’ on
amixer -q cset name=‘Mixin Left Aux Left Switch’ on
amixer -q cset name=‘Mixin Right Aux Right Switch’ on
amixer -q cset name=‘ADC Switch’ on
amixer -q cset name=‘Mixout Right Mixin Right Switch’ off
amixer -q cset name=‘Mixout Left Mixin Left Switch’ off
amixer -q cset name=‘Headphone Volume’ 70%
amixer -q cset name=‘Headphone Switch’ on

amixer -q cset name=‘Mixout Left DAC Left Switch’ on
amixer -q cset name=‘Mixout Right DAC Right Switch’ on
amixer -q cset name=‘DAC Left Source MUX’ ‘DAI Input Left’
amixer -q cset name=‘DAC Right Source MUX’ ‘DAI Input Right’

Below commands we are using to play and record:

arecord -D plughw:0,0 -f dat -t wav rec2.wav &
aplay -D plughw:0,0 rec.wav &

Error we are getting: arecord: pcm_read:2145: read error: Input/output error

Kindly help here to resolve the issue.

Regards,

Arjun

Device: 
arjun.salariya
Offline
Last seen: 4 months 3 weeks ago
Joined: 2019-02-28 12:37
Any update here?

Any update here?

bmcadam
Offline
Last seen: 2 months 3 days ago
Staff
Joined: 2015-09-16 16:25
Hello,

Hello,

Have attached our register settings for Aux to ADC and DAC to HP.

As a debug you can hardware DOUT and DIN together, which would prove that the codec is working correctly.

You can also do the DOUT and DIN connection by software with the following write:-

WRITE DA7212 0x2A 0x89 //Mix on DACL and DACR

Also any further questions we can also be contacted on wav.support@diasemi.com

Regards,

Barry

bmcadam
Offline
Last seen: 2 months 3 days ago
Staff
Joined: 2015-09-16 16:25
Attached Scirpt

Attached Scirpt

arjun.salariya
Offline
Last seen: 4 months 3 weeks ago
Joined: 2019-02-28 12:37
Hello Barry,

Hello Barry,

Thanks for your response. We will check your suggested debug point and update.

Additional info, We want to record audio played over AUX and play the audio over HP which is stored on the target board (eMMC) simultaneously. Please consider this scenario.

Regards,

Arjun

bmcadam
Offline
Last seen: 2 months 3 days ago
Staff
Joined: 2015-09-16 16:25
Hello,

Hello,

Attached script "record audio played over AUX and play the audio over HP " for this condition.

Any other concerns, the bets contact is wav.support@diasemi.com.

Regards,

Barry