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

📄 wm8971.h

📁 声音播放器新片驱动
💻 H
字号:
#ifndef _WM8971_H
#define _WM8971_H

#define WM8971_LINVOL	0x00
#define WM8971_RINVOL	0x01
#define WM8971_LOUT1V	0x02
#define WM8971_ROUT1V	0x03
#define WM8971_ADCDAC	0x05
#define WM8971_AUDIO	0x07
#define WM8971_SRATE	0x08
#define WM8971_LDAC		0x0a
#define WM8971_RDAC		0x0b
#define WM8971_BASS		0x0c
#define WM8971_TREBLE	0x0d
#define WM8971_RESET	0x0f
#define WM8971_ALC1		0x11
#define	WM8971_ALC2		0x12
#define	WM8971_ALC3		0x13
#define WM8971_NGATE	0x14
#define WM8971_LADC		0x15
#define WM8971_RADC		0x16
#define	WM8971_ADCTL1	0x17
#define	WM8971_ADCTL2	0x18
#define WM8971_PWR1		0x19
#define WM8971_PWR2		0x1a
#define	WM8971_ADCTL3	0x1b
#define WM8971_ADCIN	0x1f
#define	WM8971_LADCIN	0x20
#define	WM8971_RADCIN	0x21
#define WM8971_LOUTM1	0x22
#define WM8971_LOUTM2	0x23
#define WM8971_ROUTM1	0x24
#define WM8971_ROUTM2	0x25
#define WM8971_MOUTM1	0x26
#define WM8971_MOUTM2	0x27
#define WM8971_LOUT2V	0x28
#define WM8971_ROUT2V	0x29
#define WM8971_MOUTV	0x2A

#define GPIO_ALT_FN_1_IN	0x100#define GPIO_ALT_FN_1_OUT	0x180#define GPIO_ALT_FN_2_IN	0x200#define GPIO_ALT_FN_2_OUT	0x280#define GPIO_ALT_FN_3_IN	0x300#define GPIO_ALT_FN_3_OUT	0x380

#define GPIO28_BITCLK_AC97_MD	(28 | GPIO_ALT_FN_1_IN)#define GPIO28_BITCLK_I2S_MD	(28 | GPIO_ALT_FN_2_IN)#define GPIO29_SDATA_IN_AC97_MD	(29 | GPIO_ALT_FN_1_IN)#define GPIO29_SDATA_IN_I2S_MD	(29 | GPIO_ALT_FN_2_IN)#define GPIO30_SDATA_OUT_AC97_MD	(30 | GPIO_ALT_FN_2_OUT)#define GPIO30_SDATA_OUT_I2S_MD	(30 | GPIO_ALT_FN_1_OUT)#define GPIO31_SYNC_AC97_MD	(31 | GPIO_ALT_FN_2_OUT)#define GPIO31_SYNC_I2S_MD	(31 | GPIO_ALT_FN_1_OUT)


/* Voice DAC sample rates */#define WM8971_VD8K		(0x6 << 6)#define WM8971_VD12K	(0x5 << 6)#define WM8971_VD16K	(0x2 << 6)#define WM8971_VD24K	(0x4 << 6)#define WM8971_VD48K	(0x0 << 6)
/* Hifi ADC/DAC sample rates */#define WM8971_A8D8		0x0006#define WM8971_A8D48	0x0004#define WM8971_A12D12	0x0008#define WM8971_A16D16	0x000a#define WM8971_A24D24	0x001c#define WM8971_A32D32	0x000c#define WM8971_A48D8	0x0002#define WM8971_A48D48	0x0000#define WM8971_A96D96	0x000e

struct wm8971_mixer_t {	int dev_mixer;};
#endif

⌨️ 快捷键说明

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