mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-12 21:44:12 +08:00
audio: Remove unused function
Removes the never used function audio_device_is_active.
This commit is contained in:
parent
7f200ffaca
commit
e0445712a3
@ -316,25 +316,6 @@ struct audio_device *audio_device_register(struct btd_device *device)
|
||||
return dev;
|
||||
}
|
||||
|
||||
gboolean audio_device_is_active(struct audio_device *dev,
|
||||
const char *interface)
|
||||
{
|
||||
if (!interface) {
|
||||
if ((dev->sink || dev->source) && avdtp_is_connected(dev))
|
||||
return TRUE;
|
||||
} else if (!strcmp(interface, AUDIO_SINK_INTERFACE) && dev->sink &&
|
||||
avdtp_is_connected(dev))
|
||||
return TRUE;
|
||||
else if (!strcmp(interface, AUDIO_SOURCE_INTERFACE) && dev->source &&
|
||||
avdtp_is_connected(dev))
|
||||
return TRUE;
|
||||
else if (!strcmp(interface, AUDIO_CONTROL_INTERFACE) && dev->control &&
|
||||
control_is_active(dev))
|
||||
return TRUE;
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void audio_device_unregister(struct audio_device *device)
|
||||
{
|
||||
DBG("%s", device_get_path(device->btd_dev));
|
||||
|
@ -43,6 +43,3 @@ struct audio_device {
|
||||
struct audio_device *audio_device_register(struct btd_device *device);
|
||||
|
||||
void audio_device_unregister(struct audio_device *device);
|
||||
|
||||
gboolean audio_device_is_active(struct audio_device *dev,
|
||||
const char *interface);
|
||||
|
Loading…
Reference in New Issue
Block a user