qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Kővágó Zoltán" <dirty.ice.hu@gmail.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [RFC PATCH v2] qapi for audio backends
Date: Fri, 05 Jun 2015 00:08:41 +0200	[thread overview]
Message-ID: <5570CC69.2060409@gmail.com> (raw)
In-Reply-To: <1433431821.3736.52.camel@nilsson.home.kraxel.org>

Hi,

2015-06-04 17:30 keltezéssel, Gerd Hoffmann írta:
>> Not sure about this one, so it's not yet in this patch:
>> * remove poll_mode: another obscure setting, and it's only matter of time until
>>    the code bitrots enough to break it.
>
> I'd tend to drop this too, but it's probably good to check what exactly
> it is doing and to test whenever it actually works.

In my quick test it actually worked (but that was with pulseaudio's alsa 
emulation). Plus currently only alsa an oss seem to care about this 
option, so even if we keep it, we should probably move it into alsa's 
and oss's backend options.

>> Any comment is appreciated.
>
> Looks good to me as draft to start working with.  I expect we'll find
> some details which need tweeking when implementing this.
>

Yeah, I've already hit a problem. The opts_visitor doesn't really handle 
nested structs (it just flattens it into a single, non hierarchic 
namespace), which is a problem because of the input and output options. 
First I need to make them required (the in and out in Audiodev) if I 
want the current visitor to visit them at all, but it's still not enough.

Doing something like -audiodev frequency=8000 sets the input frequency 
to 8000 and leaves output frequency undefined. I think I should add an 
additional syntax: -audiodev in.frequency=8000,out.frequency=16000 (of 
course it should support deeper nesting like foo.bar.baz.asd=13). The 
question is what should happen if the user specifies frequency=8000. I 
see two alternatives:

0. set every frequency field to 8000 (i.e. the same as 
in.frequency=8000,out.frequency=8000 in this example)
1. bail out with a parameter ambiguous error

In the case of audiodev, the 0. approach seems more straightforward (if 
the user sets frequency, he wants to set both input and output 
frequency), but in more generic scenarios, the 1. is maybe better.

Thanks,
Zoltan

  reply	other threads:[~2015-06-04 22:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-04 13:39 [Qemu-devel] [RFC PATCH v2] qapi for audio backends Kővágó, Zoltán
2015-06-04 15:30 ` Gerd Hoffmann
2015-06-04 22:08   ` Kővágó Zoltán [this message]
2015-06-05 10:57     ` Gerd Hoffmann
2015-06-05 13:54       ` Kővágó Zoltán
2015-06-08  7:42         ` Gerd Hoffmann

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=5570CC69.2060409@gmail.com \
    --to=dirty.ice.hu@gmail.com \
    --cc=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /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).