pcm: the maximal rate is 768000Hz, fix the remain code

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2019-10-25 13:43:31 +02:00
parent 33afdc6745
commit 63ffd41d5f
3 changed files with 4 additions and 4 deletions

View file

@ -40,7 +40,7 @@
*/
#define SND_PCM_PLUGIN_RATE_MIN 4000 /**< minimal rate for the rate plugin */
#define SND_PCM_PLUGIN_RATE_MAX 192000 /**< maximal rate for the rate plugin */
#define SND_PCM_PLUGIN_RATE_MAX 768000 /**< maximal rate for the rate plugin */
/* ROUTE_FLOAT should be set to 0 for machines without FP unit - like iPAQ */
#ifdef HAVE_SOFT_FLOAT

View file

@ -29,7 +29,7 @@
#include "plugin_ops.h"
/* LINEAR_DIV needs to be large enough to handle resampling from 192000 -> 8000 */
/* LINEAR_DIV needs to be large enough to handle resampling from 768000 -> 8000 */
#define LINEAR_DIV_SHIFT 19
#define LINEAR_DIV (1<<LINEAR_DIV_SHIFT)

View file

@ -170,7 +170,7 @@ int snd_spcm_init(snd_pcm_t *pcm,
unsigned int buffer_time;
assert(pcm);
assert(rate >= 5000 && rate <= 192000);
assert(rate >= 5000 && rate <= 786000);
assert(channels >= 1 && channels <= 512);
rrate = rate;
@ -227,7 +227,7 @@ int snd_spcm_init_duplex(snd_pcm_t *playback_pcm,
assert(playback_pcm);
assert(capture_pcm);
assert(rate >= 5000 && rate <= 192000);
assert(rate >= 5000 && rate <= 768000);
assert(channels >= 1 && channels <= 512);
pcms[0] = playback_pcm;