ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] mp3play produces sound but mplayer doesnt?


From: Kevin Wells
Subject: Re: [Ltib] mp3play produces sound but mplayer doesnt?
Date: Wed, 11 May 2011 19:12:40 +0200

You should be able to replace the kickstart and S1L without any problems, but they shouldn’t 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
Sent: Wednesday, May 11, 2011 12:10 AM
To: Kevin Wells; address@hidden; address@hidden
Subject: RE: [Ltib] mp3play produces sound but mplayer doesnt?

 

Im using the clean build from CVS of uBoot, Kernel2.6.34 and rootfs generated by ltib.
alsamixer decided to work but I still get no sound.

Ive confirmed my uboot 1.3.3 and kernel 2.6.27.8 does play sound.

I wonder if the kickstart is to blame? (Im afraid to replace it, plus not sure I know which one to put on)

Phytec LPC3250 board
Build date: May 19 2009 16:28:07




From: address@hidden
To: address@hidden; address@hidden; address@hidden
Date: Tue, 10 May 2011 18:46:47 +0200
Subject: RE: [Ltib] mp3play produces sound but mplayer doesnt?

 

I’ve 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 you’ll need them for madplayer. Make them if they aren’t 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]#

 

I’ve 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 you’ve

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. Don’t 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 hasn’t 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,

I think I've done everything right a few dozen times but still cannot produce sound with .34.
Neither with madplay mp3play or mplayer. alsamixer produces message about 'ioctl'

Ive gotten latest ltib using cvs again, that would come with latest patches right?

Please help.


address@hidden /]# more  /proc/asound/devices
  2:        : timer
  3:        : sequencer
  4: [ 0- 0]: digital audio playback
  5: [ 0- 0]: digital audio capture
  6: [ 0]   : control




address@hidden /]# ls /dev/snd/ -la
drwxr-xr-x    2 root     root         4096 Nov 23  2010 .
drwxr-xr-x    4 root     root         4096 May  9  2011 ..
crw-r--r--    1 root     root     116,   6 Nov 23  2010 controlC0
crw-r--r--    1 root     root     116,   5 Nov 23  2010 pcmC0D0c
crw-r--r--    1 root     root     116,   4 Nov 23  2010 pcmC0D0p





address@hidden /]# alsamixer

alsamixer: function snd_mixer_load failed: Inappropriate ioctl for device





address@hidden apps]# ./madplay muse-1~1.mp3
MPEG Audio Decoder 0.15.2 (beta) - Copyright (C) 2000-2004 Robert Leslie et al.
          Title: Butterflies & Hurricanes
         Artist: Muse
          Album: Absolution
          Track: 10
          Genre: Other

(Produces silence)





## Booting kernel from Legacy Image at 80100000 ...
   Image Name:   Linux-2.6.34
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1870776 Bytes =  1.8 MB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

ÿLinux version 2.6.34 (address@hidden) (gcc version 4.3.2 (crosstool-NG-1.3.1) )
 #3 PREEMPT Tue May 10 11:41:13 CST 2011
CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Phytec 3250 board with the LPC3250 Microcontroller
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: console=ttyS0,115200n81 root=/dev/nfs rw nfsroot=192.168.1.
240:/newplc3250/ltib-10-1-1a-sv/rootfs_working ip=192.168.1.241 init=/linuxrc et
haddr=00:14:7D:01:02
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: 64MB = 64MB total
Memory: 60988k/60988k available, 4548k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xc4800000 - 0xf0000000   ( 696 MB)
    lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc0028000   ( 128 kB)
      .text : 0xc0028000 - 0xc039c000   (3536 kB)
      .data : 0xc039c000 - 0xc03c1400   ( 149 kB)
Hierarchical RCU implementation.
NR_IRQS:96
Console: colour dummy device 80x30
Calibrating delay loop... 103.83 BogoMIPS (lpj=519168)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
LPC32XX unique ID: 00000000000000000000000000000000
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Advanced Linux Sound Architecture Driver Version 1.0.22.1.
Switching to clocksource lpc32xx_clksrc
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
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 119
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
CLCD: Phytec LCD hardware, QVGA portrait display
Console: switching to colour frame buffer device 30x40
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x40090000 (irq = 9) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
NAND device: Manufacturer ID: 0x20, Chip ID: 0x75 (ST Micro NAND 32MiB 3,3V 8-bi
t)
Creating 5 MTD partitions on "lpc32xx-nand":
0x000000000000-0x000000064000 : "phy3250-boot"
0x000000064000-0x0000001f4000 : "phy3250-uboot"
0x0000001f4000-0x000000204000 : "phy3250-ubt-prms"
0x000000204000-0x000000604000 : "phy3250-kernel"
0x000000604000-0x000002000000 : "phy3250-rootfs"
ssp-pl022 dev:ssp0: ARM PL022 driver, device ID: 0x00041022
pl022: mapped registers from 0x20084000 to c488c000
at25 spi0.0: 32 KByte at25256a eeprom, pagesize 64
lpc_mii_bus: probed
eth0: using RMII interface
eth0: LPC mac at 0x31060000 irq 29
eth0: attached PHY driver [SMSC LAN8700] (mii_bus:phy_addr=0:01, irq=-1)
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ISP1301 Vendor ID  : 0x0483
ISP1301 Product ID : 0xa0c4
ISP1301 Version ID : 0x4747
usb-ohci usb-ohci: at 0xf3120000, irq 0
usb-ohci usb-ohci: pnx4008 OHCI
usb-ohci usb-ohci: new USB bus registered, assigned bus number 1
usb-ohci usb-ohci: irq 59, io mem 0xf3120000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver libusual
mice: PS/2 mouse device common for all mice
input: lpc32xx-ts as /class/input/input0
rtc-lpc32xx rtc-lpc32xx: rtc core: registered rtc-lpc32xx as rtc0
i2c /dev entries driver
PNX4008-WDT: PNX4008 Watchdog Timer: heartbeat 19 sec
cpuidle: using governor ladder
cpuidle: using governor menu
mmci-pl18x dev:mmc0: DMA buffer: phy:83dc0000, virt:ffc4e000
mmci-pl18x dev:mmc0: mmc0: MMCI rev 0 cfg 00 at 0x0000000020098000 irq 15,13
No device for DAI lpc3xxx-i2s0
No device for DAI lpc3xxx-i2s1
asoc: UDA1380 <-> lpc3xxx-i2s1 mapping ok
ALSA device list:
  #0: LPC32XX (UDA1380)
TCP cubic registered
NET: Registered protocol family 17
VFP support v0.3: implementor 41 architecture 1 part 10 variant 9 rev 1
rtc-lpc32xx rtc-lpc32xx: setting system clock to 1970-01-01 00:00:21 UTC (21)
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
     device=eth0, addr=192.168.1.241, mask=255.255.255.0, gw=255.255.255.255,
     host=192.168.1.241, domain=, nis-domain=(none),
     bootserver=255.255.255.255, rootserver=192.168.1.240, rootpath=
Looking up port of RPC 100003/2 on 192.168.1.240
Looking up port of RPC 100005/1 on 192.168.1.240
VFS: Mounted root (nfs filesystem) on device 0:10.
Freeing init memory: 128K
init started: BusyBox v1.11.2 ()


From: address@hidden
To: address@hidden; address@hidden; address@hidden
Date: Thu, 5 May 2011 06:38:02 +0200
Subject: RE: [Ltib] mp3play produces sound but mplayer doesnt?

 

I’ll try it when I get back to the office next week. PCMCIA shouldn’t 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?

 


i did just notice that the following two lines are missing in my .34 kernel; even though bus pcmcia is enabled;

address@hidden /]# more /proc/devices
252 usb_endpoint
253 pcmcia

no matter what i enable when building the kernel, in .34 I cannot get this device to show up...


From: address@hidden
To: address@hidden; address@hidden; address@hidden
Date: Tue, 3 May 2011 16:15:33 +0200
Subject: Re: [Ltib] mp3play produces sound but mplayer doesnt?

 

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;

mplayer is capable of decoding mp3's also, but when it attempts it theres no sound coming out.

So i wonder how to make it use existing hardware correctly when mp3player can?

Something to do with OSS/ALSA..? something wasnt compiled into the kernel I have?


> Date: Mon, 2 May 2011 15:09:09 +0100
> From: address@hidden
> To: address@hidden
> CC: address@hidden
> Subject: Re: [Ltib] mp3play produces sound but mplayer doesnt?
>
> mp4 is a different format an needs a different codec/package.
>
> On 28/04/11 09:16, Krzysztof Stankiewicz wrote:
> >
> > any clues to this?
> >
> > if mp3play can play an mp3 why i can only get blips from mplayer when
> > playing an mp4?
> >
> >
> >
>
> _______________________________________________
> LTIB home page: http://ltib.org
>
> Ltib mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/ltib


_______________________________________________ LTIB home page: http://ltib.org Ltib mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/ltib


reply via email to

[Prev in Thread] Current Thread [Next in Thread]