diff options
Diffstat (limited to 'sound/pcmcia/vx/vxp_ops.c')
-rw-r--r-- | sound/pcmcia/vx/vxp_ops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pcmcia/vx/vxp_ops.c b/sound/pcmcia/vx/vxp_ops.c index 99bf2a65a6f5..989e04abb520 100644 --- a/sound/pcmcia/vx/vxp_ops.c +++ b/sound/pcmcia/vx/vxp_ops.c | |||
@@ -408,7 +408,8 @@ static void vxp_dma_read(struct vx_core *chip, struct snd_pcm_runtime *runtime, | |||
408 | int offset = pipe->hw_ptr; | 408 | int offset = pipe->hw_ptr; |
409 | unsigned short *addr = (unsigned short *)(runtime->dma_area + offset); | 409 | unsigned short *addr = (unsigned short *)(runtime->dma_area + offset); |
410 | 410 | ||
411 | snd_assert(count % 2 == 0, return); | 411 | if (snd_BUG_ON(count % 2)) |
412 | return; | ||
412 | vx_setup_pseudo_dma(chip, 0); | 413 | vx_setup_pseudo_dma(chip, 0); |
413 | if (offset + count > pipe->buffer_bytes) { | 414 | if (offset + count > pipe->buffer_bytes) { |
414 | int length = pipe->buffer_bytes - offset; | 415 | int length = pipe->buffer_bytes - offset; |