All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] audio: fix in.voices test
@ 2022-09-25  8:56 Helge Konetzka
  2022-09-27 11:28 ` Marc-André Lureau
  2022-10-11 13:30 ` Gerd Hoffmann
  0 siblings, 2 replies; 3+ messages in thread
From: Helge Konetzka @ 2022-09-25  8:56 UTC (permalink / raw)
  To: qemu-devel, Gerd Hoffmann


Calling qemu with valid -audiodev ...,in.voices=0 results in an obsolete
warning:
   audio: Bogus number of capture voices 0, setting to 0
This patch fixes the in.voices test.

Signed-off-by: Helge Konetzka <hk@zapateado.de>
---
  audio/audio.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/audio/audio.c b/audio/audio.c
index cfa4119c05..8a0ade4052 100644
--- a/audio/audio.c
+++ b/audio/audio.c
@@ -1756,7 +1756,7 @@ static AudioState *audio_init(Audiodev *dev, const 
char *name)
          s->nb_hw_voices_out = 1;
      }

-    if (s->nb_hw_voices_in <= 0) {
+    if (s->nb_hw_voices_in < 0) {
          dolog ("Bogus number of capture voices %d, setting to 0\n",
                 s->nb_hw_voices_in);
          s->nb_hw_voices_in = 0;
-- 
2.37.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] audio: fix in.voices test
  2022-09-25  8:56 [PATCH 1/2] audio: fix in.voices test Helge Konetzka
@ 2022-09-27 11:28 ` Marc-André Lureau
  2022-10-11 13:30 ` Gerd Hoffmann
  1 sibling, 0 replies; 3+ messages in thread
From: Marc-André Lureau @ 2022-09-27 11:28 UTC (permalink / raw)
  To: Helge Konetzka; +Cc: qemu-devel, Gerd Hoffmann

[-- Attachment #1: Type: text/plain, Size: 1052 bytes --]

On Sun, Sep 25, 2022 at 12:57 PM Helge Konetzka <hk@zapateado.de> wrote:

>
> Calling qemu with valid -audiodev ...,in.voices=0 results in an obsolete
> warning:
>    audio: Bogus number of capture voices 0, setting to 0
> This patch fixes the in.voices test.
>
> Signed-off-by: Helge Konetzka <hk@zapateado.de>
>

weird case, ok :)
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>



> ---
>   audio/audio.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/audio/audio.c b/audio/audio.c
> index cfa4119c05..8a0ade4052 100644
> --- a/audio/audio.c
> +++ b/audio/audio.c
> @@ -1756,7 +1756,7 @@ static AudioState *audio_init(Audiodev *dev, const
> char *name)
>           s->nb_hw_voices_out = 1;
>       }
>
> -    if (s->nb_hw_voices_in <= 0) {
> +    if (s->nb_hw_voices_in < 0) {
>           dolog ("Bogus number of capture voices %d, setting to 0\n",
>                  s->nb_hw_voices_in);
>           s->nb_hw_voices_in = 0;
> --
> 2.37.3
>
>

-- 
Marc-André Lureau

[-- Attachment #2: Type: text/html, Size: 1829 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] audio: fix in.voices test
  2022-09-25  8:56 [PATCH 1/2] audio: fix in.voices test Helge Konetzka
  2022-09-27 11:28 ` Marc-André Lureau
@ 2022-10-11 13:30 ` Gerd Hoffmann
  1 sibling, 0 replies; 3+ messages in thread
From: Gerd Hoffmann @ 2022-10-11 13:30 UTC (permalink / raw)
  To: Helge Konetzka; +Cc: qemu-devel

On Sun, Sep 25, 2022 at 10:56:56AM +0200, Helge Konetzka wrote:
> 
> Calling qemu with valid -audiodev ...,in.voices=0 results in an obsolete
> warning:
>   audio: Bogus number of capture voices 0, setting to 0
> This patch fixes the in.voices test.
> 
> Signed-off-by: Helge Konetzka <hk@zapateado.de>
> ---
>  audio/audio.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/audio/audio.c b/audio/audio.c
> index cfa4119c05..8a0ade4052 100644
> --- a/audio/audio.c
> +++ b/audio/audio.c
> @@ -1756,7 +1756,7 @@ static AudioState *audio_init(Audiodev *dev, const
> char *name)

Patch is mangled (line-wrapped) here, 'git am' refuses to accept it.
Please use 'git send-email' to post patches,

thanks & take care,
  Gerd



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-10-11 13:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-25  8:56 [PATCH 1/2] audio: fix in.voices test Helge Konetzka
2022-09-27 11:28 ` Marc-André Lureau
2022-10-11 13:30 ` Gerd Hoffmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.