summaryrefslogtreecommitdiff
path: root/bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp
diff options
context:
space:
mode:
authorChen Chen <cncn@google.com>2022-02-11 12:25:20 -0800
committerChen Chen <cncn@google.com>2022-02-11 12:25:27 -0800
commit359bf320913ed7f6265b3380ca57a8d5345710da (patch)
tree4a67ee789fc473062f3997ed2508d5efe2d93b97 /bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp
parent8b389e11236f9e2ded7f988555d77f4be7631707 (diff)
SpatialAudio: Remove codec interface from audio HAL. Codec switch logic will be inside Bluetooth
Bug: 214615268 Test: Build Tag: #feature Change-Id: Ic2a997614e16abfd745c80dc87ecf5d340497691
Diffstat (limited to 'bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp')
-rw-r--r--bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp b/bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp
index 96cd9ef6cb..0590ec614b 100644
--- a/bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp
+++ b/bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp
@@ -523,21 +523,6 @@ void BluetoothAudioSession::SetLatencyMode(LatencyMode latency_mode) {
}
}
-void BluetoothAudioSession::SetCodecType(CodecType codec_type) {
- std::lock_guard<std::recursive_mutex> guard(mutex_);
- if (!IsSessionReady()) {
- LOG(DEBUG) << __func__ << " - SessionType=" << toString(session_type_)
- << " has NO session";
- return;
- }
-
- auto hal_retval = stack_iface_->setCodecType(codec_type);
- if (!hal_retval.isOk()) {
- LOG(WARNING) << __func__ << " - IBluetoothAudioPort SessionType="
- << toString(session_type_) << " failed";
- }
-}
-
bool BluetoothAudioSession::IsAidlAvailable() {
if (is_aidl_checked) return is_aidl_available;
is_aidl_available =