Understanding ALSA sound card list

Hi,

We’ve integrated the Microchip Timberwolf codec driver into our Jetson Nano system. We just needed to add the appropriate input and output widgets to the codec driver, the routes in the codec driver, and added the connections in the device tree. However, we’re not getting audio out when we try to play a file. Could you provide some help on how we could debug the issue.

  1. Are there tools and utilities that we could use to understand whether our connections are correctly working when we try to play a file?
  2. When we execute aplay -l on the command line, we get the following output. Could you help us understand what this means?
    **** List of PLAYBACK Hardware Devices ****
    card 0: tegrahda [tegra-hda], device 3: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: timberwolf [timberwolf], device 0: ADMAIF1 CIF ADMAIF1-0
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: timberwolf [timberwolf], device 1: ADMAIF2 CIF ADMAIF2-1
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: timberwolf [timberwolf], device 2: ADMAIF3 CIF ADMAIF3-2
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: timberwolf [timberwolf], device 3: ADMAIF4 CIF ADMAIF4-3
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: timberwolf [timberwolf], device 4: ADMAIF5 CIF ADMAIF5-4
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: timberwolf [timberwolf], device 5: ADMAIF6 CIF ADMAIF6-5
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: timberwolf [timberwolf], device 6: ADMAIF7 CIF ADMAIF7-6
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: timberwolf [timberwolf], device 7: ADMAIF8 CIF ADMAIF8-7
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: timberwolf [timberwolf], device 8: ADMAIF9 CIF ADMAIF9-8
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: timberwolf [timberwolf], device 9: ADMAIF10 CIF ADMAIF10-9
    Subdevices: 1/1
    Subdevice #0: subdevice #0

Best,

Hi mab,

  • To enable support for an Audio codec in the BSP, kindly refer to the Codec porting guide to understand SW changes required in the BSP.

  • To understand ASoC Driver Architecture, kindly go through the BSP documentation.

  • DAPM trace should help understand the connections. Procedure for getting dapm trace is documented in the troubleshooting guide.

If you are encountering issues still, provide details as per Troubleshooting guide (like device tree, dmesg log, errors if any, codec driver registration information, dapm trace, pinmux settings, signal on pins, mixer settings etc…) and codec driver code.

Thanks,
Sharad

Hi,

Thanks for those links - they are very helpful. As part of the troubleshooting guide under the “Sound Not Audible or Not Recorded” section, it states to cat /sys/kernel/debug/tracing/trace_pipe | grep * to get the codec link. However, when I try to enter this command, I don’t get any output. Should I run the command while recording or playing audio ?

Yes, the command needs to be executed during the playback/recording.

Ok, when I run the command during playback, I get no output. Can you advise on the appropriate next steps?

To be specific, when I execute the command while trying to playback audio it returns without displaying any output (whereas previously it was blocked when I didn’t playback audio while executing the command). Any advice would be appreciated.

Also, this is the output of aplay -l on the Jetson Nano:

**** List of PLAYBACK Hardware Devices ****
card 0: tegrahda [tegra-hda], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: timberwolf [timberwolf], device 0: ADMAIF1 CIF ADMAIF1-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: timberwolf [timberwolf], device 1: ADMAIF2 CIF ADMAIF2-1 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: timberwolf [timberwolf], device 2: ADMAIF3 CIF ADMAIF3-2 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: timberwolf [timberwolf], device 3: ADMAIF4 CIF ADMAIF4-3 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: timberwolf [timberwolf], device 4: ADMAIF5 CIF ADMAIF5-4 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: timberwolf [timberwolf], device 5: ADMAIF6 CIF ADMAIF6-5 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: timberwolf [timberwolf], device 6: ADMAIF7 CIF ADMAIF7-6 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: timberwolf [timberwolf], device 7: ADMAIF8 CIF ADMAIF8-7 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: timberwolf [timberwolf], device 8: ADMAIF9 CIF ADMAIF9-8 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: timberwolf [timberwolf], device 9: ADMAIF10 CIF ADMAIF10-9 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0