commit | a33bb5eaf5a76d0cab352dcd2f77fcdd3c17fbd6 | [log] [tgz] |
---|---|---|
author | Weilin Xu <xuweilin@google.com> | Wed Oct 02 17:16:42 2024 +0000 |
committer | Android Build Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | Wed Oct 02 17:16:42 2024 +0000 |
tree | 930070f9c422cfd7820430da1876563b08225823 | |
parent | ad6288c8bc6d19ced98db706f06b485c50d4a344 [diff] [blame] |
Implement volume control on default audio HAL Implemented volume control based on setting audio port config. Bug: 336370745 Test: atest VtsHalAudioCoreTargetTest (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:122597a5e96c873239540a53523caf67fe806d90) Merged-In: Ia590974e61aa3a1c3f70afdb54ce87c85e9a1b3c Change-Id: Ia590974e61aa3a1c3f70afdb54ce87c85e9a1b3c
diff --git a/audio/aidl/default/Stream.cpp b/audio/aidl/default/Stream.cpp index 3e4650d..de66293 100644 --- a/audio/aidl/default/Stream.cpp +++ b/audio/aidl/default/Stream.cpp
@@ -855,6 +855,11 @@ return ndk::ScopedAStatus::ok(); } +ndk::ScopedAStatus StreamCommonImpl::setGain(float gain) { + LOG(DEBUG) << __func__ << ": gain " << gain; + return ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION); +} + ndk::ScopedAStatus StreamCommonImpl::bluetoothParametersUpdated() { LOG(DEBUG) << __func__; return ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION);