summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorChristopher N. Hesse <raymanfx@gmail.com>2017-11-16 17:01:37 +0100
committerChristopher N. Hesse <raymanfx@gmail.com>2018-01-20 22:30:35 +0000
commit33affb806e1944abd16382bb95e8c796dc3700fa (patch)
treee45a5f354cc4d60e233e9e7935971b5d2a15af0a /audio
parent6a2a3079c0e6f2a2c3d73464027a1df4b5bff50e (diff)
downloadandroid_hardware_samsung-33affb806e1944abd16382bb95e8c796dc3700fa.tar.gz
android_hardware_samsung-33affb806e1944abd16382bb95e8c796dc3700fa.tar.bz2
android_hardware_samsung-33affb806e1944abd16382bb95e8c796dc3700fa.zip
audio: Improve code readability
Change-Id: I5b1f24ab6098a037559603a92b4a1a38987488f5 (cherry picked from commit 4b29ec95d88d7cb99a7c55f0d3297a3b8c2149c4)
Diffstat (limited to 'audio')
-rw-r--r--audio/audio_hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index 7b6d642..cc9e622 100644
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -2885,7 +2885,7 @@ static int out_set_parameters(struct audio_stream *stream, const char *kvpairs)
}
}
#endif
- if (val != 0) {
+ if (val != SND_DEVICE_NONE) {
bool bt_sco_active = false;
if (out->devices & AUDIO_DEVICE_OUT_ALL_SCO) {