From bf25bb8b335e4cd967ad8e4d358addc7305818b9 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 14 Sep 2015 17:52:02 +0300 Subject: [PATCH] audio/transport: Fix emitting volume changed too soon The volume should start at maximum (127) but at that point there is no reason to notify the remote since there is no stream ongoing so no changes can be applied. --- profiles/audio/transport.c | 1 - 1 file changed, 1 deletion(-) diff --git a/profiles/audio/transport.c b/profiles/audio/transport.c index 7e3d1e697..4121e52c4 100644 --- a/profiles/audio/transport.c +++ b/profiles/audio/transport.c @@ -827,7 +827,6 @@ static int media_transport_init_sink(struct media_transport *transport) transport->destroy = destroy_a2dp; a2dp->volume = 127; - avrcp_set_volume(transport->device, a2dp->volume, true); transport->source_watch = source_add_state_cb(service, source_state_changed, transport); -- 2.47.3