From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> --- v1: Print volume in percentage parser/avrcp.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/parser/avrcp.c b/parser/avrcp.c index a6d09c9..850741b 100644 --- a/parser/avrcp.c +++ b/parser/avrcp.c @@ -1198,6 +1198,10 @@ response: value2str(attr, value)); } break; + case AVRCP_EVENT_VOLUME_CHANGED: + status = get_u8(frm) & 0x7F; + printf("Volume: %.2f%% (%d/127)\n", status/1.27, status); + break; } } -- 1.7.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html