mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 00:55:42 +01:00
aplay: Adjust sample rate limits to support newer hardware
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> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
b1e3d945b7
commit
d0802f32ca
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue