📄 drvauadvsnd.h
字号:
////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2006-2007 MStar Semiconductor, Inc.
// All rights reserved.
//
// Unless otherwise stipulated in writing, any and all information contained
// herein regardless in any format shall remain the sole proprietary of
// MStar Semiconductor Inc. and be kept in strict confidence
// (¨MStar Confidential Information〃) by the recipient.
// Any unauthorized act including without limitation unauthorized disclosure,
// copying, use, reproduction, sale, distribution, modification, disassembling,
// reverse engineering and compiling of the contents of MStar Confidential
// Information is unlawful and strictly prohibited. MStar hereby reserves the
// rights to any and all damages, losses, costs and expenses resulting therefrom.
//
////////////////////////////////////////////////////////////////////////////////
#ifndef _AUADVSND_H_
#define _AUADVSND_H_
#ifdef _AUCOMMON_C_
#define _AUCOMMON_DECLAIM_
#else
#define _AUCOMMON_DECLAIM_ extern
#endif
// Common
#include <stdio.h>
#include "Analog_DataType.h"
#include "board.h"
#include "drvtimer.h"
#include "drvvop.h"
#include "sysinfo.h"
// Audio Internal Options
#define USE_AUDIO_FPGA 0
#define USE_PAULO_FIRMWARE 1 // 0: Desker's firmware
// 1: Paulo's firmware
#define USE_SATURN_FIRMWARE 1
#define DSP_IDMA_CHK_READY 1
#define AUD_DSP_DMA_LOADCODE 1
// Audio define
#define AUD_CHK_DSP_READ_RDY 0x08
#define AUD_CHK_DSP_WRITE_RDY 0x10
#define BASE_ADDR 0x90000
#if (USE_SATURN_FIRMWARE==1)
#define BK0_00 0x00
#define XDATA xdata
#endif
typedef struct
{
U16 cm_addr;
U16 cm_len;
U16 cm_buf;
//U8 *cm_buf;
U16 pm_addr;
U16 pm_len;
U16 pm_buf;
//U8 *pm_buf;
U16 cache_addr;
U16 cache_len;
U16 cache_buf;
//U8 *cache_buf;
U16 prefetch_addr;
U16 prefetch_len;
U16 prefetch_buf;
//U8 *prefetch_buf;
char *AlgName;
} AUDIO_ASE_INFO, *PAUDIO_ASE_INFO;
_AUCOMMON_DECLAIM_ BYTE MDrv_AuReadByte(U16 addr);
_AUCOMMON_DECLAIM_ void MDrv_AuWriteByte(U16 addr, BYTE value);
_AUCOMMON_DECLAIM_ void MDrv_AuWriteMaskByte(U16 addr, BYTE mask, BYTE value);
_AUCOMMON_DECLAIM_ void MDrv_AuAlgLoadCode(AUDIO_ALG_INFO *pau_info);
_AUCOMMON_DECLAIM_ BOOL MDrv_AuAlgReloadCode(AUDIO_ALG_INFO *pau_info);
_AUCOMMON_DECLAIM_ BOOL MDrv_AuDspLoadCodeSegment(WORD dsp_addr, BYTE code *dspCode_buf, WORD dspCode_buflen);
_AUCOMMON_DECLAIM_ BOOL MDrv_AuDspLoadCodeSegment_DMA(WORD dsp_addr, LONG32_BYTE flashCodeAddr, WORD dspCode_buflen);
_AUCOMMON_DECLAIM_ BOOL MDrv_AuDspVerifySegmentCode(WORD dsp_addr, BYTE code *dspCode_buf, WORD dspCode_buflen);
_AUCOMMON_DECLAIM_ BOOL MDrv_AuDSP_chkIdamReady( BYTE IdmaChk_type );
_AUCOMMON_DECLAIM_ BOOL MDrv_AuProcessLoadCode(AUDIO_ALG_INFO *pau_info);
_AUCOMMON_DECLAIM_ BOOL MDrv_AuAseReloadCode(AUDIO_ASE_INFO *pau_info);
#endif //_AUADVSND_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -