No audio input/output detection with audio header panel?

Hi bought this audio header panel.



But, I do not observe microphone/headphone working in ubuntu sound window!

Jetpack 4.1.1 L4T 31.1.0
Output from 'dmesg’https://www.codepile.net/pile/m1eR07Yr

Output from cat /proc/asound/cards

nvidia@jetson:~$ cat /proc/asound/cards 
 0 [tegrahdagalent1]: tegra-hda-galen - tegra-hda-galen-t194
                      tegra-hda-galen-t194 at 0x3518000 irq 68
 1 [tegrasndt19xmob]: tegra-snd-t19x- - tegra-snd-t19x-mobile-rt565x
                      tegra-snd-t19x-mobile-rt565x
nvidia@jetson:~$ cat /sys/class/i2c-adapter/i2c-7/7-001a/name 
rt5658

Output from

sudo cat /sys/kernel/debug/tegra_pinctrl_reg

https://www.codepile.net/pile/xOWv2m1j

I think I am missing something somewhere. Could you suggest me any troubleshoot?

I have already performed the connectivity check of the panel I bought.
My findings are:



3.jpg

Hello!

If you connect headphones or a microphone to the jacks, can you see if the codec is detecting this by executing the following command?

$ amixer -c tegrasndt19xmob cget name="x Jack-state"
numid=1238,iface=MIXER,name='x Jack-state'
  ; type=ENUMERATED,access=rw------,values=1,items=4
  ; Item #0 'None'
  ; Item #1 'HP'
  ; Item #2 'MIC'
  ; Item #3 'HS'
  : values=0

The ‘values’ should be set to ‘HP’ if only headphones are connected, ‘MIC’ if only microphone is connected and ‘HS’ (for headset) is both headphones and microphone are connected.

Also can you try executing the following to make sure the codec is correctly configured …

$ alsactl init tegrasndt19xmob

If it is still not working, do you have a desktop PC with a HD audio connector (unfortunately this is probably inside the case) that you can connect this to and ensure that this HD audio connector is good?

Regards,
Jon

Thanks @jonathanh

I performed

alsactl init tegrasndt19xmob

And then I checked with

amixer -c tegrasndt19xmob cget name="x Jack-state"

Suddenly, audio started working. I think alsactl command did some initialization. Or, I dont know.

But, Now audio is working. Thanks again.