1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 08:12:17 +00:00
mpv/libao2
wm4 74df1d8e05 Remove compile time/runtime CPU detection, and drop some platforms
mplayer had three ways of enabling CPU specific assembler routines:
a) Enable them at compile time; crash if the CPU can't handle it.
b) Enable them at compile time, but let the configure script detect
   your CPU. Your binary will only crash if you try to run it on a
   different system that has less features than yours.
   This was the default, I think.
c) Runtime detection.

The implementation of b) and c) suck. a) is not really feasible (it
sucks for users). Remove all code related to this, and use libav's CPU
detection instead. Now the configure script will always enable CPU
specific features, and disable them at runtime if libav reports them
not as available.

One implication is that now the compiler is always expected to handle
SSE (etc.) inline assembly at runtime, unless it's explicitly disabled.

Only checks for x86 CPU specific features are kept, the rest is either
unused or barely used.

Get rid of all the dump -mpcu, -march etc. flags. Trust the compiler
to select decent settings.

Get rid of support for the following operating systems:
- BSD/OS (some ancient BSD fork)
- QNX (don't care)
- BeOS (dead, Haiku support is still welcome)
- AIX (don't care)
- HP-UX (don't care)
- OS/2 (dead, actual support has been removed a while ago)

Remove the configure code for detecting the endianness. Instead, use
the standard header <endian.h>, which can be used if _GNU_SOURCE or
_BSD_SOURCE is defined. (Maybe these changes should have been in a
separate commit.)

Since this is a quite violent code removal orgy, and I'm testing only
on x86 32 bit Linux, expect regressions.
2012-07-30 01:37:28 +02:00
..
ao_alsa.c ao_alsa: support native mute control 2012-04-11 03:56:30 +03:00
ao_coreaudio.c Remove compile time/runtime CPU detection, and drop some platforms 2012-07-30 01:37:28 +02:00
ao_dsound.c audio: restore volume setting after AO reinit if needed 2012-04-11 03:50:31 +03:00
ao_jack.c ao_jack: increase maximum allowed channels from 6 to 8. 2010-11-02 04:07:42 +02:00
ao_null.c ao_null: convert to new API, cleanup/rewrite 2011-05-05 04:45:44 +03:00
ao_openal.c ao_openal: fix crash when no device parameter is passed 2012-04-25 02:20:37 +02:00
ao_oss.c Remove compile time/runtime CPU detection, and drop some platforms 2012-07-30 01:37:28 +02:00
ao_pcm.c ao_pcm: fix pointless message due to uninitialize variable 2011-08-11 20:58:05 +03:00
ao_portaudio.c ao_portaudio: add new PortAudio audio output driver 2012-05-06 17:57:44 +03:00
ao_pulse.c ao_pulse: fix specifying host/sink after 4fed8ad197 2012-05-03 23:45:57 +03:00
ao_rsound.c ao_rsound: add new RSound audio output driver 2011-06-26 06:19:42 +03:00
ao_v4l2.c audio: export audio pts to AO drivers 2011-07-31 16:31:07 +03:00
audio_out_internal.h options: move mixer.h options to struct 2012-03-20 14:51:32 +02:00
audio_out.c libvo, libao: remove useless video and audio output drivers 2012-07-28 20:44:59 +02:00
audio_out.h mixer: support native audio driver mute 2012-04-11 03:56:28 +03:00