[#6026] play and record with adau1361 will fail sometimes
Submitted By: Vivi Li
Open Date
2010-05-12 02:19:17 Close Date
2011-08-16 04:28:37
Priority:
Medium Assignee:
Nobody
Status:
Closed Fixed In Release:
N/A
Found In Release:
2010R1-RC5 Release:
Category:
N/A Board:
N/A
Processor:
BF537 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Assigned (Not Start)
Uboot version or rev.:
Toolchain version or rev.:
gcc4.3-2010_Apr_07
App binary format:
N/A
Summary: play and record with adau1361 will fail sometimes
Details:
arecord/aplay sometimes fail for adau1361.
--
Linux version 2.6.33.3-ADI-2010R1-pre-svn8700 (test@uboot34-bf537stamp) (gcc version 4.3.4 (ADI-trunk/svn-3951) ) #89 Tue May 110
register early platform devices
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Limiting kernel memory to 56MB due to anomaly 05000263
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x00128790
rodata = 0x00128790-0x00186e98
bss = 0x00187000-0x00197c40
data = 0x00197c40-0x001aa000
stack = 0x001a8000-0x001aa000
init = 0x001aa000-0x005a0000
available = 0x005a0000-0x03800000
DMA Zone = 0x03e00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 0
Reset caused by Software reset
Blackfin support (C) 2004-2010 Analog Devices, Inc.
Compiled for ADSP-BF537 Rev 0.2
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 500 MHz core clock and 125 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
External memory: cacheable in instruction cache
Data Cache Enabled for CPU0
External memory: cacheable (write-back) in data cache
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 14224
Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.100.4.50f
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 51016k/65536k RAM, (4056k init code, 1181k kernel code, 519k data, 2048k dma, 6716k reserved)
Hierarchical RCU implementation.
NR_IRQS:138
Configuring Blackfin Priority Driven Interrupts
console [ttyBF0] enabled, bootconsole disabled
console [ttyBF0] enabled, bootconsole disabled
Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
Security Framework initialized
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (16 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (36 KB free)
NET: Registered protocol family 16
Blackfin DMA Controller
stamp_init(): registering device resources
bio: create slab <bio-0> at 0
Advanced Linux Sound Architecture Driver Version 1.0.21.
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: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
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 99
io scheduler noop registered
io scheduler cfq registered (default)
bfin-uart: Blackfin serial driver
bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART
brd: module loaded
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7
bfin_mii_bus: probed
bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc01400
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
No device for DAI ADAU1361
dma rx:3 tx:4, err irq:45, regs:ffc00800
dma_alloc_init: dma_page @ 0x025cf000 - 512 pages at 0x03e00000
asoc: ADAU1361 <-> bf5xx-i2s mapping ok
ALSA device list:
#0: bf5xx_adau1361 (adau1361)
TCP cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1970-01-03 01:03:15 UTC (176595)
IP-Config: Complete:
device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,
host=bf537-stamp, domain=, nis-domain=(none),
bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=
Freeing unused kernel memory: 4056k freed
_____________________________________
a8888b. / Welcome to the uClinux distribution \
d888888b. / _ _ \
8P"YP"Y88 / | | |_| __ __ (TM) |
8|o||o|88 _____/ | | _ ____ _ _ \ \/ / |
8' .88 \ | | | | _ \| | | | \ / |
8`._.' Y8. \ | |__ | | | | | |_| | / \ |
d/ `8b. \ \____||_|_| |_|\____|/_/\_\ |
dP . Y8b. \ For embedded processors including |
d8:' " `::88b \ the Analog Devices Blackfin /
d8" 'Y88b \___________________________________/
:8P ' :888
8a. : _a88P For further information, check out:
._/"Yaa_: .| 88P| - http://blackfin.uclinux.org/
\ YP" `| 8P `. - http://docs.blackfin.uclinux.org/
/ \.___.d| .' - http://www.uclinux.org/
`--..__)8888P`._.' jgs/a:f - http://www.analog.com/blackfin
Have a lot of fun...
BusyBox v1.16.1 (2010-05-11 19:00:01 CST) hush - the humble shell
root:/> PHY: 0:01 - Link is Up - 100/Full
root:/> arecord -t wav -c 1 -f U8 -r 22000 -d 5 wav
Recording WAVE 'wav' : Unsigned 8 bit, Rate 22000 Hz, Mono
Data access misaligned address violation
<5> - Attempted misaligned data memory or data cache access.
Deferred Exception context
CURRENT PROCESS:
COMM=arecord PID=179 CPU=0
TEXT = 0x02870000-0x0287c100 DATA = 0x02867100-0x02867cf0
BSS = 0x02867cf0-0x02880000 USER-STACK = 0x0289fe60
return address: [0x029597f6]; contents of:
0x029597d0: b95a 0000 42ba 40ca b931 40c8 302f 5082
0x029597e0: c682 8f82 0052 9968 e121 ff80 5808 4340
0x029597f0: c682 8e40 2fd5 [952f] 2fd3 9528 e122 8000
0x02959800: 59c2 2fce 9528 c604 0e00 4e47 2fc9 9528
ADSP-BF537-0.2 500(MHz CCLK) 125(MHz SCLK) (mpu off)
Linux version 2.6.33.3-ADI-2010R1-pre-svn8700 (test@uboot34-bf537stamp) (gcc version 4.3.4 (ADI-trunk/svn-3951) ) #89 Tue May 110
SEQUENCER STATUS: Not tainted
SEQSTAT: 00002024 IPEND: 0008 IMASK: ffff SYSCFG: 0006
EXCAUSE : 0x24
physical IVG3 asserted : <0xffa00734> { _trap + 0x0 }
RETE: <0x00000000> /* Maybe null pointer? */
RETN: <0x02866000> [ arecord + 0x0 ]
RETX: <0x00000480> /* Maybe fixed code section */
RETS: <0x029579f8> [ /usr/lib/libasound.so.2 + 0x579f8 ]
PC : <0x029597f6> [ /usr/lib/libasound.so.2 + 0x597f6 ]
DCPLB_FAULT_ADDR: <0x028f8ac0> [ arecord + 0xac0 ]
ICPLB_FAULT_ADDR: <0x029597f6> [ /usr/lib/libasound.so.2 + 0x597f6 ]
PROCESSOR STATE:
R0 : 00000000 R1 : 00000001 R2 : 0000ff59 R3 : 00000000
R4 : 00000000 R5 : 00000000 R6 : 00000534 R7 : 00000000
P0 : 00000000 P1 : 00000000 P2 : 029597f6 P3 : 028a6340
P4 : 028f8004 P5 : 028f8ac1 FP : 0289da70 SP : 02865f24
LB0: 02642649 LT0: 0264263c LC0: 00000000
LB1: 02958089 LT1: 02958088 LC1: 00000000
B0 : 00000000 L0 : 00000000 M0 : 00000008 I0 : 03e20000
B1 : 000000c0 L1 : 00000000 M1 : 00000001 I1 : 00000001
B2 : 7ffff000 L2 : 00000000 M2 : 00001802 I2 : 00000000
B3 : 00000000 L3 : 00000000 M3 : 0000005b I3 : 00000000
A0.w: 00000000 A0.x: 00000000 A1.w: 00000000 A1.x: 00000000
USP : 0289da28 ASTAT: 02002001
Hardware Trace:
0 Target : <0x00003ec0> { _trap_c + 0x0 }
Source : <0xffa006c8> { _exception_to_level5 + 0xa4 } CALL pcrel
1 Target : <0xffa00624> { _exception_to_level5 + 0x0 }
Source : <0xffa004d8> { _bfin_return_from_exception + 0x20 } RTX
2 Target : <0xffa004b8> { _bfin_return_from_exception + 0x0 }
Source : <0xffa0057c> { _ex_trap_c + 0x74 } JUMP.S
3 Target : <0xffa00508> { _ex_trap_c + 0x0 }
Source : <0xffa0079c> { _trap + 0x68 } JUMP (P4)
4 Target : <0xffa00752> { _trap + 0x1e }
Source : <0xffa0074e> { _trap + 0x1a } IF CC JUMP pcrel
5 Target : <0xffa00734> { _trap + 0x0 }
FAULT : <0x029597f6> [ /usr/lib/libasound.so.2 + 0x597f6 ] R7 = W[P5] (Z)
Source : <0x02959796> [ /usr/lib/libasound.so.2 + 0x59796 ] JUMP (P2)
6 Target : <0x02959762> [ /usr/lib/libasound.so.2 + 0x59762 ]
Source : <0x02959742> [ /usr/lib/libasound.so.2 + 0x59742 ] IF CC JUMP pcrel (BP)
7 Target : <0x02959734> [ /usr/lib/libasound.so.2 + 0x59734 ]
Source : <0x02959714> [ /usr/lib/libasound.so.2 + 0x59714 ] IF CC JUMP pcrel (BP)
8 Target : <0x02959706> [ /usr/lib/libasound.so.2 + 0x59706 ]
Source : <0x029596ea> [ /usr/lib/libasound.so.2 + 0x596ea ] IF CC JUMP pcrel (BP)
9 Target : <0x029596d0> [ /usr/lib/libasound.so.2 + 0x596d0 ]
Source : <0x029596b4> [ /usr/lib/libasound.so.2 + 0x596b4 ] IF CC JUMP pcrel (BP)
10 Target : <0x02959654> [ /usr/lib/libasound.so.2 + 0x59654 ]
Source : <0x029593d4> [ /usr/lib/libasound.so.2 + 0x593d4 ] JUMP (P1)
11 Target : <0x029593c4> [ /usr/lib/libasound.so.2 + 0x593c4 ]
Source : <0x029573b6> [ /usr/lib/libasound.so.2 + 0x573b6 ] JUMP (P1)
12 Target : <0x02957398> [ /usr/lib/libasound.so.2 + 0x57398 ]
Source : <0x02957322> [ /usr/lib/libasound.so.2 + 0x57322 ] IF CC JUMP pcrel
13 Target : <0x02957300> [ /usr/lib/libasound.so.2 + 0x57300 ]
Source : <0x029579f4> [ /usr/lib/libasound.so.2 + 0x579f4 ] JUMP.L
14 Target : <0x029579be> [ /usr/lib/libasound.so.2 + 0x579be ]
Source : <0x0295796a> [ /usr/lib/libasound.so.2 + 0x5796a ] IF CC JUMP pcrel (BP)
15 Target : <0x02957962> [ /usr/lib/libasound.so.2 + 0x57962 ]
Source : <0x029578e2> [ /usr/lib/libasound.so.2 + 0x578e2 ] IF !CC JUMP pcrel (BP)
Userspace Stack
Stack info:
SP: [0x0289da28] <0x0289da28> [ arecord + 0x1da28 ]
Memory from 0x0289da20 to 0289e000
0289da20: 00000001 00000001 [00000010] 028a6340 00000008 0289da94 02947faa 00000000
0289da40: 0000ff59 029599d0 0007facc 00000000 00000000 00000534 00000002 00000001
0289da60: 0286a560 0286a554 029597f6 028a6340 0289dae4 029579f8 0286a65c 0286a760
0289da80: 00000000 00000003 00000abd 028a6340 0286a298 00000000 00000000 00000abd
0289daa0: 0286a560 00000000 00000ac4 0286a65c 0289dabc 0289dae0 0289dadc 0289dad8
0289dac0: 0286a65c 00000ac5 00000000 00002af7 0286a5d0 00002af4 00000ac5 00000000
0289dae0: 0286a318 0289db18 02946438 028a6340 0286a760 00000000 00000001 00000abd
0289db00: 00000000 0286a760 ffffffff 00000008 00000abd 00000000 0289db5c 0294f082
0289db20: 0286a760 028a6340 0289db4c 00000abd 0289db48 02867878 00080001 0289db4c
0289db40: 028c7be0 00000abd 028a3fc0 028f4408 00000000 00000008 0289fbdc 0289fbdc
0289db60:<02876b88> 02867cb4 02867ca0 00000abd 00000abd 028f4408 00000114 00000114
0289db80: 000001a4 00000002 00000000 00000004 0289ebd8 0289dbd4 0100000b 02867ce0
0289dba0: 02867254 02867cd8 02867c50 02867244 02867c74 02867cd4 00000000 000182bc
0289dbc0: 00000000 000182bc 00000001 0289ff9f 00000abd 00000000 00000000 00000001
0289dbe0: 00000000 00000021 00000009 00000002 00000788 00000788 00000128 00000002
0289dc00: 00000000 00000004 00000008 0000002a 00000009 00000002 000008b0 000008b0
0289dc20: 00000088 00000002 00000006 00000004 00000008 0000002e 00000001 00000006
0289dc40: 00000938 00000938 0000011a 00000000 00000000 00000004 00000000 00000033
0289dc60: 00000001 00000006 00000a54 00000a54 00000ca8 00000000 00000000 00000004
0289dc80: 00000000 00000039 00000001 00000002 000016fc 000016fc 000001e4 00000000
0289dca0: 00000000 00000004 00000000 00000041 00000001 00000002 000018e0 000018e0
0289dcc0: 00000014 00000000 00000000 00000004 00000000 00000049 00000001 00000002
0289dce0: 000018f4 000018f4 00000004 00000000 00000000 00000004 00000000 00000052
0289dd00: 00000001 00000003 000028f8 000018f8 00000004 00000000 00000000 00000004
0289dd20: 00000000 00000059 00000001 00000003 000028fc 000018fc 0000003c 00000000
0289dd40: 00000000 00000004 00000000 00000066 00000006 00000003 00002938 00001938
0289dd60: 000000a8 00000003 00000000 00000004 00000008 0000006f 00000001 00000003
0289dd80: 000029e0 000019e0 000000e8 00000000 00000000 00000008 00000000 00000074
0289dda0: 00000008 00000003 00002ac8 00001ac8 00000004 00000000 00000000 00000004
0289ddc0: 00000000 00000001 00000003 00000000 00000000 00001ac8 00000079 00000000
0289dde0: 00000000 00000001 00000000 00000000 00000000 00000000 00000000 00000000
0289de00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0289de20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0289de40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0289de60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0289de80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0289dea0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0289dec0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0289dee0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0289df00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0289df20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0289df40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0289df60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0289df80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0289dfa0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0289dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0289dfe0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Return addresses in stack:
address : <0x02876b88> [ /usr/bin/aplay + 0x6b88 ]
BUS
root:/> arecord -t wav -c 2 -f S24_LE -r 48000 -d 5 wav
Recording WAVE 'wav' : Signed 24 bit Little Endian, Rate 48000 Hz, Stereo
sport status error: ROVF
sport status error: ROVF
sport status error: ROVF
sport status error: ROVF
sport status error: ROVF
sport status error: ROVF
sport status error: ROVF
sport status error: ROVF
sport status error: ROVF
sport status error: ROVF
--
Can not exit bellow command properly, need to exit by Ctrl+C command.
--
root:/> vrec -w -S -b 16 -s 48000 -t 5|vplay
Recording WAVE : 16 bit, Speed 48000 Hz Stereo ...
Playing WAVE : 16 bit, Speed 48000 Hz Stereo ...
snd_pcm_update_hw_ptr_pos: 4 callbacks suppressed
^C
root:/>
--
Follow-ups
--- Cliff Cai 2010-06-06 23:12:02
fixed now.
--- Vivi Li 2010-11-17 05:56:50
Still fail when run command "arecord -t wav -c 1 -f U8 -r 22000 -d 5 wav
".
--- Sonic Zhang 2011-08-16 04:28:37
Not maintained by Linux team.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
config.adau1361 application/octet-stream 31434 Vivi Li