Home | History | Annotate | Download | only in audioflinger
      1 /*
      2  * Copyright (C) 2013 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 // Put build-time configuration options here rather than Android.mk,
     18 // so that the instantiate for AudioFlinger service will pick up the same options.
     19 
     20 #ifndef ANDROID_AUDIOFLINGER_CONFIGURATION_H
     21 #define ANDROID_AUDIOFLINGER_CONFIGURATION_H
     22 
     23 // uncomment to enable detailed battery usage reporting (not debugged)
     24 //#define ADD_BATTERY_DATA
     25 
     26 // uncomment to enable the audio watchdog
     27 //#define AUDIO_WATCHDOG
     28 
     29 // uncomment to display CPU load adjusted for CPU frequency
     30 //#define CPU_FREQUENCY_STATISTICS
     31 
     32 // uncomment to enable fast mixer to take performance samples for later statistical analysis
     33 #define FAST_MIXER_STATISTICS
     34 // FIXME rename to FAST_THREAD_STATISTICS
     35 
     36 // uncomment for debugging timing problems related to StateQueue::push()
     37 //#define STATE_QUEUE_DUMP
     38 
     39 // uncomment to allow tee sink debugging to be enabled by property
     40 //#define TEE_SINK
     41 
     42 // uncomment to log CPU statistics every n wall clock seconds
     43 //#define DEBUG_CPU_USAGE 10
     44 
     45 #endif // ANDROID_AUDIOFLINGER_CONFIGURATION_H
     46