mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
ANDROID: sound: usb: Export symbols for endpoint management
Export the following symbols which are needed to support USB audio offload to a co-processor. snd_usb_autoresume snd_usb_autosuspend snd_usb_endpoint_open snd_usb_endpoint_close snd_usb_endpoint_configure Bug: 224904393 Change-Id: I8feaa225c7b869592b395815b3a7be47813c7aac Signed-off-by: Jack Pham <quic_jackp@quicinc.com>
This commit is contained in:
@@ -1018,6 +1018,7 @@ int snd_usb_autoresume(struct snd_usb_audio *chip)
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(snd_usb_autoresume);
|
||||
|
||||
void snd_usb_autosuspend(struct snd_usb_audio *chip)
|
||||
{
|
||||
@@ -1031,6 +1032,7 @@ void snd_usb_autosuspend(struct snd_usb_audio *chip)
|
||||
for (i = 0; i < chip->num_interfaces; i++)
|
||||
usb_autopm_put_interface(chip->intf[i]);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(snd_usb_autosuspend);
|
||||
|
||||
static int usb_audio_suspend(struct usb_interface *intf, pm_message_t message)
|
||||
{
|
||||
|
||||
@@ -819,6 +819,7 @@ snd_usb_endpoint_open(struct snd_usb_audio *chip,
|
||||
mutex_unlock(&chip->mutex);
|
||||
return ep;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(snd_usb_endpoint_open);
|
||||
|
||||
/*
|
||||
* snd_usb_endpoint_set_sync: Link data and sync endpoints
|
||||
@@ -902,6 +903,7 @@ void snd_usb_endpoint_close(struct snd_usb_audio *chip,
|
||||
}
|
||||
mutex_unlock(&chip->mutex);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(snd_usb_endpoint_close);
|
||||
|
||||
/* Prepare for suspening EP, called from the main suspend handler */
|
||||
void snd_usb_endpoint_suspend(struct snd_usb_endpoint *ep)
|
||||
@@ -1405,6 +1407,7 @@ unlock:
|
||||
mutex_unlock(&chip->mutex);
|
||||
return err;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(snd_usb_endpoint_configure);
|
||||
|
||||
/* get the current rate set to the given clock by any endpoint */
|
||||
int snd_usb_endpoint_get_clock_rate(struct snd_usb_audio *chip, int clock)
|
||||
|
||||
Reference in New Issue
Block a user