audio/avrcp: Add GetFolderItems support

System Internals / BlueZ - Bharat Panda [samsung.com] - 2 September 2015 06:36 UTC

Support added to handle Get Folder Items browsing PDU for media player scope in TG role.

e.g. AVCTP Browsing: Response: type 0x00 label 0 PID 0x110e AVRCP: GetFolderItems: len 0x0030 Status: 0x04 (Success) UIDCounter: 0x0000 (0) NumOfItems: 0x0001 (1) Item: 0x01 (Media Player) Length: 0x0028 (40) PlayerID: 0x0000 (0) PlayerType: 0x0001 (Audio) PlayerSubType: 0x00000001 (Audio Book) PlayStatus: 0x01 (PLAYING) Features: 0x0000000000000007FFF0007000000000 CharsetID: 0x006a (UTF-8) NameLength: 0x000c (12) Name: SimplePlayer

d6bb011 audio/avrcp: Add GetFolderItems support
profiles/audio/avrcp.c | 147 ++++++++++++++++++++++++++++++++++++++++++++++++
profiles/audio/avrcp.h | 1 +
profiles/audio/media.c | 8 +++
3 files changed, 156 insertions(+)

Upstream: git.kernel.org


  • Share