]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: mc13783: Use SOC_ENUM_SINGLE_VIRT_DECL()
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 28 Feb 2014 07:31:08 +0000 (08:31 +0100)
committerMark Brown <broonie@linaro.org>
Sat, 1 Mar 2014 03:03:35 +0000 (12:03 +0900)
For the upcoming consolidation for MUXs and virtual MUXs we need to mark virtual
enums as such.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Tested-by: Philippe Rétornaz <philippe.retornaz@epfl.ch>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/mc13783.c

index c605036cc0b0192cb90501c406eadcdea1365d9f..ec89b8f90a64eed5400a289a4257e6414ebbc95f 100644 (file)
@@ -408,8 +408,7 @@ static const char * const adcl_enum_text[] = {
        "MC1L", "RXINL",
 };
 
-static SOC_ENUM_SINGLE_DECL(adcl_enum,
-                           0, 0, adcl_enum_text);
+static SOC_ENUM_SINGLE_VIRT_DECL(adcl_enum, adcl_enum_text);
 
 static const struct snd_kcontrol_new left_input_mux =
        SOC_DAPM_ENUM_VIRT("Route", adcl_enum);
@@ -418,8 +417,7 @@ static const char * const adcr_enum_text[] = {
        "MC1R", "MC2", "RXINR", "TXIN",
 };
 
-static SOC_ENUM_SINGLE_DECL(adcr_enum,
-                           0, 0, adcr_enum_text);
+static SOC_ENUM_SINGLE_VIRT_DECL(adcr_enum, adcr_enum_text);
 
 static const struct snd_kcontrol_new right_input_mux =
        SOC_DAPM_ENUM_VIRT("Route", adcr_enum);