summaryrefslogtreecommitdiff
path: root/audio/core/all-versions/default/StreamIn.cpp
diff options
context:
space:
mode:
authorMikhail Naganov <mnaganov@google.com>2022-01-26 18:57:31 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2022-01-26 18:57:31 +0000
commit9b5dcd32aa701057e28c405e87f8c13bc77145dd (patch)
tree61be897f9dbe3a3aa904b21ab0a52d638e406e25 /audio/core/all-versions/default/StreamIn.cpp
parent425df50402834f8b634ce33feee783dfb3df3907 (diff)
parent40fde0bc07be50644705a708a522c941840f35c7 (diff)
Merge changes from topic "b-214426419-hal-v7_1"
* changes: Audio HAL V7.1: Update VTS Audio HAL V7.1: Update the default implementation Audio HAL V7.1: Interfaces & types
Diffstat (limited to 'audio/core/all-versions/default/StreamIn.cpp')
-rw-r--r--audio/core/all-versions/default/StreamIn.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/audio/core/all-versions/default/StreamIn.cpp b/audio/core/all-versions/default/StreamIn.cpp
index 2aeee43c59..2bea425f26 100644
--- a/audio/core/all-versions/default/StreamIn.cpp
+++ b/audio/core/all-versions/default/StreamIn.cpp
@@ -37,7 +37,11 @@ namespace audio {
namespace CPP_VERSION {
namespace implementation {
-using ::android::hardware::audio::common::CPP_VERSION::implementation::HidlUtils;
+using ::android::hardware::audio::common::COMMON_TYPES_CPP_VERSION::implementation::HidlUtils;
+using ::android::hardware::audio::CORE_TYPES_CPP_VERSION::implementation::CoreUtils;
+namespace util {
+using namespace ::android::hardware::audio::CORE_TYPES_CPP_VERSION::implementation::util;
+}
namespace {
@@ -348,7 +352,7 @@ Return<void> StreamIn::getAudioSource(getAudioSource_cb _hidl_cb) {
}
Return<Result> StreamIn::setGain(float gain) {
- if (!isGainNormalized(gain)) {
+ if (!util::isGainNormalized(gain)) {
ALOGW("Can not set a stream input gain (%f) outside [0,1]", gain);
return Result::INVALID_ARGUMENTS;
}