From: Takashi Iwai <tiwai@suse.de>
To: Jaroslav Kysela <perex@suse.cz>
Cc: ALSA development <alsa-devel@alsa-project.org>
Subject: Re: RFC: minimalistic TLV implementation
Date: Thu, 01 Jun 2006 17:40:27 +0200 [thread overview]
Message-ID: <s5h7j407ul0.wl%tiwai@suse.de> (raw)
In-Reply-To: <Pine.LNX.4.61.0606011726051.9144@tm8103.perex-int.cz>
At Thu, 1 Jun 2006 17:28:41 +0200 (CEST),
Jaroslav Kysela wrote:
>
> diff -r 96e63842ba5d include/asound.h
> --- a/include/asound.h Wed May 31 11:55:17 2006 +0200
> +++ b/include/asound.h Thu Jun 1 17:25:38 2006 +0200
> @@ -688,7 +688,7 @@ struct snd_timer_tread {
> * *
> ****************************************************************************/
>
> -#define SNDRV_CTL_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 3)
> +#define SNDRV_CTL_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 4)
>
> struct snd_ctl_card_info {
> int card; /* card number */
> @@ -818,6 +818,20 @@ struct snd_ctl_elem_value {
> unsigned char reserved[128-sizeof(struct timespec)];
> };
>
> +struct snd_ctl_tlv {
> + unsigned int numid; /* control element numeric identification */
> + unsigned int length; /* in bytes aligned to 4 */
> + /*
> + * TLV structure is right behind the struct snd_ctl_tlv:
> + * unsigned int type - see SNDRV_CTL_TLVT_*
> + * unsigned int length
> + * .... data aligned to sizeof(unsigned int), use
> + * block_length = (length + (sizeof(unsigned int) - 1)) &
> + * ~(sizeof(unsigned int) - 1)) ....
> + */
I'd put this detailed comment in tlv.h, and here shows a short comment
like:
"TLV data is put right behind the struct snd_ctl_tlv.
See tlv.h for definition of TLV data".
Takashi
next prev parent reply other threads:[~2006-06-01 15:40 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-31 13:10 RFC: minimalistic TLV implementation Jaroslav Kysela
2006-06-01 11:25 ` Takashi Iwai
2006-06-01 13:12 ` Jaroslav Kysela
2006-06-01 13:38 ` Takashi Iwai
2006-06-01 14:08 ` Jaroslav Kysela
2006-06-01 14:40 ` Takashi Iwai
2006-06-01 15:00 ` Jaroslav Kysela
2006-06-01 15:13 ` Takashi Iwai
2006-06-01 15:16 ` Jaroslav Kysela
2006-06-01 15:18 ` Takashi Iwai
2006-06-01 15:28 ` Jaroslav Kysela
2006-06-01 15:40 ` Takashi Iwai [this message]
2006-06-01 16:36 ` Jaroslav Kysela
2006-06-06 14:01 ` Takashi Iwai
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=s5h7j407ul0.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=perex@suse.cz \
/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 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.