mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
ALSA: Kill snd_assert() in other places
Kill snd_assert() in other places, either removed or replaced with if () with snd_BUG_ON(). Signed-off-by: Takashi Iwai <[email protected]> Signed-off-by: Jaroslav Kysela <[email protected]>
This commit is contained in:
parent
da3cec35dd
commit
5e246b850d
38 changed files with 217 additions and 168 deletions
|
|
@ -190,14 +190,16 @@ au1000_setup_dma_link(struct audio_stream *stream, unsigned int period_bytes,
|
|||
static void
|
||||
au1000_dma_stop(struct audio_stream *stream)
|
||||
{
|
||||
snd_assert(stream->buffer, return);
|
||||
if (snd_BUG_ON(!stream->buffer))
|
||||
return;
|
||||
disable_dma(stream->dma);
|
||||
}
|
||||
|
||||
static void
|
||||
au1000_dma_start(struct audio_stream *stream)
|
||||
{
|
||||
snd_assert(stream->buffer, return);
|
||||
if (snd_BUG_ON(!stream->buffer))
|
||||
return;
|
||||
|
||||
init_dma(stream->dma);
|
||||
if (get_dma_active_buffer(stream->dma) == 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue