mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-28 05:40:23 -04:00
pcm: the maximal rate is 768000Hz, fix the remain code
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
33afdc6745
commit
63ffd41d5f
3 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue