| /****************************************************************************** |
| * |
| * (C)Copyright 2022 ASRMicro. All Rights Reserved. |
| * |
| * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ASRMicro. |
| * The copyright notice above does not evidence any actual or intended |
| * publication of such source code. |
| * This Module contains Proprietary Information of ASRMicro and should be |
| * treated as Confidential. |
| * The information in this file is provided for the exclusive use of the |
| * licensees of ASRMicro. |
| * Such users have the right to use, modify, and incorporate this code into |
| * products for purposes authorized by the license agreement provided they |
| * include this notice and the associated copyright notice with any such |
| * product. |
| * The information in this file is provided "AS IS" without warranty. |
| * |
| ******************************************************************************/ |
| |
| |
| /****************************************************************************** |
| * MODULE IMPLEMENTATION FILE |
| ******************************************************************************* |
| * Title: APIs in use spacer for ADSP in AP subsystem |
| * |
| * Filename: audio_dsp.h |
| * |
| * Authors: Yjg Wang |
| * |
| * Description: Header file for ADSP. |
| * |
| * Last Updated: |
| * |
| * Notes: |
| ******************************************************************************/ |
| |
| |
| /****************************************************************************** |
| * Macro definitions |
| ******************************************************************************/ |
| #ifndef __AUDIO_DSP_H__ |
| #define __AUDIO_DSP_H__ |
| |
| #ifdef __cplusplus |
| extern "C" { |
| #endif |
| |
| #ifdef TARGET_mmp_asr1901_KSTR901 |
| |
| |
| /****************************************************************************** |
| * Include files |
| ******************************************************************************/ |
| #include "AuC.h" |
| |
| |
| /****************************************************************************** |
| * Macro definitions |
| ******************************************************************************/ |
| #define VOICE_START_COMMAND_LENGTH 7 |
| #define ADSP_SET_COMMAND_LENGTH 32 |
| |
| |
| /****************************************************************************** |
| * Data structure definitions |
| ******************************************************************************/ |
| typedef struct { |
| unsigned short opCode; |
| unsigned short cmdLength; |
| unsigned short *cmdData; |
| }IPC_Command; |
| |
| |
| /****************************************************************************** |
| * Global function definitions |
| ******************************************************************************/ |
| extern int audio_dsp_init(void); |
| extern int audio_dsp_enable(void); |
| extern int audio_dsp_disable(void); |
| extern void audio_dsp_exit(void); |
| extern int audio_dsp_set(char *cmd); |
| extern int audio_dsp_send_ve(void *ve); |
| extern int audio_dsp_dump_full_ddr(unsigned int val); |
| extern int vpathStart(unsigned int voiceControl, |
| unsigned short voiceAuxMode, |
| unsigned short vocoderType, |
| unsigned short encoderMode, |
| unsigned short voiceTestControl, |
| unsigned short dtxFlag); |
| extern int vpathStop(void); |
| |
| |
| /****************************************************************************** |
| * End |
| ******************************************************************************/ |
| #endif |
| |
| #ifdef __cplusplus |
| } |
| #endif |
| |
| #endif //__AUDIO_DSP_H__ |