diff options
author | Charles Keepax <ckeepax@opensource.wolfsonmicro.com> | 2015-09-16 14:59:40 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-09-16 22:00:03 +0200 |
commit | bee261b8964d7751fdd63d7f636c42741294a30c (patch) | |
tree | eae9552e87ba6d28ed3f3f4131b1e74c293fff98 /sound/soc/codecs/arizona.c | |
parent | Linux 4.3-rc1 (diff) | |
download | linux-bee261b8964d7751fdd63d7f636c42741294a30c.tar.xz linux-bee261b8964d7751fdd63d7f636c42741294a30c.zip |
ASoC: arizona: Add default cases for event switches
Since the addition of the WILL_PMU / WILL_PMD several of the switches in
arizona.c no longer cover all cases or have a default case. Whilst this
isn't causing any problems in the interests of robustness add default
cases.
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/arizona.c')
-rw-r--r-- | sound/soc/codecs/arizona.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/codecs/arizona.c b/sound/soc/codecs/arizona.c index 8a2221ab3d10..1bc19f1e5e70 100644 --- a/sound/soc/codecs/arizona.c +++ b/sound/soc/codecs/arizona.c @@ -147,6 +147,8 @@ static int arizona_spk_ev(struct snd_soc_dapm_widget *w, 0x4f5, 0x0da); } break; + default: + break; } return 0; @@ -725,6 +727,9 @@ int arizona_in_ev(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol, reg = snd_soc_read(codec, ARIZONA_INPUT_ENABLES); if (reg == 0) arizona_in_set_vu(codec, 0); + break; + default: + break; } return 0; @@ -806,6 +811,8 @@ int arizona_out_ev(struct snd_soc_dapm_widget *w, break; } break; + default: + break; } return 0; |