FM: Add check for soc type
Fix compilation error for non cherokee devices. Added cherokee soc type
flag to remove compilation error for non cherokee devices.
Change-Id: I4b69ae76a33fcdeb497239aae9c35362272bcbfc
diff --git a/jni/android_hardware_fm.cpp b/jni/android_hardware_fm.cpp
index 0599002..a780cbe 100644
--- a/jni/android_hardware_fm.cpp
+++ b/jni/android_hardware_fm.cpp
@@ -1503,7 +1503,9 @@
{
ALOGD("%s: val = %d\n", __func__, val);
int err = JNI_ERR;
+#ifdef FM_SOC_TYPE_CHEROKEE
err = vendor_interface->set_fm_ctrl(V4L2_CID_PRV_ENABLE_SLIMBUS, val);
+#endif
return err;
}