diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/i2c/other/ak4xxx-adda.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/i2c/other/ak4xxx-adda.c b/sound/i2c/other/ak4xxx-adda.c index d76d8b078a81..0aea536a3371 100644 --- a/sound/i2c/other/ak4xxx-adda.c +++ b/sound/i2c/other/ak4xxx-adda.c | |||
@@ -137,6 +137,8 @@ void snd_akm4xxx_reset(struct snd_akm4xxx *ak, int state) | |||
137 | case SND_AK4381: | 137 | case SND_AK4381: |
138 | ak4381_reset(ak, state); | 138 | ak4381_reset(ak, state); |
139 | break; | 139 | break; |
140 | default: | ||
141 | break; | ||
140 | } | 142 | } |
141 | } | 143 | } |
142 | 144 | ||
@@ -727,6 +729,9 @@ int snd_akm4xxx_build_controls(struct snd_akm4xxx *ak) | |||
727 | case SND_AK4381: | 729 | case SND_AK4381: |
728 | ctl->private_value = AK_COMPOSE(idx, 1, 1, 0); | 730 | ctl->private_value = AK_COMPOSE(idx, 1, 1, 0); |
729 | break; | 731 | break; |
732 | default: | ||
733 | err = -EINVAL; | ||
734 | goto __error; | ||
730 | } | 735 | } |
731 | ctl->private_data = ak; | 736 | ctl->private_data = ak; |
732 | err = snd_ctl_add(ak->card, | 737 | err = snd_ctl_add(ak->card, |