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

📄 codec.h

📁 samsung 最新芯片2450 的测试程序.
💻 H
字号:
#ifndef __CODEC_H__
#define __CODEC_H__


//defines
#define L3C (1<<2)	// GPG2 = L3CLOCK
#define L3D (1<<1)	// GPG1 = L3DATA 
#define L3M (1<<0)	// GPG0 = L3MODE


#define WM8580_ID_WR (0x36)		// Chip Write ID, Device Address[7Bit] +RD/WR[1Bit] 
#define WM8580_ID_RD (0x37)		// Chip Read ID, Device Address[7Bit] +RD/WR[1Bit] 

#define WM8753_ID_WR (0x34)		// Chip Write ID, Device Address[7Bit] +RD/WR[1Bit] 
#define WM8753_ID_RD (0x35)		// Chip Read ID, Device Address[7Bit] +RD/WR[1Bit] 


//GPE0~4
#define INTERFACE_PORTNUM_IN	0
#define INTERFACE_PORTNUM_OUT	1
#define INTERFACE_PORTNUM_I2S0	2
#define INTERFACE_PORTNUM_AC97	3



//ac97 codec
#define STAC9767					1
#define AC97WM9713					2


//i2s codec
#define	WM_8450						3
#define	WM8580						WM_8450
#define WM8753						5	

//pcm codec
#define AK2430						4		//SMDK board has not this CODEC
#define WM9713						AC97WM9713		//There is some noise in WM9713 ADC Path 
#define WM9714						WM9713	//identically same with 9713 in sw side
#define PCM_WM8753					WM8753		

//int LineMic
#define CODEC_NOIN		0
#define CODEC_LINEIN		1
#define CODEC_MICIN		2

#ifdef __cplusplus
extern "C" {
#endif


#ifdef __cplusplus
}
#endif

#endif    //__CODEC_H__

⌨️ 快捷键说明

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