Files
99_7018_lmx/cpu/br28/audio_codec_clock.h

56 lines
1.8 KiB
C
Raw Normal View History

2025-10-29 13:10:02 +08:00
/*****************************************************************
>file name : audio_codec_clock.h
>create time : Thu 03 Jun 2021 09:36:25 AM CST
*****************************************************************/
#ifndef _AUDIO_CODEC_CLOCK_H_
#define _AUDIO_CODEC_CLOCK_H_
#include "audio_base.h"
enum {
AUDIO_A2DP_MODE = 0,
AUDIO_ESCO_MODE,
AUDIO_TONE_MODE,
AUDIO_FILE_MODE,
AUDIO_PC_MODE,
AUDIO_USB_MIC_MODE,
SMART_VOICE_MODE,
SPATIAL_EFFECT_MODE,
SPEAK_TO_CHAT_MODE,
ANC_EAR_ADAPTIVE_MODE,
ANC_DUT_SZ_FFT_MODE,
AUDIO_MAX_MODE,
};
/*************************************************************************
*
*
* Input : mode - coding_type -
* preemption - /.
* Output : 0 - , 0 - .
* Notes : SDK用于A2DP/ESCO/TONE三个模式的时钟切换.
* History : 2021/06/03
*=======================================================================*/
int audio_codec_clock_set(u8 mode, u32 coding_type, u8 preemption);
/*************************************************************************
*
*
* Input : mode -
* Output : .
* Notes : audio_codec_clock_set结对使用.
* History : 2021/06/03
*=======================================================================*/
void audio_codec_clock_del(u8 mode);
/*************************************************************************
*
*
* Input :
* Output : .
* Notes : 使
* History : 2021/11/18
*=======================================================================*/
void audio_codec_clock_check(void);
#endif