AnsweredAssumed Answered

imx53 uda134x audio issue

Question asked by Jacky Song on Jul 8, 2015
Latest reply on Jul 23, 2015 by Jacky Song

     hi,everyone:

          i have a problem with uda134x in imx53-loco.

          here is the kernel log:

[    1.837294] No device for DAI UDA134X
[    1.841094] No device for DAI imx-ssi-1-0
[    1.845128] No device for DAI imx-ssi-1-1
[    1.849188] No device for DAI imx-ssi-2-0
[    1.853223] No device for DAI imx-ssi-2-1
[    1.868003] UDA134X SoC Audio Codec
[    1.883014] DMA Sound Buffer Allocated: Playback UseIram=1 ext_ram=0 buf->addr=f8002000 buf->area=8e042000 size=24576
[    1.893726] DMA Sound Buffer Allocated: Capture  UseIram=1 ext_ram=1 buf->addr=7c298000 buf->area=fa28c000 size=24576
[    1.904353] asoc: UDA134X <-> imx-ssi-2-0 mapping ok
[    1.909516] usb 2-1: new high speed USB device using fsl-ehci and address 2
[    1.919852] ALSA device list:
[    1.922901]   #0: imx-3stack (UDA134X)

     then i got error when use madplay or aplay ,and both no sound.

[root@freescale: /mnt/mtdblock4]# ./madplay begin.wav 
MPEG Audio Decoder 0.15.2 (beta) - Copyright (C) 2000-2004 Robert Leslie et al.
error: frame 0: lost synchronization
error: frame 1: lost synchronization
error: frame 2: forbidden bit allocation value
error: frame 3: lost synchronization
error: frame 4: forbidden bit allocation value
error: frame 5: forbidden bit allocation value
error: frame 6: forbidden bit allocation value
error: frame 7: CRC check failed
error: frame 8: forbidden bit allocation value
error: frame 9: forbidden bit allocation value
...
...
[root@freescale: /mnt/mtdblock4]# ./madplay laodifang.mp3 
MPEG Audio Decoder 0.15.2 (beta) - Copyright (C) 2000-2004 Robert Leslie et al.
          Track: 1/1
output: write: Input/output error

     i got diffrent error when play .mp3 and .wav files.

[root@freescale: /mnt/mtdblock4]# ./aplay begin.wav 
[aplay] AuHeader = 24
[aplay] VocHeader = 26
[1aplay] WAVE-header = 0
Playing WAVE 'begin.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

     aplay has no error but it finished as soon as i start it.

 

 

Is anyone can help me?

Best wishes!

Outcomes