]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: rework add_control_to_empty()
authorDaniel Mack <zonque@gmail.com>
Wed, 25 May 2011 07:09:00 +0000 (09:09 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 25 May 2011 07:34:34 +0000 (09:34 +0200)
commit8a979569a8a4b70758b23daea0cf306c98ac8969
tree49827ad76ad2cf84933d295ef1df9520dfdb911b
parentf064f8cffafbf50383a5761ce633177f6f6267b3
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>
sound/usb/mixer.c
sound/usb/mixer.h