Home | History | Annotate | Download | only in audiopolicy
      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 #define AUDIO_HAL_VERSION_TAG "audio_hal_version"
     39 
     40 // hw modules descriptions
     41 #define AUDIO_HW_MODULE_TAG "audio_hw_modules"
     42 
     43 #define OUTPUTS_TAG "outputs"
     44 #define INPUTS_TAG "inputs"
     45 
     46 #define SAMPLING_RATES_TAG "sampling_rates"
     47 #define FORMATS_TAG "formats"
     48 #define CHANNELS_TAG "channel_masks"
     49 #define DEVICES_TAG "devices"
     50 #define FLAGS_TAG "flags"
     51 
     52 #define DYNAMIC_VALUE_TAG "dynamic" // special value for "channel_masks", "sampling_rates" and
     53                                     // "formats" in outputs descriptors indicating that supported
     54                                     // values should be queried after opening the output.
     55 
     56 #define DEVICES_TAG "devices"
     57 #define DEVICE_TYPE "type"
     58 #define DEVICE_ADDRESS "address"
     59 
     60 #define MIXERS_TAG "mixers"
     61 #define MIXER_TYPE "type"
     62 #define MIXER_TYPE_MUX "mux"
     63 #define MIXER_TYPE_MIX "mix"
     64 
     65 #define GAINS_TAG "gains"
     66 #define GAIN_MODE "mode"
     67 #define GAIN_CHANNELS "channel_mask"
     68 #define GAIN_MIN_VALUE "min_value_mB"
     69 #define GAIN_MAX_VALUE "max_value_mB"
     70 #define GAIN_DEFAULT_VALUE "default_value_mB"
     71 #define GAIN_STEP_VALUE "step_value_mB"
     72 #define GAIN_MIN_RAMP_MS "min_ramp_ms"
     73 #define GAIN_MAX_RAMP_MS "max_ramp_ms"
     74 
     75 
     76 
     77 #endif  // ANDROID_AUDIO_POLICY_CONF_H
     78