forked from pool/alsa-utils
Takashi Iwai
0a874f0c1f
- Backport a few fix patches from upstream git tree: 0012-aplay-Add-the-support-for-big-endian-WAV-format-RIFX.patch 0013-configure-Fix-obsolete-AM_CONFIG_HEADER-macro.patch 0014-speaker-test-increase-the-maximum-supported-rate-to-.patch 0015-amixer-Fix-dB-value-outputs-in-amixer-contents.patch OBS-URL: https://build.opensuse.org/request/show/150682 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa-utils?expand=0&rev=69
39 lines
927 B
Diff
39 lines
927 B
Diff
From bfcb26f9f7b893e24ebeeb76232c5cd0066d087e Mon Sep 17 00:00:00 2001
|
|
From: Takashi Iwai <tiwai@suse.de>
|
|
Date: Thu, 31 Jan 2013 17:47:50 +0100
|
|
Subject: [PATCH 15/15] 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>
|
|
---
|
|
amixer/amixer.c | 8 ++++----
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
--- a/amixer/amixer.c
|
|
+++ b/amixer/amixer.c
|
|
@@ -560,9 +560,9 @@ static void decode_tlv(unsigned int spac
|
|
}
|
|
} 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 spac
|
|
}
|
|
} 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
|