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