]> git.alsa-project.org Git - alsa-utils.git/commitdiff
speaker-test: Allow sampling rates up to 768000
authorJulian Scheel <julian@jusst.de>
Thu, 7 Jun 2018 09:10:55 +0000 (11:10 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 7 Jun 2018 10:15:46 +0000 (12:15 +0200)
There are audio devices around that support up to 768kHz playback, allow
testing them by increasing the maximum supported sampling rate.

Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
speaker-test/speaker-test.c

index 0cdecb3c959d7105d04cab03d6f545e81fc74efc..773af0ad67f0b5457003ada784eb5a7ed5639f73 100644 (file)
@@ -1034,7 +1034,7 @@ int main(int argc, char *argv[]) {
     case 'r':
       rate = atoi(optarg);
       rate = rate < 4000 ? 4000 : rate;
-      rate = rate > 384000 ? 384000 : rate;
+      rate = rate > 768000 ? 768000 : rate;
       break;
     case 'c':
       channels = atoi(optarg);