• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8"?>
2<!-- Default Primary Audio HAL Module Audio Policy Configuration include file for TV -->
3<module name="primary" halVersion="2.0">
4    <attachedDevices>
5        <item>Speaker</item>
6    </attachedDevices>
7    <defaultOutputDevice>Speaker</defaultOutputDevice>
8    <mixPorts>
9        <mixPort name="primary output" role="source" flags="AUDIO_OUTPUT_FLAG_PRIMARY">
10            <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
11                     samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
12        </mixPort>
13        <mixPort name="direct" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT" />
14        <mixPort name="tunnel" role="source"
15                 flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_HW_AV_SYNC" />
16   </mixPorts>
17   <devicePorts>
18        <devicePort tagName="Speaker" type="AUDIO_DEVICE_OUT_SPEAKER" role="sink" />
19        <devicePort tagName="Out Aux Digital" type="AUDIO_DEVICE_OUT_AUX_DIGITAL" role="sink"
20                    encodedFormats="AUDIO_FORMAT_AC3 AUDIO_FORMAT_IEC61937" />
21    </devicePorts>
22    <routes>
23        <route type="mix" sink="Speaker" sources="primary output"/>
24        <route type="mix" sink="Out Aux Digital" sources="primary output,direct,tunnel"/>
25    </routes>
26</module>
27