mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
Add support of little-endian on i386/x86_64 dmix
i386/x86_64 alsa-lib may need to handle big-endian formats, e.g. when running via qemu on PPC. The generic dmix code already has both endian support, so let's use it as fallback.
This commit is contained in:
parent
f49e5859fd
commit
267d7c7281
4 changed files with 79 additions and 54 deletions
|
|
@ -139,12 +139,14 @@ static void dmix_server_free(snd_pcm_direct_t *dmix)
|
|||
* FIXME: optimize it for different architectures
|
||||
*/
|
||||
|
||||
#include "pcm_dmix_generic.c"
|
||||
#if defined(__i386__)
|
||||
#include "pcm_dmix_i386.c"
|
||||
#elif defined(__x86_64__)
|
||||
#include "pcm_dmix_x86_64.c"
|
||||
#else
|
||||
#include "pcm_dmix_generic.c"
|
||||
#define mix_select_callbacks(x) generic_mix_select_callbacks(x)
|
||||
#define dmix_supported_format generic_dmix_supported_format
|
||||
#endif
|
||||
|
||||
static void mix_areas(snd_pcm_direct_t *dmix,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue