summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-11-05 18:40:04 +0100
committerMark Brown <broonie@linaro.org>2013-11-07 19:55:16 +0000
commit4a318f1e6c4331633a91ad67b782860c76d8894b (patch)
treec4ee56f6f60519447cbb1d5ed5e2c7f892bbf188 /sound
parent8a2e2c86e979a9b3a53e880be65d5fd12820b932 (diff)
downloadop-kernel-dev-4a318f1e6c4331633a91ad67b782860c76d8894b.zip
op-kernel-dev-4a318f1e6c4331633a91ad67b782860c76d8894b.tar.gz
ASoC: s6000: Use WARN_ON() instead of BUG_ON()
Use WARN_ON() and handle the error cases accordingly. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/s6000/s6000-pcm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/s6000/s6000-pcm.c b/sound/soc/s6000/s6000-pcm.c
index d0740a7..5cfaa54 100644
--- a/sound/soc/s6000/s6000-pcm.c
+++ b/sound/soc/s6000/s6000-pcm.c
@@ -90,7 +90,8 @@ static void s6000_pcm_enqueue_dma(struct snd_pcm_substream *substream)
return;
}
- BUG_ON(period_size & 15);
+ if (WARN_ON(period_size & 15))
+ return;
s6dmac_put_fifo(DMA_MASK_DMAC(channel), DMA_INDEX_CHNL(channel),
src, dst, period_size);
OpenPOWER on IntegriCloud