]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/mips/au1x00.c
ALSA: Kill snd_assert() in other places
[linux-2.6-omap-h63xx.git] / sound / mips / au1x00.c
index fbef38a9604ae31e775cfdaaeac3a5efef922dc9..1881cec11e78d221b55f4132219ec48c0cc9c147 100644 (file)
@@ -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) {