diff options
author | Mikhail Naganov <mnaganov@google.com> | 2020-02-14 17:13:52 -0800 |
---|---|---|
committer | Mikhail Naganov <mnaganov@google.com> | 2020-02-18 20:01:29 -0800 |
commit | 0a675fcc88fcaf1aee56e5dba32853782316ac94 (patch) | |
tree | 477d67f6e3edc90a3e5018a556ab4acc4e1c134a /audio/core/all-versions/default/StreamOut.cpp | |
parent | 368c0d9efe7b49dac483eed7fb74ce90f6233532 (diff) |
audio: Add Dual Mono Mode and Audio Description Mix Level to IStreamOut
These properties are mainly used on TV platforms.
Bug: 133526565
Test: atest VtsHalAudioV6_0TargetTest
Change-Id: I5dd2fe9cb987bf8435b8e5da96f8590288e5707c
Diffstat (limited to 'audio/core/all-versions/default/StreamOut.cpp')
-rw-r--r-- | audio/core/all-versions/default/StreamOut.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/audio/core/all-versions/default/StreamOut.cpp b/audio/core/all-versions/default/StreamOut.cpp index 1a2a764297..cfbee34299 100644 --- a/audio/core/all-versions/default/StreamOut.cpp +++ b/audio/core/all-versions/default/StreamOut.cpp @@ -582,6 +582,26 @@ Return<Result> StreamOut::selectPresentation(int32_t /*presentationId*/, int32_t } #endif +#if MAJOR_VERSION >= 6 +Return<void> StreamOut::getDualMonoMode(getDualMonoMode_cb _hidl_cb) { + _hidl_cb(Result::NOT_SUPPORTED, DualMonoMode::OFF); + return Void(); +} + +Return<Result> StreamOut::setDualMonoMode(DualMonoMode /*mode*/) { + return Result::NOT_SUPPORTED; +} + +Return<void> StreamOut::getAudioDescriptionMixLevel(getAudioDescriptionMixLevel_cb _hidl_cb) { + _hidl_cb(Result::NOT_SUPPORTED, -std::numeric_limits<float>::infinity()); + return Void(); +} + +Return<Result> StreamOut::setAudioDescriptionMixLevel(float /*leveldB*/) { + return Result::NOT_SUPPORTED; +} +#endif + } // namespace implementation } // namespace CPP_VERSION } // namespace audio |