The audio codec have no sound on jetson nano

hi, Nvidia, I have problem with audio codec, now sound card got registered,but have no sound played.

this is DAPM routing in dts,

nvidia,audio-routing =
“x Headphone”, “x LOUT1”,
“x LINPUT1”, “x Mic”,
“x Headphone”, “x ROUT1”,
“x RINPUT1”, “x Mic”,
“y Headphone”, “y OUT”,
“y IN”, “y Mic”,
“a IN”, “a Mic”,
“b IN”, “b Mic”;

es8388.c (30.0 KB)
tegra_machine_driver_mobile.c (25.2 KB)

the dmesg shows below

~/Developer$ dmesg | grep asoc
[ 1.514123] tegra-asoc: sound: tegra_machine_driver_probe and 870
[ 1.514813] tegra-asoc: sound: tegra_machine_driver_probe and 877
[ 1.583280] tegra-asoc: sound: ADMAIF1 <-> ADMAIF1 mapping ok
[ 1.583422] tegra-asoc: sound: ADMAIF2 <-> ADMAIF2 mapping ok
[ 1.583552] tegra-asoc: sound: ADMAIF3 <-> ADMAIF3 mapping ok
[ 1.583681] tegra-asoc: sound: ADMAIF4 <-> ADMAIF4 mapping ok
[ 1.583813] tegra-asoc: sound: ADMAIF5 <-> ADMAIF5 mapping ok
[ 1.583941] tegra-asoc: sound: ADMAIF6 <-> ADMAIF6 mapping ok
[ 1.584071] tegra-asoc: sound: ADMAIF7 <-> ADMAIF7 mapping ok
[ 1.584203] tegra-asoc: sound: ADMAIF8 <-> ADMAIF8 mapping ok
[ 1.584330] tegra-asoc: sound: ADMAIF9 <-> ADMAIF9 mapping ok
[ 1.584460] tegra-asoc: sound: ADMAIF10 <-> ADMAIF10 mapping ok

After i aplay the test.wav, i got the trace log shows below

aplay -D hw:tegrasndt210ref test.wav
Playing WAVE ‘test.wav’ : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
biao@biao-desktop:~/Developer$ sudo cat /sys/kernel/debug/tracing/trace

tracer: nop

entries-in-buffer/entries-written: 82/82 #P:4

_-----=> irqs-off

/ _----=> need-resched

| / _—=> hardirq/softirq

|| / _–=> preempt-depth

||| / delay

TASK-PID CPU# |||| TIMESTAMP FUNCTION

| | | |||| | |

  pulseaudio-7752  [003] ....    96.660456: snd_soc_dapm_start: card=tegra-snd-t210ref-mobile-rt565x
  pulseaudio-7752  [003] ....    96.660548: snd_soc_dapm_walk_done: tegra-snd-t210ref-mobile-rt565x: checks 2 power, 2 path, 0 neighbour
  pulseaudio-7752  [003] ....    96.778969: snd_soc_dapm_start: card=tegra-snd-t210ref-mobile-rt565x
  pulseaudio-7752  [003] ....    96.779009: snd_soc_dapm_path: *ADMAIF1 Transmit -> (direct) -> Capture 1
  pulseaudio-7752  [003] ....    96.779010: snd_soc_dapm_path: *ADMAIF1 Transmit -> (direct) -> ADMAIF1 Transmit-ADMAIF1 CIF Transmit
  pulseaudio-7752  [003] ....    96.779052: snd_soc_dapm_walk_done: tegra-snd-t210ref-mobile-rt565x: checks 2 power, 2 path, 2 neighbour
  pulseaudio-7752  [003] ....    96.782832: snd_soc_dapm_start: card=tegra-snd-t210ref-mobile-rt565x
  pulseaudio-7752  [003] ....    96.782904: snd_soc_dapm_walk_done: tegra-snd-t210ref-mobile-rt565x: checks 2 power, 2 path, 0 neighbour
  pulseaudio-7752  [003] ....    96.889467: snd_soc_dapm_start: card=tegra-snd-t210ref-mobile-rt565x
  pulseaudio-7752  [003] ....    96.889506: snd_soc_dapm_path: *ADMAIF1 Transmit -> (direct) -> Capture 1
  pulseaudio-7752  [003] ....    96.889507: snd_soc_dapm_path: *ADMAIF1 Transmit -> (direct) -> ADMAIF1 Transmit-ADMAIF1 CIF Transmit
  pulseaudio-7752  [003] ....    96.889549: snd_soc_dapm_walk_done: tegra-snd-t210ref-mobile-rt565x: checks 2 power, 2 path, 2 neighbour
  pulseaudio-7752  [003] ....    96.890952: snd_soc_dapm_start: card=tegra-snd-t210ref-mobile-rt565x
  pulseaudio-7752  [003] ....    96.891020: snd_soc_dapm_walk_done: tegra-snd-t210ref-mobile-rt565x: checks 2 power, 2 path, 0 neighbour
  pulseaudio-7752  [003] ....    97.003024: snd_soc_dapm_start: card=tegra-snd-t210ref-mobile-rt565x
  pulseaudio-7752  [003] ....    97.003100: snd_soc_dapm_walk_done: tegra-snd-t210ref-mobile-rt565x: checks 2 power, 2 path, 0 neighbour
  pulseaudio-7752  [003] ....    97.003153: snd_soc_dapm_start: card=tegra-snd-t210ref-mobile-rt565x
  pulseaudio-7752  [003] ....    97.003170: snd_soc_dapm_path: *ADMAIF1 Transmit -> (direct) -> Capture 1
  pulseaudio-7752  [003] ....    97.003171: snd_soc_dapm_path: *ADMAIF1 Transmit -> (direct) -> ADMAIF1 Transmit-ADMAIF1 CIF Transmit
  pulseaudio-7752  [003] ....    97.003192: snd_soc_dapm_walk_done: tegra-snd-t210ref-mobile-rt565x: checks 2 power, 2 path, 2 neighbour
  pulseaudio-7752  [003] ....    97.003925: snd_soc_dapm_start: card=tegra-snd-t210ref-mobile-rt565x
  pulseaudio-7752  [003] ....    97.003975: snd_soc_dapm_walk_done: tegra-snd-t210ref-mobile-rt565x: checks 2 power, 2 path, 0 neighbour
  pulseaudio-7752  [003] ....    97.004019: snd_soc_dapm_start: card=tegra-snd-t210ref-mobile-rt565x
  pulseaudio-7752  [003] ....    97.004032: snd_soc_dapm_path: *ADMAIF1 Transmit -> (direct) -> Capture 1
  pulseaudio-7752  [003] ....    97.004033: snd_soc_dapm_path: *ADMAIF1 Transmit -> (direct) -> ADMAIF1 Transmit-ADMAIF1 CIF Transmit
  pulseaudio-7752  [003] ....    97.004053: snd_soc_dapm_walk_done: tegra-snd-t210ref-mobile-rt565x: checks 2 power, 2 path, 2 neighbour
  pulseaudio-7752  [003] ....    97.004193: snd_soc_dapm_start: card=tegra-snd-t210ref-mobile-rt565x
  pulseaudio-7752  [003] ....    97.004209: snd_soc_dapm_path: *ADMAIF1 Receive <- (direct) <- Playback 1
  pulseaudio-7752  [003] ....    97.004210: snd_soc_dapm_path: *ADMAIF1 Receive <- (direct) <- ADMAIF1 CIF Receive-ADMAIF1 Receive
  pulseaudio-7752  [003] ....    97.004228: snd_soc_dapm_walk_done: tegra-snd-t210ref-mobile-rt565x: checks 2 power, 2 path, 2 neighbour
  pulseaudio-7752  [003] ....    97.005267: snd_soc_dapm_start: card=tegra-snd-t210ref-mobile-rt565x
  pulseaudio-7752  [003] ....    97.005313: snd_soc_dapm_walk_done: tegra-snd-t210ref-mobile-rt565x: checks 2 power, 2 path, 0 neighbour
  pulseaudio-7752  [003] ....    97.111915: snd_soc_dapm_start: card=tegra-snd-t210ref-mobile-rt565x
  pulseaudio-7752  [003] ....    97.111994: snd_soc_dapm_walk_done: tegra-snd-t210ref-mobile-rt565x: checks 2 power, 2 path, 0 neighbour
  pulseaudio-7752  [003] ....    97.112057: snd_soc_dapm_start: card=tegra-snd-t210ref-mobile-rt565x
  pulseaudio-7752  [003] ....    97.112075: snd_soc_dapm_path: *ADMAIF1 Transmit -> (direct) -> Capture 1
  pulseaudio-7752  [003] ....    97.112076: snd_soc_dapm_path: *ADMAIF1 Transmit -> (direct) -> ADMAIF1 Transmit-ADMAIF1 CIF Transmit
  pulseaudio-7752  [003] ....    97.112099: snd_soc_dapm_walk_done: tegra-snd-t210ref-mobile-rt565x: checks 2 power, 2 path, 2 neighbour
  pulseaudio-7752  [003] ....    97.112961: snd_soc_dapm_start: card=tegra-snd-t210ref-mobile-rt565x
  pulseaudio-7752  [003] ....    97.113014: snd_soc_dapm_walk_done: tegra-snd-t210ref-mobile-rt565x: checks 2 power, 2 path, 0 neighbour
  pulseaudio-7752  [003] ....    97.113059: snd_soc_dapm_start: card=tegra-snd-t210ref-mobile-rt565x
  pulseaudio-7752  [003] ....    97.113077: snd_soc_dapm_path: *ADMAIF1 Transmit -> (direct) -> Capture 1
  pulseaudio-7752  [003] ....    97.113078: snd_soc_dapm_path: *ADMAIF1 Transmit -> (direct) -> ADMAIF1 Transmit-ADMAIF1 CIF Transmit
  pulseaudio-7752  [003] ....    97.113100: snd_soc_dapm_walk_done: tegra-snd-t210ref-mobile-rt565x: checks 2 power, 2 path, 2 neighbour
  pulseaudio-7752  [003] ....    97.113240: snd_soc_dapm_start: card=tegra-snd-t210ref-mobile-rt565x
  pulseaudio-7752  [003] ....    97.113257: snd_soc_dapm_path: *ADMAIF1 Receive <- (direct) <- Playback 1
  pulseaudio-7752  [003] ....    97.113258: snd_soc_dapm_path: *ADMAIF1 Receive <- (direct) <- ADMAIF1 CIF Receive-ADMAIF1 Receive
  pulseaudio-7752  [003] ....    97.113280: snd_soc_dapm_walk_done: tegra-snd-t210ref-mobile-rt565x: checks 2 power, 2 path, 2 neighbour
  pulseaudio-7752  [003] ....    97.125732: snd_soc_dapm_start: card=tegra-snd-t210ref-mobile-rt565x
  pulseaudio-7752  [003] ....    97.125810: snd_soc_dapm_walk_done: tegra-snd-t210ref-mobile-rt565x: checks 2 power, 2 path, 0 neighbour
  pulseaudio-7752  [003] ....    97.279744: snd_soc_dapm_start: card=tegra-snd-t210ref-mobile-rt565x
  pulseaudio-7752  [003] ....    97.279825: snd_soc_dapm_walk_done: tegra-snd-t210ref-mobile-rt565x: checks 2 power, 2 path, 0 neighbour

alsa-source-ADM-7756 [000] … 102.438047: snd_soc_dapm_start: card=tegra-snd-t210ref-mobile-rt565x
alsa-source-ADM-7756 [000] … 102.438087: snd_soc_dapm_path: *ADMAIF1 Transmit → (direct) → Capture 1
alsa-source-ADM-7756 [000] … 102.438088: snd_soc_dapm_path: *ADMAIF1 Transmit → (direct) → ADMAIF1 Transmit-ADMAIF1 CIF Transmit
alsa-source-ADM-7756 [000] … 102.438122: snd_soc_dapm_walk_done: tegra-snd-t210ref-mobile-rt565x: checks 2 power, 2 path, 2 neighbour
alsa-sink-ADMAI-7755 [003] … 102.439277: snd_soc_dapm_start: card=tegra-snd-t210ref-mobile-rt565x
alsa-sink-ADMAI-7755 [003] … 102.439310: snd_soc_dapm_path: *ADMAIF1 Receive ← (direct) ← Playback 1
alsa-sink-ADMAI-7755 [003] … 102.439311: snd_soc_dapm_path: *ADMAIF1 Receive ← (direct) ← ADMAIF1 CIF Receive-ADMAIF1 Receive
alsa-sink-ADMAI-7755 [003] … 102.439346: snd_soc_dapm_walk_done: tegra-snd-t210ref-mobile-rt565x: checks 2 power, 2 path, 2 neighbour
aplay-7761 [000] … 112.963392: snd_soc_dapm_start: card=tegra-snd-t210ref-mobile-rt565x
aplay-7761 [000] … 112.963441: snd_soc_dapm_path: *ADMAIF1 Receive ← (direct) ← Playback 1
aplay-7761 [000] … 112.963442: snd_soc_dapm_path: *ADMAIF1 Receive ← (direct) ← ADMAIF1 CIF Receive-ADMAIF1 Receive
aplay-7761 [000] … 112.963488: snd_soc_dapm_walk_done: tegra-snd-t210ref-mobile-rt565x: checks 2 power, 2 path, 2 neighbour
aplay-7763 [003] … 118.678574: snd_soc_dapm_start: card=tegra-snd-t210ref-mobile-rt565x
aplay-7763 [003] … 118.678664: snd_soc_dapm_walk_done: tegra-snd-t210ref-mobile-rt565x: checks 2 power, 2 path, 0 neighbour
aplay-7763 [000] … 119.253170: snd_soc_dapm_start: card=tegra-snd-t210ref-mobile-rt565x
aplay-7763 [000] … 119.253210: snd_soc_dapm_path: *ADMAIF1 Receive ← (direct) ← Playback 1
aplay-7763 [000] … 119.253211: snd_soc_dapm_path: *ADMAIF1 Receive ← (direct) ← ADMAIF1 CIF Receive-ADMAIF1 Receive
aplay-7763 [000] … 119.253255: snd_soc_dapm_walk_done: tegra-snd-t210ref-mobile-rt565x: checks 2 power, 2 path, 2 neighbour
aplay-7771 [003] … 154.754871: snd_soc_dapm_start: card=tegra-snd-t210ref-mobile-rt565x
aplay-7771 [003] … 154.754958: snd_soc_dapm_walk_done: tegra-snd-t210ref-mobile-rt565x: checks 2 power, 2 path, 0 neighbour
aplay-7771 [000] … 155.328865: snd_soc_dapm_start: card=tegra-snd-t210ref-mobile-rt565x
aplay-7771 [000] … 155.328905: snd_soc_dapm_path: *ADMAIF1 Receive ← (direct) ← Playback 1
aplay-7771 [000] … 155.328907: snd_soc_dapm_path: *ADMAIF1 Receive ← (direct) ← ADMAIF1 CIF Receive-ADMAIF1 Receive
aplay-7771 [000] … 155.328946: snd_soc_dapm_walk_done: tegra-snd-t210ref-mobile-rt565x: checks 2 power, 2 path, 2 neighbour
aplay-7778 [000] … 225.543781: snd_soc_dapm_start: card=tegra-snd-t210ref-mobile-rt565x
aplay-7778 [000] … 225.543870: snd_soc_dapm_walk_done: tegra-snd-t210ref-mobile-rt565x: checks 2 power, 2 path, 0 neighbour
aplay-7778 [000] … 226.117872: snd_soc_dapm_start: card=tegra-snd-t210ref-mobile-rt565x
aplay-7778 [000] … 226.117913: snd_soc_dapm_path: *ADMAIF1 Receive ← (direct) ← Playback 1
aplay-7778 [000] … 226.117914: snd_soc_dapm_path: *ADMAIF1 Receive ← (direct) ← ADMAIF1 CIF Receive-ADMAIF1 Receive
aplay-7778 [000] … 226.117954: snd_soc_dapm_walk_done: tegra-snd-t210ref-mobile-rt565x: checks 2 power, 2 path, 2 neighbour

what should i do next , Looking forward to your reply, thank you

Please check below L4T doc to see if an help: NVIDIA Jetson Linux Driver Package Software Features : Audio Setup and Development | NVIDIA Docs

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.