summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Blechmann <tim@klingt.org>2011-06-29 09:44:06 +0200
committerJaroslav Kysela <perex@perex.cz>2011-06-29 09:53:52 +0200
commit0131ab6a67e18ae3c30b7b3fabc2fdf1592f075c (patch)
treed901510555a427510c50b209ddcd290b151d25ca
parent8709ffe841e6f33094f7a547ee86591b29a40cf4 (diff)
downloadalsa-utils-0131ab6a67e18ae3c30b7b3fabc2fdf1592f075c.tar.gz
aplay: increase channel limit to 256
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> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r--aplay/aplay.c4
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"));