@@ -63,23 +63,23 @@ static const char *wm8974_eq5[] = {"5.3kHz", "6.9kHz", "9kHz", "11.7kHz" };
static const char *wm8974_alc[] = {"ALC", "Limiter" };
static const struct soc_enum wm8974_enum[] = {
- SOC_ENUM_SINGLE(WM8974_COMP, 1, 4, wm8974_companding), /* adc */
- SOC_ENUM_SINGLE(WM8974_COMP, 3, 4, wm8974_companding), /* dac */
- SOC_ENUM_SINGLE(WM8974_DAC, 4, 4, wm8974_deemp),
- SOC_ENUM_SINGLE(WM8974_EQ1, 8, 2, wm8974_eqmode),
-
- SOC_ENUM_SINGLE(WM8974_EQ1, 5, 4, wm8974_eq1),
- SOC_ENUM_SINGLE(WM8974_EQ2, 8, 2, wm8974_bw),
- SOC_ENUM_SINGLE(WM8974_EQ2, 5, 4, wm8974_eq2),
- SOC_ENUM_SINGLE(WM8974_EQ3, 8, 2, wm8974_bw),
-
- SOC_ENUM_SINGLE(WM8974_EQ3, 5, 4, wm8974_eq3),
- SOC_ENUM_SINGLE(WM8974_EQ4, 8, 2, wm8974_bw),
- SOC_ENUM_SINGLE(WM8974_EQ4, 5, 4, wm8974_eq4),
- SOC_ENUM_SINGLE(WM8974_EQ5, 8, 2, wm8974_bw),
-
- SOC_ENUM_SINGLE(WM8974_EQ5, 5, 4, wm8974_eq5),
- SOC_ENUM_SINGLE(WM8974_ALC3, 8, 2, wm8974_alc),
+ SOC_ENUM_SINGLE_CONST(WM8974_COMP, 1, wm8974_companding), /* adc */
+ SOC_ENUM_SINGLE_CONST(WM8974_COMP, 3, wm8974_companding), /* dac */
+ SOC_ENUM_SINGLE_CONST(WM8974_DAC, 4, wm8974_deemp),
+ SOC_ENUM_SINGLE_CONST(WM8974_EQ1, 8, wm8974_eqmode),
+
+ SOC_ENUM_SINGLE_CONST(WM8974_EQ1, 5, wm8974_eq1),
+ SOC_ENUM_SINGLE_CONST(WM8974_EQ2, 8, wm8974_bw),
+ SOC_ENUM_SINGLE_CONST(WM8974_EQ2, 5, wm8974_eq2),
+ SOC_ENUM_SINGLE_CONST(WM8974_EQ3, 8, wm8974_bw),
+
+ SOC_ENUM_SINGLE_CONST(WM8974_EQ3, 5, wm8974_eq3),
+ SOC_ENUM_SINGLE_CONST(WM8974_EQ4, 8, wm8974_bw),
+ SOC_ENUM_SINGLE_CONST(WM8974_EQ4, 5, wm8974_eq4),
+ SOC_ENUM_SINGLE_CONST(WM8974_EQ5, 8, wm8974_bw),
+
+ SOC_ENUM_SINGLE_CONST(WM8974_EQ5, 5, wm8974_eq5),
+ SOC_ENUM_SINGLE_CONST(WM8974_ALC3, 8, wm8974_alc),
};
static const char *wm8974_auxmode_text[] = { "Buffer", "Mixer" };
... for improving readability and maintainability. Signed-off-by: Takashi Iwai <tiwai@suse.de> --- sound/soc/codecs/wm8974.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-)