[alsa-devel] [PATCH 094/102] ASoC: wm8510: Use SOC_ENUM_SINGLE_CONST()

Takashi Iwai tiwai at suse.de
Tue Feb 18 12:51:40 CET 2014


... for improving readability and maintainability.

Signed-off-by: Takashi Iwai <tiwai at suse.de>
---
 sound/soc/codecs/wm8510.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sound/soc/codecs/wm8510.c b/sound/soc/codecs/wm8510.c
index 7df7d4572755..0195765aaa86 100644
--- a/sound/soc/codecs/wm8510.c
+++ b/sound/soc/codecs/wm8510.c
@@ -118,10 +118,10 @@ static const char *wm8510_deemp[] = { "None", "32kHz", "44.1kHz", "48kHz" };
 static const char *wm8510_alc[] = { "ALC", "Limiter" };
 
 static const struct soc_enum wm8510_enum[] = {
-	SOC_ENUM_SINGLE(WM8510_COMP, 1, 4, wm8510_companding), /* adc */
-	SOC_ENUM_SINGLE(WM8510_COMP, 3, 4, wm8510_companding), /* dac */
-	SOC_ENUM_SINGLE(WM8510_DAC,  4, 4, wm8510_deemp),
-	SOC_ENUM_SINGLE(WM8510_ALC3,  8, 2, wm8510_alc),
+	SOC_ENUM_SINGLE_CONST(WM8510_COMP, 1, wm8510_companding), /* adc */
+	SOC_ENUM_SINGLE_CONST(WM8510_COMP, 3, wm8510_companding), /* dac */
+	SOC_ENUM_SINGLE_CONST(WM8510_DAC,  4, wm8510_deemp),
+	SOC_ENUM_SINGLE_CONST(WM8510_ALC3,  8, wm8510_alc),
 };
 
 static const struct snd_kcontrol_new wm8510_snd_controls[] = {
-- 
1.8.5.2



More information about the Alsa-devel mailing list