1 /* 2 * Copyright (C) 2014 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 #ifndef __EXYNOS_AUDIOHAL_DEFINITION_H__ 18 #define __EXYNOS_AUDIOHAL_DEFINITION_H__ 19 20 /* This header file has common definitions for AudioHAL and AudioProxy */ 21 22 #define PREDEFINED_CAPTURE_DURATION 2 // 2ms 23 #define LOW_LATENCY_CAPTURE_SAMPLE_RATE 48000 24 25 #define MAX_MIXER_LENGTH 256 26 #define DEFAULT_MIXER_PATH "/vendor/etc/" 27 #define DEFAULT_MIXER_FILE "mixer_paths.xml" 28 #define MIXER_PATH_INFO "/proc/device-tree/sound/mixer-paths" 29 30 // Duration for Normal Capture 31 #define PREDEFINED_MEDIA_CAPTURE_DURATION 20 // 20ms 32 #define PREDEFINED_LOW_CAPTURE_DURATION 4 // 4ms 33 34 // Duration for USB Playback and Capture 35 #define PREDEFINED_USB_PLAYBACK_DURATION 20 // 20ms 36 #define PREDEFINED_USB_CAPTURE_DURATION 10 // 10ms 37 38 39 #define DEFAULT_MEDIA_BIT_WIDTH 16 40 #define DEFAULT_MEDIA_SAMPLING_RATE 48000 41 42 #define UHQA_MEDIA_BIT_WIDTH 24 43 #define UHQA_MEDIA_SAMPLING_RATE 192000 44 45 #define SUHQA_MEDIA_BIT_WIDTH 32 46 #define SUHQA_MEDIA_SAMPLING_RATE 384000 47 48 49 /** 50 ** Customization 51 ** If these are defined at other header file, please disable this if block 52 **/ 53 #define AUDIO_PARAMETER_KEY_FMRADIO_MODE "fm_mode" 54 #define AUDIO_PARAMETER_KEY_FMRADIO_VOLUME "fm_radio_volume" 55 56 // Factory Mode 57 #define AUDIO_PARAMETER_KEY_FACTORY_RMS_TEST "factory_test_mic_check" 58 59 #define AUDIO_PARAMETER_FACTORY_TEST_LOOPBACK "factory_test_loopback" 60 #define AUDIO_PARAMETER_FACTORY_TEST_TYPE "factory_test_type" 61 #define AUDIO_PARAMETER_FACTORY_TEST_PATH "factory_test_path" 62 #define AUDIO_PARAMETER_FACTORY_TEST_ROUTE "factory_test_route" 63 64 #define AUDIO_PARAMETER_SEAMLESS_VOICE "seamless_voice" 65 66 #endif // __EXYNOS_AUDIOHAL_DEFINITION_H__ 67