]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: tlv: compute TLV_*_ITEM lengths automatically
authorClemens Ladisch <clemens@ladisch.de>
Sun, 20 Nov 2011 15:22:24 +0000 (16:22 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 22 Jan 2016 21:40:04 +0000 (21:40 +0000)
commit56929bfbedb1fa88408d74e5d8a3a848020aa89f
treed675fb6e9dba1d8f672a420c6be9b9da3de2fd07
parentb23324ffa8ef8cc96865db76db938905d61d949a
ALSA: tlv: compute TLV_*_ITEM lengths automatically

commit b5b9eb546762c4015c67c31364a6ec6f83fd2ada upstream.

Add helper macros with a little bit of preprocessor magic to
automatically compute the length of a TLV item.  This lets us avoid
having to compute this by hand, and will allow to use items that do
not use a fixed length.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
include/sound/tlv.h