Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4a318f1e authored by Takashi Iwai's avatar Takashi Iwai Committed by Mark Brown
Browse files

ASoC: s6000: Use WARN_ON() instead of BUG_ON()



Use WARN_ON() and handle the error cases accordingly.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 8a2e2c86
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);