本文整理汇总了C++中Log_DebugPrintf函数的典型用法代码示例。如果您正苦于以下问题:C++ Log_DebugPrintf函数的具体用法?C++ Log_DebugPrintf怎么用?C++ Log_DebugPrintf使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Log_DebugPrintf函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: AUDDRV_GetEquType
AudioEqualizer_en_t AUDDRV_GetEquType( AUDDRV_TYPE_Enum_t path )
{
#if ( defined(FUSE_DUAL_PROCESSOR_ARCHITECTURE) && defined(FUSE_APPS_PROCESSOR) )
Log_DebugPrintf(LOGID_AUDIO, " AUDDRV_GetEquType (AP before read from CP) %d \n\r", sEqualizerType);
sEqualizerType = (AudioEqualizer_en_t) audio_control_generic( AUDDRV_CPCMD_READ_AUDVOC_AEQMODE, (UInt32) path, 0, 0, 0, 0 );
Log_DebugPrintf(LOGID_AUDIO, " AUDDRV_GetEquType (AP after read from CP) %d \n\r", sEqualizerType);
#else
UInt16 * ptr=0;
// PCG could chagned the equ type from PC.
// Read equ type from sysinterface/dsp/audio/audioapi.c.
ptr = (UInt16 *) AUDIO_GetAudioParam( PARAM_AUDVOC_AEQMODE );
sEqualizerType = (AudioEqualizer_en_t) *ptr;
Log_DebugPrintf(LOGID_AUDIO, " AUDDRV_GetEquType (CP) %d \n\r", sEqualizerType);
#endif
return sEqualizerType;
}
示例2: chal_audiomixertap_EnableNb
//============================================================================
//
// Function Name: chal_audiomixertap_EnableNb
//
// Description: Enable or Disable NB MIXER TAP
//
//============================================================================
cVoid chal_audiomixertap_EnableNb(
CHAL_HANDLE handle,
Boolean enable
)
{
Log_DebugPrintf(LOGID_SOC_AUDIO_DETAIL, "chal_audiomixertap_EnableNb: enable = %d", enable );
BRCM_WRITE_REG_FIELD( sMixerTap.base, DSP_AUDIO_BTMIXER_CFG2_R, BTNB_ENABLE, enable );
}
示例3: chal_audiomixertap_DisableWbAudInt
//============================================================================
//
// Function Name: chal_audiomixertap_DisableWbAudInt
//
// Description: Disable audio interrupt in WB mixer Tap
//
//============================================================================
cVoid chal_audiomixertap_DisableWbAudInt(
CHAL_HANDLE handle,
Boolean disable
)
{
Log_DebugPrintf(LOGID_SOC_AUDIO_DETAIL, "chal_audiomixertap_DisableWbAudInt" );
BRCM_WRITE_REG_FIELD( sMixerTap.base, DSP_AUDIO_BTMIXER_CFG_R, BTMIXER_WBINTDIS, disable );
}
示例4: chal_audiomixertap_EnableWbDma
//============================================================================
//
// Function Name: chal_audiomixertap_EnableWbDma
//
// Description: Enable DMA in WB mixer Tap
//
//============================================================================
cVoid chal_audiomixertap_EnableWbDma(
CHAL_HANDLE handle,
Boolean enable
)
{
Log_DebugPrintf(LOGID_SOC_AUDIO_DETAIL, "chal_audiomixertap_EnableWbDma" );
BRCM_WRITE_REG_FIELD( sMixerTap.base, DSP_AUDIO_BTMIXER_CFG_R, BTMIXER_DMA_EN, enable );
}
示例5: BTW_DMA_CB
// ==========================================================================
//
// Function Name: BTW_DMA_CB
//
// Description: The callback function when there is DMA request to audio path
//
// =========================================================================
static void BTW_DMA_CB(OSDAL_DMA_CALLBACK_STATUS status)
{
CSL_AUDVOC_Drv_t *audDrv = NULL;
Log_DebugPrintf(LOGID_SOC_AUDIO, "BTW_DMA_CB:: DMA callback.\n");
if (status != OSDAL_ERR_OK)
{
Log_DebugPrintf(LOGID_SOC_AUDIO, "BTW_DMA_CB:: Fatal error! DMA transfer failure.\n");
return;
}
audDrv = GetDriverByType(CSL_AUDVOC_STREAM_BTW);
if (audDrv->dmaCB != NULL)
audDrv->dmaCB(audDrv->streamID);
}
示例6: AUDIO_DRIVER_Write
//============================================================================
//
// Function Name: AUDIO_DRIVER_Write
//
// Description: This function is used to set the ring buffer pointer and size from which data
// has to be written.
//
//============================================================================
void AUDIO_DRIVER_Write(AUDIO_DRIVER_HANDLE_t drv_handle,
UInt8* pBuf,
UInt32 nBufSize)
{
Log_DebugPrintf(LOGID_AUDIO,"AUDIO_DRIVER_Write:: \n" );
return;
}
示例7: csl_audio_capture_init
// ==========================================================================
//
// Function Name: csl_audvoc_capture_init
//
// Description: Init audio path capture.
//
// =========================================================================
UInt32 csl_audio_capture_init( CSL_AUDIO_DEVICE_e source, CSL_AUDIO_DEVICE_e sink )
{
OSDAL_DMA_CLIENT srcClient = OSDAL_DMA_CLIENT_AUDIO_IN_FIFO;
CSL_AUDVOC_Drv_t *audDrv = NULL;
UInt32 streamID = CSL_AUDVOC_STREAM_NONE;
Log_DebugPrintf(LOGID_SOC_AUDIO, "csl_audvoc_capture_init:: \n");
if (source == CSL_AUDVOC_DEV_CAPTURE_BTW)
srcClient = OSDAL_DMA_CLIENT_AUDIO_WB_MIXERTAP;
// Get DMA channel
if(OSDAL_DMA_Obtain_Channel(srcClient, OSDAL_DMA_CLIENT_MEMORY, &dmaChAudio) != OSDAL_ERR_OK)
{
Log_DebugPrintf(LOGID_SOC_AUDIO, "csl_audvoc_capture_init:: Error, Obtain channel failed.\n");
return CSL_AUDVOC_STREAM_NONE;
}
Log_DebugPrintf(LOGID_SOC_AUDIO, "csl_audvoc_capture_init:: DMA channel for audio path capture 0x%x\n", dmaChAudio);
if (source == CSL_AUDVOC_DEV_CAPTURE_AUDIO)
{
streamID = CSL_AUDVOC_STREAM_AUDIO;
}
else if (source == CSL_AUDVOC_DEV_CAPTURE_BTW)
{
streamID = CSL_AUDVOC_STREAM_BTW;
}
else
{
return streamID;
}
audDrv = GetDriverByType (streamID);
if (audDrv == NULL)
return CSL_AUDVOC_STREAM_NONE;
memset(audDrv, 0, sizeof(CSL_AUDVOC_Drv_t));
audDrv->streamID = streamID;
audDrv->source = source;
audDrv->sink = sink;
audDrv->dmaCH = dmaChAudio;
return audDrv->streamID;
}
示例8: EEM_RegisterRecvCb
void EEM_RegisterRecvCb(eem_cb_t *cbs)
{
if(!cbs)
{
Log_DebugPrintf(LOGID_SYSEEMRPC, "EEM_RegisterRecvCb NULL cbs");
return;
}
memcpy(&sEemCb, cbs, sizeof(eem_cb_t));
}
示例9: AudioParmAccessor
static SysAudioParm_t* AudioParmAccessor(UInt32 app,UInt32 mode)
{
SysAudioParm_t* parm_ptr;
SysAudioParm_t** p_parm_ptr;
Log_DebugPrintf(LOGID_AUDIO,"\n app - %d mode - %d\n",app,mode);
parm_ptr = SYSPARM_GetExtAudioParmAccessPtr(app);
p_parm_ptr =(SysAudioParm_t**)parm_ptr;
Log_DebugPrintf(LOGID_AUDIO,"\n volume_max - %d\n",p_parm_ptr[0][mode].voice_volume_max);
Log_DebugPrintf(LOGID_AUDIO,"\n ext_speaker_pga - %d\n",p_parm_ptr[0][mode].ext_speaker_pga);
return &p_parm_ptr[0][mode];
}
示例10: AUDIO_DRIVER_UpdateBuffer
//============================================================================
//
// Function Name: AUDIO_DRIVER_UpdateBuffer
//
// Description: This function is used to update the buffer indexes
//
//============================================================================
void AUDIO_DRIVER_UpdateBuffer (AUDIO_DRIVER_HANDLE_t drv_handle,
UInt8* pBuf,
UInt32 nBufSize,
UInt32 nCurrentIndex,
UInt32 nSize)
{
Log_DebugPrintf(LOGID_AUDIO,"AUDIO_DRIVER_UpdateBuffer:: \n" );
return;
}
示例11: csl_audio_render_init
// ==========================================================================
//
// Function Name: csl_audvoc_render_init
//
// Description: Init the audio path render
//
// =========================================================================
UInt32 csl_audio_render_init (CSL_AUDIO_DEVICE_e source, CSL_AUDIO_DEVICE_e sink)
{
OSDAL_DMA_CLIENT dstClient = OSDAL_DMA_CLIENT_AUDIO_OUT_FIFO;
CSL_AUDVOC_Drv_t *audDrv = NULL;
UInt32 streamID = CSL_AUDVOC_STREAM_NONE;
if (sink == CSL_AUDVOC_DEV_RENDER_POLYRINGER)
dstClient = OSDAL_DMA_CLIENT_POLYRING_OUT_FIFO;
// Get DMA channel
if(OSDAL_DMA_Obtain_Channel(OSDAL_DMA_CLIENT_MEMORY, dstClient, &dmaChAudio) != OSDAL_ERR_OK)
{
Log_DebugPrintf(LOGID_SOC_AUDIO, "csl_audvoc_render_init:: Error, Obtain channel failed.\n");
return CSL_AUDVOC_STREAM_NONE;
}
Log_DebugPrintf(LOGID_SOC_AUDIO, "csl_audvoc_render_init:: DMA channel for audio path render 0x%x\n", dmaChAudio);
if (sink == CSL_AUDVOC_DEV_RENDER_AUDIO)
{
streamID = CSL_AUDVOC_STREAM_AUDIO;
}
else if (sink == CSL_AUDVOC_DEV_RENDER_POLYRINGER)
{
streamID = CSL_AUDVOC_STREAM_POLYRINGER;
}
else
{
return streamID;
}
audDrv = GetDriverByType (streamID);
if (audDrv == NULL)
return CSL_AUDVOC_STREAM_NONE;
memset(audDrv, 0, sizeof(CSL_AUDVOC_Drv_t));
audDrv->streamID = streamID;
audDrv->source = source;
audDrv->sink = sink;
audDrv->dmaCH = dmaChAudio;
return audDrv->streamID;
}
示例12: AUDIO_DRIVER_CaptureFMCallback
//============================================================================
//
// Function Name: AUDIO_DRIVER_CaptureFMCallback
//
// Description: This function processes the callback from the dma
//
//============================================================================
static Boolean AUDIO_DRIVER_CaptureFMCallback(Boolean ok)
{
//Log_DebugPrintf(LOGID_AUDIO,"AUDIO_DRIVER_CaptureFMCallback::\n");
if((audio_capture_driver == NULL))
{
Log_DebugPrintf(LOGID_AUDIO, "AUDIO_DRIVER_CaptureFMCallback:: Spurious call back\n");
return 0;
}
if(audio_capture_driver->pCallback != NULL)
{
audio_capture_driver->pCallback(audio_capture_driver);
}
else
Log_DebugPrintf(LOGID_AUDIO, "AUDIO_DRIVER_CaptureFMCallback:: No callback registerd\n");
return 0;
}
示例13: AUDIO_DRIVER_RenderDmaCallback
static void AUDIO_DRIVER_RenderDmaCallback(UInt32 stream_id)
{
//Log_DebugPrintf(LOGID_AUDIO,"AUDIO_DRIVER_RenderDmaCallback::\n");
if((audio_render_driver == NULL))
{
Log_DebugPrintf(LOGID_AUDIO, "AUDIO_DRIVER_RenderDmaCallback:: Spurious call back\n");
return;
}
if(audio_render_driver->pCallback != NULL)
{
audio_render_driver->pCallback(audio_render_driver);
}
else
Log_DebugPrintf(LOGID_AUDIO, "AUDIO_DRIVER_RenderDmaCallback:: No callback registerd\n");
return;
}
示例14: CheckBufDoneUponStop
// ==========================================================================
//
// Function Name: CheckBufDoneUponStop
//
// Description: Check if there is a pending buffer done CB when we are stopping
//
// =========================================================================
static void CheckBufDoneUponStop (VORENDER_Drv_t *audDrv)
{
// If a buffer has been copied to driver queue and bufDoneCB is not called,
// we need to call the buffer done
if (audDrv->srcBufCopied < audDrv->srcBufSize)
{
Log_DebugPrintf(LOGID_SOC_AUDIO, "%s Catch a pending bufDoneCB! total buffer size 0x%x, copied buffer size 0x%x.", __FUNCTION__, audDrv->srcBufSize, audDrv->srcBufCopied);
audDrv->bufDoneCb (audDrv->srcBuf, audDrv->srcBufCopied, audDrv->drvType);
}
}
示例15: AUDDRV_SetEquType
void AUDDRV_SetEquType(
AUDDRV_TYPE_Enum_t path,
AudioEqualizer_en_t equ_id
)
{
#if ( defined(FUSE_DUAL_PROCESSOR_ARCHITECTURE) && defined(FUSE_APPS_PROCESSOR) )
sEqualizerType = equ_id;
Log_DebugPrintf(LOGID_AUDIO, " AUDDRV_SetEquType (AP) %d \n\r", sEqualizerType);
audio_control_generic( AUDDRV_CPCMD_WRITE_AUDVOC_AEQMODE, (UInt32) equ_id, 0, 0, 0, 0 );
#else
SysCalDataInd_t* pSysparm;
pSysparm = SYSPARM_GetAudioParmAccessPtr();
sEqualizerType = equ_id;
Log_DebugPrintf(LOGID_AUDIO, " AUDDRV_SetEquType (CP) %d \n\r", sEqualizerType);
// CP: update audvoc_aeqMode in sysinterface/dsp/audio/audioapi.c
AUDIO_SetAudioParam( PARAM_AUDVOC_AEQMODE, (void *) & sEqualizerType );
//set these parameters
AUDDRV_SetFilter( AUDDRV_AEQPATHGAIN, (const UInt16 *)& pSysparm->AUDVOC_AEQPATHGAIN[ sEqualizerType ][0] );
AUDDRV_SetFilter( AUDDRV_AEQ, (const UInt16 *)& pSysparm->AUDVOC_AEQCOF[ sEqualizerType ][0] );
AUDDRV_SetFilter( AUDDRV_PEQPATHGAIN, (const UInt16 *)& pSysparm->AUDVOC_PEQPATHGAIN[ sEqualizerType ][0] );
AUDDRV_SetFilter( AUDDRV_PEQ, (const UInt16 *)& pSysparm->AUDVOC_PEQCOF[ sEqualizerType ][0] );
//AUDDRV_SetFilter( AUDDRV_PEQPATHOFST, (const UInt16 *)& pSysparm->AUDVOC_PEQCOF[ sEqualizerType ][0] );
//to remove this after the sys parm are readable at AP
AUDDRV_SetFilter( AUDDRV_AFIR, (const UInt16 *) & SYSPARM_GetAudioParmAccessPtr()->AUDVOC_ADAC_FIR[0] );
Log_DebugPrintf(LOGID_AUDIO, " AUDDRV_SetEquType (CP) FIR [0] %x, [32] %x, [33] %x \n\r",
SYSPARM_GetAudioParmAccessPtr()->AUDVOC_ADAC_FIR[0],
SYSPARM_GetAudioParmAccessPtr()->AUDVOC_ADAC_FIR[32],
SYSPARM_GetAudioParmAccessPtr()->AUDVOC_ADAC_FIR[33]
);
#endif
}