diff options
Diffstat (limited to 'sound/usb/mixer_quirks.c')
-rw-r--r-- | sound/usb/mixer_quirks.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sound/usb/mixer_quirks.c b/sound/usb/mixer_quirks.c index 45203168ac6d..b8b1f48c1f50 100644 --- a/sound/usb/mixer_quirks.c +++ b/sound/usb/mixer_quirks.c | |||
@@ -52,13 +52,6 @@ struct std_mono_table { | |||
52 | snd_kcontrol_tlv_rw_t *tlv_callback; | 52 | snd_kcontrol_tlv_rw_t *tlv_callback; |
53 | }; | 53 | }; |
54 | 54 | ||
55 | /* private_free callback */ | ||
56 | static void usb_mixer_elem_free(struct snd_kcontrol *kctl) | ||
57 | { | ||
58 | kfree(kctl->private_data); | ||
59 | kctl->private_data = NULL; | ||
60 | } | ||
61 | |||
62 | /* This function allows for the creation of standard UAC controls. | 55 | /* This function allows for the creation of standard UAC controls. |
63 | * See the quirks for M-Audio FTUs or Ebox-44. | 56 | * See the quirks for M-Audio FTUs or Ebox-44. |
64 | * If you don't want to set a TLV callback pass NULL. | 57 | * If you don't want to set a TLV callback pass NULL. |
@@ -108,7 +101,7 @@ static int snd_create_std_mono_ctl_offset(struct usb_mixer_interface *mixer, | |||
108 | 101 | ||
109 | /* Set name */ | 102 | /* Set name */ |
110 | snprintf(kctl->id.name, sizeof(kctl->id.name), name); | 103 | snprintf(kctl->id.name, sizeof(kctl->id.name), name); |
111 | kctl->private_free = usb_mixer_elem_free; | 104 | kctl->private_free = snd_usb_mixer_elem_free; |
112 | 105 | ||
113 | /* set TLV */ | 106 | /* set TLV */ |
114 | if (tlv_callback) { | 107 | if (tlv_callback) { |