exynos: audiohal_comv1: Fix compile error for a2dp offload

Change-Id: I8763dc1a2c7050cc819a2f2f2fdcfbdbeee638c7
Signed-off-by: Francescodario Cuzzocrea <bosconovic@gmail.com>
diff --git a/libaudio/audiohal_comv1/common_audiohal/audio_hw.c b/libaudio/audiohal_comv1/common_audiohal/audio_hw.c
index 22f5e56..888dfca 100644
--- a/libaudio/audiohal_comv1/common_audiohal/audio_hw.c
+++ b/libaudio/audiohal_comv1/common_audiohal/audio_hw.c
@@ -2208,7 +2208,8 @@
         } else if (!adev->is_playback_path_routed) {
             ALOGI("%s-%s: try to route for playback", stream_table[out->common.stream_type], __func__);
 #ifdef SUPPORT_BTA2DP_OFFLOAD
-            if (a2dp_combo) {
+            if ((out->common.requested_devices & AUDIO_DEVICE_OUT_ALL_A2DP) &&
+                (out->common.requested_devices & AUDIO_DEVICE_OUT_SPEAKER)) {
                 audio_devices_t dev = out->common.requested_devices;
                 out->common.requested_devices = AUDIO_DEVICE_OUT_SPEAKER;
                 adev_set_route((void *)out, AUSAGE_PLAYBACK, ROUTE, NON_FORCE_ROUTE);