audio_policy_conf.h revision 1afeecb88bea660b2c10b2096be0fd02433303ce
1/*
2 * Copyright (C) 2012 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
17
18#ifndef ANDROID_AUDIO_POLICY_CONF_H
19#define ANDROID_AUDIO_POLICY_CONF_H
20
21
22/////////////////////////////////////////////////
23//      Definitions for audio policy configuration file (audio_policy.conf)
24/////////////////////////////////////////////////
25
26#define AUDIO_HARDWARE_MODULE_ID_MAX_LEN 32
27
28#define AUDIO_POLICY_CONFIG_FILE "/system/etc/audio_policy.conf"
29#define AUDIO_POLICY_VENDOR_CONFIG_FILE "/vendor/etc/audio_policy.conf"
30
31// global configuration
32#define GLOBAL_CONFIG_TAG "global_configuration"
33
34#define ATTACHED_OUTPUT_DEVICES_TAG "attached_output_devices"
35#define DEFAULT_OUTPUT_DEVICE_TAG "default_output_device"
36#define ATTACHED_INPUT_DEVICES_TAG "attached_input_devices"
37#define SPEAKER_DRC_ENABLED_TAG "speaker_drc_enabled"
38
39// hw modules descriptions
40#define AUDIO_HW_MODULE_TAG "audio_hw_modules"
41
42#define OUTPUTS_TAG "outputs"
43#define INPUTS_TAG "inputs"
44
45#define SAMPLING_RATES_TAG "sampling_rates"
46#define FORMATS_TAG "formats"
47#define CHANNELS_TAG "channel_masks"
48#define DEVICES_TAG "devices"
49#define FLAGS_TAG "flags"
50
51#define DYNAMIC_VALUE_TAG "dynamic" // special value for "channel_masks", "sampling_rates" and
52                                    // "formats" in outputs descriptors indicating that supported
53                                    // values should be queried after opening the output.
54
55#define DEVICES_TAG "devices"
56#define DEVICE_TYPE "type"
57#define DEVICE_ADDRESS "address"
58
59#define MIXERS_TAG "mixers"
60#define MIXER_TYPE "type"
61#define MIXER_TYPE_MUX "mux"
62#define MIXER_TYPE_MIX "mix"
63
64#define GAINS_TAG "gains"
65#define GAIN_MODE "mode"
66#define GAIN_CHANNELS "channel_mask"
67#define GAIN_MIN_VALUE "min_value_mB"
68#define GAIN_MAX_VALUE "max_value_mB"
69#define GAIN_DEFAULT_VALUE "default_value_mB"
70#define GAIN_STEP_VALUE "step_value_mB"
71#define GAIN_MIN_RAMP_MS "min_ramp_ms"
72#define GAIN_MAX_RAMP_MS "max_ramp_ms"
73
74
75
76#endif  // ANDROID_AUDIO_POLICY_CONF_H
77