aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2011-09-16 17:03:02 -0400
committerTakashi Iwai <tiwai@suse.de>2011-09-20 02:56:45 -0400
commitd5b702a64b4c273c8eed7e4e721364493d01fdc9 (patch)
treea2bdccd13ad840c8f71f848e3f4d096839a322df /include/sound
parent84f9df159df6311f33ab16637772788cf3729ede (diff)
ALSA: pcm: add snd_pcm_hw_rule_noresample()
Add a helper function to allow drivers to disable hardware resampling when the application has specified the SNDRV_PCM_HW_PARAMS_NORESAMPLE flag. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/pcm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/pcm.h b/include/sound/pcm.h
index 57e71fa33f7c..dc36f756fe8d 100644
--- a/include/sound/pcm.h
+++ b/include/sound/pcm.h
@@ -825,6 +825,8 @@ int snd_pcm_hw_constraint_step(struct snd_pcm_runtime *runtime,
825int snd_pcm_hw_constraint_pow2(struct snd_pcm_runtime *runtime, 825int snd_pcm_hw_constraint_pow2(struct snd_pcm_runtime *runtime,
826 unsigned int cond, 826 unsigned int cond,
827 snd_pcm_hw_param_t var); 827 snd_pcm_hw_param_t var);
828int snd_pcm_hw_rule_noresample(struct snd_pcm_runtime *runtime,
829 unsigned int base_rate);
828int snd_pcm_hw_rule_add(struct snd_pcm_runtime *runtime, 830int snd_pcm_hw_rule_add(struct snd_pcm_runtime *runtime,
829 unsigned int cond, 831 unsigned int cond,
830 int var, 832 int var,