projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a2e2c8
)
ASoC: s6000: Use WARN_ON() instead of BUG_ON()
author
Takashi Iwai
<tiwai@suse.de>
Tue, 5 Nov 2013 17:40:04 +0000
(18:40 +0100)
committer
Mark Brown
<broonie@linaro.org>
Thu, 7 Nov 2013 19:55:16 +0000
(19:55 +0000)
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>
sound/soc/s6000/s6000-pcm.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/s6000/s6000-pcm.c
b/sound/soc/s6000/s6000-pcm.c
index d0740a762963d867bf75cce29d20c15c0a4b5097..5cfaa5464eba357afa3e3a50d86491b37d3d0af2 100644
(file)
--- 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);