blob: 4c2bf3a152d84c3b2f3ec647a33b18a8a88830f3 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001/******************************************************************************
2*(C) Copyright 2014 Marvell International Ltd.
3* All Rights Reserved
4******************************************************************************/
5#ifdef PXA1826_AUDIO
6
7#ifndef ACM_LOG_h
8#define ACM_LOG_h
9
10/******************************************************************************
11 * Include files
12 ******************************************************************************/
13#include <stdio.h>
14#include <stdlib.h>
15#include <string.h>
16#include <ctype.h>
17#include <pthread.h>
18
19/******************************************************************************
20 * Prototypes
21 ******************************************************************************/
22
23//extern int __android_log_print(int prio, const char *tag, const char *fmt, ...);
24/******************************************************************************
25 * Define
26 ******************************************************************************/
27#define LOG_BUF_SIZE 1024
28
29/* Android log priority values, in ascending priority order. */
30typedef enum android_LogPriority {
31 ANDROID_LOG_UNKNOWN = 0,
32 ANDROID_LOG_DEFAULT, /* only for SetMinPriority() */
33 ANDROID_LOG_VERBOSE,
34 ANDROID_LOG_DEBUG,
35 ANDROID_LOG_INFO,
36 ANDROID_LOG_WARN,
37 ANDROID_LOG_ERROR,
38 ANDROID_LOG_FATAL,
39 ANDROID_LOG_SILENT, /* only for SetMinPriority(); must be last */
40} android_LogPriority;
41
42#define ALOGD(...) __acm_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__)
43#define ALOGE(...) __acm_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)
44#define ALOGI(...) __acm_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
45#define ALOGV(...) __acm_log_print(ANDROID_LOG_VERBOSE, LOG_TAG, __VA_ARGS__)
46#define ALOGW(...) __acm_log_print(ANDROID_LOG_WARN, LOG_TAG, __VA_ARGS__)
47
48#define LOGD(...) __acm_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__)
49#define LOGE(...) __acm_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)
50#define LOGI(...) __acm_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
51#define LOGV(...) __acm_log_print(ANDROID_LOG_VERBOSE, LOG_TAG, __VA_ARGS__)
52#define LOGW(...) __acm_log_print(ANDROID_LOG_WARN, LOG_TAG, __VA_ARGS__)
53
54#endif //ACM_LOG_h
55#endif //PXA1826_AUDIO