Diff between 94b43b6463f4e59542d94beb6b0098ed500c3ca3 and f9762f5e538fae3bb4b6de37dacd4cea4ce55f47

Changed Files

File Additions Deletions Status
profiles/audio/avrcp.c +3 -5 modified

Full Patch

diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
index cd027c6..2eb2ad6 100644
--- a/profiles/audio/avrcp.c
+++ b/profiles/audio/avrcp.c
@@ -1582,14 +1582,12 @@ static uint8_t avrcp_handle_set_absolute_volume(struct avrcp *session,
 	if (len != 1)
 		goto err;
 
-	volume = pdu->params[0] & 0x7F;
-	if (volume > 127)
-		goto err;
-
 	if (!player)
 		goto err;
 
-	media_transport_update_device_volume(session->dev, pdu->params[0]);
+	volume = pdu->params[0] & 0x7F;
+
+	media_transport_update_device_volume(session->dev, volume);
 
 	return AVC_CTYPE_ACCEPTED;