snd_pcm_hw_param_mask —
int snd_pcm_hw_param_mask ( | struct snd_pcm_substream * | pcm, |
struct snd_pcm_hw_params * | params, | |
snd_pcm_hw_param_t | var, | |
const struct snd_mask * | val) ; |
Inside configuration space defined by PARAMS remove from PAR all values not contained in MASK. Reduce configuration space accordingly. This function can be called only for SNDRV_PCM_HW_PARAM_ACCESS, SNDRV_PCM_HW_PARAM_FORMAT, SNDRV_PCM_HW_PARAM_SUBFORMAT. Return 0 on success or -EINVAL if the configuration space is empty