diff options
author | François Gaffie <francois.gaffie@intel.com> | 2015-03-24 09:01:14 +0100 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2015-04-24 14:57:55 -0700 |
commit | 65c3781db3443531deacecfbda5c7e7e82868a34 (patch) | |
tree | 5560072d1f61a9d76e437ef311ef282976fc253d /services/audiopolicy/engineconfigurable/parameter-framework/example/Structure/PolicySubsystem-Volume.xml | |
parent | 21db57282da8b3daba1549f3a8e41c4fbaf80059 (diff) | |
download | frameworks_av-65c3781db3443531deacecfbda5c7e7e82868a34.zip frameworks_av-65c3781db3443531deacecfbda5c7e7e82868a34.tar.gz frameworks_av-65c3781db3443531deacecfbda5c7e7e82868a34.tar.bz2 |
Add a configurable version of the policy engine based on PFW
This patch adds a configurable version of the policy engine
based on the parameter framework.
This configurable engine shall be activated with a flag
USE_CONFIGURABLE_AUDIO_POLICY within BoardConfig.mk
This patch provides the generic configuration as an example.
This configuration provides the same user experience as the default
policy engine.
Change-Id: Ic8217333ae370b89bfdd2ad11320c5f14ea4da34
Signed-off-by: François Gaffie <francois.gaffie@intel.com>
Diffstat (limited to 'services/audiopolicy/engineconfigurable/parameter-framework/example/Structure/PolicySubsystem-Volume.xml')
-rwxr-xr-x | services/audiopolicy/engineconfigurable/parameter-framework/example/Structure/PolicySubsystem-Volume.xml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/services/audiopolicy/engineconfigurable/parameter-framework/example/Structure/PolicySubsystem-Volume.xml b/services/audiopolicy/engineconfigurable/parameter-framework/example/Structure/PolicySubsystem-Volume.xml new file mode 100755 index 0000000..cf39cc2 --- /dev/null +++ b/services/audiopolicy/engineconfigurable/parameter-framework/example/Structure/PolicySubsystem-Volume.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ComponentTypeSet xmlns:xi="http://www.w3.org/2001/XInclude" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="Schemas/ComponentTypeSet.xsd"> + <ComponentType Name="VolumeCurvePoints"> + <ParameterBlock Name="curve_points" ArrayLength="4" Mapping="VolumeProfile:'%1'" + Description="4 points to define the volume attenuation curve, each + characterized by the volume index (from 0 to 100) at which + they apply, and the attenuation in dB at that index. + We use 100 steps to avoid rounding errors when computing + the volume"> + <IntegerParameter Name="index" Size="32"/> + <FixedPointParameter Name="db_attenuation" Size="16" Integral="7" Fractional="8"/> + </ParameterBlock> + </ComponentType> + + <ComponentType Name="VolumeCurvesCategories"> + <Component Name="headset_device_category" Type="VolumeCurvePoints" Mapping="Category:0"/> + <Component Name="speaker_device_category" Type="VolumeCurvePoints" Mapping="Category:1"/> + <Component Name="earpiece_device_category" Type="VolumeCurvePoints" Mapping="Category:2"/> + <Component Name="extmedia_device_category" Type="VolumeCurvePoints" Mapping="Category:3"/> + </ComponentType> + +</ComponentTypeSet> + + |