1<?xml version="1.0" encoding="UTF-8"?> 2<!-- Copyright (C) 2017-2018 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16<!-- Multi Stream Decoder Audio Policy Configuration file --> 17<module name="msd" halVersion="2.0"> 18 <attachedDevices> 19 <item>MS12 Input</item> 20 <item>MS12 Output</item> 21 </attachedDevices> 22 <mixPorts> 23 <mixPort name="ms12 input" role="source"> 24 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" 25 samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> 26 </mixPort> 27 <mixPort name="ms12 compressed input" role="source" 28 flags="AUDIO_OUTPUT_FLAG_DIRECT AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD AUDIO_OUTPUT_FLAG_NON_BLOCKING"> 29 <profile name="" format="AUDIO_FORMAT_AC3" 30 samplingRates="32000 44100 48000" 31 channelMasks="AUDIO_CHANNEL_OUT_MONO AUDIO_CHANNEL_OUT_STEREO AUDIO_CHANNEL_OUT_5POINT1"/> 32 <profile name="" format="AUDIO_FORMAT_E_AC3" 33 samplingRates="32000 44100 48000" 34 channelMasks="AUDIO_CHANNEL_OUT_MONO AUDIO_CHANNEL_OUT_STEREO AUDIO_CHANNEL_OUT_5POINT1 AUDIO_CHANNEL_OUT_7POINT1"/> 35 <profile name="" format="AUDIO_FORMAT_E_AC3_JOC" 36 samplingRates="32000 44100 48000" 37 channelMasks="AUDIO_CHANNEL_OUT_MONO AUDIO_CHANNEL_OUT_STEREO AUDIO_CHANNEL_OUT_5POINT1 AUDIO_CHANNEL_OUT_7POINT1"/> 38 <profile name="" format="AUDIO_FORMAT_AC4" 39 samplingRates="32000 44100 48000" 40 channelMasks="AUDIO_CHANNEL_OUT_MONO AUDIO_CHANNEL_OUT_STEREO AUDIO_CHANNEL_OUT_5POINT1 AUDIO_CHANNEL_OUT_7POINT1"/> 41 </mixPort> 42 <!-- The HW AV Sync flag is not required, but is recommended --> 43 <mixPort name="ms12 output" role="sink" flags="AUDIO_INPUT_FLAG_HW_AV_SYNC AUDIO_INPUT_FLAG_DIRECT"> 44 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" 45 samplingRates="48000" channelMasks="AUDIO_CHANNEL_IN_STEREO"/> 46 <profile name="" format="AUDIO_FORMAT_AC3" 47 samplingRates="48000" channelMasks="AUDIO_CHANNEL_IN_5POINT1"/> 48 <profile name="" format="AUDIO_FORMAT_E_AC3" 49 samplingRates="48000" channelMasks="AUDIO_CHANNEL_IN_5POINT1"/> 50 </mixPort> 51 </mixPorts> 52 <devicePorts> 53 <devicePort tagName="MS12 Input" type="AUDIO_DEVICE_OUT_BUS" role="sink"> 54 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" 55 samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> 56 <profile name="" format="AUDIO_FORMAT_AC3" 57 samplingRates="32000 44100 48000" 58 channelMasks="AUDIO_CHANNEL_OUT_MONO AUDIO_CHANNEL_OUT_STEREO AUDIO_CHANNEL_OUT_5POINT1"/> 59 <profile name="" format="AUDIO_FORMAT_E_AC3" 60 samplingRates="32000 44100 48000" 61 channelMasks="AUDIO_CHANNEL_OUT_MONO AUDIO_CHANNEL_OUT_STEREO AUDIO_CHANNEL_OUT_5POINT1 AUDIO_CHANNEL_OUT_7POINT1"/> 62 <profile name="" format="AUDIO_FORMAT_E_AC3_JOC" 63 samplingRates="32000 44100 48000" 64 channelMasks="AUDIO_CHANNEL_OUT_MONO AUDIO_CHANNEL_OUT_STEREO AUDIO_CHANNEL_OUT_5POINT1 AUDIO_CHANNEL_OUT_7POINT1"/> 65 <profile name="" format="AUDIO_FORMAT_AC4" 66 samplingRates="32000 44100 48000" 67 channelMasks="AUDIO_CHANNEL_OUT_MONO AUDIO_CHANNEL_OUT_STEREO AUDIO_CHANNEL_OUT_5POINT1 AUDIO_CHANNEL_OUT_7POINT1"/> 68 </devicePort> 69 <devicePort tagName="MS12 Output" type="AUDIO_DEVICE_IN_BUS" role="source"> 70 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" 71 samplingRates="48000" channelMasks="AUDIO_CHANNEL_IN_STEREO"/> 72 </devicePort> 73 </devicePorts> 74 <routes> 75 <route type="mix" sink="MS12 Input" sources="ms12 input,ms12 compressed input"/> 76 <route type="mix" sink="ms12 output" sources="MS12 Output"/> 77 </routes> 78</module> 79