You are not logged in.

#1 2021-04-09 14:29:52

srtx
Member
Registered: 2021-04-09
Posts: 2

alsa cannot detect headphone jack autumaticly

hi,

i got some problem of jack detection. when i plug/unplug my headphone, alsa will not be noticed "jack state has been changed", they are showing same output by command bellow

amixer -c 0 contents|grep -i jack -C 2

numid=37,iface=CARD,name='Front Headphone Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off

but if i run hdajacksensetest / trigger reconfiguration by hdajackretask / restart pulseaudio or pipewire to manually let alsa detect jack, alsa will get the correct state of jack.

so, is there anything i can do to resolve or relieve this problem? i have tried both of front/rear headphone/mic jack, and all of them have this problem.
i'm using hdajackretask to block spdif and add "enable" option to snd-hda-intel to disable sound card from my graphic card. i have tried remove them but problem still happends, seems not relevant to these.
my sound card is Realtek ALCS1200A (motherboard inbuilt), using linux 5.11.12 kernel.

Offline

#2 2021-06-10 15:57:47

srtx
Member
Registered: 2021-04-09
Posts: 2

Re: alsa cannot detect headphone jack autumaticly

seems fixed in recent updates, maybe relevant to https://github.com/alsa-project/alsa-lib/issues/142 and https://github.com/alsa-project/alsa-lib/issues/143 , but still can reproduced when using hdajackretask to "unplug" s/pdif

Offline

Board footer

Powered by FluxBB