From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: "Geoffrey McRae" <geoff@hostfission.com>,
"Christian Schoenebeck" <qemu_oss@crudebyte.com>,
qemu-devel@nongnu.org, "José Pekkarinen" <koalinux@gmail.com>
Subject: Re: [PATCH v2] Autoconnect jack ports by default
Date: Thu, 4 Mar 2021 13:53:11 +0000 [thread overview]
Message-ID: <YEDmR9iK3Fak2utE@redhat.com> (raw)
In-Reply-To: <20210304131252.k4emi3oazylshacp@sirius.home.kraxel.org>
On Thu, Mar 04, 2021 at 02:12:52PM +0100, Gerd Hoffmann wrote:
> > I'd suggest a "auto-connect-ports" boolean option, which defaults to
> > enabled.
> >
> > - auto-connect-ports == true, connect-ports= <unset>
> >
> > => use the proposed default regex for connect ports
> >
> > - auto-connect-ports == true, connect-ports = regex
> >
> > => use the connect-ports regex
> >
> > - auto-connect-ports == false, connect-ports= <unset>
> >
> > => don't auto connect at all
> >
> > - auto-connect-ports == false, connect-ports=regex
> >
> > => logically inconsistent config, report an error
>
> Well, we need two options then, and have one inconsistent variant.
> Can't we just get along with connect-ports alone, by using the empty
> string for "do not auto connect" ?
Historically we've been unable to distinguish between the <unset> and
<set-to-empty-string> scenarios when parsing CLI args. Maybe that
isn't a problem for -audiodev since we're not using QemuOpts for
parsing ?
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
next prev parent reply other threads:[~2021-03-04 13:54 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-24 19:19 [PATCH v2] Autoconnect jack ports by default José Pekkarinen
2021-02-24 19:39 ` Christian Schoenebeck
2021-02-24 22:04 ` Geoffrey McRae
2021-02-24 22:33 ` Christian Schoenebeck
2021-02-24 22:38 ` Geoffrey McRae
2021-02-25 8:31 ` José Ramón Muñoz Pekkarinen
2021-02-25 8:48 ` Gerd Hoffmann
2021-02-26 11:40 ` Christian Schoenebeck
2021-03-03 7:13 ` Gerd Hoffmann
2021-03-04 11:24 ` Christian Schoenebeck
2021-03-04 11:56 ` Daniel P. Berrangé
2021-03-04 13:12 ` Gerd Hoffmann
2021-03-04 13:53 ` Daniel P. Berrangé [this message]
2021-03-04 14:12 ` 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=YEDmR9iK3Fak2utE@redhat.com \
--to=berrange@redhat.com \
--cc=geoff@hostfission.com \
--cc=koalinux@gmail.com \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu_oss@crudebyte.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).