diff options
author | David Henningsson <david.henningsson@canonical.com> | 2015-05-28 03:40:23 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-05-28 04:06:29 -0400 |
commit | b40eda6408e94ee286cb5720cd3f409f70e01778 (patch) | |
tree | 5e22c02f4f24c9f63d6842070515edae00b4a080 /sound | |
parent | c545f799c7470682756ca64c63f6bfcdaf28442b (diff) |
ALSA: hda - Disable Headphone Mic boost for ALC662
When headphone mic boost is above zero, some 10 - 20 second delay
might occur before the headphone mic is operational.
Therefore disable the headphone mic boost control (recording gain is
sufficient even without it).
(Note: this patch is not about the headset mic, it's about the less
common mic-in only mode.)
BugLink: https://bugs.launchpad.net/bugs/1454235
Suggested-by: Kailang Yang <kailang@realtek.com>
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index e3bf72bb278c..ea3af38eee58 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -4228,6 +4228,11 @@ static void alc_fixup_headset_mode_alc662(struct hda_codec *codec, | |||
4228 | if (action == HDA_FIXUP_ACT_PRE_PROBE) { | 4228 | if (action == HDA_FIXUP_ACT_PRE_PROBE) { |
4229 | spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; | 4229 | spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; |
4230 | spec->gen.hp_mic = 1; /* Mic-in is same pin as headphone */ | 4230 | spec->gen.hp_mic = 1; /* Mic-in is same pin as headphone */ |
4231 | |||
4232 | /* Disable boost for mic-in permanently. (This code is only called | ||
4233 | from quirks that guarantee that the headphone is at NID 0x1b.) */ | ||
4234 | snd_hda_codec_write(codec, 0x1b, 0, AC_VERB_SET_AMP_GAIN_MUTE, 0x7000); | ||
4235 | snd_hda_override_wcaps(codec, 0x1b, get_wcaps(codec, 0x1b) & ~AC_WCAP_IN_AMP); | ||
4231 | } else | 4236 | } else |
4232 | alc_fixup_headset_mode(codec, fix, action); | 4237 | alc_fixup_headset_mode(codec, fix, action); |
4233 | } | 4238 | } |