diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-02-18 04:47:00 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-22 22:00:17 -0500 |
commit | 09981dcb77eba05974eed4def32931fb12421fae (patch) | |
tree | 3bed9c1e63bec442902cd2693d5af4dfdfa30a7d /sound/soc/codecs | |
parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (diff) |
ASoC: wm9705: 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: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r-- | sound/soc/codecs/wm9705.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sound/soc/codecs/wm9705.c b/sound/soc/codecs/wm9705.c index 70ce6793c5bd..c0b7f45dfa37 100644 --- a/sound/soc/codecs/wm9705.c +++ b/sound/soc/codecs/wm9705.c | |||
@@ -67,12 +67,12 @@ static const char *wm9705_mic[] = {"Mic 1", "Mic 2"}; | |||
67 | static const char *wm9705_rec_sel[] = {"Mic", "CD", "NC", "NC", | 67 | static const char *wm9705_rec_sel[] = {"Mic", "CD", "NC", "NC", |
68 | "Line", "Stereo Mix", "Mono Mix", "Phone"}; | 68 | "Line", "Stereo Mix", "Mono Mix", "Phone"}; |
69 | 69 | ||
70 | static const struct soc_enum wm9705_enum_mic = | 70 | static SOC_ENUM_SINGLE_DECL(wm9705_enum_mic, |
71 | SOC_ENUM_SINGLE(AC97_GENERAL_PURPOSE, 8, 2, wm9705_mic); | 71 | AC97_GENERAL_PURPOSE, 8, wm9705_mic); |
72 | static const struct soc_enum wm9705_enum_rec_l = | 72 | static SOC_ENUM_SINGLE_DECL(wm9705_enum_rec_l, |
73 | SOC_ENUM_SINGLE(AC97_REC_SEL, 8, 8, wm9705_rec_sel); | 73 | AC97_REC_SEL, 8, wm9705_rec_sel); |
74 | static const struct soc_enum wm9705_enum_rec_r = | 74 | static SOC_ENUM_SINGLE_DECL(wm9705_enum_rec_r, |
75 | SOC_ENUM_SINGLE(AC97_REC_SEL, 0, 8, wm9705_rec_sel); | 75 | AC97_REC_SEL, 0, wm9705_rec_sel); |
76 | 76 | ||
77 | /* Headphone Mixer */ | 77 | /* Headphone Mixer */ |
78 | static const struct snd_kcontrol_new wm9705_hp_mixer_controls[] = { | 78 | static const struct snd_kcontrol_new wm9705_hp_mixer_controls[] = { |