summaryrefslogtreecommitdiffstats
path: root/automotive/audiocontrol
diff options
context:
space:
mode:
authorHayden Gomes <haydengomes@google.com>2020-04-28 15:12:19 -0700
committerHayden Gomes <haydengomes@google.com>2020-04-28 15:12:19 -0700
commit908a0a2d6b54d5e536fe9a357ab8d456b62e7ec5 (patch)
tree76dba9816134e293b37a2aff95049d5c6c06a191 /automotive/audiocontrol
parent02397292628705eac7c07521596197d251f20cb3 (diff)
downloadplatform_hardware_interfaces-908a0a2d6b54d5e536fe9a357ab8d456b62e7ec5.tar.gz
platform_hardware_interfaces-908a0a2d6b54d5e536fe9a357ab8d456b62e7ec5.tar.bz2
platform_hardware_interfaces-908a0a2d6b54d5e536fe9a357ab8d456b62e7ec5.zip
Fix AudioControl@2.0 fade check
Fade now checks isValidValue rather than !isValidValue Bug: 155225937 Test: built ran and adjusted fade Change-Id: I21b0dee8ebd677217b037c38cc744a77cf145709
Diffstat (limited to 'automotive/audiocontrol')
-rw-r--r--automotive/audiocontrol/2.0/default/AudioControl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/automotive/audiocontrol/2.0/default/AudioControl.cpp b/automotive/audiocontrol/2.0/default/AudioControl.cpp
index 5bde8396f2..b7c11cdf07 100644
--- a/automotive/audiocontrol/2.0/default/AudioControl.cpp
+++ b/automotive/audiocontrol/2.0/default/AudioControl.cpp
@@ -69,7 +69,7 @@ Return<void> AudioControl::setBalanceTowardRight(float value) {
}
Return<void> AudioControl::setFadeTowardFront(float value) {
- if (!isValidValue(value)) {
+ if (isValidValue(value)) {
// Just log in this default mock implementation
LOG(INFO) << "Fader set to " << value;
} else {