[alsa-devel] [PATCH] salsa-lib: Set SNDRV_PCM_HW_PARAMS_NORESAMPLE by default

Mihail Zenkov mihail.zenkov at gmail.com
Sat Mar 16 20:59:04 CET 2013


As we don't allow resampling set SNDRV_PCM_HW_PARAMS_NORESAMPLE by
default to respect snd_pcm_hw_rule_noresample in drivers.

--- salsa-lib-a55ce0c348cd16e7853dae11e8e0e1b5a101d884/src/pcm_params.c
+++ salsa-lib-a55ce0c348cd16e7853dae11e8e0e1b5a101d884-1/src/pcm_params.c
@@ -436,6 +436,7 @@
 	params->rmask = ~0U;
 	params->cmask = 0;
 	params->info = ~0U;
+	params->flags = SNDRV_PCM_HW_PARAMS_NORESAMPLE;
 }

 int snd_pcm_hw_params_any(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)


More information about the Alsa-devel mailing list