|
From: | Krzysztof Stankiewicz |
Subject: | Re: [Ltib] mp3play produces sound but mplayer doesnt? |
Date: | Thu, 12 May 2011 16:20:21 +1000 |
Hi Kevin, I am indeed using the latest u-boot-2009.03 and the toolchain you've suggested, new rpm/BUILD and fresh CVS ltib. Also the rootfs it builds. My electronics guy suggested that I2S (?) clock speed might be different? I can only think of hardware differences at this stage after following your instructions. Though in every respect everything else seems to work. so... Does that hold any value and where would I change it? From: address@hidden To: address@hidden; address@hidden; address@hidden Date: Wed, 11 May 2011 19:12:40 +0200 Subject: RE: [Ltib] mp3play produces sound but mplayer doesnt? You should be able to replace the kickstart and S1L without any problems, but they shouldnt have any impact on whatever OS you are running on the board.
It really looks like your just using older versions of the code, u-boot-1.3.3 is very old. Use u-boot-2009.03 instead. Verify you are using the 4.12. EABI toolchain. All this should be selected by default on a fresh build with unchanged LTIB configs.
You might also want to clean out your rpm/BUILD area before you start a clean build, backing up any changes to the code you made.
Kevin
From: Krzysztof Stankiewicz [mailto:address@hidden
Im using the clean build from CVS of uBoot, Kernel2.6.34 and rootfs generated by ltib. From: address@hidden
Ive just did a clean test build of the kernel and rootfs from the current LTIB patches. The configuration has only been modified to add mp3play, madplayer, and mplayer.
On kernel boot, I see my ALSA device. This appears to be correct in your boot log too. ALSA device list: #0: LPC32XX (UDA1380)
From a mounted SD card, I run a short demo mp3 using mp3play and hear audio. address@hidden src]# mp3play demo.mp3 demo.mp3: MPEG2-III (5558 ms) address@hidden src]#
mp3play will work with ALSA device nodes, but youll need them for madplayer. Make them if they arent there.. ALSA devices are mapped as follows: address@hidden src]# cat /proc/asound/devices 2: : timer 3: : sequencer 4: [ 0- 0]: digital audio playback 5: [ 0- 0]: digital audio capture 6: [ 0] : control address@hidden src]# cd /dev/snd address@hidden snd]# ls -l crw-r--r-- 1 root root 116, 6 May 10 2011 controlC0 crw-r--r-- 1 root root 116, 5 May 10 2011 pcmC0D0c crw-r--r-- 1 root root 116, 4 May 10 2011 pcmC0D0p address@hidden snd]#
A test of madplayer with the demo sample works and I can hear audio. address@hidden src]# madplay demo.mp3 MPEG Audio Decoder 0.15.2 (beta) - Copyright (C) 2000-2004 Robert Leslie et al. Title: Llama Whippin' Intro Artist: DJ Mike Llama Album: Beats of Burdon Track: 1 Genre: Rock Rock error: frame 205: lost synchronization 205 frames decoded (0:00:05.3), -4.4 dB peak amplitude, 0 clipped samples address@hidden src]#
Likewise, mplayer works and I can hear audio.. address@hidden src]# mplayer demo.mp3 MPlayer 1.0rc2-4.1.2 (C) 2000-2007 MPlayer Team Creating config file: //.mplayer/config
Playing demo.mp3. Audio file file format detected. Clip info: Title: Llama Whippin' Intro Artist: Nullsoft Album: Juman Sucks Year: Comment: Track: 1 Genre: Unknown ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 AUDIO: 22050 Hz, 2 ch, s16le, 56.0 kbit/7.94% (ratio: 7000->88200) Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== AO: [oss] 22050Hz 2ch s16le (2 bytes per sample) Video: no video Starting playback... A: 3.9 (03.9) of 5.0 (05.0) 7.4%
Exiting... (End of file) address@hidden src]#
Ive also tested with 44.1 and 48K content. It all works fine.
Capture and playback devices are there.. address@hidden src]# arecord -l **** List of CAPTURE Hardware Devices **** card 0: LPC32XX [LPC32XX], device 0: UDA1380 UDA1380-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 address@hidden src]# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: LPC32XX [LPC32XX], device 0: UDA1380 UDA1380-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 address@hidden src]#
Running alsamixer, I get the mixer panel. I apologize for the formatting. lqqqqqqqqqqqqqqqqq[AlsaMixer v1.0.11rc2 (Press Escape to quit)]qqqqqqqqqqqqqqqqk x Card: LPC32XX x x Chip: x x View: [Playback] Capture All x x Item: Master [dB gain=0.00, 0.00] x x x x lqqk lqqk lqqk lqqk lqqk x x xaax x x x x xaax x x x x xaax x x x x xaax x x x x xaax x x x x xaax x x > x xaax x x x x xaax x x > x xaax x x x x xaax x x > x xaax x x x x xaax x x > x xaax x x x x xaax x x > x xaax x x x x xaax x x > x xaax x x x x xaax x x x x xaax x x x x xaax x x x x xaax x x x x xaax None ADC x x None x x tqqu mqqj mqqj tqqu tqqu x x xMMx xOOx xMMx x x mqqj mqqj mqqj x x 100<>100 0<>0 0<>0 100 -10 x x < Master > Bass Treble PCM PCM Play Capture ADC ADC Play x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
Everything seems to work fine, so take a close look at your environment. If youve made changes to the configuration, restore the original configuration and rebuild. I noticed some of the dates in your root filesystem are in November 2010. Let LTIB build the complete root filesystem from scratch and try that one just in case something is causing problems.
I also noticed your using GCC 4.3.2. Dont use this version. Use the default version that LTIB picks for you (4.1.2 EABI w/ VFP). GCC 4.3.2 is no longer an option for the LPC32xx boards and hasnt been a selectable option for a while. Make sure your LTIB is up to date, use the cvs version, not the snapshot.
Kevin
Subject: RE: [Ltib] mp3play produces sound but mplayer doesnt?
Hi Kevin, From: address@hidden
Ill try it when I get back to the office next week. PCMCIA shouldnt be enabled in the kernel for the LPC32xx. Verify you have all the latest LTIB updates to get all the latest 32xx patches. Also build with the default kernel config just to make sure nothing has been changed in the kernel that can cause some type of problem.
As of last check (a few months ago), mp3play, madplayer, and mplayer all worked fine.
Kevin
Subject: Re: [Ltib] mp3play produces sound but mplayer doesnt?
From: address@hidden
Hi,
It might require ALSA device nodes in /dev/snd/. Have you checked the setup for ALSA (check http://www.lpclinux.com/Forums/ForumLPC32xx0001) and also verified the volume is on?
thanks, Kevin
Subject: Re: [Ltib] mp3play produces sound but mplayer doesnt?
Oh hi I meant;
|
[Prev in Thread] | Current Thread | [Next in Thread] |