diff options
author | Felix Homann <linuxaudio@showlabor.de> | 2012-04-23 20:24:24 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-04-24 08:01:27 +0200 |
commit | 285de9c08b07af8f2c1ab263705952672b3cf46c (patch) | |
tree | d622acfecec3e42daa16c6e187ffbd9936629434 /sound/usb/mixer.c | |
parent | 8a4d1d397b37f5aab1f830c0c7ca1fcdebf7ad9e (diff) | |
download | kernel_goldelico_gta04-285de9c08b07af8f2c1ab263705952672b3cf46c.zip kernel_goldelico_gta04-285de9c08b07af8f2c1ab263705952672b3cf46c.tar.gz kernel_goldelico_gta04-285de9c08b07af8f2c1ab263705952672b3cf46c.tar.bz2 |
ALSA: usb-audio: Rename and export mixer_vol_tlv
Rename mixer_vol_tlv to snd_usb_mixer_vol_tlv and export it to make
it reuseable in mixer_quirks.c.
Signed-off-by: Felix Homann <linuxaudio@showlabor.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/mixer.c')
-rw-r--r-- | sound/usb/mixer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/usb/mixer.c b/sound/usb/mixer.c index c374c72..bb56f53 100644 --- a/sound/usb/mixer.c +++ b/sound/usb/mixer.c @@ -486,7 +486,7 @@ static int set_cur_mix_value(struct usb_mixer_elem_info *cval, int channel, /* * TLV callback for mixer volume controls */ -static int mixer_vol_tlv(struct snd_kcontrol *kcontrol, int op_flag, +int snd_usb_mixer_vol_tlv(struct snd_kcontrol *kcontrol, int op_flag, unsigned int size, unsigned int __user *_tlv) { struct usb_mixer_elem_info *cval = kcontrol->private_data; @@ -1158,7 +1158,7 @@ static void build_feature_ctl(struct mixer_build *state, void *raw_desc, if (control == UAC_FU_VOLUME) { check_mapped_dB(map, cval); if (cval->dBmin < cval->dBmax || !cval->initialized) { - kctl->tlv.c = mixer_vol_tlv; + kctl->tlv.c = snd_usb_mixer_vol_tlv; kctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_TLV_READ | SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK; |