From 4b4a8bb3b2d7c64ee0ab5a5aaf5322feb9b06c78 Mon Sep 17 00:00:00 2001 From: Taylor Holberton Date: Thu, 3 Sep 2020 22:49:53 -0500 Subject: Using struct for TLV size --- include/tinyalsa/mixer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tinyalsa/mixer.h b/include/tinyalsa/mixer.h index 7f0f022..2acdd54 100644 --- a/include/tinyalsa/mixer.h +++ b/include/tinyalsa/mixer.h @@ -44,7 +44,7 @@ extern "C" { #endif /* TLV header size*/ -#define TLV_HEADER_SIZE (2 * sizeof(unsigned int)) +#define TLV_HEADER_SIZE sizeof(struct snd_ctl_tlv) struct mixer; -- cgit v1.2.3