<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--
  ~ Copyright (C) 2020 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<audioPolicyConfiguration version="1.0" xmlns:xi="http://www.w3.org/2001/XInclude">
    <globalConfiguration speaker_drc_enabled="false"/>
    <modules>
        <module name="primary" halVersion="2.0">
            <attachedDevices>
                <item>Stub</item>
            </attachedDevices>
            <defaultOutputDevice>Stub</defaultOutputDevice>
            <mixPorts>
                <mixPort name="primary pcm" role="source"
                         flags="AUDIO_OUTPUT_FLAG_PRIMARY">
                    <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
                             samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
                </mixPort>
                <mixPort name="multichannel output" role="source"
                         flags="AUDIO_OUTPUT_FLAG_DIRECT">
                    <profile name="" />
                </mixPort>
            </mixPorts>
            <devicePorts>
                <devicePort tagName="Stub" type="AUDIO_DEVICE_OUT_STUB" role="sink" />
                <devicePort tagName="HDMI" type="AUDIO_DEVICE_OUT_HDMI" role="sink" />
            </devicePorts>
            <routes>
                <route type="mix" sink="Stub" sources="primary pcm"/>
                <route type="mix" sink="HDMI" sources="primary pcm,multichannel output"/>
            </routes>
        </module>
    </modules>
</audioPolicyConfiguration>
