diff options
Diffstat (limited to 'en/devices/audio/implement-policy.html')
-rw-r--r-- | en/devices/audio/implement-policy.html | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/en/devices/audio/implement-policy.html b/en/devices/audio/implement-policy.html index 16cd0820..a6ccf0e9 100644 --- a/en/devices/audio/implement-policy.html +++ b/en/devices/audio/implement-policy.html @@ -75,10 +75,9 @@ shows many of these features in use.</p> <code>/system/etc</code>. To view a simple audio policy configuration in the new XML file format, view the example below.</p> -<p> <section class="expandable"> <h4 class="showalways">Show audio policy example</h4> -<pre> +<pre class="devsite-click-to-copy"> <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <audioPolicyConfiguration version="1.0" xmlns:xi="http://www.w3.org/2001/XInclude"> <globalConfiguration speaker_drc_enabled="true"/> @@ -139,7 +138,6 @@ XML file format, view the example below.</p> <xi:include href="default_volume_tables.xml"/> </audioPolicyConfiguration> </pre></section> -</p> <p>The top level structure contains modules that correspond to each audio HAL hardware module, where each module has a list of mix ports, device ports, and @@ -160,7 +158,7 @@ overwritten.</p> <section class="expandable"> <h4 class="showalways">Show volume table example</h4> -<p><pre> +<pre class="devsite-click-to-copy"> <?xml version="1.0" encoding="UTF-8"?> <volumes> <reference name="FULL_SCALE_VOLUME_CURVE"> @@ -178,11 +176,11 @@ overwritten.</p> <point>100,0</point> </reference> </volumes> -</pre></p></section> +</pre></section> <section class="expandable"> <h4 class="showalways">Show volumes example</h4> -<p><pre> +<pre class="devsite-click-to-copy"> <?xml version="1.0" encoding="UTF-8"?> <volumes> <volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_HEADSET" ref="DEFAULT_VOLUME_CURVE"/> @@ -255,7 +253,7 @@ overwritten.</p> <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_EARPIECE" ref="FULL_SCALE_VOLUME_CURVE"/> <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" ref="FULL_SCALE_VOLUME_CURVE"/> </volumes> -</pre></p></section> +</pre></section> <h2 id=file_inclusions>File inclusions</h2> <p>The XML Inclusions (XInclude) method can be used to include audio policy @@ -391,7 +389,7 @@ product. The following example from a Galaxy Nexus shows a <em>dynamic</em> channel mask, which means the audio policy manager queries the actual channel masks supported by the HDMI sink after connection.</p> -<pre> +<pre class="devsite-click-to-copy"> audio_hw_modules { primary { outputs { |