2010-03-31 10:28:42     AD73311 card configuration problem

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

2010-03-31 10:28:42     AD73311 card configuration problem

Emil Bart (POLAND)

Message: 87925   

 

Hello,

 

I am trying to run the AD73311 on the custom board (similar to stamp BF537 board). We have successfully booted up the uClinux-dist-2009R1-RC6 version.

 

I followed the instruction found in   docs.blackfin.uclinux.org/doku.php?id=hw:cards:ad73311.

 

My actual sound driver configuration is:

 

Linux Kernel Configuration

    Sound  --->

      [M] Sound card support

       Advanced Linux Sound Architecture  --->

        [ ] OSS Sequencer API

        [M] OSS Mixer API

        [M] OSS PCM (digital audio) API

        [*]     OSS PCM (digital audio) API - include pluggin system.

        [*] Support old ALSA API

        [*] Generic sound devices  --->

        [*] SPI sound devices  --->

 

        <M> ALSA for SoC audio support -->

 

        ALSA for SoC audio support -->

        <M> SoC I2S Audio for the ADI BF5xx chip

        <M>     SoC AD73311 Audio support for Blackfin

        (6)     PF pin for AD73311L Chip Select (NEW)

        (0)     Set a SPORT for Sound chip

 

After booting the uClinux, I'm trying to load sound driver using the following commands:

 

~ # modprobe snd-ad73311

 

~ # ASoC version 0.13.2

 

~ #dma rx:3 tx:4, err irq:45, regs:ffc00800

 

~ #dma_alloc_init: dma_page @ 0x00513000 - 256 pages at 0x01f00000

 

~ #asoc: AD73311 <-> bf5xx-i2s mapping ok

 

then

 

~ # modprobe snd-pcm-oss

 

I have problem when running "tone" application. It gives me the following error:

 

 

 

 

~ # tone

 

TONE: generating sine wave at 1000 Hz...

 

playback write error (DMA or IRQ trouble?)

 

playback write error (DMA or IRQ trouble?)

 

playback write error (DMA or IRQ trouble?)

 

and about 30 seconds late I receive

 

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

 

and then "tone" closes automatically.

 

 

Can somebody give me any clue what it means and if my sound configuration is correct.

 

Emil,

QuoteReplyEditDelete

 

 

2010-03-31 10:52:31     Re: AD73311 card configuration problem

Emil Bart (POLAND)

Message: 87926   

 

The result of lsmod command:

 

~ # lsmod

 

 

 

 

snd_pcm_oss 34496 0 - Live 0x01b50000

 

snd_mixer_oss 11620 1 snd_pcm_oss, Live 0x01a90000

 

snd_ad73311 1840 0 - Live 0x01c03000

 

snd_soc_bf5xx_i2s 2136 1 snd_ad73311, Live 0x01b1b000

 

snd_soc_ad73311 1480 1 snd_ad73311, Live 0x003fc800

 

snd_bf5xx_i2s 2672 1 snd_ad73311, Live 0x01b19000

 

snd_soc_core 21572 2 snd_soc_ad73311,snd_bf5xx_i2s, Live 0x01b10000

 

snd_pcm 47104 3 snd_pcm_oss,snd_bf5xx_i2s,snd_soc_core, Live 0x01ac0000

 

snd_timer 14524 1 snd_pcm, Live 0x01aac000

 

snd 35068 5 snd_pcm_oss,snd_mixer_oss,snd_soc_core,snd_pcm,snd_timer, Live 0x01ad0000

 

soundcore 3852 1 snd, Live 0x01c06000

 

snd_page_alloc 4352 1 snd_pcm, Live 0x019fe000

 

snd_soc_bf5xx_sport 11004 3 snd_ad73311,snd_soc_bf5xx_i2s,snd_bf5xx_i2s, Live 0x018f0000

 

~ #

 

Maybe it is helpfull.

 

Emil,

 

QuoteReplyEditDelete

 

 

2010-04-01 06:18:46     Re: AD73311 card configuration problem

Yi Li (CHINA)

Message: 87978   

 

Emil,

 

We tested ad73311 in out regression test - so the driver should be OK.

 

Could you try to use the latest release 2009R1.1-RC4 kernel and toolchain?

 

Also please check your HW (jumpers, connections).

 

-YI

QuoteReplyEditDelete

 

 

2010-04-02 05:03:54     Re: AD73311 card configuration problem

Emil Bart (POLAND)

Message: 88023   

 

Hello YI,

 

Thanks for your reply.

 

I can confirm that ad73311 driver is working correctly. The problem was related to hardware.

 

The configuration which I described in first post also is working. I have sound on BF536 proccessor :).

 

Emil

Attachments

    Outcomes