AHAL: Reset SR to 48khz if the backend doesn't support the multiple of 44.1khz

It needs to reset sample rate to 48khz if sample rate is less than 44.1khz, or
device backend does not support the multiple of 44.1khz.

CRs-fixed: 2586939
Change-Id: I5a00121bb997ce68640cdf15a5f8e2f5d7d4a027
diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c
index f955bab..59025ca 100644
--- a/hal/msm8974/platform.c
+++ b/hal/msm8974/platform.c
@@ -8750,8 +8750,11 @@
             ALOGD("%s:becf: afe: napb not active - set non fractional rate",
                        __func__);
         }
-        /*reset sample rate to 48khz if sample rate less than 44.1khz, or device backend dose not support 44.1 khz*/
-        if ((sample_rate == OUTPUT_SAMPLING_RATE_44100 &&
+        /*
+         * reset sample rate to 48khz if sample rate less than 44.1khz, or device backend does not
+         * support 44.1 khz and the multiple of 44.1khz
+         */
+        if ((sample_rate % OUTPUT_SAMPLING_RATE_44100 == 0 &&
              backend_idx != HEADPHONE_44_1_BACKEND &&
              backend_idx != HEADPHONE_BACKEND &&
              backend_idx != USB_AUDIO_RX_BACKEND) ||