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

FM: add vendor tag for vendor property value

Add vendor tag for vendor property value.
As per sepolicy rules vendor property should have
vendor tag so we renamed the ctl property to vendor
tag added.

CRs-Fixed: 2535758
Change-Id: I794729bec5d9c258863f6aa0ba2ea60aad9d6d1a
parent 1deb497a
No related branches found
No related tags found
No related merge requests found
...@@ -717,7 +717,7 @@ static jint android_hardware_fmradio_FmReceiverJNI_acquireFdNative ...@@ -717,7 +717,7 @@ static jint android_hardware_fmradio_FmReceiverJNI_acquireFdNative
/* Need to clear the hw.fm.init firstly */ /* Need to clear the hw.fm.init firstly */
bt_configstore_intf->set_vendor_property(FM_PROP_HW_INIT, "0"); bt_configstore_intf->set_vendor_property(FM_PROP_HW_INIT, "0");
bt_configstore_intf->set_vendor_property(FM_PROP_CTL_START, "fm_dl"); bt_configstore_intf->set_vendor_property(FM_PROP_CTL_START, "vendor.fm");
sched_yield(); sched_yield();
for(i=0; i<45; i++) { for(i=0; i<45; i++) {
...@@ -731,7 +731,7 @@ static jint android_hardware_fmradio_FmReceiverJNI_acquireFdNative ...@@ -731,7 +731,7 @@ static jint android_hardware_fmradio_FmReceiverJNI_acquireFdNative
} }
ALOGE("init_success:%d after %f seconds \n", init_success, 0.2*i); ALOGE("init_success:%d after %f seconds \n", init_success, 0.2*i);
if(!init_success) { if(!init_success) {
bt_configstore_intf->set_vendor_property(FM_PROP_CTL_STOP,"fm_dl"); bt_configstore_intf->set_vendor_property(FM_PROP_CTL_STOP,"vendor.fm");
// close the fd(power down) // close the fd(power down)
close(fd); close(fd);
return FM_JNI_FAILURE; return FM_JNI_FAILURE;
...@@ -751,7 +751,7 @@ static jint android_hardware_fmradio_FmReceiverJNI_closeFdNative ...@@ -751,7 +751,7 @@ static jint android_hardware_fmradio_FmReceiverJNI_closeFdNative
if (is_soc_pronto() && bt_configstore_intf != NULL) if (is_soc_pronto() && bt_configstore_intf != NULL)
{ {
bt_configstore_intf->set_vendor_property(FM_PROP_CTL_STOP,"fm_dl"); bt_configstore_intf->set_vendor_property(FM_PROP_CTL_STOP,"vendor.fm");
} }
close(fd); close(fd);
return FM_JNI_SUCCESS; return FM_JNI_SUCCESS;
...@@ -1230,7 +1230,7 @@ static jint android_hardware_fmradio_FmReceiverJNI_setNotchFilterNative(JNIEnv * ...@@ -1230,7 +1230,7 @@ static jint android_hardware_fmradio_FmReceiverJNI_setNotchFilterNative(JNIEnv *
else else
bt_configstore_intf->set_vendor_property(FM_PROP_HW_MODE, "wa_disable"); bt_configstore_intf->set_vendor_property(FM_PROP_HW_MODE, "wa_disable");
bt_configstore_intf->set_vendor_property(FM_PROP_CTL_START, "fm_dl"); bt_configstore_intf->set_vendor_property(FM_PROP_CTL_START, "vendor.fm");
sched_yield(); sched_yield();
for(i=0; i<10; i++) { for(i=0; i<10; i++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment