aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2008-10-13 16:25:49 +0200
committerTakashi Iwai <tiwai@suse.de>2008-10-13 16:25:49 +0200
commit828f721d908a76b3adbf2eb426b30886e16f4e4a (patch)
tree8896557fa7287dbe78c4f4c5992696c999968dab
parentbcc601e67eb8d8384f8c465efe72a2e398ffb5ac (diff)
downloadsalsa-lib-828f721d908a76b3adbf2eb426b30886e16f4e4a.tar.gz
Add missing _snd_pcm_hw_param_test() function
Added missing _snd_pcm_hw_param_test() function that is used by snd_pcm_hw_params_test_*() API functions.
-rw-r--r--src/pcm_params.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pcm_params.c b/src/pcm_params.c
index 5c7bb1f..ebd3aac 100644
--- a/src/pcm_params.c
+++ b/src/pcm_params.c
@@ -754,6 +754,15 @@ int _snd_pcm_hw_param_set(snd_pcm_t *pcm, snd_pcm_hw_params_t *params,
return err;
}
+int _snd_pcm_hw_param_test(snd_pcm_t *pcm, snd_pcm_hw_params_t *params,
+ int var, unsigned int val, int *dir)
+{
+ snd_pcm_hw_params_t save = *params;
+ int err = _snd_pcm_hw_param_set(pcm, params, var, val, dir ? *dir : 0);
+ *params = save;
+ return err;
+}
+
int _snd_pcm_hw_param_set_integer(snd_pcm_t *pcm,
snd_pcm_hw_params_t *params,
int var)