audio_codec_clock.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*****************************************************************
  2. >file name : audio_codec_clock.h
  3. >create time : Thu 03 Jun 2021 09:36:25 AM CST
  4. *****************************************************************/
  5. #ifndef _AUDIO_CODEC_CLOCK_H_
  6. #define _AUDIO_CODEC_CLOCK_H_
  7. #include "audio_base.h"
  8. enum {
  9. AUDIO_A2DP_MODE = 0,
  10. AUDIO_ESCO_MODE,
  11. AUDIO_TONE_MODE,
  12. AUDIO_MIC2PCM_MODE,
  13. AUDIO_KWS_MODE,
  14. AUDIO_MAX_MODE,
  15. };
  16. /*************************************************************************
  17. * 音频编解码时钟设置
  18. *
  19. * Input : mode - 音频模式,coding_type - 模式下的解码格式
  20. * preemption - 打断/叠加.
  21. * Output : 0 - 成功, 非0 - 出错.
  22. * Notes : 目前在耳机SDK用于A2DP/ESCO/TONE三个模式的时钟切换.
  23. * History : 2021/06/03 初始版本
  24. *=======================================================================*/
  25. int audio_codec_clock_set(u8 mode, u32 coding_type, u8 preemption);
  26. /*************************************************************************
  27. * 音频编解码时钟删除
  28. *
  29. * Input : mode - 音频模式
  30. * Output : 无.
  31. * Notes : 需和audio_codec_clock_set结对使用.
  32. * History : 2021/06/03 初始版本
  33. *=======================================================================*/
  34. void audio_codec_clock_del(u8 mode);
  35. #endif