]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/sh/aica.c
ALSA: Kill snd_assert() in other places
[linux-2.6-omap-h63xx.git] / sound / sh / aica.c
index 9ca1133261437f7f7d630e4e2276b9af9d068e1c..55031d0a6558a7ca1cebd330ce676f4eddef99af 100644 (file)
@@ -42,7 +42,7 @@
 #include <sound/info.h>
 #include <asm/io.h>
 #include <asm/dma.h>
-#include <asm/dreamcast/sysasic.h>
+#include <mach/sysasic.h>
 #include "aica.h"
 
 MODULE_AUTHOR("Adrian McMenamin <adrian@mcmen.demon.co.uk>");
@@ -106,7 +106,8 @@ static void spu_memset(u32 toi, u32 what, int length)
 {
        int i;
        unsigned long flags;
-       snd_assert(length % 4 == 0, return);
+       if (snd_BUG_ON(length % 4))
+               return;
        for (i = 0; i < length; i++) {
                if (!(i % 8))
                        spu_write_wait();