From 85b829bdf15be8180465d91b22bd376c3d339f62 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 11 Sep 2015 17:17:02 +0300 Subject: [PATCH] audio/avrcp: Fix rejecting SetAbsoluteVolume without a player A player is not necessary in order for SetAbsoluteVolume to work. --- profiles/audio/avrcp.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c index 703d084af..a9297f676 100644 --- a/profiles/audio/avrcp.c +++ b/profiles/audio/avrcp.c @@ -1676,16 +1676,12 @@ 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; uint16_t len = ntohs(pdu->params_len); uint8_t volume; if (len != 1) goto err; - if (!player) - goto err; - volume = pdu->params[0] & 0x7F; media_transport_update_device_volume(session->dev, volume); -- 2.47.3