From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: zhouyang23 <zhouyang23@xiaomi.com>, qemu-devel@nongnu.org
Cc: kraxel@redhat.com, "Volker Rümelin" <vr_qemu@t-online.de>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>
Subject: Re: [PATCH] hw/audio: Fix logic error in hda audio
Date: Thu, 16 Nov 2023 14:18:27 +0100 [thread overview]
Message-ID: <52024c40-1bff-470d-97c9-9c6f8b653670@linaro.org> (raw)
In-Reply-To: <20231116075019.296115-1-zhouyang23@xiaomi.com>
On 16/11/23 08:50, zhouyang23 via wrote:
> Commit b7639b7dd0 introduced a logic error about mixer and nomixer.
> Cause use micro_mixemu when there is no mixer in HDAAudioState, but
> use micro_nomixemu wehen there has a mixer in HDAAuditState.
Cc'ing Marc-André and Volker for
https://lore.kernel.org/qemu-devel/20231105172552.8405-2-vr_qemu@t-online.de/
> Signed-off-by: zhouyang23 <zhouyang23@xiaomi.com>
> ---
> hw/audio/hda-codec.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/hw/audio/hda-codec.c b/hw/audio/hda-codec.c
> index b9ad1f4c39..87bacb3bee 100644
> --- a/hw/audio/hda-codec.c
> +++ b/hw/audio/hda-codec.c
> @@ -857,7 +857,7 @@ static void hda_audio_init_output(HDACodecDevice *hda, Error **errp)
> HDAAudioState *a = HDA_AUDIO(hda);
> const struct desc_codec *desc = &output_nomixemu;
>
> - if (!a->mixer) {
> + if (a->mixer) {
> desc = &output_mixemu;
> }
>
> @@ -869,7 +869,7 @@ static void hda_audio_init_duplex(HDACodecDevice *hda, Error **errp)
> HDAAudioState *a = HDA_AUDIO(hda);
> const struct desc_codec *desc = &duplex_nomixemu;
>
> - if (!a->mixer) {
> + if (a->mixer) {
> desc = &duplex_mixemu;
> }
>
> @@ -881,7 +881,7 @@ static void hda_audio_init_micro(HDACodecDevice *hda, Error **errp)
> HDAAudioState *a = HDA_AUDIO(hda);
> const struct desc_codec *desc = µ_nomixemu;
>
> - if (!a->mixer) {
> + if (a->mixer) {
> desc = µ_mixemu;
> }
>
next prev parent reply other threads:[~2023-11-16 13:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-16 7:50 [PATCH] hw/audio: Fix logic error in hda audio zhouyang23 via
2023-11-16 13:18 ` Philippe Mathieu-Daudé [this message]
2023-11-20 8:16 ` Marc-André Lureau
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=52024c40-1bff-470d-97c9-9c6f8b653670@linaro.org \
--to=philmd@linaro.org \
--cc=kraxel@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=vr_qemu@t-online.de \
--cc=zhouyang23@xiaomi.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).