xref: /aosp_15_r20/frameworks/av/services/audioflinger/Configuration.h (revision ec779b8e0859a360c3d303172224686826e6e0e1)
1*ec779b8eSAndroid Build Coastguard Worker /*
2*ec779b8eSAndroid Build Coastguard Worker  * Copyright (C) 2013 The Android Open Source Project
3*ec779b8eSAndroid Build Coastguard Worker  *
4*ec779b8eSAndroid Build Coastguard Worker  * Licensed under the Apache License, Version 2.0 (the "License");
5*ec779b8eSAndroid Build Coastguard Worker  * you may not use this file except in compliance with the License.
6*ec779b8eSAndroid Build Coastguard Worker  * You may obtain a copy of the License at
7*ec779b8eSAndroid Build Coastguard Worker  *
8*ec779b8eSAndroid Build Coastguard Worker  *      http://www.apache.org/licenses/LICENSE-2.0
9*ec779b8eSAndroid Build Coastguard Worker  *
10*ec779b8eSAndroid Build Coastguard Worker  * Unless required by applicable law or agreed to in writing, software
11*ec779b8eSAndroid Build Coastguard Worker  * distributed under the License is distributed on an "AS IS" BASIS,
12*ec779b8eSAndroid Build Coastguard Worker  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*ec779b8eSAndroid Build Coastguard Worker  * See the License for the specific language governing permissions and
14*ec779b8eSAndroid Build Coastguard Worker  * limitations under the License.
15*ec779b8eSAndroid Build Coastguard Worker  */
16*ec779b8eSAndroid Build Coastguard Worker 
17*ec779b8eSAndroid Build Coastguard Worker // Put build-time configuration options here rather than Android.mk,
18*ec779b8eSAndroid Build Coastguard Worker // so that the instantiate for AudioFlinger service will pick up the same options.
19*ec779b8eSAndroid Build Coastguard Worker 
20*ec779b8eSAndroid Build Coastguard Worker #ifndef ANDROID_AUDIOFLINGER_CONFIGURATION_H
21*ec779b8eSAndroid Build Coastguard Worker #define ANDROID_AUDIOFLINGER_CONFIGURATION_H
22*ec779b8eSAndroid Build Coastguard Worker 
23*ec779b8eSAndroid Build Coastguard Worker // uncomment to enable detailed battery usage reporting (not debugged)
24*ec779b8eSAndroid Build Coastguard Worker //#define ADD_BATTERY_DATA
25*ec779b8eSAndroid Build Coastguard Worker 
26*ec779b8eSAndroid Build Coastguard Worker // uncomment to enable the audio watchdog
27*ec779b8eSAndroid Build Coastguard Worker //#define AUDIO_WATCHDOG
28*ec779b8eSAndroid Build Coastguard Worker 
29*ec779b8eSAndroid Build Coastguard Worker // uncomment to display CPU load adjusted for CPU frequency
30*ec779b8eSAndroid Build Coastguard Worker //#define CPU_FREQUENCY_STATISTICS
31*ec779b8eSAndroid Build Coastguard Worker 
32*ec779b8eSAndroid Build Coastguard Worker // uncomment to enable fast threads to take performance samples for later statistical analysis
33*ec779b8eSAndroid Build Coastguard Worker #define FAST_THREAD_STATISTICS
34*ec779b8eSAndroid Build Coastguard Worker 
35*ec779b8eSAndroid Build Coastguard Worker // uncomment for debugging timing problems related to StateQueue::push()
36*ec779b8eSAndroid Build Coastguard Worker //#define STATE_QUEUE_DUMP
37*ec779b8eSAndroid Build Coastguard Worker 
38*ec779b8eSAndroid Build Coastguard Worker // uncomment to allow tee sink debugging to be enabled by property
39*ec779b8eSAndroid Build Coastguard Worker //#define TEE_SINK
40*ec779b8eSAndroid Build Coastguard Worker 
41*ec779b8eSAndroid Build Coastguard Worker // uncomment to log CPU statistics every n wall clock seconds
42*ec779b8eSAndroid Build Coastguard Worker //#define DEBUG_CPU_USAGE 10
43*ec779b8eSAndroid Build Coastguard Worker 
44*ec779b8eSAndroid Build Coastguard Worker #endif // ANDROID_AUDIOFLINGER_CONFIGURATION_H
45