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)
commit57f234248ff925d88caedf4019ec84e6ecb83909
tree38ede6ea01367d735713640c441647d9dd0e9f20
parent8cd07657177006b67cc1610e4466cc75ad781c05
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: 424e531b47f8 ("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