资料介绍
MTK最新驱动总结091008
1.配置GPIO 并初始化
• gpio_drv.c内的void GPIO_init(void) 进行初始化
1. DRV_WriteReg(GPIO_MODE1,0x0000) 设置模式
2. DRV_Reg(GPIO_DIR1) |= 0x00FF 设置方向
0 GPIOs are configured as input
1. GPIOs are configured as output
2.audio_pa配置
音频对应Driver部分主要需要留意以下三支档案:
afe.c AMP gpo setting
audcoeff.c 首先需要注意是的output
channel的配置,配置错误将出现没有声音的现象。(见audio_驱动.pdf)
此文件需要注意output channel 、 FIR setting和echo参数的设置
audcoeff_default.h 定义 语音增强参数
nvram_default_audio.c 此文件主要配置各音阶的音量
AUD_VOLUME_CTN :call waiting tone, error tone, warning tone
AUD_VOLUME_KEY :keypad tone]
AUD_VOLUME_MIC :microphone input
AUD_VOLUME_FMR :FM radio sound
AUD_VOLUME_SPH :speech sound (during phone call)
AUD_VOLUME_SID :side tone (sound loop-back)
AUD_VOLUM