]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/sparc/dbri.c
ALSA: Fix a const pointer usage warning in the Digigram VX soundcard driver
[linux-2.6-omap-h63xx.git] / sound / sparc / dbri.c
index af1bf4bf9459203bec0a0a4c30025a99c09159ae..ee2e1b4f35514dfa999dabcccfb689bf9ecd077d 100644 (file)
@@ -53,7 +53,6 @@
  * other       DBRI low-level stuff
  */
 
-#include <sound/driver.h>
 #include <linux/interrupt.h>
 #include <linux/delay.h>
 #include <linux/irq.h>
@@ -2292,12 +2291,12 @@ static int snd_cs4215_put_volume(struct snd_kcontrol *kcontrol,
                        return -EINVAL;
        }
 
-       if (info->left_gain != 
-               info->left_gain = ucontrol->value.integer.value[0];
+       if (info->left_gain != vol[0]) {
+               info->left_gain = vol[0];
                changed = 1;
        }
-       if (info->right_gain != ucontrol->value.integer.value[1]) {
-               info->right_gain = ucontrol->value.integer.value[1];
+       if (info->right_gain != vol[1]) {
+               info->right_gain = vol[1];
                changed = 1;
        }
        if (changed) {
@@ -2491,7 +2490,7 @@ static void dbri_debug_read(struct snd_info_entry *entry,
 }
 #endif
 
-void __devinit snd_dbri_proc(struct snd_card *card)
+static void __devinit snd_dbri_proc(struct snd_card *card)
 {
        struct snd_dbri *dbri = card->private_data;
        struct snd_info_entry *entry;