From: Mark Brown Date: Mon, 7 Sep 2009 17:09:58 +0000 (+0100) Subject: ASoC: Fix WM835x Out4 capture enumeration X-Git-Tag: v2.6.32-rc1~166^2~13 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=87831cb660954356d68cebdb1406f3be09e784e9;p=karo-tx-linux.git ASoC: Fix WM835x Out4 capture enumeration It's the 8th enum of a zero indexed array. This is why I don't let new drivers use these arrays of enums... Signed-off-by: Mark Brown Cc: stable@kernel.org --- diff --git a/sound/soc/codecs/wm8350.c b/sound/soc/codecs/wm8350.c index 71c9c4bb2632..3ff0373dff89 100644 --- a/sound/soc/codecs/wm8350.c +++ b/sound/soc/codecs/wm8350.c @@ -612,7 +612,7 @@ SOC_DAPM_SINGLE("Switch", WM8350_BEEP_VOLUME, 15, 1, 1); /* Out4 Capture Mux */ static const struct snd_kcontrol_new wm8350_out4_capture_controls = -SOC_DAPM_ENUM("Route", wm8350_enum[8]); +SOC_DAPM_ENUM("Route", wm8350_enum[7]); static const struct snd_soc_dapm_widget wm8350_dapm_widgets[] = {