⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 audio.h

📁 pxa270 的bootloader源码
💻 H
字号:
/******************************************************************************
**
**  COPYRIGHT (C) 2000, 2001 Intel Corporation.
**
**  This software as well as the software described in it is furnished under 
**  license and may only be used or copied in accordance with the terms of the 
**  license. The information in this file is furnished for informational use 
**  only, is subject to change without notice, and should not be construed as 
**  a commitment by Intel Corporation. Intel Corporation assumes no 
**  responsibility or liability for any errors or inaccuracies that may appear 
**  in this document or any software that may be provided in association with 
**  this document. 
**  Except as permitted by such license, no part of this document may be 
**  reproduced, stored in a retrieval system, or transmitted in any form or by 
**  any means without the express written consent of Intel Corporation. 
**
**  FILENAME:       audio.h
**
**  PURPOSE:        This is the header file for the audio test.
**
**  LAST MODIFIED:  $Modtime: 6/11/01 1:26p $
******************************************************************************/

#ifndef _audio_h_
#define _audio_h_

#define BUSY                    1
#define AVAILABLE               0
#define CLEAR_BIT               0
#define SET_BIT                 1
#define SUCCESS                 1
#define ERR_DEVICE_BUSY         2

//mask definitions for Ac97GlobalControlRegister
#define AC97GCR_GIE             0x00000001
#define AC97GCR_ColdReset       0x00000002

// mask definitions for te CodecAccessRegister
#define AC97CAR_CAIP            0x00000001

//mask definitions for the Global Status Register
#define AC97GSR_CDONE                   (0x00000001U << 19U)
#define AC97GSR_SDONE                   (0x00000001U << 18U)
#define AC97GSR_READ_COMPLETION_STATUS  (0x00000001U << 15U)
#define AC97GSR_PCR                     (0x00000001U << 8U)

#define XMT_BUSY_LOOPS         0x20000000
#define MAX_AUDIO_TEST_SAMPLES 16

struct waveChunk 
{
  int len;
  short fmt;        // 1 = pcm
  short mono;       // channels 1=mono 2=stereo
  int rate;         // samples per second
  int bytesPerSec;  // rate * block align
  short blockAlign; // channels * bits/sample /8
  short bits;       // 8 or 16
};

struct dataHunk 
{
  char name[4];
  char len[4];
  unsigned char d;
};

/*
*******************************************************************************
*
*    Audio Prototypes
*
*******************************************************************************
*/
extern int AudioTestSetup(VOID);
extern int AudioTest(VOID);

#endif // _audio_h_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -