diff options
author | Jaroslav Kysela <perex@perex.cz> | 2010-02-10 11:52:53 +0100 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2010-02-10 11:52:53 +0100 |
commit | f45aa72cd6a71515494a70448d48608c2d25960e (patch) | |
tree | 309e31a1b18685c26869d7505fb4828f4bc07190 | |
parent | cdc496addb28784ae6bc43efc5afa67cba073fde (diff) | |
download | alsa-utils-f45aa72cd6a71515494a70448d48608c2d25960e.tar.gz |
amixer: add support for TLV dB minmax types
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r-- | amixer/amixer.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/amixer/amixer.c b/amixer/amixer.c index 7b55035..c9ea572 100644 --- a/amixer/amixer.c +++ b/amixer/amixer.c @@ -534,6 +534,26 @@ static void decode_tlv(unsigned int spaces, unsigned int *tlv, unsigned int tlv_ } break; #endif +#ifdef SND_CTL_TLVT_DB_MINMAX + case SND_CTL_TLVT_DB_MINMAX: + case SND_CTL_TLVT_DB_MINMAX_MUTE: + if (type == SND_CTL_TLVT_DB_MINMAX_MUTE) + printf("dBminmaxmute-"); + else + printf("dBminmax-"); + if (size != 2 * sizeof(unsigned int)) { + while (size > 0) { + printf("0x%08x,", tlv[idx++]); + size -= sizeof(unsigned int); + } + } else { + printf("min="); + print_dB(tlv[2]); + printf(",max="); + print_dB(tlv[3]); + } + break; +#endif default: printf("unk-%i-", type); while (size > 0) { |