Commit | Line | Data |
---|---|---|
83dc35bd S |
1 | # 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 | ||
5 | global_configuration { | |
6 | attached_output_devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER | |
7 | default_output_device AUDIO_DEVICE_OUT_SPEAKER | |
8 | attached_input_devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BACK_MIC|AUDIO_DEVICE_IN_THIRD_MIC|AUDIO_DEVICE_IN_VOICE_CALL|AUDIO_DEVICE_IN_REMOTE_SUBMIX|AUDIO_DEVICE_IN_PLAYBACK | |
9 | } | |
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 | ||
22 | audio_hw_modules { | |
23 | primary { | |
24 | outputs { | |
25 | primary { | |
26 | sampling_rates 48000 | |
27 | channel_masks AUDIO_CHANNEL_OUT_STEREO | |
28 | formats AUDIO_FORMAT_PCM_16_BIT|AUDIO_FORMAT_PCM_24_BIT | |
29 | devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET | |
30 | flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER|AUDIO_OUTPUT_FLAG_PRIMARY | |
31 | } | |
32 | fast { | |
33 | sampling_rates 48000 | |
34 | channel_masks AUDIO_CHANNEL_OUT_STEREO | |
35 | formats AUDIO_FORMAT_PCM_16_BIT | |
36 | devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET | |
37 | flags AUDIO_OUTPUT_FLAG_FAST | |
38 | } | |
39 | } | |
40 | inputs { | |
41 | primary { | |
42 | sampling_rates 8000|11025|16000|22050|24000|32000|44100|48000 | |
43 | channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO|AUDIO_CHANNEL_IN_VOICE_UPLINK|AUDIO_CHANNEL_IN_VOICE_DNLINK | |
44 | formats AUDIO_FORMAT_PCM_16_BIT | |
45 | devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_WIRED_HEADSET|AUDIO_DEVICE_IN_BACK_MIC|AUDIO_DEVICE_IN_FM|AUDIO_DEVICE_IN_VOICE_CALL|AUDIO_DEVICE_IN_THIRD_MIC|AUDIO_DEVICE_IN_DGTL_DOCK_HEADSET | |
46 | } | |
47 | } | |
48 | } | |
49 | a2dp { | |
50 | outputs { | |
51 | a2dp { | |
52 | sampling_rates 44100 | |
53 | channel_masks AUDIO_CHANNEL_OUT_STEREO | |
54 | formats AUDIO_FORMAT_PCM_16_BIT | |
55 | devices AUDIO_DEVICE_OUT_ALL_A2DP | |
56 | } | |
57 | } | |
8c8508f8 S |
58 | inputs { |
59 | a2dp { | |
60 | sampling_rates 44100|48000 | |
61 | channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO | |
62 | formats AUDIO_FORMAT_PCM_16_BIT | |
63 | devices AUDIO_DEVICE_IN_BLUETOOTH_A2DP | |
64 | } | |
65 | } | |
83dc35bd S |
66 | } |
67 | usb { | |
68 | outputs { | |
69 | usb_accessory { | |
70 | sampling_rates 44100 | |
71 | channel_masks AUDIO_CHANNEL_OUT_STEREO | |
72 | formats AUDIO_FORMAT_PCM_16_BIT | |
73 | devices AUDIO_DEVICE_OUT_USB_ACCESSORY | |
74 | } | |
75 | usb_device { | |
76 | sampling_rates 44100|48000 | |
77 | channel_masks dynamic | |
78 | formats AUDIO_FORMAT_PCM_16_BIT | |
79 | devices AUDIO_DEVICE_OUT_USB_DEVICE|AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET | |
80 | } | |
81 | } | |
82 | inputs { | |
83 | usb_device { | |
84 | sampling_rates dynamic | |
85 | channel_masks AUDIO_CHANNEL_IN_STEREO | |
86 | formats AUDIO_FORMAT_PCM_16_BIT | |
87 | devices AUDIO_DEVICE_IN_USB_DEVICE | |
88 | } | |
89 | } | |
90 | } | |
91 | tms { | |
92 | outputs { | |
93 | tms { | |
94 | sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000 | |
95 | channel_masks AUDIO_CHANNEL_OUT_STEREO | |
96 | formats AUDIO_FORMAT_PCM_16_BIT | |
97 | devices AUDIO_DEVICE_OUT_EXTERNAL_TMS | |
98 | } | |
99 | } | |
100 | inputs { | |
101 | tms { | |
102 | sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000 | |
103 | channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO | |
104 | formats AUDIO_FORMAT_PCM_16_BIT | |
105 | devices AUDIO_DEVICE_IN_EXTERNAL_TMS | |
106 | } | |
107 | } | |
108 | } | |
109 | r_submix { | |
110 | outputs { | |
111 | submix { | |
112 | sampling_rates 48000 | |
113 | channel_masks AUDIO_CHANNEL_OUT_STEREO | |
114 | formats AUDIO_FORMAT_PCM_16_BIT | |
115 | devices AUDIO_DEVICE_OUT_REMOTE_SUBMIX | |
116 | } | |
117 | } | |
118 | inputs { | |
119 | submix { | |
120 | sampling_rates 48000 | |
121 | channel_masks AUDIO_CHANNEL_IN_STEREO | |
122 | formats AUDIO_FORMAT_PCM_16_BIT | |
123 | devices AUDIO_DEVICE_IN_REMOTE_SUBMIX | |
124 | } | |
125 | } | |
126 | } | |
127 | playback_record { | |
128 | inputs { | |
129 | playback_record { | |
130 | sampling_rates 48000 | |
131 | channel_masks AUDIO_CHANNEL_IN_STEREO | |
132 | formats AUDIO_FORMAT_PCM_16_BIT | |
133 | devices AUDIO_DEVICE_IN_PLAYBACK | |
134 | } | |
135 | } | |
136 | } | |
137 | } |