summaryrefslogtreecommitdiff
path: root/sound/pci/hda/patch_via.c
diff options
context:
space:
mode:
authorDavid Henningsson <david.henningsson@canonical.com>2013-02-05 15:06:03 +0400
committerTakashi Iwai <tiwai@suse.de>2013-02-05 15:17:31 +0400
commit05dc0fc9d01537a66d9a0cffe2e96296d8f4c7ac (patch)
tree5db4df2b2624b65b5e3b0c47af5dbbd1c055c6b3 /sound/pci/hda/patch_via.c
parentf672f65a1c15b04e09d25701a8b5be47bad9376a (diff)
downloadlinux-05dc0fc9d01537a66d9a0cffe2e96296d8f4c7ac.tar.xz
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: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_via.c')
-rw-r--r--sound/pci/hda/patch_via.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c
index e934c498b95d..ca7d962a08a6 100644
--- a/sound/pci/hda/patch_via.c
+++ b/sound/pci/hda/patch_via.c
@@ -217,8 +217,7 @@ static void vt1708_update_hp_work(struct hda_codec *codec)
struct via_spec *spec = codec->spec;
if (spec->codec_type != VT1708 || !spec->gen.autocfg.hp_outs)
return;
- if (spec->vt1708_jack_detect &&
- (spec->gen.active_streams || hp_detect_with_aa(codec))) {
+ if (spec->vt1708_jack_detect) {
if (!spec->hp_work_active) {
codec->jackpoll_interval = msecs_to_jiffies(100);
snd_hda_codec_write(codec, 0x1, 0, 0xf81, 0);