diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2013-05-08 05:12:51 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2013-05-08 05:12:51 -0700 |
commit | 8e9c97ff1f71e781dc45f2c4ab2c8f8c668907a0 (patch) | |
tree | e5be1d65958f5fde9548539330e5df90dc07b215 /qcom | |
parent | 4338489a0068caab31d75e432c8e05a5563dfeba (diff) | |
parent | b5b6d1275940c5f10d1ea8b0a79010c7c3b46332 (diff) | |
download | android_hardware_qcom_fm-8e9c97ff1f71e781dc45f2c4ab2c8f8c668907a0.tar.gz android_hardware_qcom_fm-8e9c97ff1f71e781dc45f2c4ab2c8f8c668907a0.tar.bz2 android_hardware_qcom_fm-8e9c97ff1f71e781dc45f2c4ab2c8f8c668907a0.zip |
Merge "FM: Configure repeat count for PS string"
Diffstat (limited to 'qcom')
-rw-r--r-- | qcom/fmradio/FmReceiver.java | 10 | ||||
-rw-r--r-- | qcom/fmradio/FmRxControls.java | 11 |
2 files changed, 21 insertions, 0 deletions
diff --git a/qcom/fmradio/FmReceiver.java b/qcom/fmradio/FmReceiver.java index 3d179af..ac32ff9 100644 --- a/qcom/fmradio/FmReceiver.java +++ b/qcom/fmradio/FmReceiver.java @@ -1888,6 +1888,16 @@ public class FmReceiver extends FmTransceiver return mControl.setCFOMeanTh(sFd, th); } + public boolean setPSRxRepeatCount(int count) { + int state = getFMState(); + /* Check current state of FM device */ + if (state == FMState_Turned_Off){ + Log.d(TAG, "setRxRepeatcount failed"); + return false; + } + return mControl.setPSRxRepeatCount(sFd, count); + } + /*============================================================== FUNCTION: setRdsGroupOptions ==============================================================*/ diff --git a/qcom/fmradio/FmRxControls.java b/qcom/fmradio/FmRxControls.java index ff3366e..ad69496 100644 --- a/qcom/fmradio/FmRxControls.java +++ b/qcom/fmradio/FmRxControls.java @@ -94,6 +94,7 @@ class FmRxControls private static final int V4L2_CID_PRIVATE_CF0TH12 = V4L2_CID_PRIVATE_BASE + 0x3A; private static final int V4L2_CID_PRIVATE_SINRFIRSTSTAGE = V4L2_CID_PRIVATE_BASE + 0x3B; private static final int V4L2_CID_PRIVATE_RMSSIFIRSTSTAGE = V4L2_CID_PRIVATE_BASE + 0x3C; + private static final int V4L2_CID_PRIVATE_RXREPEATCOUNT = V4L2_CID_PRIVATE_BASE + 0x3D; private static final int V4L2_CTRL_CLASS_USER = 0x980000; private static final int V4L2_CID_BASE = V4L2_CTRL_CLASS_USER | 0x900; @@ -660,4 +661,14 @@ class FmRxControls } } + public boolean setPSRxRepeatCount(int fd, int count) { + int ret; + ret = FmReceiverJNI.setControlNative(fd, V4L2_CID_PRIVATE_RXREPEATCOUNT, count); + if (ret < 0) { + return false; + } else { + return true; + } + } + } |