audio/avrcp: Fix set absolute volume
PATCH 1/1 audio/avrcp: Fix set absolute volume
From: Anurag Biradar <[email protected]>
Player object should be getting from target not from controller
--- profiles/audio/avrcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
profiles/audio/avrcp.c +1 -1
@@ -1588,7 +1588,7 @@ static uint8_t avrcp_handle_set_absolute_volume(struct avrcp *session, struct avrcp_header *pdu, uint8_t transaction) { -struct avrcp_player *player = session->controller->player; +struct avrcp_player *player =target_get_player (session);uint16_t len =ntohs (pdu->params_len);uint8_t volume;
Signature · 1 line
1.7.9.5
Luiz Augusto von Dentz
maintainerHi,
Quoted 21 lines · On Mon, Nov 24, 2014 at 1:11 PM, <[email protected]> wrote:
From: Anurag Biradar <[email protected]>
Player object should be getting from target not from controller
--- profiles/audio/avrcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)profiles/audio/avrcp.c +1
-2@@ -1588,7 +1588,7 @@ static uint8_t avrcp_handle_set_absolute_volume(struct avrcp *session, struct avrcp_header *pdu, uint8_t transaction) { -struct avrcp_player *player = session->controller->player; +struct avrcp_player *player =target_get_player (session);uint16_t len =ntohs (pdu->params_len);uint8_t volume; --
Quoted 1 line
1.7.9.5
Absolute volume control works the opposite way, it is the phone/target that sends it since it want the volume in the headset/controller to change, this is actually the reason why by enabling volume control PTS requires to have a controller record since the tests related to sending commands are tied to controller role for some reason.
Signature · 1 line
Luiz Augusto von Dentz