audio: hal: Avoid backend configuration for afe-proxy device

During A2DP src usecase with non-default sample rate,
DEFAULT_BACKEND_PORT is getting configured with new
sample rate. After the A2DP usecase when we start new
session of normal playback with default sample rate,
no audio is heard in speakers in LE targets.
To avoid issue, returning from platform_check_codec_
backend_cfg api without configuring backend.

Change-Id: I35670b3c0bf197ac80cc92c22bb73467e277a5cd
diff --git a/hal/msm8916/platform.c b/hal/msm8916/platform.c
index 125f7c3..2c746d8 100644
--- a/hal/msm8916/platform.c
+++ b/hal/msm8916/platform.c
@@ -5503,7 +5503,8 @@
     /*BT devices backend is not configured from HAL hence skip*/
     if (snd_device == SND_DEVICE_OUT_BT_A2DP ||
         snd_device == SND_DEVICE_OUT_BT_SCO ||
-        snd_device == SND_DEVICE_OUT_BT_SCO_WB) {
+        snd_device == SND_DEVICE_OUT_BT_SCO_WB ||
+        snd_device == SND_DEVICE_OUT_AFE_PROXY) {
         backend_change = false;
         return backend_change;
     }
diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c
index cc2438d..1d32409 100644
--- a/hal/msm8974/platform.c
+++ b/hal/msm8974/platform.c
@@ -5219,7 +5219,8 @@
     /*BT devices backend is not configured from HAL hence skip*/
     if (snd_device == SND_DEVICE_OUT_BT_A2DP ||
         snd_device == SND_DEVICE_OUT_BT_SCO ||
-        snd_device == SND_DEVICE_OUT_BT_SCO_WB) {
+        snd_device == SND_DEVICE_OUT_BT_SCO_WB ||
+        snd_device == SND_DEVICE_OUT_AFE_PROXY) {
         backend_change = false;
         return backend_change;
     }