audio/transport: Fix emitting volume changed too soon 75/51475/1
authorBharat Panda <bharat.panda@samsung.com>
Tue, 10 Nov 2015 04:33:26 +0000 (10:03 +0530)
committerBharat Panda <bharat.panda@samsung.com>
Tue, 10 Nov 2015 04:33:26 +0000 (10:03 +0530)
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.

git repo link:
http://git.kernel.org/cgit/bluetooth/bluez.git/commit/?id=bf25bb8b335e4cd967ad8e4d358addc7305818b9

Change-Id: I147023026c8d13ee9a8b90195bc88aeda7676112

profiles/audio/transport.c

index b4cf57d..1eb951f 100644 (file)
@@ -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);