[alsa-devel] [PATCH 091/102] ASoC: uad134x: Use SOC_ENUM_SINGLE_CONST()

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


... for improving readability and maintainability.

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

diff --git a/sound/soc/codecs/uda134x.c b/sound/soc/codecs/uda134x.c
index c94d4c1e3dac..cce7adf35531 100644
--- a/sound/soc/codecs/uda134x.c
+++ b/sound/soc/codecs/uda134x.c
@@ -362,9 +362,9 @@ static const char *uda134x_mixmode[] = {"Differential", "Analog1",
 					"Analog2", "Both"};
 
 static const struct soc_enum uda134x_mixer_enum[] = {
-SOC_ENUM_SINGLE(UDA134X_DATA010, 0, 0x04, uda134x_dsp_setting),
-SOC_ENUM_SINGLE(UDA134X_DATA010, 3, 0x04, uda134x_deemph),
-SOC_ENUM_SINGLE(UDA134X_EA010, 0, 0x04, uda134x_mixmode),
+SOC_ENUM_SINGLE_CONST(UDA134X_DATA010, 0, uda134x_dsp_setting),
+SOC_ENUM_SINGLE_CONST(UDA134X_DATA010, 3, uda134x_deemph),
+SOC_ENUM_SINGLE_CONST(UDA134X_EA010, 0, uda134x_mixmode),
 };
 
 static const struct snd_kcontrol_new uda1341_snd_controls[] = {
-- 
1.8.5.2



More information about the Alsa-devel mailing list