Sound very distorted on armel

Bug #587632 reported by Alexander Schremmer
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libmad (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Ubuntu release: 10.04
Arch: armel (beagle board)

Using xine to play an MP3 file (reproduce by running xine foo.mp3) generates severe distortions. After replacing the libmad0.so... by the version from angstrom, the problem is gone. This happens using every program that uses libmad0 internally.

Revision history for this message
Loïc Minier (lool) wrote :

See also bug #489242

tags: added: armel
Revision history for this message
mpasch (mattispasch) wrote :

Same problem here on a BeagleBoard, Ubuntu 10.04, too.

Replacing /usr/lib/libmad.so.0.2.1 with one from a debian package everything works fine.

http://packages.debian.org/lenny/libmad0

Revision history for this message
Dave Martin (dave-martin-arm) wrote :

Can someone who's observed this problem do a rebuild of libmad in arm and see if this fixed the problem?

The simplest way to do this is probably to add -marm in the cflags.

Revision history for this message
sam tygier (samtygier) wrote :

i was hearing very nasty sound for MP3s in mpd on beagleboard. recompiling libmad0_0.15.1b-4ubuntu1 with -marm has solved this.

my steps were:
sudo apt-get build-dep libmad
sudo apt-get install devscripts
apt-get source libmad
vim libmad-0.15.1b/debian/rule # (and add the line "CFLAGS +=-marm" some where near the top)
cd libmad-0.15.1b/
debuild -us -uc
cd ..
sudo dpkg -i libmad0_0.15.1b-4ubuntu1_armel.deb

restart mpd and sound is fixed.

Changed in libmad (Ubuntu):
status: New → Confirmed
Revision history for this message
Nicolas Dechesne (ndec) wrote :

I am getting the same problem on OMAP4 using recent 10.10 pre installed image

Revision history for this message
Oliver Grawert (ogra) wrote :

would be nice if that could be fixed properly at some point so libmad can work with thumb2. for now i have uploaded a fix that enables -marm ...

Revision history for this message
Dave Martin (dave-martin-arm) wrote :

Hi there,

Can someone with a working audio setup test this branch?

https://code.launchpad.net/~dave-martin-arm/ubuntu/lucid/libmad/hack-use-arm-for-MAD_F_MLN
(use bzr branch lp:~dave-martin-arm/ubuntu/lucid/libmad/hack-use-arm-for-MAD_F_MLN)

This uses the old ARM code for MAD_F_MLN, temporarily switching to ARM around it.

This isn't proposed as a fix, but if it solves the problem then this means the bug is in the Thumb-2 specific code for that macro.

Cheers
---Dave

Revision history for this message
Dave Martin (dave-martin-arm) wrote :

I've been taking a closer look at the MAD_F_MLN code, and I think I've identified some faulty register usage --- currently investigating a fix and will feed back soon.

Revision history for this message
Dave Martin (dave-martin-arm) wrote :

Can someone with a working setup test this branch?

lp:~dave-martin-arm/ubuntu/maverick/libmad/fix-thumb2-MAD_F_MLN

I found a probable error on the Thumb-2 specific code--- I think this ought to fix it.

Revision history for this message
Colin Watson (cjwatson) wrote :

libmad (0.15.1b-4ubuntu2) maverick; urgency=low

  * build with -marm on armel (LP: #587632)

 -- Oliver Grawert <email address hidden> Tue, 14 Sep 2010 14:37:42 +0200

Changed in libmad (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
sam tygier (samtygier) wrote :

@dave martin.
your fix works.

i had been running a self build package with -marm for a while, giving good sound in mpd.
then i reverted to the libmad0_0.15.1b-4ubuntu1_armel.deb from the repos. that gave bad sound.
then i built your version from bzr. good sound.

thanks

Loïc Minier (lool)
Changed in libmad (Ubuntu):
status: Fix Released → In Progress
Revision history for this message
Dave Martin (dave-martin-arm) wrote :

@sam

Great news--- thanks for testing!

Steve Langasek (vorlon)
tags: added: arm-porting-queue
Revision history for this message
Jani Monoses (jani) wrote :

Dave's patch was applied by ogra early in natty but did not autoclose this bug.

libmad (0.15.1b-5ubuntu1) natty; urgency=low

  * Merge from debian unstable. Remaining changes:
    - libmad.thumb.diff: use "adr" instead of "add" to make code ready for
      thumb2
    - Provide-Thumb-2-alternative-code-for-MAD_F_MLN.diff: fix another
      ftbfs with thumb2 as "rsc" doesnt exist anymore - thanks to Dave
      Martin for this patch (LP: #534287).
  * Update Provide-Thumb-2-alternative-code-for-MAD_F_MLN.diff according
    to LP: bug #587632 and drop -marm

 -- Oliver Grawert <email address hidden> Wed, 24 Nov 2010 14:12:57 +0100

Changed in libmad (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.