ASoC: tlv320aic26: Use SOC_ENUM_SINGLE_DECL()
Just replace with the helper macro. No functional change at all. Signed-off-by: Takashi Iwai <tiwai@suse.de> Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> Acked-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
38dbfb59d1
commit
6900ab55dd
@ -238,8 +238,9 @@ static struct snd_soc_dai_driver aic26_dai = {
|
||||
* ALSA controls
|
||||
*/
|
||||
static const char *aic26_capture_src_text[] = {"Mic", "Aux"};
|
||||
static const struct soc_enum aic26_capture_src_enum =
|
||||
SOC_ENUM_SINGLE(AIC26_REG_AUDIO_CTRL1, 12, 2, aic26_capture_src_text);
|
||||
static SOC_ENUM_SINGLE_DECL(aic26_capture_src_enum,
|
||||
AIC26_REG_AUDIO_CTRL1, 12,
|
||||
aic26_capture_src_text);
|
||||
|
||||
static const struct snd_kcontrol_new aic26_snd_controls[] = {
|
||||
/* Output */
|
||||
|
Loading…
Reference in New Issue
Block a user