mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-26 13:44:23 +08:00
control: Remove control_update
It is no longer used
This commit is contained in:
parent
58cf65dc0f
commit
689ab3804c
@ -282,18 +282,6 @@ void control_unregister(struct audio_device *dev)
|
||||
AUDIO_CONTROL_INTERFACE);
|
||||
}
|
||||
|
||||
void control_update(struct control *control, struct btd_service *service)
|
||||
{
|
||||
struct btd_profile *p = btd_service_get_profile(service);
|
||||
const char *uuid = p->remote_uuid;
|
||||
|
||||
if (!control->target && bt_uuid_strcmp(uuid, AVRCP_TARGET_UUID) == 0)
|
||||
control->target = btd_service_ref(service);
|
||||
else if (!control->remote &&
|
||||
bt_uuid_strcmp(uuid, AVRCP_REMOTE_UUID) == 0)
|
||||
control->remote = btd_service_ref(service);
|
||||
}
|
||||
|
||||
static struct control *control_init(struct audio_device *dev)
|
||||
{
|
||||
struct control *control;
|
||||
|
@ -30,7 +30,6 @@ struct control *control_init_target(struct audio_device *dev,
|
||||
struct btd_service *service);
|
||||
struct control *control_init_remote(struct audio_device *dev,
|
||||
struct btd_service *service);
|
||||
void control_update(struct control *control, struct btd_service *service);
|
||||
void control_unregister(struct audio_device *dev);
|
||||
gboolean control_is_active(struct audio_device *dev);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user