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#endif // ANDROID_AUDIO_POLICY_CONF_H 56