Lines Matching defs:params
44 struct snd_ext_parm params[SND_PCM_EXTPLUG_HW_PARAMS];
207 snd_pcm_hw_params_t *params)
212 err = _snd_pcm_hw_param_set_mask(params, SND_PCM_HW_PARAM_ACCESS,
216 err = extplug_hw_refine(params, ext->params);
219 params->info &= ~(SND_PCM_INFO_MMAP | SND_PCM_INFO_MMAP_VALID);
235 static unsigned int get_links(struct snd_ext_parm *params)
252 if (params[i].active && !params[i].keep_link)
259 snd_pcm_hw_params_t *params,
265 return _snd_pcm_hw_params_refine(sparams, links, params);
269 snd_pcm_hw_params_t *params,
273 unsigned int links = get_links(ext->params);
275 return _snd_pcm_hw_params_refine(params, links, sparams);
278 static int snd_pcm_extplug_hw_refine(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
280 int err = snd_pcm_hw_refine_slave(pcm, params,
292 static int snd_pcm_extplug_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
297 int err = snd_pcm_hw_params_slave(pcm, params,
308 INTERNAL(snd_pcm_hw_params_get_format)(params, &ext->data->format);
309 INTERNAL(snd_pcm_hw_params_get_subformat)(params, &ext->data->subformat);
310 INTERNAL(snd_pcm_hw_params_get_channels)(params, &ext->data->channels);
313 err = ext->data->callback->hw_params(ext->data, params);
413 snd_ext_parm_clear(&ext->params[i]);
835 return snd_ext_parm_set_list(&ext->params[type], num_list, list);
861 return snd_ext_parm_set_minmax(&ext->params[type], min, max);
883 ext->params[type].keep_link = keep_link ? 1 : 0;