]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/pcmcia/vx/vxp_ops.c
ALSA: Kill snd_assert() in other places
[linux-2.6-omap-h63xx.git] / sound / pcmcia / vx / vxp_ops.c
index 99bf2a65a6f5ce82260b2f7d0f8fdbf56b804c7f..989e04abb5209ca796fd92606b24fa63e573afaa 100644 (file)
@@ -408,7 +408,8 @@ static void vxp_dma_read(struct vx_core *chip, struct snd_pcm_runtime *runtime,
        int offset = pipe->hw_ptr;
        unsigned short *addr = (unsigned short *)(runtime->dma_area + offset);
 
-       snd_assert(count % 2 == 0, return);
+       if (snd_BUG_ON(count % 2))
+               return;
        vx_setup_pseudo_dma(chip, 0);
        if (offset + count > pipe->buffer_bytes) {
                int length = pipe->buffer_bytes - offset;