summaryrefslogtreecommitdiff
path: root/sound/usb/mixer.h
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2011-05-25 09:09:00 +0200
committerTakashi Iwai <tiwai@suse.de>2011-05-25 09:34:34 +0200
commitef9d59708949b2012b1b723a1eaec82981c40013 (patch)
tree49827ad76ad2cf84933d295ef1df9520dfdb911b /sound/usb/mixer.h
parent5875c2cb7633ca280c2ece43389d6a6f3c00e951 (diff)
ALSA: usb-audio: rework add_control_to_empty()
This patch renames add_control_to_empty() to snd_usb_mixer_add_control() and exports it, so the quirks functions can make use of it. Also, as "struct mixer_build" is private to mixer.c, rewrite the function to take an argument of type "struct usb_mixer_interface" instead. Signed-off-by: Daniel Mack <zonque@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/mixer.h')
-rw-r--r--sound/usb/mixer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/usb/mixer.h b/sound/usb/mixer.h
index b4a2c8165e4b..459551ac53ae 100644
--- a/sound/usb/mixer.h
+++ b/sound/usb/mixer.h
@@ -55,4 +55,7 @@ int snd_usb_mixer_set_ctl_value(struct usb_mixer_elem_info *cval,
void snd_usb_mixer_inactivate(struct usb_mixer_interface *mixer);
int snd_usb_mixer_activate(struct usb_mixer_interface *mixer);
+int snd_usb_mixer_add_control(struct usb_mixer_interface *mixer,
+ struct snd_kcontrol *kctl);
+
#endif /* __USBMIXER_H */