summaryrefslogtreecommitdiff
path: root/sound/i2c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2006-08-09 14:33:27 +0200
committerJaroslav Kysela <perex@suse.cz>2006-09-23 10:40:32 +0200
commitcf93907b98c82c2157e5bbe766bee8f1c5bb87b2 (patch)
treeadd0b89171e8aa51ea6da3153fa1f802ecbe4496 /sound/i2c
parent30ba6e207a915a6c70f22ccb3f9169d1cce88466 (diff)
downloadlwn-cf93907b98c82c2157e5bbe766bee8f1c5bb87b2.tar.gz
lwn-cf93907b98c82c2157e5bbe766bee8f1c5bb87b2.zip
[ALSA] Fix compile warnings in ak4xxx-adda.c
Fixed compile warnings in ak4xxx-adda.c reagarding missing enum cases in switch. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/i2c')
-rw-r--r--sound/i2c/other/ak4xxx-adda.c5
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)
case SND_AK4381:
ak4381_reset(ak, state);
break;
+ default:
+ break;
}
}
@@ -727,6 +729,9 @@ int snd_akm4xxx_build_controls(struct snd_akm4xxx *ak)
case SND_AK4381:
ctl->private_value = AK_COMPOSE(idx, 1, 1, 0);
break;
+ default:
+ err = -EINVAL;
+ goto __error;
}
ctl->private_data = ak;
err = snd_ctl_add(ak->card,