mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 00:45:41 +01:00
Add linear-volume handling in amixer
Added the handling of linear-volume in amixer TLV decoder.
This commit is contained in:
parent
cb9cb72466
commit
b4897f7856
1 changed files with 16 additions and 0 deletions
|
@ -498,6 +498,22 @@ static void decode_tlv(unsigned int spaces, unsigned int *tlv, unsigned int tlv_
|
|||
printf(",mute=%i", (tlv[3] >> 16) & 1);
|
||||
}
|
||||
break;
|
||||
#ifdef SND_CTL_TLVT_DB_LINEAR
|
||||
case SND_CTL_TLVT_DB_LINEAR:
|
||||
printf("dBlinear-");
|
||||
if (size != 2 * sizeof(unsigned int)) {
|
||||
while (size > 0) {
|
||||
printf("0x%x", 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) {
|
||||
|
|
Loading…
Reference in a new issue