Name
snd_pcm_hw_param_near —
Synopsis
int snd_pcm_hw_param_near ( | snd_pcm_t * | pcm, |
| snd_pcm_hw_params_t * | params, |
| snd_pcm_hw_param_t | var, |
| unsigned int | best, |
| int * | dir) ; |
Arguments
pcm
-- undescribed --
params
-- undescribed --
var
-- undescribed --
best
-- undescribed --
dir
-- undescribed --
Description
Inside configuration space defined by PARAMS set PAR to the available value
nearest to VAL. Reduce configuration space accordingly.
This function cannot be called for SNDRV_PCM_HW_PARAM_ACCESS,
SNDRV_PCM_HW_PARAM_FORMAT, SNDRV_PCM_HW_PARAM_SUBFORMAT.
Return the value found.