[#4916] On BF537 with AD1836, it fails to record wav audio with particular settings by alsa lib tool

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

[#4916] On BF537 with AD1836, it fails to record wav audio with particular settings by alsa lib tool

Submitted By: Vivi Li

Open Date

2009-02-18 22:05:42     Close Date

2009-07-23 02:29:21

Priority:

Medium High     Assignee:

Cliff Cai

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

uClinux-dist applications     Board:

STAMP

Processor:

BF537     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.1_2009-01-19

App binary format:

N/A     

Summary: On BF537 with AD1836, it fails to record wav audio with particular settings by alsa lib tool

Details:

 

On BF537-STAMP with AD1836, using alsa lib tool to record a wav stereo audio with 8k or 44k sample rate and U8 format, it will fail. Recording at other format and sample rate is OK.

Same bug happens when use the following commands:

arecord -t wav -c 2 -f U8 -r 8000 -d 5 wav

arecord -t wav -c 2 -f U8 -r 44200 -d 5 wav

arecord -t wav -c 2 -f U8 -r 44100 -d 5 wav

arecord -t wav -c 2 -f U8 -r 44000 -d 5 wav

 

This bug is similar to an old closed bug [#3811].

 

Below is the log for a certain format:

--

root:/> arecord -t wav -c 2 -f U8 -r 8000 -d 5 wav

Recording WAVE 'wav' : Unsigned 8 bit, Rate 8000 Hz, Stereo

Data access misaligned address violation

- Attempted misaligned data memory or data cache access.

Deferred Exception context

CURRENT PROCESS:

COMM=arecord PID=182

CPU = 0

TEXT = 0x03280000-0x0328b748        DATA = 0x037bc748-0x037bd340

BSS = 0x037bd340-0x032a0000  USER-STACK = 0x032bfe60

 

return address: [0x00648140]; contents of:

0x00648120:  e5a0  0002  e6a8  0002  5b1c  5b45  6000  2f63

0x00648130:  b9e3  0c03  1b5f  0000  b9ea  e0b2  2005  9120

0x00648140: [9328] 5b1c  5b45  6000  2f56  50b2  9969  544c

0x00648150:  9b29  5641  6040  0802  9b29  5b1c  17b3  6c0c

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00060024  IPEND: 0030  SYSCFG: 0006

  EXCAUSE   : 0x24

  interrupts disabled

  physical IVG5 asserted : <0xffa00ba4> { _evt_ivhw + 0x0 }

RETE: <0x00000000> { _do_one_initcall + 0xfffff000 }

RETN: <0x03702000> /* kernel dynamic memory */

RETX: <0x00000480> /* Maybe fixed code section */

RETS: <0x00647e76> [ /usr/lib/libasound.so.2 + 0x47e76 ]

PC  : <0x00648140> [ /usr/lib/libasound.so.2 + 0x48140 ]

DCPLB_FAULT_ADDR: <0x033102ac> [ arecord + 0x2ac ]

ICPLB_FAULT_ADDR: <0x00648140> [ /usr/lib/libasound.so.2 + 0x48140 ]

 

PROCESSOR STATE:

R0 : 00e16c00    R1 : 00000004    R2 : 033102ae    R3 : 00000800

R4 : 03300838    R5 : 033007f8    R6 : 03296a00    R7 : 00000020

P0 : 00000004    P1 : 00647ee4    P2 : 00000800    P3 : 00000008

P4 : 03320004    P5 : 033102ae    FP : 032bd9f8    SP : 03701f24

LB0: 032cf231    LT0: 032cf224    LC0: 00000000

LB1: 00648145    LT1: 0064813e    LC1: 00000800

B0 : 00000000    L0 : 00000000    M0 : 00000000    I0 : 0330c800

B1 : 00000000    L1 : 00000000    M1 : 00000000    I1 : 00000000

B2 : 00000000    L2 : 00000000    M2 : 00000000    I2 : 00000000

B3 : 00000000    L3 : 00000000    M3 : 00000000    I3 : 032bd798

A0.w: 00000000   A0.x: 00000000   A1.w: 00000000   A1.x: 00000000

USP : 032bd9d4  ASTAT: 02003004

 

Hardware Trace:

   0 Target : <0x00004a0c> { _trap_c + 0x0 }

     Source : <0xffa0062a> { _exception_to_level5 + 0x9e } CALL pcrel

   1 Target : <0xffa0058c> { _exception_to_level5 + 0x0 }

     Source : <0xffa0045a> { _bfin_return_from_exception + 0xe } RTX

   2 Target : <0xffa0044c> { _bfin_return_from_exception + 0x0 }

     Source : <0xffa004e2> { _ex_trap_c + 0x66 } JUMP.S

   3 Target : <0xffa0047c> { _ex_trap_c + 0x0 }

     Source : <0xffa006c4> { _trap + 0x38 } JUMP (P4)

   4 Target : <0xffa006aa> { _trap + 0x1e }

     Source : <0xffa006a6> { _trap + 0x1a } IF !CC JUMP

   5 Target : <0xffa0068c> { _trap + 0x0 }

     Source : <0x0064813e> [ /usr/lib/libasound.so.2 + 0x4813e ] 0x9120

   6 Target : <0x00648130> [ /usr/lib/libasound.so.2 + 0x48130 ]

     Source : <0x00647ee0> [ /usr/lib/libasound.so.2 + 0x47ee0 ] JUMP (P2)

   7 Target : <0x00647ed2> [ /usr/lib/libasound.so.2 + 0x47ed2 ]

     Source : <0x00647e9e> [ /usr/lib/libasound.so.2 + 0x47e9e ] IF CC JUMP

   8 Target : <0x00647e76> [ /usr/lib/libasound.so.2 + 0x47e76 ]

     Source : <0x0064e2c2> [ /usr/lib/libasound.so.2 + 0x4e2c2 ] RTS

   9 Target : <0x0064e2be> [ /usr/lib/libasound.so.2 + 0x4e2be ]

     Source : <0x0064e2d6> [ /usr/lib/libasound.so.2 + 0x4e2d6 ] JUMP.S

  10 Target : <0x0064e2d4> [ /usr/lib/libasound.so.2 + 0x4e2d4 ]

     Source : <0x0064e20a> [ /usr/lib/libasound.so.2 + 0x4e20a ] JUMP (P2)

  11 Target : <0x0064e1f4> [ /usr/lib/libasound.so.2 + 0x4e1f4 ]

     Source : <0x00626b4a> [ /usr/lib/libasound.so.2 + 0x26b4a ] JUMP (P1)

  12 Target : <0x00626b42> [ /usr/lib/libasound.so.2 + 0x26b42 ]

     Source : <0x00647e72> [ /usr/lib/libasound.so.2 + 0x47e72 ] CALL pcrel

  13 Target : <0x00647df8> [ /usr/lib/libasound.so.2 + 0x47df8 ]

     Source : <0x0062759a> [ /usr/lib/libasound.so.2 + 0x2759a ] JUMP (P1)

  14 Target : <0x00627592> [ /usr/lib/libasound.so.2 + 0x27592 ]

     Source : <0x00648252> [ /usr/lib/libasound.so.2 + 0x48252 ] CALL pcrel

  15 Target : <0x0064823a> [ /usr/lib/libasound.so.2 + 0x4823a ]

     Source : <0x00648230> [ /usr/lib/libasound.so.2 + 0x48230 ] IF !CC JUMP

Userspace Stack

Stack info:

SP: [0x032bd9d4] <0x032bd9d4> [ arecord + 0x1d9d4 ]

Memory from 0x032bd9d0 to 032be000

032bd9d0:<00647e76>[0064fbf6] 033007f8  00000f59  00000000  00000004  00000555  0000000a

032bd9f0: 00000800  00000020 <032bda4c><00648256> 033007f8  03300838  00000000  00000020

032bda10: 00000002  033007f8  0065a358  00015500  00000002  00000000  00000800  0000000a

032bda30: 03296a00  00000002  033000e5 <00647360><032bda54><006740cc> 0065a1cc  032bdac4

032bda50:<00659028> 0330202c  03302130  00000800  00000800  00000155  03296a00  03300838

032bda70: 00000000  000003ff  00000000  00000002  00000800  0000000a  0330202c  032bdac0

032bda90: 032bdabc  032bdab8  0330202c  00000801  00000155  00000400  032bdac4 <0065926c>

032bdab0: 03300854  00000554  00000801  00000000  033007f8  032bdaf8 <006474f8> 00000003

032bdad0: 00000000  00000155  03296a00  00000000  03302130  032bdac4  ffffffff  032bdb44

032bdaf0: 00000155  00000000  032bdb48 <0064efa0> 03302130  00013082  03296a00  032bdb2c

032bdb10: 00000155  032bdb34  00020001  032bdb2c  00003e80  00000155  03294830  03302b40

032bdb30: 00000000  00000010  03302b40  00000008  00000010  032bfbdc  032bfbdc <0328717e>

032bdb50: 00000000  00000155  00000155  03302b40  037bced8  00000000  00000000  000001a4

032bdb70: 00000000  00000000  00000000  037bd300  03289d98  032f9248  037bd304  037bd2f0

032bdb90: 032bdbd4  037bd330  037bc8a0  037bd2c4  037bc890  037bd324  037bd328  037bd2a0

032bdbb0: 037bc89c  032bebd8  032bdbd4  00000000  00000001  032bffa4  00013082  00000000

032bdbd0: 000002aa  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bdbf0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bdc10: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bdc30: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bdc50: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bdc70: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bdc90: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bdcb0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bdcd0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bdcf0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bdd10: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bdd30: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bdd50: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bdd70: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bdd90: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bddb0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bddd0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bddf0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bde10: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bde30: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bde50: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bde70: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bde90: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bdeb0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bded0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bdef0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bdf10: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bdf30: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bdf50: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bdf70: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bdf90: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bdfb0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bdfd0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

032bdff0: 00000000  00000000  00000000  00000000  00000000

Return addresses in stack:

    address : <0x00647e76> [ /usr/lib/libasound.so.2 + 0x47e76 ]

    address : <0x0064fbf6> [ /usr/lib/libasound.so.2 + 0x4fbf6 ]

    address : <0x032bda4c> [ arecord + 0x1da4c ]

    address : <0x00648256> [ /usr/lib/libasound.so.2 + 0x48256 ]

    address : <0x00647360> [ /usr/lib/libasound.so.2 + 0x47360 ]

    address : <0x032bda54> [ arecord + 0x1da54 ]

    address : <0x006740cc> [ /usr/lib/libasound.so.2 + 0x740cc ]

    address : <0x00659028> [ /usr/lib/libasound.so.2 + 0x59028 ]

    address : <0x0065926c> [ /usr/lib/libasound.so.2 + 0x5926c ]

    address : <0x006474f8> [ /usr/lib/libasound.so.2 + 0x474f8 ]

    address : <0x0064efa0> [ /usr/lib/libasound.so.2 + 0x4efa0 ]

    address : <0x0328717e> [ /usr/bin/aplay + 0x717e ]

Bus error

root:/>

--

 

Follow-ups

 

--- Cliff Cai                                                2009-04-07 03:06:06

Fixed now.Play/record with some formats will cause to access misalingned

memory.

 

Cliff

 

--- Vivi Li                                                  2009-07-23 02:29:21

OK now. Close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes