Patchwork [Quantal,1/1] ALSA: hda - fix indices on boost volume on Conexant

login
register
mail settings
Submitter Joseph Salisbury
Date Oct. 3, 2012, 3:22 p.m.
Message ID <46c661e7aa6711b9207c8e834857a9c548f8415b.1349276962.git.joseph.salisbury@canonical.com>
Download mbox | patch
Permalink /patch/188804/
State New
Headers show

Comments

Joseph Salisbury - Oct. 3, 2012, 3:22 p.m.
From: David Henningsson <david.henningsson@canonical.com>

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: Joseph Salisbury <joseph.salisbury@canonical.com>
---
 sound/pci/hda/patch_conexant.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Herton Ronaldo Krzesinski - Oct. 3, 2012, 4:01 p.m.

Patch

diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c
index 0c127cf..0ed1ec2 100644
--- a/sound/pci/hda/patch_conexant.c
+++ b/sound/pci/hda/patch_conexant.c
@@ -4279,7 +4279,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;