[Sound-open-firmware] jack detection via input/event on linux

Jaroslav Kysela perex at perex.cz
Fri Jun 3 15:33:07 CEST 2022


On 03. 06. 22 13:17, hede wrote:
> Am 03.06.2022 11:34, schrieb Jaroslav Kysela:
>> PA/PW use only ALSA controls at the moment - thus you should define
>> JackControl as defined in use-case.h. But it seems that the driver
>> does not create or publish the ALSA jack control (I see only
>> "iface=CARD,name='HDMI/DP,pcm=2 Jack'" jack controls for HDMI).
>>
>> 					Jaroslav
> 
> Ah, thank you Jaroslav. That's the hint I was searching for atm.
> JackDev vs. JackControl. I had a vague guess on this but now you made it
> certain.
> 
> Maybe I should take a look into the driver directly.

It seems that many ASoC drivers do not create kctls - the argument pins is 
zero in the snd_soc_card_jack_new() call. The SND_JACK_HEADSET should be 
remapped to kctl in sound/soc/intel/boards/sof_rt5682.c, too.

					Jaroslav

-- 
Jaroslav Kysela <perex at perex.cz>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.


More information about the Sound-open-firmware mailing list