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