mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:25:42 +01:00
amixer: Fix dB value outputs in amixer contents
Add missing cast to signed int for DB_MINMAX* types. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
cd39cfb480
commit
bfcb26f9f7
1 changed files with 4 additions and 4 deletions
|
@ -560,9 +560,9 @@ static void decode_tlv(unsigned int spaces, unsigned int *tlv, unsigned int tlv_
|
|||
}
|
||||
} else {
|
||||
printf("min=");
|
||||
print_dB(tlv[2]);
|
||||
print_dB((int)tlv[2]);
|
||||
printf(",max=");
|
||||
print_dB(tlv[3]);
|
||||
print_dB((int)tlv[3]);
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
|
@ -600,9 +600,9 @@ static void decode_tlv(unsigned int spaces, unsigned int *tlv, unsigned int tlv_
|
|||
}
|
||||
} else {
|
||||
printf("min=");
|
||||
print_dB(tlv[2]);
|
||||
print_dB((int)tlv[2]);
|
||||
printf(",max=");
|
||||
print_dB(tlv[3]);
|
||||
print_dB((int)tlv[3]);
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue