mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-01-27 18:59:11 +00:00
Add A2dp decode software and offload session type
1. Add the interface 2. Add the default implementation 3. Add VTS Bug: 206601670 Test: atest VtsHalBluetoothAudioTargetTest Change-Id: I54d8037eeb09312c9f1fb75d2167cc50ac7cae8c
This commit is contained in:
@@ -323,7 +323,8 @@ BluetoothAudioCodecs::GetSoftwarePcmCapabilities() {
|
||||
std::vector<CodecCapabilities>
|
||||
BluetoothAudioCodecs::GetA2dpOffloadCodecCapabilities(
|
||||
const SessionType& session_type) {
|
||||
if (session_type != SessionType::A2DP_HARDWARE_OFFLOAD_ENCODING_DATAPATH) {
|
||||
if (session_type != SessionType::A2DP_HARDWARE_OFFLOAD_ENCODING_DATAPATH &&
|
||||
session_type != SessionType::A2DP_HARDWARE_OFFLOAD_DECODING_DATAPATH) {
|
||||
return {};
|
||||
}
|
||||
std::vector<CodecCapabilities> offload_a2dp_codec_capabilities =
|
||||
@@ -389,7 +390,8 @@ bool BluetoothAudioCodecs::IsSoftwarePcmConfigurationValid(
|
||||
|
||||
bool BluetoothAudioCodecs::IsOffloadCodecConfigurationValid(
|
||||
const SessionType& session_type, const CodecConfiguration& codec_config) {
|
||||
if (session_type != SessionType::A2DP_HARDWARE_OFFLOAD_ENCODING_DATAPATH) {
|
||||
if (session_type != SessionType::A2DP_HARDWARE_OFFLOAD_ENCODING_DATAPATH &&
|
||||
session_type != SessionType::A2DP_HARDWARE_OFFLOAD_DECODING_DATAPATH) {
|
||||
LOG(ERROR) << __func__
|
||||
<< ": Invalid SessionType=" << toString(session_type);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user