feat(bt/bluedroid): Support AVRCP Cover Art feature
This commit is contained in:
@@ -99,6 +99,9 @@
|
||||
#define AVRC_SUPF_CT_CAT3 0x0004 /* Category 3 */
|
||||
#define AVRC_SUPF_CT_CAT4 0x0008 /* Category 4 */
|
||||
#define AVRC_SUPF_CT_BROWSE 0x0040 /* Browsing */
|
||||
#define AVRC_SUPF_CT_COVER_ART_GIP 0x0080 /* Cover Art GetImageProperties */
|
||||
#define AVRC_SUPF_CT_COVER_ART_GI 0x0100 /* Cover Art GetImage */
|
||||
#define AVRC_SUPF_CT_COVER_ART_GLT 0x0200 /* Cover Art GetLinkedThumbnail */
|
||||
|
||||
#define AVRC_SUPF_TG_CAT1 0x0001 /* Category 1 */
|
||||
#define AVRC_SUPF_TG_CAT2 0x0002 /* Category 2 */
|
||||
@@ -107,7 +110,8 @@
|
||||
#define AVRC_SUPF_TG_APP_SETTINGS 0x0010 /* Player Application Settings */
|
||||
#define AVRC_SUPF_TG_GROUP_NAVI 0x0020 /* Group Navigation */
|
||||
#define AVRC_SUPF_TG_BROWSE 0x0040 /* Browsing */
|
||||
#define AVRC_SUPF_TG_MULTI_PLAYER 0x0080 /* Muliple Media Player */
|
||||
#define AVRC_SUPF_TG_MULTI_PLAYER 0x0080 /* Multiple Media Player */
|
||||
#define AVRC_SUPF_TG_COVER_ART 0x0100 /* Cover Art */
|
||||
|
||||
#define AVRC_META_SUCCESS AVRC_SUCCESS
|
||||
#define AVRC_META_FAIL AVRC_FAIL
|
||||
@@ -561,7 +565,7 @@ extern bt_status_t AVRC_Init(void);
|
||||
**
|
||||
** Function AVRC_Deinit
|
||||
**
|
||||
** Description This function is called at stack shotdown to free the
|
||||
** Description This function is called at stack shutdown to free the
|
||||
** control block (if using dynamic memory), and deinitializes the
|
||||
** control block and tracing level.
|
||||
**
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#define AVRC_REV_1_3 0x0103
|
||||
#define AVRC_REV_1_4 0x0104
|
||||
#define AVRC_REV_1_5 0x0105
|
||||
#define AVRC_REV_1_6 0x0106
|
||||
|
||||
#define AVRC_PACKET_LEN 512 /* Per the spec, you must support 512 byte RC packets */
|
||||
|
||||
@@ -185,7 +186,7 @@
|
||||
#define AVRC_PKT_END 3
|
||||
#define AVRC_PKT_TYPE_MASK 3
|
||||
|
||||
/* Define the PDUs carried in the vendor dependant data
|
||||
/* Define the PDUs carried in the vendor dependent data
|
||||
*/
|
||||
#define AVRC_PDU_GET_CAPABILITIES 0x10
|
||||
#define AVRC_PDU_LIST_PLAYER_APP_ATTR 0x11
|
||||
@@ -297,7 +298,7 @@ typedef UINT8 tAVRC_BATTERY_STATUS;
|
||||
#define AVRC_MEDIA_ATTR_ID_TRACK_NUM 0x00000004
|
||||
#define AVRC_MEDIA_ATTR_ID_NUM_TRACKS 0x00000005
|
||||
#define AVRC_MEDIA_ATTR_ID_GENRE 0x00000006
|
||||
#define AVRC_MEDIA_ATTR_ID_PLAYING_TIME 0x00000007 /* in miliseconds */
|
||||
#define AVRC_MEDIA_ATTR_ID_PLAYING_TIME 0x00000007 /* in milliseconds */
|
||||
#define AVRC_MAX_NUM_MEDIA_ATTR_ID 7
|
||||
|
||||
/* Define the possible values of play state
|
||||
|
||||
@@ -45,6 +45,8 @@
|
||||
#define HCRP_DYNAMIC_MEMORY TRUE
|
||||
#define HFP_DYNAMIC_MEMORY TRUE
|
||||
#define HID_DYNAMIC_MEMORY TRUE
|
||||
#define OBEX_DYNAMIC_MEMORY TRUE
|
||||
#define GOEP_DYNAMIC_MEMORY TRUE
|
||||
#define HSP2_DYNAMIC_MEMORY TRUE
|
||||
#define ICP_DYNAMIC_MEMORY TRUE
|
||||
#define OPP_DYNAMIC_MEMORY TRUE
|
||||
@@ -79,6 +81,8 @@
|
||||
#define HCRP_DYNAMIC_MEMORY FALSE
|
||||
#define HFP_DYNAMIC_MEMORY FALSE
|
||||
#define HID_DYNAMIC_MEMORY FALSE
|
||||
#define OBEX_DYNAMIC_MEMORY FALSE
|
||||
#define GOEP_DYNAMIC_MEMORY FALSE
|
||||
#define HSP2_DYNAMIC_MEMORY FALSE
|
||||
#define ICP_DYNAMIC_MEMORY FALSE
|
||||
#define OPP_DYNAMIC_MEMORY FALSE
|
||||
@@ -191,6 +195,14 @@
|
||||
#define HID_DYNAMIC_MEMORY FALSE
|
||||
#endif
|
||||
|
||||
#ifndef OBEX_DYNAMIC_MEMORY
|
||||
#define OBEX_DYNAMIC_MEMORY FALSE
|
||||
#endif
|
||||
|
||||
#ifndef GOEP_DYNAMIC_MEMORY
|
||||
#define GOEP_DYNAMIC_MEMORY FALSE
|
||||
#endif
|
||||
|
||||
#ifndef HSP2_DYNAMIC_MEMORY
|
||||
#define HSP2_DYNAMIC_MEMORY FALSE
|
||||
#endif
|
||||
|
||||
@@ -365,6 +365,20 @@ extern BOOLEAN SDP_FindProtocolListElemInRec (tSDP_DISC_REC *p_rec,
|
||||
UINT16 layer_uuid,
|
||||
tSDP_PROTOCOL_ELEM *p_elem);
|
||||
|
||||
/*******************************************************************************
|
||||
**
|
||||
** Function SDP_FindProtocolListElem
|
||||
**
|
||||
** Description This function looks at the protocol list for a specific protocol
|
||||
** list element.
|
||||
**
|
||||
** Returns TRUE if found, FALSE if not
|
||||
** If found, the passed protocol list element is filled in.
|
||||
**
|
||||
*******************************************************************************/
|
||||
extern BOOLEAN SDP_FindProtocolListElem (tSDP_DISC_ATTR *p_protocol_list,
|
||||
UINT16 layer_uuid,
|
||||
tSDP_PROTOCOL_ELEM *p_elem);
|
||||
|
||||
/*******************************************************************************
|
||||
**
|
||||
@@ -409,7 +423,7 @@ extern BOOLEAN SDP_FindProfileVersionInRec (tSDP_DISC_REC *p_rec,
|
||||
**
|
||||
** Description This function is called to create a record in the database.
|
||||
** This would be through the SDP database maintenance API. The
|
||||
** record is created empty, teh application should then call
|
||||
** record is created empty, the application should then call
|
||||
** "add_attribute" to add the record's attributes.
|
||||
**
|
||||
** Returns Record handle if OK, else 0.
|
||||
|
||||
Reference in New Issue
Block a user