blob: 080ecddbad3f0a968578b40065485bd19e318c68 [file] [log] [blame]
Simon Wilson15f60a82012-04-24 20:56:32 -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 Brown0f134552013-08-19 15:46:09 -07008 attached_input_devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_REMOTE_SUBMIX
Simon Wilson15f60a82012-04-24 20:56:32 -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 Wilson56d84e22012-08-17 13:55:27 -070029 devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET
Simon Wilson15f60a82012-04-24 20:56:32 -070030 flags AUDIO_OUTPUT_FLAG_PRIMARY
31 }
Glenn Kastene0aa8f32012-08-17 09:26:58 -070032# deep_buffer {
33# sampling_rates 44100
34# channel_masks AUDIO_CHANNEL_OUT_STEREO
35# formats AUDIO_FORMAT_PCM_16_BIT
36# devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE
37# flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER
38# }
Eric Laurentb2c0b4f2012-09-21 11:42:48 -070039 hdmi {
40 sampling_rates 44100|48000
41 channel_masks dynamic
42 formats AUDIO_FORMAT_PCM_16_BIT
43 devices AUDIO_DEVICE_OUT_AUX_DIGITAL
44 flags AUDIO_OUTPUT_FLAG_DIRECT
45 }
Simon Wilson15f60a82012-04-24 20:56:32 -070046 }
47 inputs {
48 primary {
Jean-Michel Trivid7e25f52012-10-12 11:45:38 -070049 sampling_rates 8000|11025|16000|22050|32000|44100|48000
Eric Laurentb52afc82013-01-18 15:12:57 -080050 channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO|AUDIO_CHANNEL_IN_FRONT_BACK
Simon Wilson15f60a82012-04-24 20:56:32 -070051 formats AUDIO_FORMAT_PCM_16_BIT
52 devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_WIRED_HEADSET
53 }
54 }
55 }
56 a2dp {
57 outputs {
58 a2dp {
59 sampling_rates 44100
60 channel_masks AUDIO_CHANNEL_OUT_STEREO
61 formats AUDIO_FORMAT_PCM_16_BIT
62 devices AUDIO_DEVICE_OUT_ALL_A2DP
63 }
64 }
65 }
Mike Lockwood9b771b62012-09-11 13:07:06 -070066 usb {
67 outputs {
68 usb_accessory {
69 sampling_rates 44100
70 channel_masks AUDIO_CHANNEL_OUT_STEREO
71 formats AUDIO_FORMAT_PCM_16_BIT
72 devices AUDIO_DEVICE_OUT_USB_ACCESSORY
73 }
74 usb_device {
Paul McLean41066862014-04-08 17:26:15 -070075 sampling_rates dynamic
Andy Hung8a72f1c2014-07-29 18:28:19 -070076 channel_masks dynamic
Paul McLean17a62952014-07-01 09:52:21 -070077 formats dynamic
Mike Lockwood9b771b62012-09-11 13:07:06 -070078 devices AUDIO_DEVICE_OUT_USB_DEVICE
79 }
80 }
Paul McLean0b9cf872014-04-30 10:15:54 -070081 inputs {
82 usb_device {
83 sampling_rates dynamic
Paul McLeanad257cf2014-09-12 13:54:05 -070084 channel_masks dynamic
85 formats dynamic
Paul McLean0b9cf872014-04-30 10:15:54 -070086 devices AUDIO_DEVICE_IN_USB_DEVICE
87 }
88 }
Mike Lockwood9b771b62012-09-11 13:07:06 -070089 }
Andreas Huberb8af7142012-11-30 09:33:53 -080090 r_submix {
91 outputs {
92 submix {
Eric Laurent12ec77a2013-09-26 11:35:48 -070093 sampling_rates 48000
Andreas Huberb8af7142012-11-30 09:33:53 -080094 channel_masks AUDIO_CHANNEL_OUT_STEREO
95 formats AUDIO_FORMAT_PCM_16_BIT
96 devices AUDIO_DEVICE_OUT_REMOTE_SUBMIX
97 }
98 }
99 inputs {
100 submix {
Eric Laurent12ec77a2013-09-26 11:35:48 -0700101 sampling_rates 48000
Andreas Huberb8af7142012-11-30 09:33:53 -0800102 channel_masks AUDIO_CHANNEL_IN_STEREO
103 formats AUDIO_FORMAT_PCM_16_BIT
104 devices AUDIO_DEVICE_IN_REMOTE_SUBMIX
105 }
106 }
107 }
Simon Wilson15f60a82012-04-24 20:56:32 -0700108}