audio/avrcp: Add support for GetTotalNumberOfItems

System Internals / BlueZ - Bharat Panda [samsung.com] - 29 July 2015 06:48 UTC

Added support for AVRCP GetTotalNumberOfItems command to get total num of items in a folder(with a given scope) prior calling GetFolderItems to retrieve the content of the folder.

On response, emit PropertyChanged for "NumberOfItems" property on MediaPlayer1 interface.

HCI Trace:

Channel: 66 len 17 ctrl 0x070c [PSM 27 mode 3] {chan 2} I-frame: Unsegmented TxSeq 6 ReqSeq 7 AVCTP Browsing: Response: type 0x00 label 6 PID 0x110e AVRCP: GetTotalNumOfItems: len 0x0007 Status: 0x04 (Success) UIDCounter: 0x3330 (13104) Number of Items: 0x0001 (1)

f17d3a2 audio/avrcp: Add support for GetTotalNumberOfItems
profiles/audio/avrcp.c | 76 ++++++++++++++++++++++++++++++++++++++++++++++-
profiles/audio/player.c | 33 ++++++++++++++++++--
profiles/audio/player.h | 4 +++
3 files changed, 110 insertions(+), 3 deletions(-)

Upstream: git.kernel.org


  • Share