All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] alsa-utils: aplay: Adjust sample rate limits to support newer hardware
@ 2017-12-07 11:57 Jussi Laako
  2017-12-07 12:45 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Jussi Laako @ 2017-12-07 11:57 UTC (permalink / raw)
  To: perex, alsa-devel; +Cc: Jussi Laako

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>
---
 aplay/aplay.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/aplay/aplay.c b/aplay/aplay.c
index dbae17c..6b740c2 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.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] alsa-utils: aplay: Adjust sample rate limits to support newer hardware
  2017-12-07 11:57 [PATCH] alsa-utils: aplay: Adjust sample rate limits to support newer hardware Jussi Laako
@ 2017-12-07 12:45 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2017-12-07 12:45 UTC (permalink / raw)
  To: Jussi Laako; +Cc: alsa-devel

On Thu, 07 Dec 2017 12:57:14 +0100,
Jussi Laako wrote:
> 
> 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>

Applied, thanks.


Takashi

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-12-07 12:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-07 11:57 [PATCH] alsa-utils: aplay: Adjust sample rate limits to support newer hardware Jussi Laako
2017-12-07 12:45 ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.