diff options
Diffstat (limited to 'sound/isa/ad1848/ad1848_lib.c')
-rw-r--r-- | sound/isa/ad1848/ad1848_lib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/isa/ad1848/ad1848_lib.c b/sound/isa/ad1848/ad1848_lib.c index 8fb3db103e48..303861cd03cd 100644 --- a/sound/isa/ad1848/ad1848_lib.c +++ b/sound/isa/ad1848/ad1848_lib.c | |||
@@ -890,7 +890,7 @@ int snd_ad1848_create(snd_card_t * card, | |||
890 | int err; | 890 | int err; |
891 | 891 | ||
892 | *rchip = NULL; | 892 | *rchip = NULL; |
893 | chip = kcalloc(1, sizeof(*chip), GFP_KERNEL); | 893 | chip = kzalloc(sizeof(*chip), GFP_KERNEL); |
894 | if (chip == NULL) | 894 | if (chip == NULL) |
895 | return -ENOMEM; | 895 | return -ENOMEM; |
896 | spin_lock_init(&chip->reg_lock); | 896 | spin_lock_init(&chip->reg_lock); |
@@ -1196,6 +1196,7 @@ int snd_ad1848_add_ctl(ad1848_t *chip, const char *name, int index, int type, un | |||
1196 | .put = snd_ad1848_put_double, | 1196 | .put = snd_ad1848_put_double, |
1197 | }, | 1197 | }, |
1198 | [AD1848_MIX_CAPTURE] = { | 1198 | [AD1848_MIX_CAPTURE] = { |
1199 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | ||
1199 | .info = snd_ad1848_info_mux, | 1200 | .info = snd_ad1848_info_mux, |
1200 | .get = snd_ad1848_get_mux, | 1201 | .get = snd_ad1848_get_mux, |
1201 | .put = snd_ad1848_put_mux, | 1202 | .put = snd_ad1848_put_mux, |