diff options
Diffstat (limited to 'sound/arm/sa11xx-uda1341.c')
-rw-r--r-- | sound/arm/sa11xx-uda1341.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sound/arm/sa11xx-uda1341.c b/sound/arm/sa11xx-uda1341.c index b9c51bf8cd71..1dcd51d81d10 100644 --- a/sound/arm/sa11xx-uda1341.c +++ b/sound/arm/sa11xx-uda1341.c | |||
@@ -442,7 +442,8 @@ static void audio_process_dma(struct audio_stream *s) | |||
442 | 442 | ||
443 | /* we are requested to process synchronization DMA transfer */ | 443 | /* we are requested to process synchronization DMA transfer */ |
444 | if (s->tx_spin) { | 444 | if (s->tx_spin) { |
445 | snd_assert(s->stream_id == SNDRV_PCM_STREAM_PLAYBACK, return); | 445 | if (snd_BUG_ON(s->stream_id != SNDRV_PCM_STREAM_PLAYBACK)) |
446 | return; | ||
446 | /* fill the xmit dma buffers and return */ | 447 | /* fill the xmit dma buffers and return */ |
447 | #ifdef HH_VERSION | 448 | #ifdef HH_VERSION |
448 | sa1100_dma_set_spin(s->dmach, FORCE_CLOCK_ADDR, FORCE_CLOCK_SIZE); | 449 | 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) | |||
472 | continue; /* special case */ | 473 | continue; /* special case */ |
473 | } else { | 474 | } else { |
474 | offset = dma_size * s->period; | 475 | offset = dma_size * s->period; |
475 | snd_assert(dma_size <= DMA_BUF_SIZE, ); | 476 | snd_BUG_ON(dma_size > DMA_BUF_SIZE); |
476 | } | 477 | } |
477 | #ifdef HH_VERSION | 478 | #ifdef HH_VERSION |
478 | ret = sa1100_dma_queue_buffer(s->dmach, s, runtime->dma_addr + offset, dma_size); | 479 | 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) | |||
879 | audio_dma_free(&chip->s[SNDRV_PCM_STREAM_CAPTURE]); | 880 | audio_dma_free(&chip->s[SNDRV_PCM_STREAM_CAPTURE]); |
880 | } | 881 | } |
881 | 882 | ||
882 | static int __init sa11xx_uda1341_probe(struct platform_device *devptr) | 883 | static int __devinit sa11xx_uda1341_probe(struct platform_device *devptr) |
883 | { | 884 | { |
884 | int err; | 885 | int err; |
885 | struct snd_card *card; | 886 | struct snd_card *card; |