msm8960: Squashed fixes for O
msm8960: fixes for N

* fixup of 4ed66e62279001cd62e5acec53f3e1cf5d64e77d for 8960
* port across a few constants from de4849cee04a23ae84da96487e344f75f93e5585
  to get 8960 building.

Change-Id: I98bbf5843d9b93ba1263e36a0ad64ea596cec244

msm8960: define HFP_ASM_RX_TX 24

Taken from hardware/qcom/audio-car/msm8960/hal/msm8969/platform.h
Fixes build error from android-7.1.2_r2 merge:
hardware/qcom/audio/default/hal/audio_extn/utils.c:150:25:
error: use of undeclared identifier 'HFP_ASM_RX_TX'
        pcm_device_id = HFP_ASM_RX_TX;

Change-Id: I6434c31b0310be87fa7c2128da5d641898787c4f

msm8960: Partial revert of the following
commit dd38c5fa56d4a646e2720160ba26019cef0d163b
diff --git a/hal/msm8960/platform.c b/hal/msm8960/platform.c
index d3c0aea..a9f6623 100644
--- a/hal/msm8960/platform.c
+++ b/hal/msm8960/platform.c
@@ -431,13 +431,6 @@
     return -ENODEV;
 }
 
-int platform_get_default_app_type_v2(void *platform __unused, usecase_type_t type __unused,
-                                     int *app_type __unused)
-{
-    ALOGE("%s: Not implemented", __func__);
-    return -ENOSYS;
-}
-
 int platform_get_snd_device_acdb_id(snd_device_t snd_device __unused)
 {
     ALOGE("%s: Not implemented", __func__);
@@ -1235,15 +1228,17 @@
     return 0;
 }
 
-bool platform_check_and_set_playback_backend_cfg(struct audio_device* adev __unused,
+bool platform_check_and_set_capture_backend_cfg (struct audio_device* adev __unused,
                                               struct audio_usecase *usecase __unused,
                                               snd_device_t snd_device __unused)
 {
     return false;
 }
 
-bool platform_check_and_set_capture_backend_cfg(struct audio_device* adev __unused,
-    struct audio_usecase *usecase __unused, snd_device_t snd_device __unused)
+
+bool platform_check_and_set_playback_backend_cfg(struct audio_device* adev __unused,
+                                              struct audio_usecase *usecase __unused,
+                                              snd_device_t snd_device __unused)
 {
     return false;
 }
@@ -1324,3 +1319,10 @@
 {
     return -ENOSYS;
 }
+
+int platform_get_default_app_type_v2(void *platform __unused, usecase_type_t type __unused,
+                                     int *app_type __unused)
+{
+    ALOGE("%s: Not implemented", __func__);
+    return -ENOSYS;
+}
diff --git a/hal/msm8960/platform.h b/hal/msm8960/platform.h
index afbc7b3..9d35485 100644
--- a/hal/msm8960/platform.h
+++ b/hal/msm8960/platform.h
@@ -97,6 +97,9 @@
 
 };
 
+#define DEVICE_NAME_MAX_SIZE   128
+#define HW_INFO_ARRAY_MAX_SIZE 32
+
 #define MIXER_CARD 0
 #define SOUND_CARD 0
 #define MIXER_PATH_MAX_LENGTH 100
@@ -134,6 +137,11 @@
 #define LOW_LATENCY_CAPTURE_PERIOD_SIZE 240
 #define LOW_LATENCY_CAPTURE_USE_CASE 0
 
+#define HFP_ASM_RX_TX 24
+
+#define PLATFORM_INFO_XML_PATH          "/system/etc/audio_platform_info.xml"
+#define PLATFORM_INFO_XML_BASE_STRING   "/system/etc/audio_platform_info"
+
 #define AFE_PROXY_PLAYBACK_PCM_DEVICE 7
 #define AFE_PROXY_RECORD_PCM_DEVICE 8