Return-Path: From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH hcidump 2/2 v2] AVRCP: Add support for Addressed Player Changed event Date: Tue, 19 Jun 2012 14:40:30 +0300 Message-Id: <1340106030-30782-2-git-send-email-luiz.dentz@gmail.com> In-Reply-To: <1340106030-30782-1-git-send-email-luiz.dentz@gmail.com> References: <1340106030-30782-1-git-send-email-luiz.dentz@gmail.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: From: Luiz Augusto von Dentz --- v2: Fix UIDCounter string parser/avrcp.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/parser/avrcp.c b/parser/avrcp.c index 5587da7..dfa9ee7 100644 --- a/parser/avrcp.c +++ b/parser/avrcp.c @@ -1107,6 +1107,7 @@ static void avrcp_register_notification_dump(int level, struct frame *frm, uint8_t ctype, uint16_t len) { uint8_t event, status; + uint16_t uid; uint32_t interval; uint64_t id; @@ -1202,6 +1203,15 @@ response: status = get_u8(frm) & 0x7F; printf("Volume: %.2f%% (%d/127)\n", status/1.27, status); break; + case AVRCP_EVENT_ADDRESSED_PLAYER_CHANGED: + uid = get_u16(frm); + printf("PlayerID: 0x%04x (%u)", uid, uid); + + p_indent(level, frm); + + uid = get_u16(frm); + printf("UIDCounter: 0x%04x (%u)", uid, uid); + break; } } -- 1.7.10.2