blob: 1630a9423807cb67a516a1d8307c9742952b74eb
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 Device In" type="AUDIO_DEVICE_IN_USB_DEVICE" role="source"/> |
34 | </devicePorts> |
35 | <routes> |
36 | <route type="mix" sink="USB Host Out" |
37 | sources="usb_accessory output"/> |
38 | <route type="mix" sink="USB Device Out" |
39 | sources="usb_device output"/> |
40 | <route type="mix" sink="usb_device input" |
41 | sources="USB Device In"/> |
42 | </routes> |
43 | </module> |
44 |