diff mbox

[018/102] ASoC: ad1980: Fix wrong number of items for capture source

Message ID 1392723422-12689-3-git-send-email-tiwai@suse.de (mailing list archive)
State Accepted
Commit 901bb6c55d2a7ef66bc0bdf0ba410c417f16b7cf
Headers show

Commit Message

Takashi Iwai Feb. 18, 2014, 11:36 a.m. UTC
The number of capture sources is 8, not 7.
Use SOC_ENUM_DOUBLE_DECL() macro and it's automatically fixed.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 sound/soc/codecs/ad1980.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Mark Brown Feb. 19, 2014, 4:50 p.m. UTC | #1
On Tue, Feb 18, 2014 at 12:36:53PM +0100, Takashi Iwai wrote:
> The number of capture sources is 8, not 7.
> Use SOC_ENUM_DOUBLE_DECL() macro and it's automatically fixed.

Applied, thanks.
diff mbox

Patch

diff --git a/sound/soc/codecs/ad1980.c b/sound/soc/codecs/ad1980.c
index 7257a8885f42..34d965a4a040 100644
--- a/sound/soc/codecs/ad1980.c
+++ b/sound/soc/codecs/ad1980.c
@@ -57,8 +57,8 @@  static const u16 ad1980_reg[] = {
 static const char *ad1980_rec_sel[] = {"Mic", "CD", "NC", "AUX", "Line",
 		"Stereo Mix", "Mono Mix", "Phone"};
 
-static const struct soc_enum ad1980_cap_src =
-	SOC_ENUM_DOUBLE(AC97_REC_SEL, 8, 0, 7, ad1980_rec_sel);
+static SOC_ENUM_DOUBLE_DECL(ad1980_cap_src,
+			    AC97_REC_SEL, 8, 0, ad1980_rec_sel);
 
 static const struct snd_kcontrol_new ad1980_snd_ac97_controls[] = {
 SOC_DOUBLE("Master Playback Volume", AC97_MASTER, 8, 0, 31, 1),