[alsa-devel] [PATCH 083/102] ASoC: ak4535: Use SOC_ENUM_SINGLE_CONST()

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


... for improving readability and maintainability.

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

diff --git a/sound/soc/codecs/ak4535.c b/sound/soc/codecs/ak4535.c
index 684fe910669f..143ef8a309dc 100644
--- a/sound/soc/codecs/ak4535.c
+++ b/sound/soc/codecs/ak4535.c
@@ -72,11 +72,11 @@ static const char *ak4535_deemp[] = {"44.1kHz", "Off", "48kHz", "32kHz"};
 static const char *ak4535_mic_select[] = {"Internal", "External"};
 
 static const struct soc_enum ak4535_enum[] = {
-	SOC_ENUM_SINGLE(AK4535_SIG1, 7, 2, ak4535_mono_gain),
-	SOC_ENUM_SINGLE(AK4535_SIG1, 6, 2, ak4535_mono_out),
-	SOC_ENUM_SINGLE(AK4535_MODE2, 2, 2, ak4535_hp_out),
-	SOC_ENUM_SINGLE(AK4535_DAC, 0, 4, ak4535_deemp),
-	SOC_ENUM_SINGLE(AK4535_MIC, 1, 2, ak4535_mic_select),
+	SOC_ENUM_SINGLE_CONST(AK4535_SIG1, 7, ak4535_mono_gain),
+	SOC_ENUM_SINGLE_CONST(AK4535_SIG1, 6, ak4535_mono_out),
+	SOC_ENUM_SINGLE_CONST(AK4535_MODE2, 2, ak4535_hp_out),
+	SOC_ENUM_SINGLE_CONST(AK4535_DAC, 0, ak4535_deemp),
+	SOC_ENUM_SINGLE_CONST(AK4535_MIC, 1, ak4535_mic_select),
 };
 
 static const struct snd_kcontrol_new ak4535_snd_controls[] = {
-- 
1.8.5.2



More information about the Alsa-devel mailing list