diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-07-25 23:00:53 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-07-26 08:32:00 +0200 |
commit | 00966dcdf0e324e10ab79d505732c339f72417d9 (patch) | |
tree | 1c76e32b36c1f5a258c69f15cade9a8509fdd6b2 /sound/usb/mixer.h | |
parent | 7e9c20f40304a16d5f69dbdc44a551cc48252266 (diff) | |
download | talos-obmc-linux-00966dcdf0e324e10ab79d505732c339f72417d9.tar.gz talos-obmc-linux-00966dcdf0e324e10ab79d505732c339f72417d9.zip |
ALSA: usb-audio: Declare the common variable in header file
Declare snd_usb_feature_unit_ctl properly in mixer.h. Otherwise it's
error-prone.
This fixes the sparse warning:
sound/usb/mixer.c:1464:25: warning: symbol 'snd_usb_feature_unit_ctl' was not declared. Should it be static?
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/mixer.h')
-rw-r--r-- | sound/usb/mixer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/usb/mixer.h b/sound/usb/mixer.h index e02653465e29..3d12af8bf191 100644 --- a/sound/usb/mixer.h +++ b/sound/usb/mixer.h @@ -109,4 +109,6 @@ int snd_usb_get_cur_mix_value(struct usb_mixer_elem_info *cval, extern void snd_usb_mixer_elem_free(struct snd_kcontrol *kctl); +extern struct snd_kcontrol_new *snd_usb_feature_unit_ctl; + #endif /* __USBMIXER_H */ |