Commit: 1a3de7bae409572c96e0bdbbe69b355f9715f021
Parent: a5924f6600f941b4c32aa3eff1a0d5d2bc5846bc
Author: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2011-08-12 11:05:10
Tree: bb7721471341f9ebd1bed448d28b4decb980a197

avrcp: send response for registered events When a certain event occur, check if CT registered to receive that notification and send a response. Example event for PTS test TC_TG_NFY_BV_02_C: > ACL data: handle 11 flags 0x02 dlen 22 L2CAP(d): cid 0x0043 len 18 [psm 23] AVCTP: Command : pt 0x00 transaction 2 pid 0x110e AV/C: Notify: address 0x48 opcode 0x00 Subunit: Panel Opcode: Vendor Dependent Company ID: 0x001958 AVRCP: RegisterNotification: pt 0x00 len 0x0005 EventID: 0x02 (EVENT_TRACK_CHANGED) Interval: 0x00000000 (0 seconds) < ACL data: handle 11 flags 0x02 dlen 26 L2CAP(d): cid 0x0043 len 22 [psm 23] AVCTP: Response : pt 0x00 transaction 2 pid 0x110e AV/C: Interim: address 0x48 opcode 0x00 Subunit: Panel Opcode: Vendor Dependent Company ID: 0x001958 AVRCP: RegisterNotification: pt 0x00 len 0x0009 EventID: 0x02 (EVENT_TRACK_CHANGED) Identifier: 0x0 (PLAYING) [...] < ACL data: handle 11 flags 0x02 dlen 26 L2CAP(d): cid 0x0043 len 22 [psm 23] AVCTP: Response : pt 0x00 transaction 2 pid 0x110e AV/C: Changed: address 0x48 opcode 0x00 Subunit: Panel Opcode: Vendor Dependent Company ID: 0x001958 AVRCP: RegisterNotification: pt 0x00 len 0x0009 EventID: 0x02 (EVENT_TRACK_CHANGED) Identifier: 0x0 (PLAYING)

Diffstat

M audio/control.c | 95 ++++++++++++++++++++++++++++++++++++++++- - - -

1 files changed, 91 insertions(+), 4 deletions(-)

View Full Diff | Patch