!853 【HDF/Audio】fix: ADM Log optimization

Merge pull request !853 from zenglifeng/master
This commit is contained in:
openharmony_ci
2022-03-30 10:14:13 +00:00
committed by Gitee
12 changed files with 15 additions and 10 deletions
@@ -11,7 +11,7 @@
#include "i2c_if.h"
#include "osal_time.h"
#define HDF_LOG_TAG "audio_accessory_base"
#define HDF_LOG_TAG HDF_AUDIO_KADM
#define COMM_SHIFT_8BIT (8)
#define COMM_MASK_FF (0xFF)
+1 -1
View File
@@ -11,7 +11,7 @@
#include "audio_parse.h"
#include "audio_sapm.h"
#define HDF_LOG_TAG audio_codec_base
#define HDF_LOG_TAG HDF_AUDIO_KADM
static char *g_audioSapmCompNameList[AUDIO_SAPM_COMP_NAME_LIST_MAX] = {
"ADCL", "ADCR", "DACL", "DACR", "LPGA", "RPGA", "SPKL", "SPKR", "MIC"
+2
View File
@@ -9,6 +9,8 @@
#include "audio_core.h"
#include "audio_driver_log.h"
#define HDF_LOG_TAG HDF_AUDIO_KADM
static const char *g_audioDaiControlsList[AUDIO_CTRL_LIST_MAX] = {
"Main Playback Volume", "Main Capture Volume",
"Playback Mute", "Capture Mute", "Mic Left Gain",
+2
View File
@@ -7,6 +7,8 @@
*/
#include "audio_platform_if.h"
#define HDF_LOG_TAG HDF_AUDIO_KADM
int32_t AudioDmaBufAlloc(struct PlatformData *data, enum AudioStreamType streamType)
{
if (data != NULL && data->ops != NULL && data->ops->DmaBufAlloc != NULL) {
+1 -1
View File
@@ -9,7 +9,7 @@
#include "audio_dsp_base.h"
#include "audio_driver_log.h"
#define HDF_LOG_TAG audio_dsp_base
#define HDF_LOG_TAG HDF_AUDIO_KADM
int32_t DspGetServiceName(const struct HdfDeviceObject *device, const char **drvDspName)
{
+2 -1
View File
@@ -15,7 +15,8 @@
#include "osal_uaccess.h"
#include "hdf_device_object.h"
#define HDF_LOG_TAG audio_platform_base
#define HDF_LOG_TAG HDF_AUDIO_KADM
const int MAX_PERIOD_SIZE = (1024 * 8);
const int PERIOD_COUNT = 4;
const int RENDER_TRAF_BUF_SIZE = 1024;
+1 -1
View File
@@ -10,7 +10,7 @@
#include "audio_driver_log.h"
#include "osal_io.h"
#define HDF_LOG_TAG audio_core
#define HDF_LOG_TAG HDF_AUDIO_KADM
#define CHANNEL_MAX_NUM 2
#define CHANNEL_MIN_NUM 1
+1 -1
View File
@@ -13,7 +13,7 @@
#include "audio_driver_log.h"
#include "audio_parse.h"
#define HDF_LOG_TAG audio_host
#define HDF_LOG_TAG HDF_AUDIO_KADM
AUDIO_LIST_HEAD(cardManager);
+1 -1
View File
@@ -9,7 +9,7 @@
#include "audio_parse.h"
#include "audio_driver_log.h"
#define HDF_LOG_TAG audio_parse
#define HDF_LOG_TAG HDF_AUDIO_KADM
enum AudioRegCfgIndex {
AUDIO_REG_CFG_REG_INDEX = 0,
@@ -10,7 +10,7 @@
#include "audio_control.h"
#include "audio_driver_log.h"
#define HDF_LOG_TAG audio_control_dispatch
#define HDF_LOG_TAG HDF_AUDIO_KADM
static struct AudioKcontrol *AudioGetKctrlInstance(const struct AudioCtrlElemId *ctrlElemId)
{
@@ -10,7 +10,7 @@
#include "audio_driver_log.h"
#include "audio_platform_base.h"
#define HDF_LOG_TAG audio_stream_dispatch
#define HDF_LOG_TAG HDF_AUDIO_KADM
#define BUFF_SIZE_MAX 64
+1 -1
View File
@@ -12,7 +12,7 @@
#include "osal_time.h"
#include "osal_timer.h"
#define HDF_LOG_TAG audio_sapm
#define HDF_LOG_TAG HDF_AUDIO_SAPM
#define SAPM_POLL_TIME 10000 /* 10s */
#define SAPM_SLEEP_TIME (3 * 60000) /* 3min */