]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: hda/via - don't report presence on HPs with no presence support
authorHerton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
Fri, 21 Sep 2012 23:45:19 +0000 (20:45 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Oct 2012 20:50:27 +0000 (05:50 +0900)
commite2e13279e29569c99fd45414abc827400459d817
tree8cbc03db16a864b660cb3c6deda9d5872b507f52
parentb719c952c5d6d24df15f8506f5b440a760b481a0
ALSA: hda/via - don't report presence on HPs with no presence support

commit cf55e904516947597d75fd3844acc24891a95772 upstream.

If headphone jack can't detect plug presence, and we have the jack in
the jack table, snd_hda_jack_detect will return the plug as always
present (as it'll be considered as a phantom jack). The problem is that
when this happens, line out pins will always be disabled, resulting in
no sound if there are no headphones connected.

This was reported as a no sound problem after suspend on
http://bugs.launchpad.net/bugs/1052499, since the bug doesn't manifests
on first initialization before the phantom jack is added, but on resume
we reexecute the initialization code, and via_hp_automute starts
reporting HP always present with the jack now on the table.

BugLink: https://bugs.launchpad.net/bugs/1052499
Signed-off-by: Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/patch_via.c