Commit 7cb5e1bb authored by Takashi Iwai's avatar Takashi Iwai Committed by Mark Brown

ASoC: omap: Use SOC_ENUM_SINGLE_EXT_DECL()

Just replace with the helper macro.  No functional change at all.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Acked-by: default avatarLiam Girdwood <liam.r.girdwood@linux.intel.com>
Acked-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 38dbfb59
...@@ -194,13 +194,11 @@ static int ams_delta_get_audio_mode(struct snd_kcontrol *kcontrol, ...@@ -194,13 +194,11 @@ static int ams_delta_get_audio_mode(struct snd_kcontrol *kcontrol,
return 0; return 0;
} }
static const struct soc_enum ams_delta_audio_enum[] = { static const SOC_ENUM_SINGLE_EXT_DECL(ams_delta_audio_enum,
SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ams_delta_audio_mode), ams_delta_audio_mode);
ams_delta_audio_mode),
};
static const struct snd_kcontrol_new ams_delta_audio_controls[] = { static const struct snd_kcontrol_new ams_delta_audio_controls[] = {
SOC_ENUM_EXT("Audio Mode", ams_delta_audio_enum[0], SOC_ENUM_EXT("Audio Mode", ams_delta_audio_enum,
ams_delta_get_audio_mode, ams_delta_set_audio_mode), ams_delta_get_audio_mode, ams_delta_set_audio_mode),
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment