usb: gadget: uac: correct f_audio_source.c to remove warning

If the CONFIG_USB_CONFIGFS is not define, the 'audio_source_bind_config'
may be unused. Corrcet warning of no previous prototype for
'audio_source_bind_config' by adding judgment of CONFIG_USB_CONFIGFS
macro definition.

Change-Id: I174ae996c1d53e78b76f72cf463bc1efb189675b
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
This commit is contained in:
Meng Dongyang
2018-06-11 17:08:44 +08:00
committed by Tao Huang
parent cfb692c0ad
commit 576b831ae1

View File

@@ -1215,6 +1215,7 @@ static struct snd_pcm_ops audio_playback_ops = {
.pointer = audio_pcm_pointer,
};
#ifndef CONFIG_USB_CONFIGFS
int audio_source_bind_config(struct usb_configuration *c,
struct audio_source_config *config)
{
@@ -1253,6 +1254,7 @@ add_fail:
snd_card_free(audio->card);
return err;
}
#endif
static int snd_card_setup(struct usb_configuration *c,
struct audio_source_config *config)