diff options
Diffstat (limited to 'sound/soc/codecs/wm8904.c')
-rw-r--r-- | sound/soc/codecs/wm8904.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8904.c b/sound/soc/codecs/wm8904.c index 4dfa8dceeabf..3938fb1c203e 100644 --- a/sound/soc/codecs/wm8904.c +++ b/sound/soc/codecs/wm8904.c | |||
@@ -658,7 +658,8 @@ SOC_SINGLE_TLV("EQ5 Volume", WM8904_EQ6, 0, 24, 0, eq_tlv), | |||
658 | static int cp_event(struct snd_soc_dapm_widget *w, | 658 | static int cp_event(struct snd_soc_dapm_widget *w, |
659 | struct snd_kcontrol *kcontrol, int event) | 659 | struct snd_kcontrol *kcontrol, int event) |
660 | { | 660 | { |
661 | BUG_ON(event != SND_SOC_DAPM_POST_PMU); | 661 | if (WARN_ON(event != SND_SOC_DAPM_POST_PMU)) |
662 | return -EINVAL; | ||
662 | 663 | ||
663 | /* Maximum startup time */ | 664 | /* Maximum startup time */ |
664 | udelay(500); | 665 | udelay(500); |
@@ -740,7 +741,7 @@ static int out_pga_event(struct snd_soc_dapm_widget *w, | |||
740 | dcs_r = 3; | 741 | dcs_r = 3; |
741 | break; | 742 | break; |
742 | default: | 743 | default: |
743 | BUG(); | 744 | WARN(1, "Invalid reg %d\n", reg); |
744 | return -EINVAL; | 745 | return -EINVAL; |
745 | } | 746 | } |
746 | 747 | ||