OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb40056
)
AVRCP: Add missing capability for TrackReachedEnd
author
Michal Labedzki
<michal.labedzki@tieto.com>
Wed, 11 Apr 2012 11:05:18 +0000
(13:05 +0200)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Thu, 12 Apr 2012 11:46:39 +0000
(14:46 +0300)
Add missing capability for TrackReachedEnd.
audio/avrcp.c
patch
|
blob
|
history
diff --git
a/audio/avrcp.c
b/audio/avrcp.c
index
8eba046
..
6eb4bb1
100644
(file)
--- a/
audio/avrcp.c
+++ b/
audio/avrcp.c
@@
-557,12
+557,13
@@
static uint8_t avrcp_handle_get_capabilities(struct avrcp_player *player,
return AVC_CTYPE_STABLE;
case CAP_EVENTS_SUPPORTED:
- pdu->params_len = htons(5);
- pdu->params[1] = 3;
+ pdu->params[1] = 4;
pdu->params[2] = AVRCP_EVENT_STATUS_CHANGED;
pdu->params[3] = AVRCP_EVENT_TRACK_CHANGED;
pdu->params[4] = AVRCP_EVENT_TRACK_REACHED_START;
+ pdu->params[5] = AVRCP_EVENT_TRACK_REACHED_END;
+ pdu->params_len = htons(2 + pdu->params[1]);
return AVC_CTYPE_STABLE;
}