diff options
-rw-r--r-- | sound/drivers/vx/vx_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/drivers/vx/vx_core.c b/sound/drivers/vx/vx_core.c index 99538862e342..585af2eb1438 100644 --- a/sound/drivers/vx/vx_core.c +++ b/sound/drivers/vx/vx_core.c | |||
@@ -453,7 +453,7 @@ int snd_vx_load_boot_image(struct vx_core *chip, const struct firmware *boot) | |||
453 | vx_outb(chip, TXM, 0); | 453 | vx_outb(chip, TXM, 0); |
454 | vx_outb(chip, TXL, 0); | 454 | vx_outb(chip, TXL, 0); |
455 | } else { | 455 | } else { |
456 | unsigned char *image = boot->data + i; | 456 | const unsigned char *image = boot->data + i; |
457 | if (vx_wait_isr_bit(chip, ISR_TX_EMPTY) < 0) { | 457 | if (vx_wait_isr_bit(chip, ISR_TX_EMPTY) < 0) { |
458 | snd_printk(KERN_ERR "dsp boot failed at %d\n", i); | 458 | snd_printk(KERN_ERR "dsp boot failed at %d\n", i); |
459 | return -EIO; | 459 | return -EIO; |
@@ -671,7 +671,7 @@ int snd_vx_dsp_load(struct vx_core *chip, const struct firmware *dsp) | |||
671 | unsigned int i; | 671 | unsigned int i; |
672 | int err; | 672 | int err; |
673 | unsigned int csum = 0; | 673 | unsigned int csum = 0; |
674 | unsigned char *image, *cptr; | 674 | const unsigned char *image, *cptr; |
675 | 675 | ||
676 | snd_assert(dsp->size % 3 == 0, return -EINVAL); | 676 | snd_assert(dsp->size % 3 == 0, return -EINVAL); |
677 | 677 | ||