]> git.alsa-project.org Git - alsa-utils.git/commitdiff
speaker-test: increase the maximum supported rate to 384000
authorAntonio Ospite <ao2@amarulasolutions.com>
Wed, 16 Jan 2013 16:06:04 +0000 (17:06 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 17 Jan 2013 06:46:32 +0000 (07:46 +0100)
There are some devices around supporting this sample rate so let's make
speaker-test capable to deal with them.

Signed-off-by: Antonio Ospite <ao2@amarulasolutions.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
speaker-test/speaker-test.c

index 3c89c38784c79c0c2dc9bcefb10105ca2c78c1e3..de42a0cd3322f34107e2aa1e602529cb272515de 100644 (file)
@@ -999,7 +999,7 @@ int main(int argc, char *argv[]) {
     case 'r':
       rate = atoi(optarg);
       rate = rate < 4000 ? 4000 : rate;
-      rate = rate > 196000 ? 196000 : rate;
+      rate = rate > 384000 ? 384000 : rate;
       break;
     case 'c':
       channels = atoi(optarg);