BUG() used in the driver is just to spit the stack trace on buggy
points, not really needed to stop the whole operation. For that
purpose, it'd be more convenient to use WARN() instead with more
error information.
Cc: patches@opensource.wolfsonmicro.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
+ WARN(1, "Invalid event %d\n", event);
+ WARN(1, "Invalid event %d\n", event);
reg = WM8962_SPKOUTL_VOLUME;
break;
default:
reg = WM8962_SPKOUTL_VOLUME;
break;
default:
+ WARN(1, "Invalid shift %d\n", w->shift);
case SND_SOC_DAPM_POST_PMU:
return snd_soc_write(codec, reg, snd_soc_read(codec, reg));
default:
case SND_SOC_DAPM_POST_PMU:
return snd_soc_write(codec, reg, snd_soc_read(codec, reg));
default:
+ WARN(1, "Invalid event %d\n", event);
+ WARN(1, "Invalid event %d\n", event);