diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-12-15 13:43:59 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-12-15 13:46:08 +0100 |
commit | 74f14b36838a6f5406ff1a14fcfda935c190476c (patch) | |
tree | 5e5df6949e4427c084ba22c9cd65230abfb184d5 /sound/pci/hda/patch_analog.c | |
parent | 82d04e1088769c769c87ffa1d4df5e4a228f637a (diff) | |
download | linux-74f14b36838a6f5406ff1a14fcfda935c190476c.tar.gz linux-74f14b36838a6f5406ff1a14fcfda935c190476c.tar.bz2 linux-74f14b36838a6f5406ff1a14fcfda935c190476c.zip |
ALSA: hda - Make add_stereo_mix_input flag tristate
... for distinguishing whether it's explicitly enabled via a user hint
or enabled by a driver as a fallback. Now the former case corresponds
to HDA_HINT_STEREO_MIX_ENABLE while the latter to
HDA_HINT_STEREO_MIX_AUTO.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_analog.c')
-rw-r--r-- | sound/pci/hda/patch_analog.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_analog.c b/sound/pci/hda/patch_analog.c index c81b715d6c98..eb54da757407 100644 --- a/sound/pci/hda/patch_analog.c +++ b/sound/pci/hda/patch_analog.c @@ -195,7 +195,8 @@ static int ad198x_parse_auto_config(struct hda_codec *codec, bool indep_hp) codec->no_sticky_stream = 1; spec->gen.indep_hp = indep_hp; - spec->gen.add_stereo_mix_input = 1; + if (!spec->gen.add_stereo_mix_input) + spec->gen.add_stereo_mix_input = HDA_HINT_STEREO_MIX_AUTO; err = snd_hda_parse_pin_defcfg(codec, cfg, NULL, 0); if (err < 0) |