← Back to team overview

ac100 team mailing list archive

Re: [Bug 1082031] [NEW] Package mpg123 for arm with option "--with-cpu=generic_fpu"

 

Am Thu, 22 Nov 2012 14:15:39 -0000
schrieb Funatiker <1082031@xxxxxxxxxxxxxxxxxx>: 

> According to the Audacious-Board [2] this happens because has no ARM-
> assembly code for playing anything else than 16bit. It can be resolved
> by recompiling mpg123 with option "--with-cpu=generic_fpu"

Right and wrong.

1. There is ARM-assembly code for 16 bit, 32 bit and float, using NEON
instructions (Cortex A8). That's the most fun way to play with mpg123 on
current ARM machines.
2. The normal ARM code is written for classic ARM CPUs without floating
point support, employing integer math, where output of float values
would be a bit silly.
3. So, for ARMs without NEON, but sporting decent floating
point support, generic_fpu indeed is a good choice.

> [1] https://wiki.ubuntu.com/ARM/TEGRA/AC100

Too bad that's a Tegra 2 that manages to skip on the NEON part. Note
that it would be possible to provide a build of generic_cpu and neon
together, deciding at runtime which to use, just like the x86 build.
But there is a catch: Someone needs some time to prepare some glue code
and test it (the CPU check and setting some function pointers in
optimize.c). Currently, I'm not the one.

For the record: Combining the integer ARM code with floating point code in a single
build is unrealistic.


Alrighty then,

Thomas

-- 
You received this bug notification because you are a member of AC100
Team, which is subscribed to AC100_enablement.
https://bugs.launchpad.net/bugs/1082031

Title:
  Package mpg123 for arm with option "--with-cpu=generic_fpu"

Status in Enablement project for the Toshiba AC100 NetBook:
  New
Status in “audacious” package in Ubuntu:
  New
Status in “mpg123” package in Ubuntu:
  New

Bug description:
  Listening music with audacious on Lubuntu 12.10 (installed according to [1]) fails with the message:
  „mpg123: Error opening file a.mp3: Unable to set up output format! (code 1).“

  According to the Audacious-Board [2] this happens because has no ARM-
  assembly code for playing anything else than 16bit. It can be resolved
  by recompiling mpg123 with option "--with-cpu=generic_fpu"

  [1] https://wiki.ubuntu.com/ARM/TEGRA/AC100
  [2] http://redmine.audacious-media-player.org/boards/2/topics/315

To manage notifications about this bug go to:
https://bugs.launchpad.net/ac100/+bug/1082031/+subscriptions