]> git.alsa-project.org Git - alsa-utils.git/commit
amixer: actually print all TLVs in a container TLV
authorAnssi Hannula <anssi.hannula@iki.fi>
Mon, 30 Sep 2013 20:46:50 +0000 (23:46 +0300)
committerTakashi Iwai <tiwai@suse.de>
Tue, 1 Oct 2013 10:23:45 +0000 (12:23 +0200)
commit180283e2307b07bbd3958d24382aab8271dd4c1d
tree0d4ccc9cf72f017873f2c9f3ca744effaef2217b
parent87bcda4b8a12d0fabab0bf4b0c1197089d2f9c4c
amixer: actually print all TLVs in a container TLV

Due to a wrong indexing of tlv[] decode_tlv() always skips to the end of
the container TLV since the used tlv[1] contains the container TLV size
instead of the intended element size.

This causes, for example, only the first HDMI channel map TLV to be
shown.

Fix the indexing to actually use the element size.

Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
amixer/amixer.c