1#
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
17audio_hw_modules {
18  usb {
19    global_configuration {
20      attached_output_devices AUDIO_DEVICE_OUT_USB_DEVICE
21      attached_input_devices AUDIO_DEVICE_IN_USB_DEVICE
22    }
23    outputs {
24      usb_device {
25        sampling_rates dynamic
26        channel_masks dynamic
27        formats dynamic
28        devices AUDIO_DEVICE_OUT_USB_DEVICE
29        flags AUDIO_OUTPUT_FLAG_PRIMARY
30      }
31    }
32    inputs {
33      usb_device {
34        sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000
35        channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO
36        formats AUDIO_FORMAT_PCM_16_BIT
37        devices AUDIO_DEVICE_IN_USB_DEVICE
38      }
39    }
40  }
41}
42