]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: Jack detection poll in suspend state
authorMohan Kumar <mkumard@nvidia.com>
Mon, 11 Apr 2022 07:32:09 +0000 (13:02 +0530)
committerTakashi Iwai <tiwai@suse.de>
Tue, 12 Apr 2022 09:34:17 +0000 (11:34 +0200)
commitb6265f2739657c4ae8d00ea1b13fd89acb902c65
tree5502747ed61efbae832c852137fea4e1d3f8307a
parentda6430239ffb92c626337cba975ad018ea4a2a0c
ALSA: hda: Jack detection poll in suspend state

HDA Jack detection logic doesn't work when the HDACODEC
in runtime suspended state as unsol event won't be triggered
during D3 state. As pulseaudio server in userspace rely on the
jack mixer control status to show the audio devices in gui and
any display sink device hotplug event during D3 state will never
updates the jack status which will result in no audio device option
available in userspace settings.

The possible option available to resolve this issue is to run Jack
polling worker thread even after codec suspend state. The choice can
be made based on compromise between power saving or Jack detection in
suspend state.

Signed-off-by: Mohan Kumar <mkumard@nvidia.com>
Link: https://lore.kernel.org/r/20220411073210.23445-2-mkumard@nvidia.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/hda_codec.h
sound/pci/hda/hda_codec.c