mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user