Lines Matching defs:params
3996 struct snd_pcm_hw_params *params)
4028 if (params_rate(params) != hdsp->system_sample_rate) {
4030 _snd_pcm_hw_param_setempty(params, SNDRV_PCM_HW_PARAM_RATE);
4034 if (params_period_size(params) != hdsp->period_bytes / 4) {
4036 _snd_pcm_hw_param_setempty(params, SNDRV_PCM_HW_PARAM_PERIOD_SIZE);
4054 if ((err = hdsp_set_rate(hdsp, params_rate(params), 0)) < 0) {
4056 _snd_pcm_hw_param_setempty(params, SNDRV_PCM_HW_PARAM_RATE);
4062 if ((err = hdsp_set_interrupt_interval(hdsp, params_period_size(params))) < 0) {
4063 _snd_pcm_hw_param_setempty(params, SNDRV_PCM_HW_PARAM_PERIOD_SIZE);
4265 static int snd_hdsp_hw_rule_in_channels(struct snd_pcm_hw_params *params,
4269 struct snd_interval *c = hw_param_interval(params, SNDRV_PCM_HW_PARAM_CHANNELS);
4284 static int snd_hdsp_hw_rule_out_channels(struct snd_pcm_hw_params *params,
4289 struct snd_interval *c = hw_param_interval(params, SNDRV_PCM_HW_PARAM_CHANNELS);
4302 static int snd_hdsp_hw_rule_in_channels_rate(struct snd_pcm_hw_params *params,
4306 struct snd_interval *c = hw_param_interval(params, SNDRV_PCM_HW_PARAM_CHANNELS);
4307 struct snd_interval *r = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE);
4333 static int snd_hdsp_hw_rule_out_channels_rate(struct snd_pcm_hw_params *params,
4337 struct snd_interval *c = hw_param_interval(params, SNDRV_PCM_HW_PARAM_CHANNELS);
4338 struct snd_interval *r = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE);
4364 static int snd_hdsp_hw_rule_rate_out_channels(struct snd_pcm_hw_params *params,
4368 struct snd_interval *c = hw_param_interval(params, SNDRV_PCM_HW_PARAM_CHANNELS);
4369 struct snd_interval *r = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE);
4395 static int snd_hdsp_hw_rule_rate_in_channels(struct snd_pcm_hw_params *params,
4399 struct snd_interval *c = hw_param_interval(params, SNDRV_PCM_HW_PARAM_CHANNELS);
4400 struct snd_interval *r = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE);