Skip to content

Commit

Permalink
ALSA: hda - Create capture source ctls when stereo mix input is added
Browse files Browse the repository at this point in the history
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 <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Dec 15, 2014
1 parent c10b11f commit 82d04e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/pci/hda/hda_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 82d04e1

Please sign in to comment.