@@ -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[] = {
... for improving readability and maintainability. Signed-off-by: Takashi Iwai <tiwai@suse.de> --- sound/soc/codecs/ak4535.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)