[#5654] Gadget audio test sometimes get errors on bf527-ezkit with ssm2603

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

[#5654] Gadget audio test sometimes get errors on bf527-ezkit with ssm2603

Submitted By: Vivi Li

Open Date

2009-11-02 03:54:16    

Priority:

Low     Assignee:

Scott Jiang

Status:

Open     Fixed In Release:

N/A

Found In Release:

2010R1-RC5     Release:

Category:

Drivers     Board:

N/A

Processor:

BF527     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Assigned (Not Start)

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.1-09r1-rc9

App binary format:

N/A     

Summary: Gadget audio test sometimes get errors on bf527-ezkit with ssm2603

Details:

 

Gadget audio test failed on bf527-ezkit with ssm2603 add-on card.

 

--

Linux version 2.6.31.5-ADI-2010R1-pre-svn7738 (test@uclinux63-527-usbdev) (gcc version 4.1.2 (ADI svn)) #24 Mon Nov 2 09:23:09 CST 2009^M

register early platform devices^M

bootconsole [early_shadow0] enabled^M

bootconsole [early_BFuart1] enabled^M

early printk enabled on early_BFuart1^M

Board Memory: 64MB^M

Kernel Managed Memory: 64MB^M

Memory map:^M

  fixedcode = 0x00000400-0x00000490^M

  text      = 0x00001000-0x00157870^M

  rodata    = 0x00157870-0x001cd700^M

  bss       = 0x001ce000-0x001dfd2c^M

  data      = 0x001dfd2c-0x001f6000^M

    stack   = 0x001f4000-0x001f6000^M

  init      = 0x001f6000-0x008f5000^M

  available = 0x008f5000-0x03dff000^M

  DMA Zone  = 0x03e00000-0x04000000^M

Hardware Trace Active and Enabled^M

Boot Mode: 1^M

Reset caused by Software reset^M

Blackfin support (C) 2004-2009 Analog Devices, Inc.^M

Compiled for ADSP-BF527 Rev 0.2^M

Blackfin Linux support by http://blackfin.uclinux.org/^M

Processor Speed: 525 MHz core clock and 131 MHz System Clock^M

NOMPU: setting up cplb tables^M

Instruction Cache Enabled for CPU0^M

  External memory: cacheable in instruction cache^M

Data Cache Enabled for CPU0^M

  External memory: cacheable (write-back) in data cache^M

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 15747^M

Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50 earlyprintk=serial,uart1,57600 console=ttyBF1,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf527-ezkit:eth0:off^M

PID hash table entries: 256 (order: 8, 1024 bytes)^M

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)^M

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)^M

Memory available: 53744k/65536k RAM, (7164k init code, 1370k kernel code, 634k data, 2048k dma, 572k reserved)^M

NR_IRQS:119^M

Configuring Blackfin Priority Driven Interrupts^M

console [ttyBF1] enabled, bootconsole disabled^M

console [ttyBF1] enabled, bootconsole disabled^M

Calibrating delay loop... 1046.52 BogoMIPS (lpj=2093056)^M

Security Framework initialized^M

Mount-cache hash table entries: 512^M

Blackfin Scratchpad data SRAM: 4 KB^M

Blackfin L1 Data A SRAM: 16 KB (16 KB free)^M

Blackfin L1 Data B SRAM: 16 KB (16 KB free)^M

Blackfin L1 Instruction SRAM: 48 KB (42 KB free)^M

NET: Registered protocol family 16^M

Blackfin DMA Controller^M

ezkit_init(): registering device resources^M

bio: create slab <bio-0> at 0^M

SCSI subsystem initialized^M

usbcore: registered new interface driver usbfs^M

usbcore: registered new interface driver hub^M

usbcore: registered new device driver usb^M

musb_hdrc: version 6.0, musb-dma, peripheral, debug=0^M

musb_hdrc: USB Peripheral mode controller at ffc03800 using DMA, IRQ 59^M

NET: Registered protocol family 2^M

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)^M

TCP established hash table entries: 2048 (order: 2, 16384 bytes)^M

TCP bind hash table entries: 2048 (order: 1, 8192 bytes)^M

TCP: Hash tables configured (established 2048 bind 2048)^M

TCP reno registered^M

NET: Registered protocol family 1^M

msgmni has been set to 104^M

io scheduler noop registered^M

io scheduler anticipatory registered (default)^M

io scheduler cfq registered^M

bfin-t350mcqb: 320x240 24-bit RGB FrameBuffer initializing...^M

dma_alloc_init: dma_page @ 0x02865000 - 512 pages at 0x03e00000^M

bfin-otp: initialized^M

bfin-uart: Blackfin serial driver^M

bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 31) is a BFIN-UART^M

brd: module loaded^M

bfin_mii_bus: probed^M

bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:03, irq=-1, mdc_clk=2500000Hz(mdc_div=25)@sclk=131MHz)^M

bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1^M

m25p80 spi0.1: unrecognized JEDEC id ffffff^M

m25p80 spi0.1: found UNKNOWN, expected m25p16^M

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7^M

Initializing USB Mass Storage driver...^M

usbcore: registered new interface driver usb-storage^M

USB Mass Storage support registered.^M

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0^M

i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc01400^M

bfin-wdt: initialized: timeout=20 sec (nowayout=0)^M

usbcore: registered new interface driver usbhid^M

usbhid: v2.6:USB HID core driver^M

Advanced Linux Sound Architecture Driver Version 1.0.20.^M

No device for DAI SSM2602^M

dma rx:3 tx:4, err irq:15, regs:ffc00800^M

ssm2602 Audio Codec 0.1^M

asoc: SSM2602 <-> bf5xx-i2s mapping ok^M

ALSA device list:^M

  #0: bf5xx_ssm2602 (SSM2602)^M

TCP cubic registered^M

NET: Registered protocol family 17^M

rtc-bfin rtc-bfin: setting system clock to 1981-01-14 15:19:52 UTC (348333592)^M

IP-Config: Complete:^M

     device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,^M

     host=bf527-ezkit, domain=, nis-domain=(none),^M

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=^M

Freeing unused kernel memory: 7164k freed^M

                           _____________________________________^M

        a8888b.           / Welcome to the uClinux distribution \^M

       d888888b.         /       _     _                         \^M

       8P"YP"Y88        /       | |   |_|            __  __ (TM)  |^M

       8|o||o|88  _____/        | |    _ ____  _   _ \ \/ /       |^M

       8'    .88       \        | |   | |  _ \| | | | \  /        |^M

       8`._.' Y8.       \       | |__ | | | | | |_| | /  \        |^M

      d/      `8b.       \      \____||_|_| |_|\____|/_/\_\       |^M

     dP   .    Y8b.       \   For embedded processors including   |^M

    d8:'  "  `::88b        \    the Analog Devices Blackfin      /^M

   d8"         'Y88b        \___________________________________/^M

  :8P    '      :888^M

   8a.   :     _a88P         For further information, check out:^M

._/"Yaa_:   .| 88P|            - http://blackfin.uclinux.org/^M

\    YP"    `| 8P  `.          - http://docs.blackfin.uclinux.org/^M

/     \.___.d|    .'           - http://www.uclinux.org/^M

`--..__)8888P`._.'  jgs/a:f    - http://www.analog.com/blackfin^M

^M

Have a lot of fun...^M

^M

^M

BusyBox v1.15.2 (2009-11-02 09:19:24 CST) hush - the humble shell^M

^M

root:/> versiPHY: 0:03 - Link is Up - 100/Full^M

on^M

kernel:    Linux release 2.6.31.5-ADI-2010R1-pre-svn7738, build #24 Mon Nov 2 09:23:09 CST 2009^M

toolchain: bfin-uclinux-gcc release gcc version 4.1.2 (ADI svn)^M

user-dist: release svn-9075, build #47 Mon Nov 2 09:20:40 CST 2009^M

root:/> successful boot attempt

************** STEP 3: Start testing.

 

modprobe g_audio^M

g_audio gadget: Hardware params: access 3, format 2, channels 2, rate 48000^M

g_audio gadget: audio_buf_size 48000, req_buf_size 200, req_count 256^M

g_audio gadget: Linux USB Audio Gadget, version: Dec 18, 2008^M

g_audio gadget: g_audio ready^M

root:/> g_audio gadget: high speed config #1: Linux USB Audio Gadget^M

lsmod^M

Module                  Size  Used by^M

g_audio                11492  0 ^M

root:/>

root:/> cat /proc/asound/cards^M

0 [bf5xxssm2602   ]: SSM2602 - bf5xx_ssm2602^M

                      bf5xx_ssm2602 (SSM2602)^M

root:/>

--

 

On PC:

--

test@uclinux63-527-usbdev:..testsuites/usbdev> dmesg |tail -10

e100: eth1: e100_watchdog: link down^M

e100: eth1: e100_watchdog: link up, 100Mbps, full-duplex^M

e100: eth1: e100_watchdog: link down^M

usb 1-1: new high speed USB device using ehci_hcd and address 95^M

usb 1-1: configuration #1 chosen from 1 choice^M

usb 1-1: New USB device found, idVendor=1d6b, idProduct=0101^M

usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0^M

usb 1-1: Product: Linux USB Audio Gadget^M

usb 1-1: Manufacturer: Linux 2.6.31.5-ADI-2010R1-pre-svn7738 with musb_h^M

e100: eth1: e100_watchdog: link up, 100Mbps, full-duplex^M

test@uclinux63-527-usbdev:..testsuites/usbdev> aplay -D plug:hw:1 ../bluetoothalsa/test.wav^M

ALSA lib pcm_hw.c:1240:(_snd_pcm_hw_open) Invalid value for card^M

aplay: main:583: audio open error: No such file or directory^M

test@uclinux63-527-usbdev:..testsuites/usbdev> cat /proc/asound/devices

  2:        : timer

  3: [ 0- 4]: digital audio playback

  4: [ 0- 3]: digital audio capture

  5: [ 0- 2]: digital audio capture

  6: [ 0- 1]: digital audio capture

  7: [ 0- 0]: digital audio playback

  8: [ 0- 0]: digital audio capture

  9: [ 0]   : control

10:        : sequencer

test@uclinux63-527-usbdev:..testsuites/usbdev>

test@uclinux63-527-usbdev:..testsuites/usbdev> cat /proc/asound/cards

0 [ICH6           ]: ICH4 - Intel ICH6

                      Intel ICH6 with AD1981B at irq 23

--

 

Follow-ups

 

--- Cliff Cai                                                2009-11-05 22:24:41

it works on my PC,the dmesg showed that the usbcore on your PC didn't register

the usb audio driver.

 

the right messages should look like:

 

[1519307.685164] usb 5-8: new high speed USB device using ehci_hcd and address

67

[1519307.821061] usb 5-8: configuration #1 chosen from 1 choice

[1519307.835790] usb 5-8: New USB device found, idVendor=1d6b, idProduct=0101

[1519307.835796] usb 5-8: New USB device strings: Mfr=1, Product=2,

SerialNumber=0

[1519307.835799] usb 5-8: Product: Linux USB Audio Gadget

[1519307.835802] usb 5-8: Manufacturer: Linux 2.6.31.5-ADI-2010R1-pre-svn7755

with musb_h

[1519308.163970] usbcore: registered new interface driver snd-usb-audio

 

while the last line can't be seen on your PC.

 

Cliff

 

--- Vivi Li                                                  2009-11-08 23:51:22

Now here is the updated log for gadget audio test.

 

on PC:

--

test@uclinux63-527-usbdev:..testsuites/usbdev> dmesg |tail -n 10

e100: eth1: e100_watchdog: link up, 100Mbps, full-duplex

usb 5-1: new high speed USB device using ehci_hcd and address 18

usb 5-1: configuration #1 chosen from 1 choice

usb 5-1: New USB device found, idVendor=1d6b, idProduct=0101

usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0

usb 5-1: Product: Linux USB Audio Gadget

usb 5-1: Manufacturer: Linux 2.6.31.5-ADI-2010R1-pre-svn7765 with musb_h

ALSA sound/usb/usbaudio.c:1306: current rate 5028736 is different from the

runtime rate 48000

usbcore: registered new interface driver snd-usb-audio

ALSA sound/usb/usbaudio.c:1306: current rate 5028736 is different from the

runtime rate 48000

test@uclinux63-527-usbdev:..testsuites/usbdev>

--

 

On target borad:

--

root:/> modprobe g_audio

g_audio gadget: Hardware params: access 3, format 2, channels 2, rate 48000

g_audio gadget: audio_buf_size 48000, req_buf_size 200, req_count 256

g_audio gadget: Linux USB Audio Gadget, version: Dec 18, 2008

g_audio gadget: g_audio ready

root:/> g_audio gadget: high speed config #1: Linux USB Audio Gadget

g_audio gadget: Playback error: 1031

g_audio gadget: Playback error: -5

g_audio gadget: Playback error: -5

--

 

--- Cliff Cai                                                2010-06-29 04:24:40

it should be OK now.

 

--- Vivi Li                                                  2010-11-10 05:46:31

This problem is gone. Close it.

 

--- Vivi Li                                                  2010-11-10 06:30:40

The problem is not gone completely.

Sometimes it still get errors on bf527-ezkit with error message:

--

g_audio gadget: Playback error: 1031

g_audio gadget: Playback error: -5

g_audio gadget: Playback error: -5

--

 

--- Vivi Li                                                  2011-09-05 05:03:02

In latest trunk, bellow message shows:

--

g_audio gadget: Playback error: -32

--

 

--- Vivi Li                                                  2011-11-23 05:41:06

Run test commands slowly will help reduce this kind of error. I updated gadget

audio test script.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.usbdev.dma    application/octet-stream    42612    Vivi Li

Attachments

Outcomes