diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-02-27 10:24:53 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-02-27 10:24:53 -0500 |
commit | e8b99a1dcb49b0d362b19a4831a00d85c76bd4b3 (patch) | |
tree | ca0cd55516545bf822055d48b2c8bca34d5c32af | |
parent | 6776a5d712a1e670e9cf31c6693480d4d9b30e33 (diff) |
ALSA: hda/sigmatel - Allow auto-switching for dock line-in of HP laptops
Many HP laptops with STAC codecs have a docking station port and BIOS
sets the pins for the input on the dock as a line in. Because the
generic parser doesn't handle a line in pin as auto-switchable, this
resulted in the manual capture source selection on these laptops.
However, from the usability POV, the automatic switching is easier.
This patch adds the line_in_auto_switch hint in the fixup function for
these laptops. Even if no dock port is present, this should be
harmless as the generic parser allows the auto-switching only in a
limited situation (all three pins are located in different
positions).
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/hda/patch_sigmatel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index f3784808758e..75515b494034 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c | |||
@@ -2089,6 +2089,9 @@ static void stac92hd83xxx_fixup_hp(struct hda_codec *codec, | |||
2089 | codec_dbg(codec, "mute LED gpio %d polarity %d\n", | 2089 | codec_dbg(codec, "mute LED gpio %d polarity %d\n", |
2090 | spec->gpio_led, | 2090 | spec->gpio_led, |
2091 | spec->gpio_led_polarity); | 2091 | spec->gpio_led_polarity); |
2092 | |||
2093 | /* allow auto-switching of dock line-in */ | ||
2094 | spec->gen.line_in_auto_switch = true; | ||
2092 | } | 2095 | } |
2093 | 2096 | ||
2094 | static void stac92hd83xxx_fixup_hp_zephyr(struct hda_codec *codec, | 2097 | static void stac92hd83xxx_fixup_hp_zephyr(struct hda_codec *codec, |