2008-03-20 05:26:46     WM8731 soc audio driver

Document created by Aaronwu Employee on Aug 7, 2013
Version 1Show Document
  • View in full screen mode

2008-03-20 05:26:46     WM8731 soc audio driver

Zhi Qiang Zhang (CHINA)

Message: 52825    I build the WM8731 driver, but I haven't had a WM8731 chipset. I tested the driver without the WM8731, do you think is that OK? I think it should be ok, because it just control the SPI and SPORT in BF531, I must can get something from that 2 ports, right?

 

I used a logic analyzers connect to the SPI and SPORT, when I play a song, 'mplay a.mp3', I got the SPI data, but nothing in SPORT, what is wrong?

 

I am using the svn version 4396.

 

root:/> mp3play a.mp3

sport-i2s: bf5xx_i2s_startup : sport 0

bf5xx_pcm_open

bfin-wm8731: bf5xx_wm8731_startup

a.mp3: MPEG1bIII (10032 ms)fin-wm8731: bf5xx_wm8731_hw_params rate 44100 format 2

 

sport-i2s: bf5xx_i2s_set_tx_dai_fmt : fmt 0, id 0

sport-i2s: bf5xx_i2s_set_rx_dai_fmt : fmt 0

sport-i2s: bf5xx_i2s_tx_hw_params : sport 0, format 2

bfin-wm8731: bf5xx_wm8731_hw_params rate 44100 format 2

sport-i2s: bf5xx_i2s_set_tx_dai_fmt : fmt 0, id 0

sport-i2s: bf5xx_i2s_set_rx_dai_fmt : fmt 0

sport-i2s: bf5xx_i2s_tx_hw_params : sport 0, format 2

bfin-wm8731: bf5xx_wm8731_hw_params rate 44100 format 2

sport-i2s: bf5xx_i2s_set_tx_dai_fmt : fmt 0, id 0

sport-i2s: bf5xx_i2s_set_rx_dai_fmt : fmt 0

sport-i2s: bf5xx_i2s_tx_hw_params : sport 0, format 2

bf5xx_pcm_prepare

sport_config_tx_dma

sport-i2s: bf5xx_i2s_tx_prepare : sport 0, addr 1c62760

sport_config_tx

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 1

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 0

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 1

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 0

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 1

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 0

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 1

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 0

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 1

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 0

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 1

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 0

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 1

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 0

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 1

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 0

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 1

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 0

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 1

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 0

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 1

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 0

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 1

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 0

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 1

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 0

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 1

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 0

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 1

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 0

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 1

sport-i2s: bf5xx_i2s_tx_trigger : sport 0 cmd 0

 

the program will  not terminate before Ctrl+C.

 

root:/proc/asound/card0/pcm0p/sub0> ls

hw_params  info       status     sw_params

root:/proc/asound/card0/pcm0p/sub0> cat status

state: PREPARED

trigger_time: 0.000000000

tstamp      : 1096841323.228000000

delay       : 0

avail       : 0

avail_max   : 0

-----

hw_ptr      : 0

appl_ptr    : 8192

root:/proc/asound/card0/pcm0p/sub0>

 

root:/proc/asound/card0/pcm0p/sub0> cat hw_params

access: RW_INTERLEAVED

format: S16_LE

subformat: STD

channels: 2

rate: 44100 (44100/1)

period_size: 512

buffer_size: 8192

tick_time: 4000

OSS format: S16_LE

OSS channels: 2

OSS rate: 44100

OSS period bytes: 2048

OSS periods: 16

OSS period frames: 512

root:/proc/asound/card0/pcm0p/sub0>

 

 

root:/> cat /proc/interrupts

  6:      43032   Blackfin Core Timer

10:          0   SPORT err

16:          0   SPORT RX Data

17:          0   SPORT TX Data

21:          0   BFIN_UART_RX

22:       5710   BFIN_UART_TX

Err:          0

root:/>

 

 

Regards,

ZhangZQ

QuoteReplyEditDelete

 

 

2008-04-23 04:44:44     Re: WM8731 soc audio driver

Boy Free (AFGHANISTAN)

Message: 54771   

 

i meet the same error

 

when i run "mp3play  1.mp3" ,the device can not stop unless i use "CTrl +C".

 

the sport has no BCLK signal out.

 

when i use cat ,the result  is  below:

 

root:/proc/asound/card0/pcm0p/sub0> ls

hw_params  info       status     sw_params

root:/proc/asound/card0/pcm0p/sub0> cat status

 

closed

 

root:/proc/asound/card0/pcm0p/sub0> cat hw_params

closed

 

why is closed?

 

can you tell me how you deal?

 

thanks

QuoteReplyEditDelete

 

 

2008-07-03 00:17:27     Re: WM8731 soc audio driver

Sonic Zhang (CHINA)

Message: 58241   

 

Please only use and refer to the ssm2602 driver for bf527c chip. We don't have wm8731, never test it and have no plan to support by now.

Attachments

    Outcomes