blob: ed5b00ab9df7993db7e63c4822addfeeeb1925fc [file] [log] [blame]
Jean-Baptiste Queru671476b2012-05-29 10:40:37 -07001# Global configuration section: lists input and output devices always present on the device
2# as well as the output device selected by default.
3# Devices are designated by a string that corresponds to the enum in audio.h
4
5global_configuration {
6 attached_output_devices AUDIO_DEVICE_OUT_SPEAKER
7 default_output_device AUDIO_DEVICE_OUT_SPEAKER
Jeff Brown6d3453b2013-08-19 15:44:10 -07008 attached_input_devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_REMOTE_SUBMIX
Jean-Baptiste Queru671476b2012-05-29 10:40:37 -07009}
10
11# audio hardware module section: contains descriptors for all audio hw modules present on the
12# device. Each hw module node is named after the corresponding hw module library base name.
13# For instance, "primary" corresponds to audio.primary.<device>.so.
14# The "primary" module is mandatory and must include at least one output with
15# AUDIO_OUTPUT_FLAG_PRIMARY flag.
16# Each module descriptor contains one or more output profile descriptors and zero or more
17# input profile descriptors. Each profile lists all the parameters supported by a given output
18# or input stream category.
19# The "channel_masks", "formats", "devices" and "flags" are specified using strings corresponding
20# to enums in audio.h and audio_policy.h. They are concatenated by use of "|" without space or "\n".
21
22audio_hw_modules {
23 primary {
24 outputs {
25 primary {
26 sampling_rates 44100
27 channel_masks AUDIO_CHANNEL_OUT_STEREO
28 formats AUDIO_FORMAT_PCM_16_BIT
Simon Wilsonc6e5c502012-10-26 15:31:28 -070029 devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET
Jean-Baptiste Queru671476b2012-05-29 10:40:37 -070030 flags AUDIO_OUTPUT_FLAG_PRIMARY
31 }
32 }
33 inputs {
34 primary {
Eric Laurent994d7762012-06-13 17:03:45 -070035 sampling_rates 8000|11025|16000|22050|24000|32000|44100|48000
Jean-Baptiste Queru671476b2012-05-29 10:40:37 -070036 channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO
37 formats AUDIO_FORMAT_PCM_16_BIT
38 devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_WIRED_HEADSET
39 }
40 }
41 }
42 a2dp {
43 outputs {
44 a2dp {
45 sampling_rates 44100
46 channel_masks AUDIO_CHANNEL_OUT_STEREO
47 formats AUDIO_FORMAT_PCM_16_BIT
48 devices AUDIO_DEVICE_OUT_ALL_A2DP
49 }
50 }
51 }
52 usb {
53 outputs {
54 usb_accessory {
55 sampling_rates 44100
56 channel_masks AUDIO_CHANNEL_OUT_STEREO
57 formats AUDIO_FORMAT_PCM_16_BIT
58 devices AUDIO_DEVICE_OUT_USB_ACCESSORY
59 }
60 usb_device {
Glenn Kasten8ea0b6a2014-07-27 16:45:53 -070061 sampling_rates dynamic
Jean-Baptiste Queru671476b2012-05-29 10:40:37 -070062 channel_masks AUDIO_CHANNEL_OUT_STEREO
Glenn Kasten8ea0b6a2014-07-27 16:45:53 -070063 formats dynamic
Jean-Baptiste Queru671476b2012-05-29 10:40:37 -070064 devices AUDIO_DEVICE_OUT_USB_DEVICE
65 }
66 }
Glenn Kasten8ea0b6a2014-07-27 16:45:53 -070067 inputs {
68 usb_device {
69 sampling_rates dynamic
70 channel_masks AUDIO_CHANNEL_IN_STEREO
71 formats AUDIO_FORMAT_PCM_16_BIT
72 devices AUDIO_DEVICE_IN_USB_DEVICE
73 }
74 }
Jean-Baptiste Queru671476b2012-05-29 10:40:37 -070075 }
Jeff Brown6d3453b2013-08-19 15:44:10 -070076 r_submix {
77 outputs {
78 submix {
Eric Laurent385e25b2013-09-26 11:33:49 -070079 sampling_rates 48000
Jeff Brown6d3453b2013-08-19 15:44:10 -070080 channel_masks AUDIO_CHANNEL_OUT_STEREO
81 formats AUDIO_FORMAT_PCM_16_BIT
82 devices AUDIO_DEVICE_OUT_REMOTE_SUBMIX
83 }
84 }
85 inputs {
86 submix {
Eric Laurent385e25b2013-09-26 11:33:49 -070087 sampling_rates 48000
Jeff Brown6d3453b2013-08-19 15:44:10 -070088 channel_masks AUDIO_CHANNEL_IN_STEREO
89 formats AUDIO_FORMAT_PCM_16_BIT
90 devices AUDIO_DEVICE_IN_REMOTE_SUBMIX
91 }
92 }
93 }
Jean-Baptiste Queru671476b2012-05-29 10:40:37 -070094}