From: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
To: qemu-devel@nongnu.org
Cc: Paolo Bonzini <pbonzini@redhat.com>,
Thomas Huth <thuth@redhat.com>, Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [PATCH] hw/audio/gus: Use AUDIO_HOST_ENDIANNESS definition from 'audio/audio.h'
Date: Tue, 26 May 2020 08:05:06 +0200 [thread overview]
Message-ID: <294dc94e-2403-cac6-ffdb-fe746cd8c419@amsat.org> (raw)
In-Reply-To: <20200505100750.27332-1-f4bug@amsat.org>
ping...
On 5/5/20 12:07 PM, Philippe Mathieu-Daudé wrote:
> Use the generic AUDIO_HOST_ENDIANNESS definition instead
> of a custom one.
>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
> Who/what machine is using this device anyway?
> ---
> hw/audio/gus.c | 8 +-------
> 1 file changed, 1 insertion(+), 7 deletions(-)
>
> diff --git a/hw/audio/gus.c b/hw/audio/gus.c
> index eb4a803fb5..c8df2bde6b 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,
>
prev parent reply other threads:[~2020-05-26 6:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-05 10:07 [PATCH] hw/audio/gus: Use AUDIO_HOST_ENDIANNESS definition from 'audio/audio.h' Philippe Mathieu-Daudé
2020-05-05 10:10 ` Paolo Bonzini
2020-05-05 10:45 ` Philippe Mathieu-Daudé
2020-05-05 10:49 ` Paolo Bonzini
2020-05-05 10:55 ` Philippe Mathieu-Daudé
2020-05-05 11:09 ` Max Reitz
2020-05-26 6:05 ` Philippe Mathieu-Daudé [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=294dc94e-2403-cac6-ffdb-fe746cd8c419@amsat.org \
--to=f4bug@amsat.org \
--cc=kraxel@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).