summaryrefslogtreecommitdiffstats
path: root/parameter/IntegerParameterType.cpp
diff options
context:
space:
mode:
authorGuillaume Denneulin <guillaume.denneulin@intel.com>2012-12-20 17:53:29 +0100
committerDavid Wagner <david.wagner@intel.com>2014-02-12 17:03:31 +0100
commitf2fd15a331fd3b5b63f0dc6f492651330adcedf9 (patch)
tree4176f855bf77467ed7d1519490bdce022bd1ea4d /parameter/IntegerParameterType.cpp
parentace81f873b910493ab884dc5a6a38ba6ec3d56d3 (diff)
downloadexternal_parameter-framework-f2fd15a331fd3b5b63f0dc6f492651330adcedf9.zip
external_parameter-framework-f2fd15a331fd3b5b63f0dc6f492651330adcedf9.tar.gz
external_parameter-framework-f2fd15a331fd3b5b63f0dc6f492651330adcedf9.tar.bz2
PFW: Add resync mechanism if a subsystem needs resync
BZ: 76267 In the case of a hw subsystems reset, it's possible that its parameter managed by the PFW may not be aligned with the PFW blackboard. A re-synchronization mechanism is implemented to ensure that the subsystem is re-synchronized on the next configurations application. Change-Id: I032150955d25a7020cf494e69456897b4c157916 Signed-off-by: Guillaume Denneulin <guillaume.denneulin@intel.com> Reviewed-on: http://android.intel.com:8080/83015 Reviewed-by: Rocard, KevinX <kevinx.rocard@intel.com> Reviewed-by: Centelles, Sylvain <sylvain.centelles@intel.com> Tested-by: Dixon, CharlesX <charlesx.dixon@intel.com> Reviewed-by: cactus <cactus@intel.com> Tested-by: cactus <cactus@intel.com>
Diffstat (limited to 'parameter/IntegerParameterType.cpp')
-rw-r--r--parameter/IntegerParameterType.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/parameter/IntegerParameterType.cpp b/parameter/IntegerParameterType.cpp
index ea08e43..3c3a626 100644
--- a/parameter/IntegerParameterType.cpp
+++ b/parameter/IntegerParameterType.cpp
@@ -227,6 +227,8 @@ bool CIntegerParameterType::toBlackboard(uint32_t uiUserValue, uint32_t& uiValue
bool CIntegerParameterType::fromBlackboard(uint32_t& uiUserValue, uint32_t uiValue, CParameterAccessContext& parameterAccessContext) const
{
+ (void)parameterAccessContext;
+
// Do assign
uiUserValue = uiValue;
@@ -250,6 +252,8 @@ bool CIntegerParameterType::toBlackboard(int32_t iUserValue, uint32_t& uiValue,
bool CIntegerParameterType::fromBlackboard(int32_t& iUserValue, uint32_t uiValue, CParameterAccessContext& parameterAccessContext) const
{
+ (void)parameterAccessContext;
+
int32_t iValue = uiValue;
// Sign extend