FM: FM: Add user space changes to enable fm for Richwave chip

 -add hastings property check to prevent non hastings
  functionality execution when richwave fm chip is used.

CRs-Fixed: 2383864
Change-Id: I67618b08752d6f5fe9aba281759c0f4fcd0de6d3
diff --git a/jni/android_hardware_fm.cpp b/jni/android_hardware_fm.cpp
index 0dca4fa..789d52f 100644
--- a/jni/android_hardware_fm.cpp
+++ b/jni/android_hardware_fm.cpp
@@ -689,7 +689,7 @@
 
     ALOGD("BT soc is %s\n", value);
 
-    if (strcmp(value, "rome") != 0)
+    if ((strcmp(value, "rome") != 0) && (strcmp(value, "hastings") != 0))
     {
        /*Set the mode for soc downloader*/
        property_set("vendor.hw.fm.mode", "normal");
@@ -730,7 +730,7 @@
 
     ALOGD("BT soc is %s\n", value);
 
-    if (strcmp(value, "rome") != 0)
+    if ((strcmp(value, "rome") != 0) && (strcmp(value, "hastings") != 0))
     {
        property_set("ctl.stop", "fm_dl");
     }
@@ -1208,7 +1208,7 @@
 
     ALOGD("BT soc is %s\n", value);
 
-    if (strcmp(value, "rome") != 0)
+    if ((strcmp(value, "rome") != 0) && (strcmp(value, "hastings") != 0))
     {
        /*Enable/Disable the WAN avoidance*/
        property_set("vendor.hw.fm.init", "0");
@@ -1268,7 +1268,7 @@
 
     ALOGD("BT soc is %s\n", value);
 
-    if (strcmp(value, "rome") != 0)
+    if ((strcmp(value, "rome") != 0) && (strcmp(value, "hastings") != 0))
     {
        /*Enable/Disable Analog Mode FM*/
        property_set("vendor.hw.fm.init", "0");