diff options
author | Venkateshwarlu Domakonda <vdomak@codeaurora.org> | 2014-11-12 20:37:35 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2014-11-21 00:56:47 -0800 |
commit | 056b4d4d93eb43988d3c402cc32dbb0d48821e12 (patch) | |
tree | 98435973401bdb4e0989293851dffa4b1aa37315 /qcom/fmradio/FmReceiver.java | |
parent | a3f6630152663ff56b6f58497360d90d34566c59 (diff) | |
download | android_hardware_qcom_fm-056b4d4d93eb43988d3c402cc32dbb0d48821e12.tar.gz android_hardware_qcom_fm-056b4d4d93eb43988d3c402cc32dbb0d48821e12.tar.bz2 android_hardware_qcom_fm-056b4d4d93eb43988d3c402cc32dbb0d48821e12.zip |
FM: Add support to configure signal blending parameters
Configure the signal blending parameters BlendSinrHi & BlendRmssiHi.
CRs-Fixed: 753525
Change-Id: Id5eac082124c7e78a0140ff3375772e2852dc03f
Diffstat (limited to 'qcom/fmradio/FmReceiver.java')
-rw-r--r-- | qcom/fmradio/FmReceiver.java | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/qcom/fmradio/FmReceiver.java b/qcom/fmradio/FmReceiver.java index 486dc33..732c0b2 100644 --- a/qcom/fmradio/FmReceiver.java +++ b/qcom/fmradio/FmReceiver.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009,2012-2013, The Linux Foundation. All rights reserved. + * Copyright (c) 2009,2012-2014, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -1951,6 +1951,42 @@ public class FmReceiver extends FmTransceiver return mControl.setPSRxRepeatCount(sFd, count); } + public byte getBlendSinr() { + int state = getFMState(); + if ((state == FMState_Turned_Off) || (state == FMState_Srch_InProg)) { + Log.d(TAG, "getBlendSinr: Device currently busy in executing another command."); + return Byte.MAX_VALUE; + } + return mControl.getBlendSinr(sFd); + } + + public boolean setBlendSinr(byte sinrHi) { + int state = getFMState(); + if ((state == FMState_Turned_Off) || (state == FMState_Srch_InProg)) { + Log.d(TAG, "setBlendSinr: Device currently busy in executing another command."); + return false; + } + return mControl.setBlendSinr(sFd, sinrHi); + } + + public byte getBlendRmssi() { + int state = getFMState(); + if ((state == FMState_Turned_Off) || (state == FMState_Srch_InProg)) { + Log.d(TAG, "getBlendRmssi: Device currently busy in executing another command."); + return Byte.MAX_VALUE; + } + return mControl.getBlendRmssi(sFd); + } + + public boolean setBlendRmssi(byte rmssiHi) { + int state = getFMState(); + if ((state == FMState_Turned_Off) || (state == FMState_Srch_InProg)) { + Log.d(TAG, "setBlendRmssi: Device currently busy in executing another command."); + return false; + } + return mControl.setBlendRmssi(sFd, rmssiHi); + } + /*============================================================== FUNCTION: setRdsGroupOptions ==============================================================*/ |