mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 00:35:42 +01:00
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>
This commit is contained in:
parent
da1c24a24c
commit
d6da86117b
1 changed files with 1 additions and 1 deletions
|
@ -531,7 +531,7 @@ static void decode_tlv(unsigned int spaces, unsigned int *tlv, unsigned int tlv_
|
||||||
printf("TLV size error in compound!\n");
|
printf("TLV size error in compound!\n");
|
||||||
return;
|
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);
|
idx += 2 + (tlv[1] + sizeof(unsigned int) - 1) / sizeof(unsigned int);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue