diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2020-05-05 12:07:50 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-05-25 11:30:03 +0200 |
commit | 2f097e1964dc25a5633a54cae15ff068e9473196 (patch) | |
tree | 942245334e3b2c31805636e5b9d736ac46c8a53e /hw | |
parent | 369ff955a8497988d079c4e3fa1e93c2570c1c69 (diff) | |
download | qemu-2f097e1964dc25a5633a54cae15ff068e9473196.zip qemu-2f097e1964dc25a5633a54cae15ff068e9473196.tar.gz qemu-2f097e1964dc25a5633a54cae15ff068e9473196.tar.bz2 |
hw/audio/gus: Use AUDIO_HOST_ENDIANNESS definition from 'audio/audio.h'
Use the generic AUDIO_HOST_ENDIANNESS definition instead
of a custom one.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20200505100750.27332-1-f4bug@amsat.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/audio/gus.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/hw/audio/gus.c b/hw/audio/gus.c index eb4a803..c8df2bd 100644 --- a/hw/audio/gus.c +++ b/hw/audio/gus.c @@ -41,12 +41,6 @@ #define ldebug(...) #endif -#ifdef HOST_WORDS_BIGENDIAN -#define GUS_ENDIANNESS 1 -#else -#define GUS_ENDIANNESS 0 -#endif - #define TYPE_GUS "gus" #define GUS(obj) OBJECT_CHECK (GUSState, (obj), TYPE_GUS) @@ -256,7 +250,7 @@ static void gus_realizefn (DeviceState *dev, Error **errp) as.freq = s->freq; as.nchannels = 2; as.fmt = AUDIO_FORMAT_S16; - as.endianness = GUS_ENDIANNESS; + as.endianness = AUDIO_HOST_ENDIANNESS; s->voice = AUD_open_out ( &s->card, |