2010-05-27 09:55:10     BF537 SSM2602 audio don't play

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

2010-05-27 09:55:10     BF537 SSM2602 audio don't play

Yaroslav Veulk (UKRAINE)

Message: 89917   

 

Configured 2009R1.1-RC4 according to  docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:ssm2602 . Also installed alsa-utils. Everything compiles without problems (only errors are some Examples missing with "error(ignored)" messages).

 

When trying "speaker-test" or "tone" or "aplay" they don't start playing without any error messages.

 

I mean that speaker-test shoud display something like:

 

 

 

«...

Using max buffer size 8916

Periods = 4

was set period_size = 1114

was set buffer_size = 8916

0 - Front Left»

 

but the last line it shows is:

«Using max buffer size»

without actual number. Other tools don't play sounds too. Any ideas what's wrong or how to debug this problem?

 

P.S.

Advanced Linux Sound Architecture Driver Version 1.0.18rc3.

ASoC version 0.13.2

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

ssm2602 Audio Codec 0.1<6>dma_alloc_init: dma_page @ 0x02368000 - 256 pages at 0x03f00000

asoc: SSM2602 <-> bf5xx-i2s mapping ok

ALSA device list:

  #0: bf5xx_ssm2602 (SSM2602)

 

P.P.S. Right now i have problems with serial-port acces, so I'm running this tools through rsh. Can this be the source of problem?

I have checked volume it's 95% for "Master"

 

QuoteReplyEditDelete

 

 

2010-05-27 18:50:18     Re: BF537 SSM2602 audio don't play

Mike Frysinger (UNITED STATES)

Message: 89928   

 

what exactly do you see when you run `tone` ?

 

what hardware platform exactly are you using ?

QuoteReplyEditDelete

 

 

2010-05-30 10:00:13     Re: BF537 SSM2602 audio don't play

Yaroslav Veulk (UKRAINE)

Message: 90004   

 

` tone` just gives empty newline.

 

The system is mostly close to STAMP board with SSM on SPORT0

 

The biggest problem is that I have no Ideas how to figure out what's wrong

QuoteReplyEditDelete

 

 

2010-06-01 08:02:27     Re: BF537 SSM2602 audio don't play

Yaroslav Veulk (UKRAINE)

Message: 90046   

 

I have solved problems with serial port.. Now I can see error:

 

 

 

root:/> tone

TONE: generating sine wave at 1000 Hz...

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

 

 

 

here are some additional info:

 

root:/> cat /proc/asound/cards

0 [bf5xxssm2602   ]: SSM2602 - bf5xx_ssm2602

                      bf5xx_ssm2602 (SSM2602)

root:/> ls -la /dev/dsp

crw-rw----    1 root     root      14,   3 Jan  1 00:03 /dev/dsp

root:/> alsaconf

alsaconf: not found

QuoteReplyEditDelete

 

 

2010-06-01 22:09:20     Re: BF537 SSM2602 audio don't play

Cliff Cai (CHINA)

Message: 90054   

 

errno 5 (I/O error)means there is still some hardware connecting problem.

 

 

 

Cliff

QuoteReplyEditDelete

 

 

2010-06-28 01:59:08     Re: BF537 SSM2602 audio don't play

Yaroslav Veulk (UKRAINE)

Message: 90663   

 

I have found that codec now assumes that  CSB pin is set to 1 so device is registered at address 0x1b while I have CSB set to 0 on my board. I can't change CSB on every new board, so where can I change address?

 

P.S. I have access only to such kind of boards.

 

P.P.S. I have tested my image with changed CSB: everything works, but line-in is somewhy very noisy

 

QuoteReplyEditDelete

 

 

2010-06-28 03:00:51     Re: BF537 SSM2602 audio don't play

Sonic Zhang (CHINA)

Message: 90666   

 

You should change its I2C address definition in the bf537 board file.

 

arch/blackfin/mach-bf537/board/stamp.c

QuoteReplyEditDelete

 

 

2010-06-28 04:28:47     Re: BF537 SSM2602 audio don't play

Yaroslav Veulk (UKRAINE)

Message: 90672   

 

Thanks for help.

Attachments

    Outcomes