blob: 721ebcd52285e1be2cc0a758ab58efcd06867409 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001/******************************************************************************
2*
3* (C)Copyright 2022 ASRMicro. All Rights Reserved.
4*
5* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ASRMicro.
6* The copyright notice above does not evidence any actual or intended
7* publication of such source code.
8* This Module contains Proprietary Information of ASRMicro and should be
9* treated as Confidential.
10* The information in this file is provided for the exclusive use of the
11* licensees of ASRMicro.
12* Such users have the right to use, modify, and incorporate this code into
13* products for purposes authorized by the license agreement provided they
14* include this notice and the associated copyright notice with any such
15* product.
16* The information in this file is provided "AS IS" without warranty.
17*
18******************************************************************************/
19
20
21/******************************************************************************
22* MODULE IMPLEMENTATION FILE
23*******************************************************************************
24* Title: APIs in use spacer for ADSP in AP subsystem
25*
26* Filename: audio_dsp.h
27*
28* Authors: Yjg Wang
29*
30* Description: Header file for ADSP.
31*
32* Last Updated:
33*
34* Notes:
35******************************************************************************/
36
37
38/******************************************************************************
39* Macro definitions
40******************************************************************************/
41#ifndef __AUDIO_DSP_H__
42#define __AUDIO_DSP_H__
43
44#ifdef __cplusplus
45extern "C" {
46#endif
47
48#ifdef TARGET_mmp_asr1901_KSTR901
49
50
51/******************************************************************************
52* Include files
53******************************************************************************/
54#include "AuC.h"
55
56
57/******************************************************************************
58* Macro definitions
59******************************************************************************/
60#define VOICE_START_COMMAND_LENGTH 7
61#define ADSP_SET_COMMAND_LENGTH 32
62
63
64/******************************************************************************
65* Data structure definitions
66******************************************************************************/
67typedef struct {
68 unsigned short opCode;
69 unsigned short cmdLength;
70 unsigned short *cmdData;
71}IPC_Command;
72
73
74/******************************************************************************
75* Global function definitions
76******************************************************************************/
77extern int audio_dsp_init(void);
78extern int audio_dsp_enable(void);
79extern int audio_dsp_disable(void);
80extern void audio_dsp_exit(void);
81extern int audio_dsp_set(char *cmd);
82extern int audio_dsp_send_ve(void *ve);
83extern int audio_dsp_dump_full_ddr(unsigned int val);
84extern int vpathStart(unsigned int voiceControl,
85 unsigned short voiceAuxMode,
86 unsigned short vocoderType,
87 unsigned short encoderMode,
88 unsigned short voiceTestControl,
89 unsigned short dtxFlag);
90extern int vpathStop(void);
91
92
93/******************************************************************************
94* End
95******************************************************************************/
96#endif
97
98#ifdef __cplusplus
99}
100#endif
101
102#endif //__AUDIO_DSP_H__