summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2017-01-19 10:26:09 +0100
committerAndreas Schneider <asn@cryptomilk.org>2017-01-20 10:37:16 +0100
commit0444ab8dea18155b2741a42495d555491b4c1e71 (patch)
tree69a367ce0b75d132dae23a58aaaf5e8a0e820802
parent4b312c3e2917eabd3aa3fd10e68c5b3393c95d43 (diff)
downloadandroid_device_samsung_sltexx-0444ab8dea18155b2741a42495d555491b4c1e71.tar.gz
android_device_samsung_sltexx-0444ab8dea18155b2741a42495d555491b4c1e71.tar.xz
android_device_samsung_sltexx-0444ab8dea18155b2741a42495d555491b4c1e71.zip
audio: Add a ALOGT logging function
-rw-r--r--hal/audio/audio_hw.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/hal/audio/audio_hw.c b/hal/audio/audio_hw.c
index 49d5399..0527c8d 100644
--- a/hal/audio/audio_hw.c
+++ b/hal/audio/audio_hw.c
@@ -21,6 +21,7 @@
#define LOG_TAG "audio_hw_primary"
#define LOG_NDEBUG 0
+//#define ALOG_TRACE 1
#include <errno.h>
#include <pthread.h>
@@ -49,6 +50,12 @@
#include "routing.h"
#include "ril_interface.h"
+#ifdef ALOG_TRACE
+#define ALOGT ALOGV
+#else
+#define ALOGT(a...) do { } while(0)
+#endif
+
#define PCM_CARD 0
#define PCM_CARD_SPDIF 1
#define PCM_TOTAL 2