]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/cs8409: Fix Jack detection after resume
authorChristian A. Ehrhardt <lk@c--e.de>
Fri, 31 Dec 2021 13:44:32 +0000 (14:44 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 4 Jan 2022 16:05:50 +0000 (17:05 +0100)
commitd2d57907796037488dae63e2b461bb2f690ac72d
tree38ede6ea01367d735713640c441647d9dd0e9f20
parentbe7110a637df2ba47256265c1694de9be8f63b10
ALSA: hda/cs8409: Fix Jack detection after resume

The suspend code unconditionally sets ->hp_jack_in and ->mic_jack_in
to zero but without reporting this status change to the HDA core.
To compensate for this, always assume a status change on the
first unsol event after boot or resume.

Fixes: 34998df9b1d3 ("ALSA: hda/cs8409: Ensure Type Detection is only run on startup when necessary")
Signed-off-by: Christian A. Ehrhardt <lk@c--e.de>
Link: https://lore.kernel.org/r/20211231134432.atwmuzeceqiklcoa@cae.in-ulm.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_cs8409-tables.c
sound/pci/hda/patch_cs8409.c
sound/pci/hda/patch_cs8409.h