Commit bee261b8 authored by Charles Keepax's avatar Charles Keepax Committed by Mark Brown

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: default avatarCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 6ff33f39
...@@ -147,6 +147,8 @@ static int arizona_spk_ev(struct snd_soc_dapm_widget *w, ...@@ -147,6 +147,8 @@ static int arizona_spk_ev(struct snd_soc_dapm_widget *w,
0x4f5, 0x0da); 0x4f5, 0x0da);
} }
break; break;
default:
break;
} }
return 0; return 0;
...@@ -725,6 +727,9 @@ int arizona_in_ev(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol, ...@@ -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); reg = snd_soc_read(codec, ARIZONA_INPUT_ENABLES);
if (reg == 0) if (reg == 0)
arizona_in_set_vu(codec, 0); arizona_in_set_vu(codec, 0);
break;
default:
break;
} }
return 0; return 0;
...@@ -806,6 +811,8 @@ int arizona_out_ev(struct snd_soc_dapm_widget *w, ...@@ -806,6 +811,8 @@ int arizona_out_ev(struct snd_soc_dapm_widget *w,
break; break;
} }
break; break;
default:
break;
} }
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment