]> err.no Git - linux-2.6/commitdiff
[ALSA] ES1938: remove duplicate field initialization
authorClemens Ladisch <clemens@ladisch.de>
Fri, 22 Sep 2006 08:58:40 +0000 (10:58 +0200)
committerJaroslav Kysela <perex@suse.cz>
Sat, 23 Sep 2006 08:48:21 +0000 (10:48 +0200)
Remove the duplicate and inconsistent initialization of the kcontrol
access field.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/pci/es1938.c

index 3784088bea84e21f58dad1da2e3ae46900648e8e..3ce5a4e7e31f383e34a25cd633d508844d64f98f 100644 (file)
@@ -1359,10 +1359,9 @@ ES1938_DOUBLE("Master Playback Switch", 0, 0x60, 0x62, 6, 6, 1, 1),
 },
 {
        .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
-       .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE |
+       .access = (SNDRV_CTL_ELEM_ACCESS_READ |
                   SNDRV_CTL_ELEM_ACCESS_TLV_READ),
        .name = "Hardware Master Playback Switch",
-       .access = SNDRV_CTL_ELEM_ACCESS_READ,
        .info = snd_es1938_info_hw_switch,
        .get = snd_es1938_get_hw_switch,
        .tlv = { .p = db_scale_master },