[alsa-devel] [PATCH v2 09/11] ASoC: wm8995: Use SOC_ENUM_SINGLE_VIRT_DECL()

Lars-Peter Clausen lars at metafoo.de
Fri Feb 28 08:31:10 CET 2014


For the upcoming consolidation for MUXs and virtual MUXs we need to mark virtual
enums as such.

Signed-off-by: Lars-Peter Clausen <lars at metafoo.de>
Acked-by: Charles Keepax <ckeepax at opensource.wolfsonmicro.com>
---
No changes since v1
---
 sound/soc/codecs/wm8995.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/wm8995.c b/sound/soc/codecs/wm8995.c
index 33ff361..ddb197d 100644
--- a/sound/soc/codecs/wm8995.c
+++ b/sound/soc/codecs/wm8995.c
@@ -882,7 +882,7 @@ static const char *adc_mux_text[] = {
 	"DMIC",
 };
 
-static const SOC_ENUM_SINGLE_DECL(adc_enum, 0, 0, adc_mux_text);
+static SOC_ENUM_SINGLE_VIRT_DECL(adc_enum, adc_mux_text);
 
 static const struct snd_kcontrol_new adcl_mux =
 	SOC_DAPM_ENUM_VIRT("ADCL Mux", adc_enum);
-- 
1.8.0



More information about the Alsa-devel mailing list