forked from pool/alsa-utils
Takashi Iwai
8bad45cd50
- Build with libsamplerate for aloop (bnc#792173) - Add a patch to handle alsaloop properly without libsamplerate (bnc#792173): 0010-alsaloop-Make-alsaloop-working-without-libsamplerate.patch 0011-alsaloop-Fix-missing-endif.patch - Backport fixes from upstream 0006-alsamixer-fix-handling-of-removed-controls.patch 0007-aplay-Show-usage-if-no-parameter-is-passed.patch 0008-amixer-fix-rounding-of-relative-changes.patch 0009-amixer-Fix-parsing-container-TLV-entries.patch OBS-URL: https://build.opensuse.org/request/show/143675 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa-utils?expand=0&rev=66
30 lines
934 B
Diff
30 lines
934 B
Diff
From d6da86117bddeb5007058bfd599c4839858c7ca9 Mon Sep 17 00:00:00 2001
|
|
From: Takashi Iwai <tiwai@suse.de>
|
|
Date: Mon, 26 Nov 2012 16:13:57 +0100
|
|
Subject: [PATCH 9/9] 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>
|
|
---
|
|
amixer/amixer.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
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;
|
|
--
|
|
1.8.0.1
|
|
|