Return-Path: From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH v2 BlueZ 2/5] audio/avrcp: Fix rejecting SetAbsoluteVolume without a player Date: Tue, 15 Sep 2015 15:41:30 +0300 Message-Id: <1442320893-31536-2-git-send-email-luiz.dentz@gmail.com> In-Reply-To: <1442320893-31536-1-git-send-email-luiz.dentz@gmail.com> References: <1442320893-31536-1-git-send-email-luiz.dentz@gmail.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: From: Luiz Augusto von Dentz 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 703d084..a9297f6 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.4.3