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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:04:19 +0000 (11:04 +0100)
commit32faa4c17a566cfd0de6df91cc51baafdb266b30
tree247fb8a903d546522c50337eb334141b5f7ce882
parentb624b5b2fe028ac28023e36c82b718ddd4a4c00a
ALSA: hda/cs8409: Fix Jack detection after resume

[ Upstream commit 57f234248ff925d88caedf4019ec84e6ecb83909 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/pci/hda/patch_cs8409-tables.c
sound/pci/hda/patch_cs8409.c
sound/pci/hda/patch_cs8409.h