diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-11-26 16:13:57 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-11-26 16:16:16 +0100 |
commit | d6da86117bddeb5007058bfd599c4839858c7ca9 (patch) | |
tree | 51921cf655d9019f9188894b478c8f1d9dc4443d | |
parent | da1c24a24c699125aedc8d4f7c97d974b868dacf (diff) | |
download | alsa-utils-d6da86117bddeb5007058bfd599c4839858c7ca9.tar.gz |
amixer: Fix parsing container TLV entries
Fix the wrong calculation of the size of a container TLV entry, which
resulted in "TLV size error" messages.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | amixer/amixer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/amixer/amixer.c b/amixer/amixer.c index 48ed1b2..5d5afce 100644 --- a/amixer/amixer.c +++ b/amixer/amixer.c @@ -531,7 +531,7 @@ static void decode_tlv(unsigned int spaces, unsigned int *tlv, unsigned int tlv_ printf("TLV size error in compound!\n"); return; } - decode_tlv(spaces + 2, tlv + idx, tlv[idx+1]); + decode_tlv(spaces + 2, tlv + idx, tlv[idx+1] + 8); idx += 2 + (tlv[1] + sizeof(unsigned int) - 1) / sizeof(unsigned int); } break; |