mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Add support for HFP_HARDWARE_OFFLOAD_DATAPATH session type am: f1527f5a88
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3211376 Change-Id: Icf33b66e435c2a2e904b5b537fafa7de30141922 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -139,6 +139,12 @@ void BluetoothAudioSession::ReportAudioConfigChanged(
|
||||
<< toString(session_type_);
|
||||
return;
|
||||
}
|
||||
} else if(session_type_ == SessionType::HFP_HARDWARE_OFFLOAD_DATAPATH) {
|
||||
if (audio_config.getTag() != AudioConfiguration::hfpConfig) {
|
||||
LOG(ERROR) << __func__ << " invalid audio config type for SessionType ="
|
||||
<< toString(session_type_);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
LOG(ERROR) << __func__ << " invalid SessionType ="
|
||||
<< toString(session_type_);
|
||||
@@ -154,6 +160,12 @@ void BluetoothAudioSession::ReportAudioConfigChanged(
|
||||
<< toString(session_type_);
|
||||
return;
|
||||
}
|
||||
} else if(session_type_ == SessionType::HFP_HARDWARE_OFFLOAD_DATAPATH) {
|
||||
if (audio_config.getTag() != AudioConfiguration::hfpConfig) {
|
||||
LOG(ERROR) << __func__ << " invalid audio config type for SessionType ="
|
||||
<< toString(session_type_);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
LOG(ERROR) << __func__
|
||||
<< " invalid SessionType =" << toString(session_type_);
|
||||
|
||||
Reference in New Issue
Block a user