mirror of https://gitee.com/openkylin/linux.git
[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>
This commit is contained in:
parent
30ba6e207a
commit
cf93907b98
|
@ -137,6 +137,8 @@ void snd_akm4xxx_reset(struct snd_akm4xxx *ak, int state)
|
||||||
case SND_AK4381:
|
case SND_AK4381:
|
||||||
ak4381_reset(ak, state);
|
ak4381_reset(ak, state);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -727,6 +729,9 @@ int snd_akm4xxx_build_controls(struct snd_akm4xxx *ak)
|
||||||
case SND_AK4381:
|
case SND_AK4381:
|
||||||
ctl->private_value = AK_COMPOSE(idx, 1, 1, 0);
|
ctl->private_value = AK_COMPOSE(idx, 1, 1, 0);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
err = -EINVAL;
|
||||||
|
goto __error;
|
||||||
}
|
}
|
||||||
ctl->private_data = ak;
|
ctl->private_data = ak;
|
||||||
err = snd_ctl_add(ak->card,
|
err = snd_ctl_add(ak->card,
|
||||||
|
|
Loading…
Reference in New Issue