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>
This commit is contained in:
parent
8a2e2c86e9
commit
4a318f1e6c
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue