From: Takashi Iwai Date: Mon, 15 Dec 2014 12:40:42 +0000 (+0100) Subject: ALSA: hda - Create capture source ctls when stereo mix input is added X-Git-Tag: v3.19-rc1~11^2~13 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=82d04e1088769c769c87ffa1d4df5e4a228f637a;p=linux.git ALSA: hda - Create capture source ctls when stereo mix input is added When the stereo mix input is explicitly enabled via a user hint, the driver should create always a capture source enum ctl and disable the auto-mic switch. Otherwise the behavior gets confused. For doing it, this patch just sets spec->suppress_auto_mic flag appropriately. Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/hda_generic.c b/sound/pci/hda/hda_generic.c index 63b69f750d8e..293af6b5ba3d 100644 --- a/sound/pci/hda/hda_generic.c +++ b/sound/pci/hda/hda_generic.c @@ -3224,6 +3224,8 @@ static int create_input_ctls(struct hda_codec *codec) "Stereo Mix", 0); if (err < 0) return err; + else + spec->suppress_auto_mic = 1; } return 0;