-rw-r--r-- | audio_hw.h | 7 | ||||
-rw-r--r-- | rcaudio/def.h | 8 |
2 files changed, 10 insertions, 5 deletions
@@ -10,8 +10,13 @@ #define CARD_AMLOGIC_DEFAULT CARD_AMLOGIC_BOARD /* ALSA ports for AML */ #define PORT_MM 1 + /* number of frames per period */ -#define DEFAULT_PERIOD_SIZE 1024 //(1024 * 2) +/* + * change DEFAULT_PERIOD_SIZE from 1024 to 512 for passing CTS + * test case test4_1MeasurePeakRms(android.media.cts.VisualizerTest) + */ +#define DEFAULT_PERIOD_SIZE 512 //1024 //(1024 * 2) static unsigned PERIOD_SIZE = DEFAULT_PERIOD_SIZE; /* number of periods for low power playback */ #define PLAYBACK_PERIOD_COUNT 4 diff --git a/rcaudio/def.h b/rcaudio/def.h index 20db58b..595541c 100644 --- a/rcaudio/def.h +++ b/rcaudio/def.h @@ -11,10 +11,10 @@ extern "C" { #define RAS_STOP_CMD 0x02 #define RAS_DATA_RAW_CMD 0x03 -#ifdef LOG_TAG -#undef LOG_TAG -#endif -#define LOG_TAG "huitong_audio_hw" +//#ifdef LOG_TAG +//#undef LOG_TAG +//#endif +//#define LOG_TAG "huitong_audio_hw" //#define LOG_NDEBUG 0 //#define LOG_NDEBUG_FUNCTION |