mirror of
https://github.com/openharmony/drivers_framework.git
synced 2026-08-26 18:17:07 -04:00
!853 【HDF/Audio】fix: ADM Log optimization
Merge pull request !853 from zenglifeng/master
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user