qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: malc <av1474@comtv.ru>
To: Juan Quintela <quintela@redhat.com>
Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 3/4] Use C99 initializers for audio_option
Date: Tue, 28 Jul 2009 01:10:19 +0400 (MSD)	[thread overview]
Message-ID: <Pine.LNX.4.64.0907280107590.3551@linmac.oyster.ru> (raw)
In-Reply-To: <b4fdbc11fa13fab7899b166b64156be0ba743e64.1248726105.git.quintela@redhat.com>

On Mon, 27 Jul 2009, Juan Quintela wrote:

> 
> Signed-off-by: Juan Quintela <quintela@redhat.com>
> ---
>  audio/alsaaudio.c   |   88 ++++++++++++++++++++++++++--------------
>  audio/audio.c       |  109 ++++++++++++++++++++++++++++++++-------------------
>  audio/coreaudio.c   |   18 ++++++--
>  audio/dsoundaudio.c |   74 +++++++++++++++++++++++++----------
>  audio/esdaudio.c    |   36 +++++++++++------
>  audio/fmodaudio.c   |   47 +++++++++++++++-------
>  audio/ossaudio.c    |   46 +++++++++++++++------
>  audio/paaudio.c     |   44 +++++++++++++-------
>  audio/sdlaudio.c    |   11 ++++-
>  audio/wavaudio.c    |   35 +++++++++++------
>  10 files changed, 339 insertions(+), 169 deletions(-)
> 
> diff --git a/audio/alsaaudio.c b/audio/alsaaudio.c
> index 4954683..fcaf84f 100644
> --- a/audio/alsaaudio.c
> +++ b/audio/alsaaudio.c
> @@ -890,37 +890,63 @@ static void alsa_audio_fini (void *opaque)
>  }
> 
>  static struct audio_option alsa_options[] = {
> -    {"DAC_SIZE_IN_USEC", AUD_OPT_BOOL, &conf.size_in_usec_out,
> -     "DAC period/buffer size in microseconds (otherwise in frames)", NULL, 0},
> -    {"DAC_PERIOD_SIZE", AUD_OPT_INT, &conf.period_size_out,
> -     "DAC period size (0 to go with system default)",
> -     &conf.period_size_out_overridden, 0},
> -    {"DAC_BUFFER_SIZE", AUD_OPT_INT, &conf.buffer_size_out,
> -     "DAC buffer size (0 to go with system default)",
> -     &conf.buffer_size_out_overridden, 0},
> -
> -    {"ADC_SIZE_IN_USEC", AUD_OPT_BOOL, &conf.size_in_usec_in,
> -     "ADC period/buffer size in microseconds (otherwise in frames)", NULL, 0},
> -    {"ADC_PERIOD_SIZE", AUD_OPT_INT, &conf.period_size_in,
> -     "ADC period size (0 to go with system default)",
> -     &conf.period_size_in_overridden, 0},
> -    {"ADC_BUFFER_SIZE", AUD_OPT_INT, &conf.buffer_size_in,
> -     "ADC buffer size (0 to go with system default)",
> -     &conf.buffer_size_in_overridden, 0},
> -
> -    {"THRESHOLD", AUD_OPT_INT, &conf.threshold,
> -     "(undocumented)", NULL, 0},
> -
> -    {"DAC_DEV", AUD_OPT_STR, &conf.pcm_name_out,
> -     "DAC device name (for instance dmix)", NULL, 0},
> -
> -    {"ADC_DEV", AUD_OPT_STR, &conf.pcm_name_in,
> -     "ADC device name", NULL, 0},
> -
> -    {"VERBOSE", AUD_OPT_BOOL, &conf.verbose,
> -     "Behave in a more verbose way", NULL, 0},
> -
> -    {NULL, 0, NULL, NULL, NULL, 0}
> +    {
> +        .name = "DAC_SIZE_IN_USEC",
> +        .tag = AUD_OPT_BOOL,
> +        .valp = &conf.size_in_usec_out,
> +        .descr = "DAC period/buffer size in microseconds (otherwise in frames)"
> +    },{

I'd prefer:

       { .name  = "DAC_SIZE_IN_USEC",
         .tag   = AUD_OPT_BOOL,
         .valp  = &conf.size_in_usec_out,
         .descr = "DAC period/buffer size in microseconds (otherwise in frames)" },
       { ...

And likewise elsewhere.

[..snip..]

-- 
mailto:av1474@comtv.ru

  reply	other threads:[~2009-07-27 21:10 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-27 20:23 [Qemu-devel] [PATCH 0/4] Use C99 struct initializers in audio/* Juan Quintela
2009-07-27 20:23 ` [Qemu-devel] [PATCH 1/4] Use proper struct initializers and remove INIT_FIELD() macro Juan Quintela
2009-07-27 21:03   ` malc
2009-07-27 21:07     ` Anthony Liguori
2009-07-27 22:57     ` [Qemu-devel] " Paolo Bonzini
2009-07-27 23:02     ` [Qemu-devel] " Anthony Liguori
2009-07-28 16:54       ` malc
2009-07-28 17:13         ` [Qemu-devel] " Juan Quintela
2009-07-28 17:23           ` malc
2009-07-27 20:23 ` [Qemu-devel] [PATCH 2/4] use C99 initializers for audio_pcm_ops Juan Quintela
2009-07-27 21:07   ` malc
2009-07-27 20:23 ` [Qemu-devel] [PATCH 3/4] Use C99 initializers for audio_option Juan Quintela
2009-07-27 21:10   ` malc [this message]
2009-07-27 22:20     ` [Qemu-devel] " Juan Quintela
2009-07-28  8:03       ` Gerd Hoffmann
2009-07-28  8:22         ` Juan Quintela
2009-07-28 16:48       ` malc
2009-07-28 17:23         ` Juan Quintela
2009-07-28 17:39           ` malc
2009-07-27 20:23 ` [Qemu-devel] [PATCH 4/4] use C99 initializers for all audio/* Juan Quintela
2009-07-27 21:11   ` malc
2009-07-27 20:30 ` [Qemu-devel] Re: [PATCH 0/4] Use C99 struct initializers in audio/* Anthony Liguori
  -- strict thread matches above, loose matches on Subject: below --
2009-07-28  8:56 [Qemu-devel] [PATCH v2 " Juan Quintela
2009-07-28  8:56 ` [Qemu-devel] [PATCH 3/4] Use C99 initializers for audio_option Juan Quintela
2009-08-11  0:31 [Qemu-devel] [PATCH v3 0/4] Use C99 struct initializers in audio/* Juan Quintela
2009-08-11  0:31 ` [Qemu-devel] [PATCH 3/4] Use C99 initializers for audio_option Juan Quintela

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=Pine.LNX.4.64.0907280107590.3551@linmac.oyster.ru \
    --to=av1474@comtv.ru \
    --cc=aliguori@us.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@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).