]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ALSA: hda - fix indices on boost volume on Conexant
authorDavid Henningsson <david.henningsson@canonical.com>
Tue, 2 Oct 2012 08:14:23 +0000 (10:14 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sat, 6 Oct 2012 14:50:47 +0000 (16:50 +0200)
After the recent patch "ALSA: hda - use both input paths on Conexant
auto parser" suddenly we can have more than one "Mic Boost", this
happened on Acer Aspire One 722. Therefore we must add the possibility
to put an index on this "Mic Boost" just as we do for the other
"Mic Boost" earlier in the same function.

BugLink: https://bugs.launchpad.net/bugs/1059523
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_conexant.c

index 47938c789f89d353c83c86dbed51496a14167549..03b1dc317ff0341122d48a0535e41963b2834157 100644 (file)
@@ -4259,7 +4259,7 @@ static int cx_auto_add_boost_volume(struct hda_codec *codec, int idx,
 
        if (get_wcaps(codec, mux) & AC_WCAP_OUT_AMP) {
                spec->imux_info[idx].boost = mux;
-               return cx_auto_add_volume(codec, label, " Boost", 0,
+               return cx_auto_add_volume(codec, label, " Boost", cidx,
                                          mux, HDA_OUTPUT);
        }
        return 0;