2010-03-18 12:19:53     BF526 to WM8990 Interface

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

2010-03-18 12:19:53     BF526 to WM8990 Interface

Christopher Harrsen (UNITED STATES)

Message: 87416   

 

Hi,

 

I have a custom board with the WM8990 and the BF526. I am trying to communicate with the CODEC but I am having some issues. I have been able to run alsamixer and change codec settings on the WM8990. When I try to run test programs I am getting errors. Can anyone point me in a direction as to where the problems might be? I have attached the config file.

 

Thanks,

root:/> tone

TONE: generating sine wave at 1000 Hz...

ERROR: write(/dev/dsp) failed, errno=5

 

root:/proc/asound> cat card

card0/  cards

root:/proc/asound> cat cards

0 [bf5xxwm8990    ]: WM8990 - bf5xx_wm8990

                      bf5xx_wm8990 (WM8990)

 

root:/proc/asound> cat devices

  2:        : timer

  3:        : sequencer

  4: [ 0- 0]: digital audio playback

  5: [ 0- 0]: digital audio capture

  6: [ 0]   : control

root:/proc/asound>

 

 

root:/> aplay -vv /mnt/vfat/test.wav

Playing WAVE '/mnt/vfat/test.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Stereo

#### wm8990_set_dai_fmt() WM8990_AUDIO_INTERFACE_1[0x4050] WM8990_AUDIO_INTERFACE_3[0x8040]

#### wm8990_set_dai_sysclk() 12000000

#### wm8990_hw_params() WM8990_AUDIO_INTERFACE_1[0x4010]

#### wm8990_set_bias_level()

#### wm8990_set_bias_level()

#### wm8990_mute() WM8990_DAC_CTRL[0x0000]

Plug PCM: Hardware PCM card 0 'bf5xx_wm8990' device 0 subdevice 0

Its setup is:

  stream       : PLAYBACK

  access       : RW_INTERLEAVED

  format       : S16_LE

  subformat    : STD

  channels     : 2

  rate         : 22050

  exact rate   : 22050 (22050/1)

  msbits       : 16

  buffer_size  : 11024

  period_size  : 2756

  period_time  : 124988

  tstamp_mode  : NONE

  period_step  : 1

  avail_min    : 2756

  period_event : 0

  start_threshold  : 11024

  stop_threshold   : 11024

  silence_threshold: 0

  silence_size : 0

  boundary     : 1444937728

####+                                             | 07%aplay: pcm_write:1268: write error: Input/output error

#### wm8990_mute() WM8990_DAC_CTRL[0x0000]

root:/> #### wm8990_set_bias_level()

#### wm8990_set_bias_level()

 

Copy of .config

QuoteReplyEditDelete

 

 

2010-03-18 13:12:01     Re: BF526 to WM8990 Interface

Robin Getz (UNITED STATES)

Message: 87421   

 

Chris:

 

We don't support non-ADI parts - go ask the manufactures of that part for help.

 

-Robin

QuoteReplyEditDelete

 

 

2010-04-01 00:16:15     Re: BF526 to WM8990 Interface

Lars Weber Rasmussen (DENMARK)

Message: 87945   

 

Hi Chris!

 

You need to register the device in board config file,

 

./linux-2.6.x/arch/mach-bf527/board/ezbrd.c

 

/lars

Attachments

Outcomes