]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
ALSA: hda/cirrus: Add jack detect interrupt support from CS42L42 companion codec.
authorVitaly Rodionov <vitalyr@opensource.cirrus.com>
Mon, 8 Mar 2021 07:26:01 +0000 (15:26 +0800)
committerPaolo Pisati <paolo.pisati@canonical.com>
Tue, 9 Mar 2021 14:36:33 +0000 (15:36 +0100)
commit656026e22f16543607a53286b247b69226d550c4
treee9491442eca1abecd3ebe35daac2bcdb70cd1a2c
parentfe1338429007a8ddf976234fe575cccf94238d04
ALSA: hda/cirrus: Add jack detect interrupt support from CS42L42 companion codec.

BugLink: https://bugs.launchpad.net/bugs/1916554
In the case of CS8409 we do not have unsol events from NID's 0x24 and 0x34
where hs mic and hp are connected. Companion codec CS42L42 will generate
interrupt via gpio 4 to notify jack events. We have to overwrite standard
snd_hda_jack_unsol_event(), read CS42L42 jack detect status registers and
then notify status via generic snd_hda_jack_unsol_event() call.

Tested on DELL Inspiron-3500, DELL Inspiron-3501, DELL Inspiron-3505.

Signed-off-by: Vitaly Rodionov <vitalyr@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20210306111934.4832-4-vitalyr@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
(cherry picked from
https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git/commit/?h=for-next&id=b73df04187ebb52edf3f7e502bb245c5ccab2763)
Signed-off-by: You-Sheng Yang <vicamo.yang@canonical.com>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
sound/pci/hda/patch_cirrus.c