summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2015-09-11 17:17:02 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2015-09-15 15:10:04 +0300
commit85b829bdf15be8180465d91b22bd376c3d339f62 (patch)
tree0bb536dd0645f456489873a031e91b57ce3f8a43 /profiles
parentd8da70674705a397f287217070f3659c794cf804 (diff)
downloadbluez-85b829bdf15be8180465d91b22bd376c3d339f62.tar.gz
audio/avrcp: Fix rejecting SetAbsoluteVolume without a player
A player is not necessary in order for SetAbsoluteVolume to work.
Diffstat (limited to 'profiles')
-rw-r--r--profiles/audio/avrcp.c4
1 files changed, 0 insertions, 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);