diff options
author | Gabriele Mazzotta <gabriele.mzt@gmail.com> | 2014-08-08 19:34:40 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-08-10 13:28:39 +0200 |
commit | f38663ab5cc2d1bf359c0fd2b6b84a9f000e4388 (patch) | |
tree | 1a557f200ec7e66963336ede05c3471dea6a4839 /sound/pci | |
parent | ALSA: usb-audio: fix BOSS ME-25 MIDI regression (diff) | |
download | linux-f38663ab5cc2d1bf359c0fd2b6b84a9f000e4388.tar.xz linux-f38663ab5cc2d1bf359c0fd2b6b84a9f000e4388.zip |
ALSA: hda - Set internal mic as default input source on Dell XPS 13 9333
If the laptop is powered on with a jack plugged in, independently on what
is plugged, the jack is treated as a microphone jack.
Initialize the capture source so that by default jacks are treated as
headphones jacks. This will also prevent pop noises on boot in case
headphones are plugged in since setting/unsetting mic-in as input source
causes a pop noise.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=76611
Signed-off-by: Gabriele Mazzotta <gabriele.mzt@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 69f2744e4b4c..3ebb7616bf98 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -4103,8 +4103,19 @@ static void alc_fixup_dell_xps13(struct hda_codec *codec, { if (action == HDA_FIXUP_ACT_PROBE) { struct alc_spec *spec = codec->spec; + struct hda_input_mux *imux = &spec->gen.input_mux; + int i; + spec->shutup = alc_no_shutup; codec->power_filter = alc_power_filter_xps13; + + /* Make the internal mic the default input source. */ + for (i = 0; i < imux->num_items; i++) { + if (spec->gen.imux_pins[i] == 0x12) { + spec->gen.cur_mux[0] = i; + break; + } + } } } |