diff options
-rw-r--r-- | btif/src/btif_ahim.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/btif/src/btif_ahim.cc b/btif/src/btif_ahim.cc index b7cdafacb..ead9ae1cd 100644 --- a/btif/src/btif_ahim.cc +++ b/btif/src/btif_ahim.cc @@ -522,8 +522,7 @@ LeAudioConfiguration fetch_offload_audio_config(int profile, int direction) { CodecIndex codec_type = (CodecIndex) pclient_cbs[profile - 1]->get_codec_type(direction); if (codec_type == CodecIndex::CODEC_INDEX_SOURCE_APTX_ADAPTIVE_LE || codec_type == CodecIndex::CODEC_INDEX_SOURCE_APTX_ADAPTIVE_R4) { - frame_duration = - ((pclient_cbs[profile - 1]->get_min_sup_frame_dur(direction)) / 4) * 1000; + frame_duration = pclient_cbs[profile - 1]->get_frame_duration(direction); LOG(ERROR) << __func__ << ": fetch frame duration: " << frame_duration << ", from leaudio_configs.xml"; } @@ -560,7 +559,7 @@ LeAudioConfiguration fetch_offload_audio_config(int profile, int direction) { if (codec_type == CodecIndex::CODEC_INDEX_SOURCE_APTX_ADAPTIVE_LE || codec_type == CodecIndex::CODEC_INDEX_SOURCE_APTX_ADAPTIVE_R4) { le_vendor_config.codecSpecificData[5] = 0x11; // Aptx Adaptive Type - le_vendor_config.codecSpecificData[8] = pclient_cbs[profile - 1]->get_min_sup_frame_dur(direction); + le_vendor_config.codecSpecificData[8] = frame_duration; le_vendor_config.codecSpecificData[9] = pclient_cbs[profile - 1]->get_feature_map(direction); if (codec_type == CodecIndex::CODEC_INDEX_SOURCE_APTX_ADAPTIVE_R4) { le_vendor_config.vendorCodecType = VendorCodecType::APTX_ADAPTIVE_R4; |