Skip to content
Snippets Groups Projects
Commit 20f89716 authored by himta ram's avatar himta ram
Browse files

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
parent b2ce0090
No related branches found
No related tags found
No related merge requests found
......@@ -689,7 +689,7 @@ static jint android_hardware_fmradio_FmReceiverJNI_acquireFdNative
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 @@ static jint android_hardware_fmradio_FmReceiverJNI_closeFdNative
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 @@ static jint android_hardware_fmradio_FmReceiverJNI_setNotchFilterNative(JNIEnv *
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 @@ static jint android_hardware_fmradio_FmReceiverJNI_setAnalogModeNative(JNIEnv *
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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment