hw/audio/gus: Use AUDIO_HOST_ENDIANNESS definition from 'audio/audio.h'
PATCH 1/1 hw/audio/gus: Use AUDIO_HOST_ENDIANNESS definition from 'audio/audio.h'
Use the generic AUDIO_HOST_ENDIANNESS definition instead of a custom one.
---
Who/what machine is using this device anyway?
--- hw/audio/gus.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
hw/audio/gus.c +1 -7
@@ -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,
Signature · 1 line
2.21.3
Quoted 6 lines · Philippe Mathieu-Daudé
Use the generic
AUDIO_HOST_ENDIANNESSdefinition instead of a custom one.Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
Who/what machine is using this device anyway?
PC, like all old ISA audio cards.
Paolo
Quoted 9 lines · Paolo Bonzini
Quoted 6 lines · Philippe Mathieu-Daudé
Use the generic
AUDIO_HOST_ENDIANNESSdefinition instead of a custom one.Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
Who/what machine is using this device anyway?PC, like all old ISA audio cards.
I imagined, but any particular project in mind? I'm wondering if we should add a test for it, and what kind of testing.
Quoted 5 lines · Philippe Mathieu-Daudé
Quoted 4 lines · Paolo Bonzini
Quoted 3 lines · Philippe Mathieu-Daudé
Use the generic
AUDIO_HOST_ENDIANNESSdefinition instead of a custom one.
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
Who/what machine is using this device anyway?PC, like all old ISA audio cards.
I imagined, but any particular project in mind? I'm wondering if we should add a test for it, and what kind of testing.
Old games and demos use it. Most demos don't work that well on QEMU though.
Paolo
Quoted 10 lines · Paolo Bonzini
Quoted 9 lines · Philippe Mathieu-Daudé
Quoted 8 lines · Paolo Bonzini
Quoted 6 lines · Philippe Mathieu-Daudé
Use the generic
AUDIO_HOST_ENDIANNESSdefinition instead of a custom one.Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
Who/what machine is using this device anyway?
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
PC, like all old ISA audio cards.
I imagined, but any particular project in mind? I'm wondering if we should add a test for it, and what kind of testing.
Old games and demos use it. Most demos don't work that well on QEMU though.
Good. Cc'ing Max in case he knows a such demo we can use for testing.
Thanks!
Quoted 3 lines
Paolo
Quoted 13 lines · Philippe Mathieu-Daudé
Quoted 12 lines · Paolo Bonzini
Quoted 11 lines · Philippe Mathieu-Daudé
Quoted 9 lines · Paolo Bonzini
Quoted 6 lines · Philippe Mathieu-Daudé
Use the generic
AUDIO_HOST_ENDIANNESSdefinition instead of a custom one.Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
Who/what machine is using this device anyway?PC, like all old ISA audio cards.
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
I imagined, but any particular project in mind? I'm wondering if we should add a test for it, and what kind of testing.
Old games and demos use it. Most demos don't work that well on QEMU though.
Good. Cc'ing Max in case he knows a such demo we can use for testing.
I don’t know how that impression could have manifested, but I’m actually not really an expert on old demos or games. (I just happened to write some 512 byte stuff at some point, but the only sound I ever used there was over the PC speaker...)
Max
ping...
Quoted 37 lines · Philippe Mathieu-Daudé
Use the generic
AUDIO_HOST_ENDIANNESSdefinition instead of a custom one.Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
Who/what machine is using this device anyway?--- hw/audio/gus.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)hw/audio/gus.c +1
-7@@ -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,