]> git.alsa-project.org Git - alsa-lib.git/commitdiff
pcm: the maximal rate is 768000Hz, fix the remain code
authorJaroslav Kysela <perex@perex.cz>
Fri, 25 Oct 2019 11:43:31 +0000 (13:43 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 25 Oct 2019 11:43:31 +0000 (13:43 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
include/pcm_plugin.h
src/pcm/pcm_rate_linear.c
src/pcm/pcm_simple.c

index 3061205ae5470f2ba4ba8b803b22a53deefd19f3..2d014394a6aa1d49ed4efaeda0261dc530ab262f 100644 (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
index 7fe943d26adf868dcb9a9717aa1edba61a1bba2a..53ce902d006a6c854869d372f4bc8c648f0ed35f 100644 (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)
 
index bb3f05c9eb3d9d8a555a75b1bed63b115e9086a3..a991315a06e8fe79a02acbd4ee862b5f892999d6 100644 (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;