forked from pool/alsa-utils
- Get rid of superfluous patch for ancient distros: alsa-utils-gettext-version-removal.diff - Remove superfluous file override, which is already included in the 1.1.5 tarball: alsaucm.rst - Backport upstream fixes: 0001-aplay-Adjust-sample-rate-limits-to-support-newer-har.patch 0002-alsactl-Only-start-restore-service-when-asoundrc-fil.patch - Cleanup specfile to rip off the too old kludges OBS-URL: https://build.opensuse.org/request/show/558223 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa-utils?expand=0&rev=143
36 lines
1.1 KiB
Diff
36 lines
1.1 KiB
Diff
From d0802f32cafa8ba8ff4d48e3eb1f690b7adb0d3d Mon Sep 17 00:00:00 2001
|
|
From: Jussi Laako <jussi@sonarnerd.net>
|
|
Date: Thu, 7 Dec 2017 13:57:14 +0200
|
|
Subject: [PATCH] aplay: Adjust sample rate limits to support newer hardware
|
|
|
|
There are number of devices that support up to 384 kHz sampling rate and
|
|
some devices up to 768 kHz sampling rate. This patch increases sanity
|
|
check limit to 768k in order to support testing of such hardware.
|
|
|
|
Signed-off-by: Jussi Laako <jussi@sonarnerd.net>
|
|
Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
|
---
|
|
aplay/aplay.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/aplay/aplay.c b/aplay/aplay.c
|
|
index dbae17caf3a4..6b740c281f8e 100644
|
|
--- a/aplay/aplay.c
|
|
+++ b/aplay/aplay.c
|
|
@@ -635,10 +635,10 @@ int main(int argc, char *argv[])
|
|
error(_("invalid rate argument '%s'"), optarg);
|
|
return 1;
|
|
}
|
|
- if (tmp < 300)
|
|
+ if (tmp < 1000)
|
|
tmp *= 1000;
|
|
rhwparams.rate = tmp;
|
|
- if (tmp < 2000 || tmp > 192000) {
|
|
+ if (tmp < 2000 || tmp > 768000) {
|
|
error(_("bad speed value %i"), tmp);
|
|
return 1;
|
|
}
|
|
--
|
|
2.15.1
|
|
|