From 4b29ec95d88d7cb99a7c55f0d3297a3b8c2149c4 Mon Sep 17 00:00:00 2001 From: "Christopher N. Hesse" Date: Thu, 16 Nov 2017 17:01:37 +0100 Subject: [PATCH] audio: Improve code readability Change-Id: I5b1f24ab6098a037559603a92b4a1a38987488f5 --- audio/audio_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.20.1