From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Oleksandr Andrushchenko <andr2000@gmail.com>
Cc: alsa-devel@alsa-project.org,
Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>,
Takashi Iwai <tiwai@suse.de>,
Clemens Ladisch <clemens@ladisch.de>,
Takashi Sakamoto <o-takashi@sakamocchi.jp>,
Oleksandr Grytsov <oleksandr_grytsov@epam.com>,
xen-devel@lists.xenproject.org
Subject: Re: [Xen-devel][PATCH 2/2] sndif: add explicit back and front synchronization
Date: Thu, 1 Mar 2018 17:11:56 -0500 [thread overview]
Message-ID: <20180301221156.GC32676@char.us.oracle.com> (raw)
In-Reply-To: <1517819100-1029-3-git-send-email-andr2000@gmail.com>
> * +----------------+----------------+----------------+----------------+
> * | gref_directory | 24
> * +----------------+----------------+----------------+----------------+
> - * | reserved | 28
> - * +----------------+----------------+----------------+----------------+
> - * |/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/|
> + * | period_sz | 28
> * +----------------+----------------+----------------+----------------+
> * | reserved | 32
> * +----------------+----------------+----------------+----------------+
> @@ -578,6 +616,14 @@
> * pcm_channels - uint8_t, number of channels of this stream,
> * [channels-min; channels-max]
> * buffer_sz - uint32_t, buffer size to be allocated, octets
> + * period_sz - uint32_t, recommended event period size, octets
> + * This is the recommended (hint) value of the period at which frontend would
> + * like to receive XENSND_EVT_CUR_POS notifications from the backend when
> + * stream position advances during playback/capture.
> + * It shows how many octets are expected to be played/captured before
> + * sending such an event.
> + * If set to 0 no XENSND_EVT_CUR_POS events are sent by the backend.
> + *
I would gate this based on the version. That is if version 0 then this
field does not exist.
> * gref_directory - grant_ref_t, a reference to the first shared page
> * describing shared buffer references. At least one page exists. If shared
> * buffer size (buffer_sz) exceeds what can be addressed by this single page,
> @@ -592,6 +638,7 @@ struct xensnd_open_req {
> uint16_t reserved;
> uint32_t buffer_sz;
> grant_ref_t gref_directory;
> + uint32_t period_sz;
The same here. Just put a comment mentioning the version part.
next prev parent reply other threads:[~2018-03-01 22:12 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-05 8:24 [PATCH 0/2] sndif: add explicit back and front synchronization Oleksandr Andrushchenko
2018-02-05 8:24 ` [PATCH 1/2] sndif: introduce protocol version Oleksandr Andrushchenko
2018-03-01 22:12 ` [Xen-devel] " Konrad Rzeszutek Wilk
2018-02-05 8:25 ` [PATCH 2/2] sndif: add explicit back and front synchronization Oleksandr Andrushchenko
2018-03-01 22:11 ` Konrad Rzeszutek Wilk [this message]
2018-03-02 6:30 ` [Xen-devel][PATCH " Oleksandr Andrushchenko
2018-02-19 6:31 ` [Xen-devel][PATCH 0/2] " Oleksandr Andrushchenko
2018-03-01 6:29 ` Oleksandr Andrushchenko
2018-03-02 16:52 ` Oleksandr Andrushchenko
2018-03-06 10:52 ` Takashi Iwai
2018-03-06 11:25 ` Oleksandr Andrushchenko
2018-03-06 11:32 ` Takashi Iwai
2018-03-06 12:05 ` Oleksandr Andrushchenko
2018-03-06 12:52 ` Takashi Iwai
2018-03-06 13:30 ` Oleksandr Andrushchenko
2018-03-06 13:48 ` Takashi Iwai
2018-03-06 14:13 ` Oleksandr Andrushchenko
2018-03-06 14:27 ` Takashi Iwai
2018-03-06 14:48 ` Oleksandr Andrushchenko
2018-03-06 15:06 ` Takashi Iwai
2018-03-06 16:04 ` Oleksandr Andrushchenko
2018-03-06 16:30 ` Takashi Iwai
2018-03-07 8:49 ` Oleksandr Andrushchenko
2018-03-11 8:15 ` Takashi Iwai
2018-03-12 6:26 ` Oleksandr Andrushchenko
2018-03-13 11:49 ` Oleksandr Andrushchenko
2018-03-13 16:31 ` Takashi Iwai
2018-03-13 17:31 ` Oleksandr Andrushchenko
2018-03-13 18:48 ` Takashi Iwai
2018-03-14 7:32 ` Oleksandr Andrushchenko
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=20180301221156.GC32676@char.us.oracle.com \
--to=konrad.wilk@oracle.com \
--cc=alsa-devel@alsa-project.org \
--cc=andr2000@gmail.com \
--cc=clemens@ladisch.de \
--cc=o-takashi@sakamocchi.jp \
--cc=oleksandr_andrushchenko@epam.com \
--cc=oleksandr_grytsov@epam.com \
--cc=tiwai@suse.de \
--cc=xen-devel@lists.xenproject.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).