* [PATCH] aplay: increase channel limit to 256
@ 2011-06-29 7:44 Tim Blechmann
2011-06-29 7:54 ` Jaroslav Kysela
0 siblings, 1 reply; 2+ messages in thread
From: Tim Blechmann @ 2011-06-29 7:44 UTC (permalink / raw)
To: alsa-devel; +Cc: Tim Blechmann
aplay is limited to 32 channels, which makes it impossible to use it for
testing devices with more channels. here we increase the limit to 256,
which should be sufficient for a virtual device made of 4 64-channel
soundcards.
Signed-off-by: Tim Blechmann <tim@klingt.org>
---
aplay/aplay.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/aplay/aplay.c b/aplay/aplay.c
index 50e01ef..07e6bc0 100644
--- a/aplay/aplay.c
+++ b/aplay/aplay.c
@@ -526,7 +526,7 @@ int main(int argc, char *argv[])
break;
case 'c':
rhwparams.channels = strtol(optarg, NULL, 0);
- if (rhwparams.channels < 1 || rhwparams.channels > 32) {
+ if (rhwparams.channels < 1 || rhwparams.channels > 256) {
error(_("value %i for channels is invalid"), rhwparams.channels);
return 1;
}
@@ -1015,7 +1015,7 @@ static int test_au(int fd, void *buffer)
if (hwparams.rate < 2000 || hwparams.rate > 256000)
return -1;
hwparams.channels = BE_INT(ap->channels);
- if (hwparams.channels < 1 || hwparams.channels > 128)
+ if (hwparams.channels < 1 || hwparams.channels > 256)
return -1;
if ((size_t)safe_read(fd, buffer + sizeof(AuHeader), BE_INT(ap->hdr_size) - sizeof(AuHeader)) != BE_INT(ap->hdr_size) - sizeof(AuHeader)) {
error(_("read error"));
--
1.7.4.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] aplay: increase channel limit to 256
2011-06-29 7:44 [PATCH] aplay: increase channel limit to 256 Tim Blechmann
@ 2011-06-29 7:54 ` Jaroslav Kysela
0 siblings, 0 replies; 2+ messages in thread
From: Jaroslav Kysela @ 2011-06-29 7:54 UTC (permalink / raw)
To: Tim Blechmann; +Cc: alsa-devel
Date 29.6.2011 09:44, Tim Blechmann wrote:
> aplay is limited to 32 channels, which makes it impossible to use it for
> testing devices with more channels. here we increase the limit to 256,
> which should be sufficient for a virtual device made of 4 64-channel
> soundcards.
>
> Signed-off-by: Tim Blechmann <tim@klingt.org>
Applied. Thanks.
Jaroslav
--
Jaroslav Kysela <perex@perex.cz>
Linux Kernel Sound Maintainer
ALSA Project; Red Hat, Inc.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-29 7:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-29 7:44 [PATCH] aplay: increase channel limit to 256 Tim Blechmann
2011-06-29 7:54 ` Jaroslav Kysela
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.