日期:2014-05-16  浏览次数:20706 次

请教下linux下wm8731驱动的问题
我用madplay播放mp3,没有声音,程序没出错

这是我的调试信息

Entered smdk2416_hifi_hw_params, rate = 44100
clkiis=66666666,cdclk=5 
 cdclk shuold be 11289600
i2s_fmt iismod is 200
s3c2xx_i2s_set_clkdiv iispsr is 8500
s3c2xx_i2s_set_clkdiv iispsr is 8500
s3c2xx_i2s_set_clkdiv iispsr is 8500
s3c24xx_hw_params iismod: 200 iiscon c606 iisfcon 0
wm8731_reg[0] is 97
wm8731_reg[1] is 97
wm8731_reg[2] is 79
wm8731_reg[3] is 79
wm8731_reg[4] is 2
wm8731_reg[5] is 8
wm8731_reg[6] is 7f
wm8731_reg[7] is 2
wm8731_reg[8] is 20
wm8731_reg[9] is 1
mute is 0
wm8731_reg[0] is 97
wm8731_reg[1] is 97
wm8731_reg[2] is 79
wm8731_reg[3] is 79
wm8731_reg[4] is 2
wm8731_reg[5] is 0
wm8731_reg[6] is 7f
wm8731_reg[7] is 2
wm8731_reg[8] is 20
wm8731_reg[9] is 1
mute is 0
s3c2410_start_dma: channel=0s, 44100 Hz, joint stereo (MS), no CRC
dmareg is 3398189c
 00:00:13 Layer III, 128 kbps, 44100 Hz, joint stereo (LR), no CRC

我的iis的clk是 66 Mhz
用示波器检测出 wm8731的LRCLK 43 Khz  
  BCLK 1.33Mhz
  MCLK 11.11Mhz
  DACDAT 200~690Khz  
   
  RHPOUT
  LHPOUT 都没有输出


有谁知道原因吗 困扰我好久了 求大侠帮忙  



------解决方案--------------------
你寄存器都设置成那样了 能出声才怪!