Menu

#33 Gadget audio fails to work on bf609-ezkit with adau1761 as no sound comes out

2012R2
open
nobody
None
middle
none
BF609-EZKIT
2013-10-18
2013-07-05
panmingquan
No

[#7598] Gadget audio fails to work on bf609-ezkit with adau1761 as no sound comes out
Move Item | Delete Item | Clone Item | Merge Item
Submitted By: Vivi Li
Open Date
2013-01-16 17:27:09
Priority:
Assignee:
Fixed In Release:
Status:
Found In Release:
Release:
Board:
Processor:

Silicon Revision:
Uboot version or rev.:
Toolchain version or rev.:
Is this bug repeatable?:
Resolution:
App binary format:
Summary:
Details: (Edit)

Gadget audio fails to work on bf609-ezkit with adau1761, no sound is heard.

--
Linux version 3.5.7-ADI-2012R2-00004-g15c1a46-dirty (test@linux87-bf609-usbdev) (gcc version 4.3.5 (ADI-2012R2-RC2) ) #4 Tue Jan 15 19:19:29 CST 2013
register early platform devices
bootconsole [early_shadow0] enabled
ERROR: Not running on ADSP-BF609: unknown CPUID 0x0000 Rev 0.0
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 128MB
Kernel Managed Memory: 128MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x001d47b8
rodata = 0x001d47dc-0x0026f694
bss = 0x00270000-0x00283c70
data = 0x00283c80-0x002ac000
stack = 0x002aa000-0x002ac000
init = 0x002ac000-0x00aa1000
available = 0x00aa1000-0x07e00000
DMA Zone = 0x07e00000-0x08000000
Hardware Trace active and enabled
Blackfin support (C) 2004-2010 Analog Devices, Inc.
Compiled for ADSP-BF609 Rev 0.0
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 500 MHz core clock, 125 MHz SCLk, 125 MHz SCLK0, 125 MHz SCLK1 and 250 MHz DCLK
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
External memory: cacheable in instruction cache
L2 SRAM : uncacheable in instruction cache
Data Cache Enabled for CPU0
External memory: cacheable (write-back) in data cache
L2 SRAM : uncacheable in data cache
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 32004
Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf609-ezkit:eth0:off
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory available: 116972k/131072k RAM, (8148k init code, 1869k kernel code, 863k data, 2048k dma, 1172k reserved)
NR_IRQS:291
Configuring Blackfin Priority Driven Interrupts
Console: colour dummy device 80x25
console [ttyBF0] enabled, bootconsole disabled
console [ttyBF0] enabled, bootconsole disabled
Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
devtmpfs: initialized
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (9 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 64 KB (51 KB free)
Blackfin L2 SRAM: 256 KB (256 KB free)
NET: Registered protocol family 16
Blackfin DMA Controller
ezkit_init(): registering device resources
ezkit_init(): request emac pins failed
bio: create slab <bio-0> at 0
SCSI subsystem initialized
bfin-spi bfin-spi.0: master is unqueued, this is deprecated
bfin-spi bfin-spi.0: bfin-spi probe success
bfin-spi bfin-spi.1: master is unqueued, this is deprecated
bfin-spi bfin-spi.1: bfin-spi probe success
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c-bfin-twi i2c-bfin-twi.0: Blackfin on-chip I2C TWI Contoller, regs_base@ffc01e00
i2c-bfin-twi i2c-bfin-twi.1: Blackfin on-chip I2C TWI Contoller, regs_base@ffc01f00
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
PTP clock support registered
Advanced Linux Sound Architecture Driver Version 1.0.25.
NET: Registered protocol family 23
Switching to clocksource bfin_cs_cycles
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP: reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
msgmni has been set to 228
io scheduler noop registered (default)
bfin-uart: Blackfin serial driver
bfin-uart.0: ttyBF0 at MMIO 0xffc02000 (irq = 88) is a BFIN-UART
CAN device driver interface
bfin_can bfin_can.0: bfin_can device registered(&reg_base=ffc00a00, rx_irq=47, tx_irq=48, err_irq=49, sclk=125000000)
DWMAC100
No HW DMA feature register supported
Enhanced/Alternate descriptors
RX IPC Checksum Offload not configured.
stmmac_dvr_probe: warning: cannot get CSR clock
stmmac: probed
eth0: PHY ID 20005c90 at 1 IRQ 0 (stmmac-0:01) active
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
musb-hdrc musb-hdrc: USB OTG mode controller at ffcc1000 using DMA, IRQ 129
input: bfin-rotary as /devices/platform/bfin-rotary/input/input0
i2c /dev entries driver
bfin_wdt: initialized: timeout=20 sec (nowayout=0)
dma_alloc_init: dma_page @ 0x05730000 - 512 pages at 0x07e00000
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
adau1761 0-0038: Failed to firmware
asoc: adau-hifi <-> bfin-i2s.0 mapping ok
TCP: cubic registered
NET: Registered protocol family 17
can: controller area network core (rev 20090105 abi 8)
NET: Registered protocol family 29
mmc0: host does not support reading read-only switch. assuming write-enable.
eth0: device MAC address 00:e0:22:fe:87:dc
mmc0: new SD card at address e624
mmcblk0: mmc0:e624 SD02G 1.84 GiB
No MAC Management Counters available
mmcblk0: p1
IP-Config: Complete:
device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174
host=bf609-ezkit, domain=, nis-domain=(none)
bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=
ALSA device list:
#0: bfin-eval-adau1x61
Freeing unused kernel memory: 8148k freed</bio-0>

BusyBox v1.20.2 (2013-01-15 18:40:47 CST) hush - the humble shell

root:/> ^[[40;9Rifconfig eth0PHY: stmmac-0:01 - Link is Up - 100/Full
10.100.4.50
root:/> ^[[40;9REthernet may has been activated already!
version
kernel: Linux release 3.5.7-ADI-2012R2-00004-g15c1a46-dirty, build #4 Tue Jan 15 19:19:29 CST 2013
toolchain: /home/test/workspace/src/kernel/label/BF609-EZKIT-USBDEV/output/host/usr/bin/bfin-linux-uclibc-gcc release gcc version 4.3.5 (ADI-2012R2-RC2)
user-dist: release git-98ea46a, build #1 Tue Jan 15 18:49:52 CST 2013
root:/> ^[[40;9R
Linux version: 3.5.7-ADI-2012R2-00004-g15c1a46-dirty
GCC version: 4.3.5 (ADI-2012R2-RC2)
user-dist version: git-98ea46a


STEP 3: Start testing.

modprobe g_audio
gadget: Linux USB Audio Gadget, version: Feb 2, 2012
gadget: g_audio ready
musb-hdrc musb-hdrc: MUSB HDRC host driver
musb-hdrc musb-hdrc: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
root:/> ^[[40;9R gadget: high-speed config #1: Linux USB Audio Gadget
lsmod
Module Size Used by
g_audio 14935 0
root:/>
Case 2 ...PASS
^[[40;9Rcat /proc/asound/cards
0 [bfinevaladau1x6]: eval-adau1x61 - bfin-eval-adau1x61
bfin-eval-adau1x61
1 [UAC2Gadget ]: UAC2_Gadget - UAC2_Gadget
UAC2_Gadget 0
root:/>
Case 3 ...PASS
^[[40;9Ramixer cset name='Headphone Playback Switch' on; amixer cset name='Headp
hone Playback Volume' 40; amixer cset name='Right Playback Mixer Right DAC Switc
h' on; amixer cset name='Left Playback Mixer Left DAC Switch' on; amixer cset na
me='DSP Bypass Playback Switch' on; amixer cset name='DSP Bypass Capture Switch'
on; amixer cset name='Digital Capture Volume' 255; amixer cset name='Input 2 Ca
pture Volume' 7; amixer cset name='Input 4 Capture Volume' 7;
numid=16,iface=MIXER,name='Headphone Playback Switch'
; type=BOOLEAN,access=rw------,values=2
values=on,on
numid=15,iface=MIXER,name='Headphone Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=63,step=0
values=40,40
| dBscale-min=-57.00dB,step=1.00dB,mute=0
numid=29,iface=MIXER,name='Right Playback Mixer Right DAC Switch'
; type=BOOLEAN,access=rw------,values=1
values=on
numid=33,iface=MIXER,name='Left Playback Mixer Left DAC Switch'
; type=BOOLEAN,access=rw------,values=1
values=on
numid=8,iface=MIXER,name='DSP Bypass Playback Switch'
; type=BOOLEAN,access=rw------,values=1
values=on
numid=9,iface=MIXER,name='DSP Bypass Capture Switch'
; type=BOOLEAN,access=rw------,values=1
values=on
numid=1,iface=MIXER,name='Digital Capture Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=255,step=0
values=255,255
| dBminmax-min=-95.63dB,max=0.00dB
numid=11,iface=MIXER,name='Input 2 Capture Volume'
; type=INTEGER,access=rw---R--,values=1,min=0,max=7,step=0
values=7
| dBscale-min=-15.00dB,step=3.00dB,mute=1
numid=13,iface=MIXER,name='Input 4 Capture Volume'
; type=INTEGER,access=rw---R--,values=1,min=0,max=7,step=0
values=7
| dBscale-min=-15.00dB,step=3.00dB,mute=1
root:/>
Case 4 ...PASS
spawn /bin/bash
^[[40;9Rlsusb
test@linux87-bf609-usbdev:usbdev$ lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 0557:2220 ATEN International Co., Ltd
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 053: ID 1d6b:0101 Linux Foundation Audio Gadget
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
test@linux87-bf609-usbdev:usbdev$
Case 5 ...PASS
aplay -D plug:hw:1 ../bluetoothalsa/test.wav
Playing WAVE '../bluetoothalsa/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

(No sound from adau1761)

2 Attachments

Discussion

  • panmingquan

    panmingquan - 2013-07-05
     
  • Sonic Zhang

    Sonic Zhang - 2013-07-09
    • Priority: 3 --> middle
     
  • Sonic Zhang

    Sonic Zhang - 2013-10-18
    • status: open --> closed
    • Resolution: none --> duplicated
     
  • Sonic Zhang

    Sonic Zhang - 2013-10-18
    • status: closed --> open
    • Resolution: duplicated --> none
     

Log in to post a comment.