Commit 05dc0fc9 authored by David Henningsson's avatar David Henningsson Committed by Takashi Iwai

ALSA: hda - detect jacks on VT1708 even when no streams are active

These days, GUIs such as Gnome sound settings want to be able to
show the correct jack status even when no streams are currently
running. I doubt this gives any measurable difference in power,
but if it does, the "Jack Detect" control can still be used to
turn polling off.
Signed-off-by: default avatarDavid Henningsson <david.henningsson@canonical.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent f672f65a
...@@ -217,8 +217,7 @@ static void vt1708_update_hp_work(struct hda_codec *codec) ...@@ -217,8 +217,7 @@ static void vt1708_update_hp_work(struct hda_codec *codec)
struct via_spec *spec = codec->spec; struct via_spec *spec = codec->spec;
if (spec->codec_type != VT1708 || !spec->gen.autocfg.hp_outs) if (spec->codec_type != VT1708 || !spec->gen.autocfg.hp_outs)
return; return;
if (spec->vt1708_jack_detect && if (spec->vt1708_jack_detect) {
(spec->gen.active_streams || hp_detect_with_aa(codec))) {
if (!spec->hp_work_active) { if (!spec->hp_work_active) {
codec->jackpoll_interval = msecs_to_jiffies(100); codec->jackpoll_interval = msecs_to_jiffies(100);
snd_hda_codec_write(codec, 0x1, 0, 0xf81, 0); snd_hda_codec_write(codec, 0x1, 0, 0xf81, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment