FM: enable soft mute on cherokee
Change-Id: I97e4c3ae6db28e160800e69f8fa8bf8416b5ac44
diff --git a/qcom/fmradio/FmRxControls.java b/qcom/fmradio/FmRxControls.java
index ec75e15..d99f6f4 100644
--- a/qcom/fmradio/FmRxControls.java
+++ b/qcom/fmradio/FmRxControls.java
@@ -44,6 +44,7 @@
static final int SCAN_BACKWARD = 3;
static final int FM_DIGITAL_PATH = 0;
static final int FM_ANALOG_PATH = 1;
+ static final int ENABLE_SOFT_MUTE = 1;
private int mSrchMode;
private int mScanTime;
private int mSrchDir;
@@ -122,6 +123,12 @@
Log.d(TAG,"setControlNative faile" + V4L2_CID_PRIVATE_TAVARUA_STATE);
return re;
}
+ if (FmReceiver.isCherokeeChip()) {
+ boolean ret = enableSoftMute(fd,ENABLE_SOFT_MUTE);
+ if(false == ret) {
+ Log.d(TAG,"enableSoftMute failed");
+ }
+ }
setAudioPath(fd, false);
re = FmReceiverJNI.SetCalibrationNative(fd);
if (re != 0)