blob: aac5c661007edd8049dad24e5e6fb32a74037866 [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 {
61 sampling_rates 44100
62 channel_masks AUDIO_CHANNEL_OUT_STEREO
63 formats AUDIO_FORMAT_PCM_16_BIT
64 devices AUDIO_DEVICE_OUT_USB_DEVICE
65 }
66 }
67 }
Jeff Brown6d3453b2013-08-19 15:44:10 -070068 r_submix {
69 outputs {
70 submix {
71 sampling_rates 44100|48000
72 channel_masks AUDIO_CHANNEL_OUT_STEREO
73 formats AUDIO_FORMAT_PCM_16_BIT
74 devices AUDIO_DEVICE_OUT_REMOTE_SUBMIX
75 }
76 }
77 inputs {
78 submix {
79 sampling_rates 44100|48000
80 channel_masks AUDIO_CHANNEL_IN_STEREO
81 formats AUDIO_FORMAT_PCM_16_BIT
82 devices AUDIO_DEVICE_IN_REMOTE_SUBMIX
83 }
84 }
85 }
Jean-Baptiste Queru671476b2012-05-29 10:40:37 -070086}