BTA_AV_RC_COMP_ID, /* AVRCP Company ID */
BTA_AV_RC_SUPF_CT, /* AVRCP controller categories */
BTA_AV_RC_SUPF_TG, /* AVRCP target categories */
- 672, /* AVDTP signaling channel MTU at L2CAP */
- MAX_3MBPS_AVDTP_MTU, /* AVDTP audio transport channel MTU at L2CAP */
bta_av_audio_flush_to, /* AVDTP audio transport channel flush
timeout */
6, /* AVDTP audio channel max data queue size */
AVRC_CO_METADATA, /* AVRCP Company ID */
BTA_AVK_RC_SUPF_CT, /* AVRCP controller categories */
BTA_AVK_RC_SUPF_TG, /* AVRCP target categories */
- 672, /* AVDTP signaling channel MTU at L2CAP */
- MAX_3MBPS_AVDTP_MTU, /* AVDTP audio transport channel MTU at L2CAP */
bta_av_audio_flush_to, /* AVDTP audio transport channel flush timeout */
6, /* AVDTP audio channel max data queue size */
false, /* true, to accept AVRC 1.3 group nevigation command */
BTA_AV_RC_COMP_ID, /* AVRCP Company ID */
BTA_AV_RC_SUPF_CT, /* AVRCP controller categories */
AVRC_SUPF_TG_CAT1, /* Only support CAT1 for AVRCP1.3 */
- 672, /* AVDTP signaling channel MTU at L2CAP */
- MAX_3MBPS_AVDTP_MTU, /* AVDTP audio transport channel MTU at L2CAP */
bta_av_audio_flush_to, /* AVDTP audio transport channel flush timeout */
6, /* AVDTP audio channel max data queue size */
false, /* true, to accept AVRC 1.3 group nevigation command */
if (bta_av_cb.reg_audio == 0) {
/* the first channel registered. register to AVDTP */
- reg.ctrl_mtu = p_bta_av_cfg->sig_mtu;
+ reg.ctrl_mtu = 672;
reg.ret_tout = BTA_AV_RET_TOUT;
reg.sig_tout = BTA_AV_SIG_TOUT;
reg.idle_tout = BTA_AV_IDLE_TOUT;
p_scb->media_type = AVDT_MEDIA_TYPE_AUDIO;
avdtp_stream_config.cfg.psc_mask = AVDT_PSC_TRANS;
avdtp_stream_config.media_type = AVDT_MEDIA_TYPE_AUDIO;
- avdtp_stream_config.mtu = p_bta_av_cfg->audio_mtu;
+ avdtp_stream_config.mtu = MAX_3MBPS_AVDTP_MTU;
avdtp_stream_config.flush_to = L2CAP_DEFAULT_FLUSH_TO;
btav_a2dp_codec_index_t codec_index_min = BTAV_A2DP_CODEC_INDEX_SOURCE_MIN;
btav_a2dp_codec_index_t codec_index_max = BTAV_A2DP_CODEC_INDEX_SOURCE_MAX;
uint32_t company_id; /* AVRCP Company ID */
uint16_t avrc_ct_cat; /* AVRCP controller categories */
uint16_t avrc_tg_cat; /* AVRCP target categories */
- uint16_t sig_mtu; /* AVDTP signaling channel MTU at L2CAP */
- uint16_t audio_mtu; /* AVDTP audio transport channel MTU at L2CAP */
const uint16_t*
p_audio_flush_to; /* AVDTP audio transport channel flush timeout */
uint16_t audio_mqs; /* AVDTP audio channel max data queue size */
if (type == AVDT_CHAN_SIG) {
/* if signaling, get mtu from registration control block */
- p_tbl->my_mtu = avdtp_cb.rcb.ctrl_mtu;
+ p_tbl->my_mtu = kSignalMtu;
p_tbl->my_flush_to = L2CAP_DEFAULT_FLUSH_TO;
} else {
/* otherwise get mtu from scb */
- p_tbl->my_mtu = p_scb->stream_config.mtu;
+ p_tbl->my_mtu = kAudioMtu;
p_tbl->my_flush_to = p_scb->stream_config.flush_to;
/* also set scb_hdl in rt_tbl */
void avdt_l2c_disconnect(uint16_t lcid);
+constexpr uint16_t kSignalMtu = 672;
+constexpr uint16_t kAudioMtu = MAX_3MBPS_AVDTP_MTU;
+
#endif /* AVDT_INT_H */
/* Send L2CAP config req */
memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO));
cfg.mtu_present = true;
- cfg.mtu = p_tbl->my_mtu;
+ cfg.mtu = kSignalMtu;
cfg.flush_to_present = true;
cfg.flush_to = p_tbl->my_flush_to;
L2CA_ConfigReq(p_tbl->lcid, &cfg);
/* Send L2CAP config req */
memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO));
cfg.mtu_present = true;
- cfg.mtu = p_tbl->my_mtu;
+ cfg.mtu = kSignalMtu;
cfg.flush_to_present = true;
cfg.flush_to = p_tbl->my_flush_to;
L2CA_ConfigReq(p_tbl->lcid, &cfg);
} else {
/* allocate and set up entry; first channel is always signaling */
p_tbl = avdt_ad_tc_tbl_alloc(p_ccb);
- p_tbl->my_mtu = avdtp_cb.rcb.ctrl_mtu;
+ p_tbl->my_mtu = kSignalMtu;
p_tbl->my_flush_to = L2CAP_DEFAULT_FLUSH_TO;
p_tbl->tcid = AVDT_CHAN_SIG;
p_tbl->lcid = lcid;