1<?xml version="1.0" encoding="UTF-8"?>
2<!-- Copyright (C) 2015 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<!-- USB Audio HAL Audio Policy Configuration file -->
17
18<module name="usb" halVersion="2.0">
19    <mixPorts>
20        <mixPort name="usb_accessory output" role="source">
21            <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
22                     samplingRates="44100" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
23        </mixPort>
24        <mixPort name="usb_device output" role="source"/>
25        <mixPort name="usb_device input" role="sink"/>
26    </mixPorts>
27    <devicePorts>
28        <devicePort tagName="USB Host Out" type="AUDIO_DEVICE_OUT_USB_ACCESSORY" role="sink">
29            <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
30                     samplingRates="44100" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
31        </devicePort>
32        <devicePort tagName="USB Device Out" type="AUDIO_DEVICE_OUT_USB_DEVICE" role="sink"/>
33        <devicePort tagName="USB Headset Out" type="AUDIO_DEVICE_OUT_USB_HEADSET" role="sink"/>
34        <devicePort tagName="USB Device In" type="AUDIO_DEVICE_IN_USB_DEVICE" role="source"/>
35        <devicePort tagName="USB Headset In" type="AUDIO_DEVICE_IN_USB_HEADSET" role="source"/>
36    </devicePorts>
37    <routes>
38        <route type="mix" sink="USB Host Out"
39               sources="usb_accessory output"/>
40        <route type="mix" sink="USB Device Out"
41               sources="usb_device output"/>
42        <route type="mix" sink="USB Headset Out"
43               sources="usb_device output"/>
44        <route type="mix" sink="usb_device input"
45               sources="USB Device In,USB Headset In"/>
46    </routes>
47</module>
48