]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/arm/sa11xx-uda1341.c
Merge branch 'topic/quirk-cleanup' into topic/misc
[linux-2.6-omap-h63xx.git] / sound / arm / sa11xx-uda1341.c
index b9c51bf8cd71a3c09af66dbc705c560d1a3cfe71..ed481a866a3e7f1910b0f1bc8860a3ec9d1df4ee 100644 (file)
@@ -442,7 +442,8 @@ static void audio_process_dma(struct audio_stream *s)
                 
        /* we are requested to process synchronization DMA transfer */
        if (s->tx_spin) {
-               snd_assert(s->stream_id == SNDRV_PCM_STREAM_PLAYBACK, return);
+               if (snd_BUG_ON(s->stream_id != SNDRV_PCM_STREAM_PLAYBACK))
+                       return;
                /* fill the xmit dma buffers and return */
 #ifdef HH_VERSION
                sa1100_dma_set_spin(s->dmach, FORCE_CLOCK_ADDR, FORCE_CLOCK_SIZE);
@@ -472,7 +473,7 @@ static void audio_process_dma(struct audio_stream *s)
                                continue;               /* special case */
                } else {
                        offset = dma_size * s->period;
-                       snd_assert(dma_size <= DMA_BUF_SIZE, );
+                       snd_BUG_ON(dma_size > DMA_BUF_SIZE);
                }
 #ifdef HH_VERSION
                ret = sa1100_dma_queue_buffer(s->dmach, s, runtime->dma_addr + offset, dma_size);
@@ -879,7 +880,7 @@ void snd_sa11xx_uda1341_free(struct snd_card *card)
        audio_dma_free(&chip->s[SNDRV_PCM_STREAM_CAPTURE]);
 }
 
-static int __init sa11xx_uda1341_probe(struct platform_device *devptr)
+static int __devinit sa11xx_uda1341_probe(struct platform_device *devptr)
 {
        int err;
        struct snd_card *card;
@@ -913,7 +914,7 @@ static int __init sa11xx_uda1341_probe(struct platform_device *devptr)
        snd_card_set_dev(card, &devptr->dev);
 
        if ((err = snd_card_register(card)) == 0) {
-               printk( KERN_INFO "iPAQ audio support initialized\n" );
+               printk(KERN_INFO "iPAQ audio support initialized\n");
                platform_set_drvdata(devptr, card);
                return 0;
        }