From: Christopher N. Hesse Date: Thu, 16 Nov 2017 16:01:37 +0000 (+0100) Subject: audio: Improve code readability X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4b29ec95d88d7cb99a7c55f0d3297a3b8c2149c4;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung.git audio: Improve code readability Change-Id: I5b1f24ab6098a037559603a92b4a1a38987488f5 --- 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) {