audio: Improve code readability
authorChristopher N. Hesse <raymanfx@gmail.com>
Thu, 16 Nov 2017 16:01:37 +0000 (17:01 +0100)
committerChristopher N. Hesse <raymanfx@gmail.com>
Tue, 21 Nov 2017 20:22:54 +0000 (20:22 +0000)
Change-Id: I5b1f24ab6098a037559603a92b4a1a38987488f5

audio/audio_hw.c

index 7b6d642f3e656fa5a4c8f087bdb8bab53a663cd1..cc9e622b353f9b9b717f51cc5459cd113ce8e403 100644 (file)
@@ -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) {