]> git.baikalelectronics.ru Git - kernel.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)
committerTakashi Iwai <tiwai@suse.de>
Mon, 16 Jul 2012 08:02:10 +0000 (10:02 +0200)
commit1eb53cf6dc719a1aa9dd43d03f0cdadb18e1bd01
tree51915b26a33c7bafb68b9759856129798a403c8a
parentd40953504cc14abc3e667d3da5d7a640c595da01
ALSA: tlv: compute TLV_*_ITEM lengths automatically

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>
include/sound/tlv.h