Explorar o código

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 <broonie@opensource.wolfsonmicro.com>
Cc: stable@kernel.org
Mark Brown %!s(int64=15) %!d(string=hai) anos
pai
achega
87831cb660
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      sound/soc/codecs/wm8350.c

+ 1 - 1
sound/soc/codecs/wm8350.c

@@ -612,7 +612,7 @@ SOC_DAPM_SINGLE("Switch", WM8350_BEEP_VOLUME, 15, 1, 1);
 
 
 /* Out4 Capture Mux */
 /* Out4 Capture Mux */
 static const struct snd_kcontrol_new wm8350_out4_capture_controls =
 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[] = {
 static const struct snd_soc_dapm_widget wm8350_dapm_widgets[] = {