*****************************************************************************/
void bta_ar_reg_avrc(uint16_t service_uuid, const char* service_name,
const char* provider_name, uint16_t categories,
- tBTA_SYS_ID sys_id, bool browse_supported,
- uint16_t profile_version) {
- uint8_t mask = bta_ar_id(sys_id);
+ bool browse_supported, uint16_t profile_version) {
+ uint8_t mask = BTA_AR_AV_MASK;
uint8_t temp[8], *p;
- if (!mask || !categories) return;
+ if (!categories) return;
if (service_uuid == UUID_SERVCLASS_AV_REM_CTRL_TARGET) {
if (bta_ar_cb.sdp_tg_handle == 0) {
bta_ar_reg_avrc(
UUID_SERVCLASS_AV_REM_CTRL_TARGET, "AV Remote Control Target", NULL,
- p_bta_av_cfg->avrc_tg_cat, BTA_ID_AV,
+ p_bta_av_cfg->avrc_tg_cat,
(bta_av_cb.features & BTA_AV_FEAT_BROWSE), profile_version);
}
*/
if (profile_initialized == UUID_SERVCLASS_AUDIO_SOURCE) {
bta_ar_reg_avrc(UUID_SERVCLASS_AV_REMOTE_CONTROL, NULL, NULL,
- p_bta_av_cfg->avrc_ct_cat, BTA_ID_AV,
+ p_bta_av_cfg->avrc_ct_cat,
(bta_av_cb.features & BTA_AV_FEAT_BROWSE),
AVRC_REV_1_3);
} else if (profile_initialized == UUID_SERVCLASS_AUDIO_SINK) {
bta_ar_reg_avrc(UUID_SERVCLASS_AV_REMOTE_CONTROL, NULL, NULL,
- p_bta_av_cfg->avrc_ct_cat, BTA_ID_AV,
+ p_bta_av_cfg->avrc_ct_cat,
(bta_av_cb.features & BTA_AV_FEAT_BROWSE),
AVRC_REV_1_6);
}
*****************************************************************************/
extern void bta_ar_reg_avrc(uint16_t service_uuid, const char* p_service_name,
const char* p_provider_name, uint16_t categories,
- tBTA_SYS_ID sys_id, bool browse_supported,
- uint16_t profile_version);
+ bool browse_supported, uint16_t profile_version);
/******************************************************************************
*