Arecord command is failing on custom TX2 Baord

I am using Jetson TX2 module with internal sound card for one of my project. In this design I am using DMIC3 and DSPK2 ports. Mic and speaker both are working with below mixer settings.
Firmware: R32.4.2

1.Enabling DMIC Routing Path
amixer -c tegrasndt186ref cset name=“MVC1 Mux” DMIC3
amixer -c tegrasndt186ref cset name=“ADMAIF1 Mux” MVC1
amixer -c tegrasndt186ref cset name=“DMIC3 Boost Gain” 50
amixer -c tegrasndt186ref cset name=“MVC1 Vol” 12602
amixer -c tegrasndt186ref cset name=“MVC1 input bit format” 32
amixer -c tegrasndt186ref cset name=“DMIC3 output bit format” 32

2.Enabling DSPK Routing Path
amixer -c tegrasndt186ref cset name=“DSPK2 Mux” ADMAIF1

3.Increase dmic gain
amixer -c tegrasndt186ref sset “DMIC3 Boost Gain” 1000

4.increase speaker volume
amixer -c tegrasndt186ref cset name=“MVC1 Mux” ADMAIF1
amixer -c tegrasndt186ref cset name=“DSPK2 Mux” MVC1
amixer -c tegrasndt186ref cset name=“MVC1 Vol” 12602

5.Record and play commands
echo “MIC:Recording started” | tee -a /media/log/arecord_log.txt
arecord -D hw:tegrasndt186ref,0 -r 48000 -c 1 -f S16_LE mic_testing.wav >> /dev/null 2>&1 &
echo “SPEAKER:Playback started” | tee -a /media/log/arecord_log.txt
aplay -D hw:tegrasndt186ref,0 /thermal_app/data/mic_testing.wav >> /dev/null 2>&1 &

But sometimes the dmic is unable to record and giving below error

root@localhost:/home/ubuntu# arecord -D hw:tegrasndt186ref,0 -r 48000 -c 1 -f S16_LE mic_testing2.wav
Recording WAVE ‘mic_testing2.wav’ : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
arecord: pcm_read:2103: read error: Input/output error
while aplay also the recorded file is terminating within 1-2 sec and plays nothing

Please suggest why this error is occured

Also attaching Debug Trace for the same:
root@localhost:/home/ubuntu# sudo cat /sys/kernel/debug/tracing/trace
tracer: nop

entries-in-buffer/entries-written: 74/74 #P:6

                          _-----=> irqs-off
                         / _----=> need-resched
                        | / _---=> hardirq/softirq
                        || / _--=> preempt-depth
                        ||| /     delay
       TASK-PID   CPU#  ||||    TIMESTAMP  FUNCTION

alsa-sink-ADMAI-6837 [000] … 78.781325: snd_soc_dapm_widget_power: widget=Playback 1 val=1
alsa-sink-ADMAI-6837 [000] … 78.781395: snd_soc_dapm_widget_power: widget=ADMAIF1 Receive val=1
alsa-sink-ADMAI-6837 [000] … 78.781414: snd_soc_dapm_widget_power: widget=ADMAIF1 RX val=1
alsa-sink-ADMAI-6837 [000] … 78.781528: snd_soc_dapm_widget_power: widget=DSPK2 Mux val=1
alsa-sink-ADMAI-6837 [000] … 78.781571: snd_soc_dapm_widget_power: widget=I2S1 Mux val=1
alsa-sink-ADMAI-6837 [000] … 78.781575: snd_soc_dapm_widget_power: widget=DSPK2 TX val=1
alsa-sink-ADMAI-6837 [000] … 78.781582: snd_soc_dapm_widget_power: widget=I2S1 TX val=1
alsa-sink-ADMAI-6837 [000] … 78.781590: snd_soc_dapm_widget_power: widget=DSPK2 Transmit val=1
alsa-sink-ADMAI-6837 [000] … 78.781600: snd_soc_dapm_widget_power: widget=I2S1 Transmit val=1
alsa-sink-ADMAI-6837 [000] … 78.781607: snd_soc_dapm_widget_power: widget=DSPK2 Transmit-DSPK2 CIF Receive val=1
alsa-sink-ADMAI-6837 [000] … 78.781615: snd_soc_dapm_widget_power: widget=I2S1 Transmit-I2S1 CIF Receive val=1
alsa-sink-ADMAI-6837 [000] … 78.781625: snd_soc_dapm_widget_power: widget=DSPK2 CIF Receive val=1
alsa-sink-ADMAI-6837 [000] … 78.781636: snd_soc_dapm_widget_power: widget=I2S1 CIF Receive val=1
alsa-sink-ADMAI-6837 [000] … 78.781644: snd_soc_dapm_widget_power: widget=DSPK2 DAP TX val=1
alsa-sink-ADMAI-6837 [000] … 78.781655: snd_soc_dapm_widget_power: widget=I2S1 CIF RX val=1
alsa-sink-ADMAI-6837 [000] … 78.781667: snd_soc_dapm_widget_power: widget=DSPK2 DAP Transmit val=1
alsa-sink-ADMAI-6837 [000] … 78.781678: snd_soc_dapm_widget_power: widget=I2S1 DAP TX val=1
alsa-sink-ADMAI-6837 [000] … 78.781692: snd_soc_dapm_widget_power: widget=DSPK2 DAP Transmit-d1 Playback val=1
alsa-sink-ADMAI-6837 [000] … 78.781700: snd_soc_dapm_widget_power: widget=I2S1 DAP Transmit val=1
alsa-sink-ADMAI-6837 [000] … 78.781708: snd_soc_dapm_widget_power: widget=d1 Playback val=1
alsa-sink-ADMAI-6837 [000] … 78.781718: snd_soc_dapm_widget_power: widget=I2S1 DAP Transmit-x Playback val=1
alsa-sink-ADMAI-6837 [000] … 78.781846: snd_soc_dapm_widget_power: widget=d1 OUT val=1
alsa-sink-ADMAI-6837 [000] … 78.781861: snd_soc_dapm_widget_power: widget=x Playback val=1
alsa-sink-ADMAI-6837 [000] … 78.781868: snd_soc_dapm_widget_power: widget=d1 Headphone val=1
alsa-sink-ADMAI-6837 [000] … 78.781876: snd_soc_dapm_widget_power: widget=x OUT val=1
alsa-sink-ADMAI-6837 [000] … 78.781889: snd_soc_dapm_widget_power: widget=x Headphone val=1
alsa-source-ADM-6844 [000] … 78.855567: snd_soc_dapm_widget_power: widget=Capture 1 val=1
alsa-source-ADM-6844 [000] … 78.855611: snd_soc_dapm_widget_power: widget=ADMAIF1 Transmit val=1
alsa-source-ADM-6844 [000] … 78.855631: snd_soc_dapm_widget_power: widget=ADMAIF1 TX val=1
alsa-source-ADM-6844 [000] … 78.855634: snd_soc_dapm_widget_power: widget=ADMAIF1 Mux val=1
alsa-source-ADM-6844 [000] … 78.855957: snd_soc_dapm_widget_power: widget=MVC1 RX val=1
alsa-source-ADM-6844 [000] … 78.855969: snd_soc_dapm_widget_power: widget=MVC1 Receive val=1
alsa-source-ADM-6844 [000] … 78.855980: snd_soc_dapm_widget_power: widget=MVC1 MVC Transmit-MVC1 Receive val=1
alsa-source-ADM-6844 [000] … 78.855988: snd_soc_dapm_widget_power: widget=MVC1 MVC Transmit val=1
alsa-source-ADM-6844 [000] … 78.855991: snd_soc_dapm_widget_power: widget=MVC1 MVC TX val=1
alsa-source-ADM-6844 [000] … 78.855999: snd_soc_dapm_widget_power: widget=MVC1 MVC RX val=1
alsa-source-ADM-6844 [000] … 78.856006: snd_soc_dapm_widget_power: widget=MVC1 MVC Receive val=1
alsa-source-ADM-6844 [000] … 78.856013: snd_soc_dapm_widget_power: widget=MVC1 Transmit-MVC1 MVC Receive val=1
alsa-source-ADM-6844 [000] … 78.856016: snd_soc_dapm_widget_power: widget=MVC1 Transmit val=1
alsa-source-ADM-6844 [000] … 78.856021: snd_soc_dapm_widget_power: widget=MVC1 TX val=1
alsa-source-ADM-6844 [000] … 78.856027: snd_soc_dapm_widget_power: widget=MVC1 Mux val=1
alsa-source-ADM-6844 [000] … 78.856333: snd_soc_dapm_widget_power: widget=DMIC3 RX val=1
alsa-source-ADM-6844 [000] … 78.856345: snd_soc_dapm_widget_power: widget=DMIC3 Receive val=1
alsa-source-ADM-6844 [000] … 78.856352: snd_soc_dapm_widget_power: widget=DMIC3 DMIC Transmit-DMIC3 Receive val=1
alsa-source-ADM-6844 [000] … 78.856360: snd_soc_dapm_widget_power: widget=DMIC3 DMIC Transmit val=1
alsa-source-ADM-6844 [000] … 78.856370: snd_soc_dapm_widget_power: widget=DMIC3 DMIC TX val=1
alsa-source-ADM-6844 [000] … 78.856376: snd_soc_dapm_widget_power: widget=DMIC3 DMIC RX val=1
alsa-source-ADM-6844 [000] … 78.856387: snd_soc_dapm_widget_power: widget=DMIC3 DMIC Receive val=1
alsa-source-ADM-6844 [000] … 78.856394: snd_soc_dapm_widget_power: widget=c Capture-DMIC3 DMIC Receive val=1
alsa-source-ADM-6844 [000] … 78.856401: snd_soc_dapm_widget_power: widget=c Capture val=1
alsa-source-ADM-6844 [000] … 78.856411: snd_soc_dapm_widget_power: widget=c IN val=1
alsa-source-ADM-6844 [000] … 78.856421: snd_soc_dapm_widget_power: widget=c Mic val=1
pulseaudio-6808 [004] … 78.878417: snd_soc_dapm_widget_power: widget=Playback 1 val=0
pulseaudio-6808 [004] … 78.878425: snd_soc_dapm_widget_power: widget=ADMAIF1 Receive val=0
pulseaudio-6808 [004] … 78.878427: snd_soc_dapm_widget_power: widget=ADMAIF1 RX val=0
pulseaudio-6808 [004] … 78.878438: snd_soc_dapm_widget_power: widget=DSPK2 Mux val=0
pulseaudio-6808 [004] … 78.878444: snd_soc_dapm_widget_power: widget=I2S1 Mux val=0
pulseaudio-6808 [004] … 78.878446: snd_soc_dapm_widget_power: widget=DSPK2 TX val=0
pulseaudio-6808 [004] … 78.878448: snd_soc_dapm_widget_power: widget=I2S1 TX val=0
pulseaudio-6808 [004] … 78.878449: snd_soc_dapm_widget_power: widget=DSPK2 Transmit val=0
pulseaudio-6808 [004] … 78.878451: snd_soc_dapm_widget_power: widget=I2S1 Transmit val=0
pulseaudio-6808 [004] … 78.878452: snd_soc_dapm_widget_power: widget=DSPK2 Transmit-DSPK2 CIF Receive val=0
pulseaudio-6808 [004] … 78.878454: snd_soc_dapm_widget_power: widget=I2S1 Transmit-I2S1 CIF Receive val=0
pulseaudio-6808 [004] … 78.878456: snd_soc_dapm_widget_power: widget=DSPK2 CIF Receive val=0
pulseaudio-6808 [004] … 78.878458: snd_soc_dapm_widget_power: widget=I2S1 CIF Receive val=0
pulseaudio-6808 [004] … 78.878459: snd_soc_dapm_widget_power: widget=DSPK2 DAP TX val=0
pulseaudio-6808 [004] … 78.878462: snd_soc_dapm_widget_power: widget=I2S1 CIF RX val=0
pulseaudio-6808 [004] … 78.878463: snd_soc_dapm_widget_power: widget=DSPK2 DAP Transmit val=0
pulseaudio-6808 [004] … 78.878465: snd_soc_dapm_widget_power: widget=I2S1 DAP TX val=0
pulseaudio-6808 [004] … 78.878467: snd_soc_dapm_widget_power: widget=DSPK2 DAP Transmit-d1 Playback val=0
pulseaudio-6808 [004] … 78.878469: snd_soc_dapm_widget_power: widget=I2S1 DAP Transmit val=0
pulseaudio-6808 [004] … 78.878471: snd_soc_dapm_widget_power: widget=d1 Playback val=0
pulseaudio-6808 [004] … 78.878472: snd_soc_dapm_widget_power: widget=I2S1 DAP Transmit-x Playback val=0
pulseaudio-6808 [004] … 78.878474: snd_soc_dapm_widget_power: widget=d1 OUT val=0
pulseaudio-6808 [004] … 78.878475: snd_soc_dapm_widget_power: widget=x Playback val=0
pulseaudio-6808 [004] … 78.878477: snd_soc_dapm_widget_power: widget=d1 Headphone val=0
pulseaudio-6808 [004] … 78.878478: snd_soc_dapm_widget_power: widget=x OUT val=0
pulseaudio-6808 [004] … 78.878480: snd_soc_dapm_widget_power: widget=x Headphone val=0
pulseaudio-6808 [005] … 78.885073: snd_soc_dapm_widget_power: widget=Capture 1 val=0
pulseaudio-6808 [005] … 78.885077: snd_soc_dapm_widget_power: widget=ADMAIF1 Transmit val=0
pulseaudio-6808 [005] … 78.885078: snd_soc_dapm_widget_power: widget=ADMAIF1 TX val=0
pulseaudio-6808 [005] … 78.885079: snd_soc_dapm_widget_power: widget=ADMAIF1 Mux val=0
pulseaudio-6808 [005] … 78.885094: snd_soc_dapm_widget_power: widget=MVC1 RX val=0
pulseaudio-6808 [005] … 78.885096: snd_soc_dapm_widget_power: widget=MVC1 Receive val=0
pulseaudio-6808 [005] … 78.885097: snd_soc_dapm_widget_power: widget=MVC1 MVC Transmit-MVC1 Receive val=0
pulseaudio-6808 [005] … 78.885098: snd_soc_dapm_widget_power: widget=MVC1 MVC Transmit val=0
pulseaudio-6808 [005] … 78.885099: snd_soc_dapm_widget_power: widget=MVC1 MVC TX val=0
pulseaudio-6808 [005] … 78.885100: snd_soc_dapm_widget_power: widget=MVC1 MVC RX val=0
pulseaudio-6808 [005] … 78.885101: snd_soc_dapm_widget_power: widget=MVC1 MVC Receive val=0
pulseaudio-6808 [005] … 78.885102: snd_soc_dapm_widget_power: widget=MVC1 Transmit-MVC1 MVC Receive val=0
pulseaudio-6808 [005] … 78.885102: snd_soc_dapm_widget_power: widget=MVC1 Transmit val=0
pulseaudio-6808 [005] … 78.885103: snd_soc_dapm_widget_power: widget=MVC1 TX val=0
pulseaudio-6808 [005] … 78.885104: snd_soc_dapm_widget_power: widget=MVC1 Mux val=0
pulseaudio-6808 [005] … 78.885118: snd_soc_dapm_widget_power: widget=DMIC3 RX val=0
pulseaudio-6808 [005] … 78.885121: snd_soc_dapm_widget_power: widget=DMIC3 Receive val=0
pulseaudio-6808 [005] … 78.885122: snd_soc_dapm_widget_power: widget=DMIC3 DMIC Transmit-DMIC3 Receive val=0
pulseaudio-6808 [005] … 78.885123: snd_soc_dapm_widget_power: widget=DMIC3 DMIC Transmit val=0
pulseaudio-6808 [005] … 78.885124: snd_soc_dapm_widget_power: widget=DMIC3 DMIC TX val=0
pulseaudio-6808 [005] … 78.885125: snd_soc_dapm_widget_power: widget=DMIC3 DMIC RX val=0
pulseaudio-6808 [005] … 78.885126: snd_soc_dapm_widget_power: widget=DMIC3 DMIC Receive val=0
pulseaudio-6808 [005] … 78.885127: snd_soc_dapm_widget_power: widget=c Capture-DMIC3 DMIC Receive val=0
pulseaudio-6808 [005] … 78.885128: snd_soc_dapm_widget_power: widget=c Capture val=0
pulseaudio-6808 [005] … 78.885128: snd_soc_dapm_widget_power: widget=c IN val=0
pulseaudio-6808 [005] … 78.885129: snd_soc_dapm_widget_power: widget=c Mic val=0
arecord-7592 [000] … 89.370297: snd_soc_dapm_widget_power: widget=Capture 1 val=1
arecord-7592 [000] … 89.370309: snd_soc_dapm_widget_power: widget=ADMAIF1 Transmit val=1
arecord-7592 [000] … 89.370314: snd_soc_dapm_widget_power: widget=ADMAIF1 TX val=1
arecord-7592 [000] … 89.370319: snd_soc_dapm_widget_power: widget=ADMAIF1 Mux val=1
arecord-7592 [000] … 89.370354: snd_soc_dapm_widget_power: widget=MVC1 RX val=1
arecord-7592 [000] … 89.370362: snd_soc_dapm_widget_power: widget=MVC1 Receive val=1
arecord-7592 [000] … 89.370366: snd_soc_dapm_widget_power: widget=MVC1 MVC Transmit-MVC1 Receive val=1
arecord-7592 [000] … 89.370370: snd_soc_dapm_widget_power: widget=MVC1 MVC Transmit val=1
arecord-7592 [000] … 89.370373: snd_soc_dapm_widget_power: widget=MVC1 MVC TX val=1
arecord-7592 [000] … 89.370378: snd_soc_dapm_widget_power: widget=MVC1 MVC RX val=1
arecord-7592 [000] … 89.370381: snd_soc_dapm_widget_power: widget=MVC1 MVC Receive val=1
arecord-7592 [000] … 89.370384: snd_soc_dapm_widget_power: widget=MVC1 Transmit-MVC1 MVC Receive val=1
arecord-7592 [000] … 89.370387: snd_soc_dapm_widget_power: widget=MVC1 Transmit val=1
arecord-7592 [000] … 89.370391: snd_soc_dapm_widget_power: widget=MVC1 TX val=1
arecord-7592 [000] … 89.370395: snd_soc_dapm_widget_power: widget=MVC1 Mux val=1
arecord-7592 [000] … 89.370431: snd_soc_dapm_widget_power: widget=DMIC3 RX val=1
arecord-7592 [000] … 89.370439: snd_soc_dapm_widget_power: widget=DMIC3 Receive val=1
arecord-7592 [000] … 89.370443: snd_soc_dapm_widget_power: widget=DMIC3 DMIC Transmit-DMIC3 Receive val=1
arecord-7592 [000] … 89.370447: snd_soc_dapm_widget_power: widget=DMIC3 DMIC Transmit val=1
arecord-7592 [000] … 89.370451: snd_soc_dapm_widget_power: widget=DMIC3 DMIC TX val=1
arecord-7592 [000] … 89.370454: snd_soc_dapm_widget_power: widget=DMIC3 DMIC RX val=1
arecord-7592 [000] … 89.370458: snd_soc_dapm_widget_power: widget=DMIC3 DMIC Receive val=1
arecord-7592 [000] … 89.370462: snd_soc_dapm_widget_power: widget=c Capture-DMIC3 DMIC Receive val=1
arecord-7592 [000] … 89.370465: snd_soc_dapm_widget_power: widget=c Capture val=1
arecord-7592 [000] … 89.370469: snd_soc_dapm_widget_power: widget=c IN val=1
arecord-7592 [000] … 89.370472: snd_soc_dapm_widget_power: widget=c Mic val=1
arecord-7592 [000] … 97.275626: snd_soc_dapm_widget_power: widget=Capture 1 val=0
arecord-7592 [000] … 97.275708: snd_soc_dapm_widget_power: widget=ADMAIF1 Transmit val=0
arecord-7592 [000] … 97.275716: snd_soc_dapm_widget_power: widget=ADMAIF1 TX val=0
arecord-7592 [000] … 97.275722: snd_soc_dapm_widget_power: widget=ADMAIF1 Mux val=0
arecord-7592 [000] … 97.276010: snd_soc_dapm_widget_power: widget=MVC1 RX val=0
arecord-7592 [000] … 97.276022: snd_soc_dapm_widget_power: widget=MVC1 Receive val=0
arecord-7592 [000] … 97.276033: snd_soc_dapm_widget_power: widget=MVC1 MVC Transmit-MVC1 Receive val=0
arecord-7592 [000] … 97.276040: snd_soc_dapm_widget_power: widget=MVC1 MVC Transmit val=0
arecord-7592 [000] … 97.276047: snd_soc_dapm_widget_power: widget=MVC1 MVC TX val=0
arecord-7592 [000] … 97.276055: snd_soc_dapm_widget_power: widget=MVC1 MVC RX val=0
arecord-7592 [000] … 97.276061: snd_soc_dapm_widget_power: widget=MVC1 MVC Receive val=0
arecord-7592 [000] … 97.276068: snd_soc_dapm_widget_power: widget=MVC1 Transmit-MVC1 MVC Receive val=0
arecord-7592 [000] … 97.276071: snd_soc_dapm_widget_power: widget=MVC1 Transmit val=0
arecord-7592 [000] … 97.276075: snd_soc_dapm_widget_power: widget=MVC1 TX val=0
arecord-7592 [000] … 97.276078: snd_soc_dapm_widget_power: widget=MVC1 Mux val=0
arecord-7592 [000] … 97.276374: snd_soc_dapm_widget_power: widget=DMIC3 RX val=0
arecord-7592 [000] … 97.276390: snd_soc_dapm_widget_power: widget=DMIC3 Receive val=0
arecord-7592 [000] … 97.276397: snd_soc_dapm_widget_power: widget=DMIC3 DMIC Transmit-DMIC3 Receive val=0
arecord-7592 [000] … 97.276405: snd_soc_dapm_widget_power: widget=DMIC3 DMIC Transmit val=0
arecord-7592 [000] … 97.276416: snd_soc_dapm_widget_power: widget=DMIC3 DMIC TX val=0
arecord-7592 [000] … 97.276423: snd_soc_dapm_widget_power: widget=DMIC3 DMIC RX val=0
arecord-7592 [000] … 97.276431: snd_soc_dapm_widget_power: widget=DMIC3 DMIC Receive val=0
arecord-7592 [000] … 97.276438: snd_soc_dapm_widget_power: widget=c Capture-DMIC3 DMIC Receive val=0
arecord-7592 [000] … 97.276446: snd_soc_dapm_widget_power: widget=c Capture val=0
arecord-7592 [000] … 97.276453: snd_soc_dapm_widget_power: widget=c IN val=0
arecord-7592 [000] … 97.276464: snd_soc_dapm_widget_power: widget=c Mic val=0
aplay-7593 [000] … 102.814736: snd_soc_dapm_widget_power: widget=Playback 1 val=1
aplay-7593 [000] … 102.814740: snd_soc_dapm_widget_power: widget=ADMAIF1 Receive val=1
aplay-7593 [000] … 102.814741: snd_soc_dapm_widget_power: widget=ADMAIF1 RX val=1
aplay-7593 [000] … 102.814748: snd_soc_dapm_widget_power: widget=DSPK2 Mux val=1
aplay-7593 [000] … 102.814751: snd_soc_dapm_widget_power: widget=I2S1 Mux val=1
aplay-7593 [000] … 102.814752: snd_soc_dapm_widget_power: widget=DSPK2 TX val=1
aplay-7593 [000] … 102.814754: snd_soc_dapm_widget_power: widget=I2S1 TX val=1
aplay-7593 [000] … 102.814755: snd_soc_dapm_widget_power: widget=DSPK2 Transmit val=1
aplay-7593 [000] … 102.814755: snd_soc_dapm_widget_power: widget=I2S1 Transmit val=1
aplay-7593 [000] … 102.814756: snd_soc_dapm_widget_power: widget=DSPK2 Transmit-DSPK2 CIF Receive val=1
aplay-7593 [000] … 102.814757: snd_soc_dapm_widget_power: widget=I2S1 Transmit-I2S1 CIF Receive val=1
aplay-7593 [000] … 102.814758: snd_soc_dapm_widget_power: widget=DSPK2 CIF Receive val=1
aplay-7593 [000] … 102.814759: snd_soc_dapm_widget_power: widget=I2S1 CIF Receive val=1
aplay-7593 [000] … 102.814760: snd_soc_dapm_widget_power: widget=DSPK2 DAP TX val=1
aplay-7593 [000] … 102.814760: snd_soc_dapm_widget_power: widget=I2S1 CIF RX val=1
aplay-7593 [000] … 102.814761: snd_soc_dapm_widget_power: widget=DSPK2 DAP Transmit val=1
aplay-7593 [000] … 102.814762: snd_soc_dapm_widget_power: widget=I2S1 DAP TX val=1
aplay-7593 [000] … 102.814763: snd_soc_dapm_widget_power: widget=DSPK2 DAP Transmit-d1 Playback val=1
aplay-7593 [000] … 102.814764: snd_soc_dapm_widget_power: widget=I2S1 DAP Transmit val=1
aplay-7593 [000] … 102.814765: snd_soc_dapm_widget_power: widget=d1 Playback val=1
aplay-7593 [000] … 102.814765: snd_soc_dapm_widget_power: widget=I2S1 DAP Transmit-x Playback val=1
aplay-7593 [000] … 102.814766: snd_soc_dapm_widget_power: widget=d1 OUT val=1
aplay-7593 [000] … 102.814767: snd_soc_dapm_widget_power: widget=x Playback val=1
aplay-7593 [000] … 102.814768: snd_soc_dapm_widget_power: widget=d1 Headphone val=1
aplay-7593 [000] … 102.814769: snd_soc_dapm_widget_power: widget=x OUT val=1
aplay-7593 [000] … 102.814770: snd_soc_dapm_widget_power: widget=x Headphone val=1
aplay-7593 [000] … 108.498683: snd_soc_dapm_widget_power: widget=Playback 1 val=0
aplay-7593 [000] … 108.498697: snd_soc_dapm_widget_power: widget=ADMAIF1 Receive val=0
aplay-7593 [000] … 108.498702: snd_soc_dapm_widget_power: widget=ADMAIF1 RX val=0
aplay-7593 [000] … 108.498727: snd_soc_dapm_widget_power: widget=DSPK2 Mux val=0
aplay-7593 [000] … 108.498739: snd_soc_dapm_widget_power: widget=I2S1 Mux val=0
aplay-7593 [000] … 108.498744: snd_soc_dapm_widget_power: widget=DSPK2 TX val=0
aplay-7593 [000] … 108.498748: snd_soc_dapm_widget_power: widget=I2S1 TX val=0
aplay-7593 [000] … 108.498752: snd_soc_dapm_widget_power: widget=DSPK2 Transmit val=0
aplay-7593 [000] … 108.498756: snd_soc_dapm_widget_power: widget=I2S1 Transmit val=0
aplay-7593 [000] … 108.498760: snd_soc_dapm_widget_power: widget=DSPK2 Transmit-DSPK2 CIF Receive val=0
aplay-7593 [000] … 108.498765: snd_soc_dapm_widget_power: widget=I2S1 Transmit-I2S1 CIF Receive val=0
aplay-7593 [000] … 108.498769: snd_soc_dapm_widget_power: widget=DSPK2 CIF Receive val=0
aplay-7593 [000] … 108.498773: snd_soc_dapm_widget_power: widget=I2S1 CIF Receive val=0
aplay-7593 [000] … 108.498777: snd_soc_dapm_widget_power: widget=DSPK2 DAP TX val=0
aplay-7593 [000] … 108.498781: snd_soc_dapm_widget_power: widget=I2S1 CIF RX val=0
aplay-7593 [000] … 108.498785: snd_soc_dapm_widget_power: widget=DSPK2 DAP Transmit val=0
aplay-7593 [000] … 108.498789: snd_soc_dapm_widget_power: widget=I2S1 DAP TX val=0
aplay-7593 [000] … 108.498794: snd_soc_dapm_widget_power: widget=DSPK2 DAP Transmit-d1 Playback val=0
aplay-7593 [000] … 108.498799: snd_soc_dapm_widget_power: widget=I2S1 DAP Transmit val=0
aplay-7593 [000] … 108.498803: snd_soc_dapm_widget_power: widget=d1 Playback val=0
aplay-7593 [000] … 108.498807: snd_soc_dapm_widget_power: widget=I2S1 DAP Transmit-x Playback val=0
aplay-7593 [000] … 108.498811: snd_soc_dapm_widget_power: widget=d1 OUT val=0
aplay-7593 [000] … 108.498815: snd_soc_dapm_widget_power: widget=x Playback val=0
aplay-7593 [000] … 108.498819: snd_soc_dapm_widget_power: widget=d1 Headphone val=0
aplay-7593 [000] … 108.498822: snd_soc_dapm_widget_power: widget=x OUT val=0
aplay-7593 [000] … 108.498826: snd_soc_dapm_widget_power: widget=x Headphone val=0
aplay-7630 [000] … 150.845969: snd_soc_dapm_widget_power: widget=Playback 1 val=1
aplay-7630 [000] … 150.845974: snd_soc_dapm_widget_power: widget=ADMAIF1 Receive val=1
aplay-7630 [000] … 150.845976: snd_soc_dapm_widget_power: widget=ADMAIF1 RX val=1
aplay-7630 [000] … 150.845982: snd_soc_dapm_widget_power: widget=MVC1 Mux val=1
aplay-7630 [000] … 150.845986: snd_soc_dapm_widget_power: widget=I2S1 Mux val=1
aplay-7630 [000] … 150.845988: snd_soc_dapm_widget_power: widget=MVC1 TX val=1
aplay-7630 [000] … 150.845989: snd_soc_dapm_widget_power: widget=I2S1 TX val=1
aplay-7630 [000] … 150.845990: snd_soc_dapm_widget_power: widget=MVC1 Transmit val=1
aplay-7630 [000] … 150.845991: snd_soc_dapm_widget_power: widget=I2S1 Transmit val=1
aplay-7630 [000] … 150.845992: snd_soc_dapm_widget_power: widget=MVC1 Transmit-MVC1 MVC Receive val=1
aplay-7630 [000] … 150.845993: snd_soc_dapm_widget_power: widget=I2S1 Transmit-I2S1 CIF Receive val=1
aplay-7630 [000] … 150.845994: snd_soc_dapm_widget_power: widget=MVC1 MVC Receive val=1
aplay-7630 [000] … 150.845995: snd_soc_dapm_widget_power: widget=I2S1 CIF Receive val=1
aplay-7630 [000] … 150.845996: snd_soc_dapm_widget_power: widget=MVC1 MVC RX val=1
aplay-7630 [000] … 150.845997: snd_soc_dapm_widget_power: widget=I2S1 CIF RX val=1
aplay-7630 [000] … 150.845998: snd_soc_dapm_widget_power: widget=MVC1 MVC TX val=1
aplay-7630 [000] … 150.845999: snd_soc_dapm_widget_power: widget=I2S1 DAP TX val=1
aplay-7630 [000] … 150.846001: snd_soc_dapm_widget_power: widget=MVC1 MVC Transmit val=1
aplay-7630 [000] … 150.846002: snd_soc_dapm_widget_power: widget=I2S1 DAP Transmit val=1
aplay-7630 [000] … 150.846003: snd_soc_dapm_widget_power: widget=MVC1 MVC Transmit-MVC1 Receive val=1
aplay-7630 [000] … 150.846004: snd_soc_dapm_widget_power: widget=I2S1 DAP Transmit-x Playback val=1
aplay-7630 [000] … 150.846005: snd_soc_dapm_widget_power: widget=MVC1 Receive val=1
aplay-7630 [000] … 150.846006: snd_soc_dapm_widget_power: widget=x Playback val=1
aplay-7630 [000] … 150.846008: snd_soc_dapm_widget_power: widget=MVC1 RX val=1
aplay-7630 [000] … 150.846011: snd_soc_dapm_widget_power: widget=x OUT val=1
aplay-7630 [000] … 150.846015: snd_soc_dapm_widget_power: widget=DSPK2 Mux val=1
aplay-7630 [000] … 150.846019: snd_soc_dapm_widget_power: widget=x Headphone val=1
aplay-7630 [000] … 150.846021: snd_soc_dapm_widget_power: widget=DSPK2 TX val=1
aplay-7630 [000] … 150.846023: snd_soc_dapm_widget_power: widget=DSPK2 Transmit val=1
aplay-7630 [000] … 150.846024: snd_soc_dapm_widget_power: widget=DSPK2 Transmit-DSPK2 CIF Receive val=1
aplay-7630 [000] … 150.846026: snd_soc_dapm_widget_power: widget=DSPK2 CIF Receive val=1
aplay-7630 [000] … 150.846028: snd_soc_dapm_widget_power: widget=DSPK2 DAP TX val=1
aplay-7630 [000] … 150.846029: snd_soc_dapm_widget_power: widget=DSPK2 DAP Transmit val=1
aplay-7630 [000] … 150.846031: snd_soc_dapm_widget_power: widget=DSPK2 DAP Transmit-d1 Playback val=1
aplay-7630 [000] … 150.846033: snd_soc_dapm_widget_power: widget=d1 Playback val=1
aplay-7630 [000] … 150.846034: snd_soc_dapm_widget_power: widget=d1 OUT val=1
aplay-7630 [000] … 150.846035: snd_soc_dapm_widget_power: widget=d1 Headphone val=1
aplay-7630 [000] … 150.893125: snd_soc_dapm_widget_power: widget=Playback 1 val=0
aplay-7630 [000] … 150.893134: snd_soc_dapm_widget_power: widget=ADMAIF1 Receive val=0
aplay-7630 [000] … 150.893139: snd_soc_dapm_widget_power: widget=ADMAIF1 RX val=0
aplay-7630 [000] … 150.893161: snd_soc_dapm_widget_power: widget=MVC1 Mux val=0
aplay-7630 [000] … 150.893175: snd_soc_dapm_widget_power: widget=I2S1 Mux val=0
aplay-7630 [000] … 150.893180: snd_soc_dapm_widget_power: widget=MVC1 TX val=0
aplay-7630 [000] … 150.893184: snd_soc_dapm_widget_power: widget=I2S1 TX val=0
aplay-7630 [000] … 150.893188: snd_soc_dapm_widget_power: widget=MVC1 Transmit val=0
aplay-7630 [000] … 150.893191: snd_soc_dapm_widget_power: widget=I2S1 Transmit val=0
aplay-7630 [000] … 150.893195: snd_soc_dapm_widget_power: widget=MVC1 Transmit-MVC1 MVC Receive val=0
aplay-7630 [000] … 150.893199: snd_soc_dapm_widget_power: widget=I2S1 Transmit-I2S1 CIF Receive val=0
aplay-7630 [000] … 150.893203: snd_soc_dapm_widget_power: widget=MVC1 MVC Receive val=0
aplay-7630 [000] … 150.893206: snd_soc_dapm_widget_power: widget=I2S1 CIF Receive val=0
aplay-7630 [000] … 150.893209: snd_soc_dapm_widget_power: widget=MVC1 MVC RX val=0
aplay-7630 [000] … 150.893212: snd_soc_dapm_widget_power: widget=I2S1 CIF RX val=0
aplay-7630 [000] … 150.893216: snd_soc_dapm_widget_power: widget=MVC1 MVC TX val=0
aplay-7630 [000] … 150.893219: snd_soc_dapm_widget_power: widget=I2S1 DAP TX val=0
aplay-7630 [000] … 150.893223: snd_soc_dapm_widget_power: widget=MVC1 MVC Transmit val=0
aplay-7630 [000] … 150.893226: snd_soc_dapm_widget_power: widget=I2S1 DAP Transmit val=0
aplay-7630 [000] … 150.893230: snd_soc_dapm_widget_power: widget=MVC1 MVC Transmit-MVC1 Receive val=0
aplay-7630 [000] … 150.893234: snd_soc_dapm_widget_power: widget=I2S1 DAP Transmit-x Playback val=0
aplay-7630 [000] … 150.893238: snd_soc_dapm_widget_power: widget=MVC1 Receive val=0
aplay-7630 [000] … 150.893241: snd_soc_dapm_widget_power: widget=x Playback val=0
aplay-7630 [000] … 150.893244: snd_soc_dapm_widget_power: widget=MVC1 RX val=0
aplay-7630 [000] … 150.893256: snd_soc_dapm_widget_power: widget=x OUT val=0
aplay-7630 [000] … 150.893270: snd_soc_dapm_widget_power: widget=DSPK2 Mux val=0
aplay-7630 [000] … 150.893276: snd_soc_dapm_widget_power: widget=x Headphone val=0
aplay-7630 [000] … 150.893283: snd_soc_dapm_widget_power: widget=DSPK2 TX val=0
aplay-7630 [000] … 150.893288: snd_soc_dapm_widget_power: widget=DSPK2 Transmit val=0
aplay-7630 [000] … 150.893293: snd_soc_dapm_widget_power: widget=DSPK2 Transmit-DSPK2 CIF Receive val=0
aplay-7630 [000] … 150.893297: snd_soc_dapm_widget_power: widget=DSPK2 CIF Receive val=0
aplay-7630 [000] … 150.893301: snd_soc_dapm_widget_power: widget=DSPK2 DAP TX val=0
aplay-7630 [000] … 150.893305: snd_soc_dapm_widget_power: widget=DSPK2 DAP Transmit val=0
aplay-7630 [000] … 150.893308: snd_soc_dapm_widget_power: widget=DSPK2 DAP Transmit-d1 Playback val=0
aplay-7630 [000] … 150.893312: snd_soc_dapm_widget_power: widget=d1 Playback val=0
aplay-7630 [000] … 150.893315: snd_soc_dapm_widget_power: widget=d1 OUT val=0
aplay-7630 [000] … 150.893319: snd_soc_dapm_widget_power: widget=d1 Headphone val=0

Hello!

Thanks for the detailed description. My first guess would be that pulseaudio is getting in the way. Can you try adding a dummy source for pulseaudio and seeing if this helps?

$ pacmd load-module module-null-source source_name=DummySource
$ pacmd set-default-source DummySource

Note you can check the default source by …

$ pacmd list-sources

The source with the ‘*’ next to it is the default.

Another alternative is to use the ‘plughw’ plugin instead of just ‘hw’ …

$ arecord -D plughw:tegrasndt186ref,0 -r 48000 -c 1 -f S16_LE mic_testing2.wav

Regards,
Jon

Hi Jon,

Below are the responses for pacmd:

root@tegra-ubuntu:/home/ubuntu# pacmd load-module module-null-source source_name=DummySource
No PulseAudio daemon running, or not running as session daemon.
root@tegra-ubuntu:/home/ubuntu# pacmd set-default-source DummySource
No PulseAudio daemon running, or not running as session daemon.
root@tegra-ubuntu:/home/ubuntu# pacmd list-sources
No PulseAudio daemon running, or not running as session daemon.

My Observation is, At bootup to get the mic and speaker working, i am setting these mixer to get the dmic/dspk clock and data.
amixer -c tegrasndt186ref cset name=“MVC1 Mux” DMIC3
amixer -c tegrasndt186ref cset name=“DSPK2 Mux” ADMAIF1

And when i am doing volume set using these cmd to get the change volume affected from the speaker, the initial routing is affected as i changed the mixer settings suggested by you here Speaker Volume Set/Get API for DSPK2 on TX2 - #8 by jonathanh
amixer -c tegrasndt186ref cset name=“MVC1 Mux” ADMAIF1
amixer -c tegrasndt186ref cset name=“DSPK2 Mux” MVC1
amixer -c tegrasndt186ref cset name=“MVC1 Vol” 13800

Due to which input/output error is occured.
arecord: pcm_read:2103: read error: Input/output error

Please correct if my understanding is wrong.

Hi Jon,

Please suggest on the previous query.

Adding to it: How can i control the digital gain of the speaker ? other than the mixer routing shared previously.

Hello!

Sorry for the delay. You should run the pacmd commands as user and not root.

However, looking some more at you comments, it appears that you are trying to use the same MVC instance for both the DMIC and DSPK. Please can you try using MVC1 for DMIC and MVC2 for DSPK?

Regards
Jon