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)
commitef9d59708949b2012b1b723a1eaec82981c40013
tree49827ad76ad2cf84933d295ef1df9520dfdb911b
parent5875c2cb7633ca280c2ece43389d6a6f3c00e951
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