Home
last modified time | relevance | path

Searched refs:sparams (Results 1 – 21 of 21) sorted by relevance

/third_party/alsa-lib/src/pcm/
Dpcm_plug.c713 static int snd_pcm_plug_hw_refine_sprepare(snd_pcm_t *pcm, snd_pcm_hw_params_t *sparams) in snd_pcm_plug_hw_refine_sprepare() argument
718 _snd_pcm_hw_params_any(sparams); in snd_pcm_plug_hw_refine_sprepare()
720 _snd_pcm_hw_params_set_format(sparams, plug->sformat); in snd_pcm_plug_hw_refine_sprepare()
721 _snd_pcm_hw_params_set_subformat(sparams, SND_PCM_SUBFORMAT_STD); in snd_pcm_plug_hw_refine_sprepare()
724 _snd_pcm_hw_param_set(sparams, SND_PCM_HW_PARAM_CHANNELS, in snd_pcm_plug_hw_refine_sprepare()
727 _snd_pcm_hw_param_set_minmax(sparams, SND_PCM_HW_PARAM_RATE, in snd_pcm_plug_hw_refine_sprepare()
730 err = snd_pcm_hw_refine(plug->req_slave, sparams); in snd_pcm_plug_hw_refine_sprepare()
737 snd_pcm_hw_params_t *sparams) in check_access_change() argument
746 snd_pcm_hw_param_get_mask(sparams, in check_access_change()
784 snd_pcm_hw_params_t *sparams) in snd_pcm_plug_hw_refine_schange() argument
[all …]
Dpcm_rate.c155 static int snd_pcm_rate_hw_refine_sprepare(snd_pcm_t *pcm, snd_pcm_hw_params_t *sparams) in snd_pcm_rate_hw_refine_sprepare() argument
159 _snd_pcm_hw_params_any(sparams); in snd_pcm_rate_hw_refine_sprepare()
160 _snd_pcm_hw_param_set_mask(sparams, SND_PCM_HW_PARAM_ACCESS, in snd_pcm_rate_hw_refine_sprepare()
163 _snd_pcm_hw_params_set_format(sparams, rate->sformat); in snd_pcm_rate_hw_refine_sprepare()
164 _snd_pcm_hw_params_set_subformat(sparams, SND_PCM_SUBFORMAT_STD); in snd_pcm_rate_hw_refine_sprepare()
166 _snd_pcm_hw_param_set_minmax(sparams, SND_PCM_HW_PARAM_RATE, in snd_pcm_rate_hw_refine_sprepare()
172 snd_pcm_hw_params_t *sparams) in snd_pcm_rate_hw_refine_schange() argument
189 srate = snd_pcm_hw_param_get_interval(sparams, SND_PCM_HW_PARAM_RATE); in snd_pcm_rate_hw_refine_schange()
191 err = _snd_pcm_hw_param_set_interval(sparams, SND_PCM_HW_PARAM_BUFFER_SIZE, &t); in snd_pcm_rate_hw_refine_schange()
194 err = _snd_pcm_hw_params_refine(sparams, links, params); in snd_pcm_rate_hw_refine_schange()
[all …]
Dpcm_extplug.c45 struct snd_ext_parm sparams[SND_PCM_EXTPLUG_HW_PARAMS]; member
224 snd_pcm_hw_params_t *sparams) in snd_pcm_extplug_hw_refine_sprepare() argument
228 _snd_pcm_hw_params_any(sparams); in snd_pcm_extplug_hw_refine_sprepare()
229 _snd_pcm_hw_param_set_mask(sparams, SND_PCM_HW_PARAM_ACCESS, in snd_pcm_extplug_hw_refine_sprepare()
231 extplug_hw_refine(sparams, ext->sparams); in snd_pcm_extplug_hw_refine_sprepare()
260 snd_pcm_hw_params_t *sparams) in snd_pcm_extplug_hw_refine_schange() argument
263 unsigned int links = get_links(ext->sparams); in snd_pcm_extplug_hw_refine_schange()
265 return _snd_pcm_hw_params_refine(sparams, links, params); in snd_pcm_extplug_hw_refine_schange()
270 snd_pcm_hw_params_t *sparams) in snd_pcm_extplug_hw_refine_cchange() argument
275 return _snd_pcm_hw_params_refine(params, links, sparams); in snd_pcm_extplug_hw_refine_cchange()
[all …]
Dpcm_copy.c57 … int snd_pcm_copy_hw_refine_sprepare(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *sparams) in snd_pcm_copy_hw_refine_sprepare() argument
60 _snd_pcm_hw_params_any(sparams); in snd_pcm_copy_hw_refine_sprepare()
61 _snd_pcm_hw_param_set_mask(sparams, SND_PCM_HW_PARAM_ACCESS, in snd_pcm_copy_hw_refine_sprepare()
67 snd_pcm_hw_params_t *sparams) in snd_pcm_copy_hw_refine_schange() argument
71 err = _snd_pcm_hw_params_refine(sparams, links, params); in snd_pcm_copy_hw_refine_schange()
78 snd_pcm_hw_params_t *sparams) in snd_pcm_copy_hw_refine_cchange() argument
82 err = _snd_pcm_hw_params_refine(params, links, sparams); in snd_pcm_copy_hw_refine_cchange()
Dpcm_multi.c166 snd_pcm_hw_params_t *sparams) in snd_pcm_multi_hw_refine_sprepare() argument
171 _snd_pcm_hw_params_any(sparams); in snd_pcm_multi_hw_refine_sprepare()
172 _snd_pcm_hw_param_set_mask(sparams, SND_PCM_HW_PARAM_ACCESS, in snd_pcm_multi_hw_refine_sprepare()
174 _snd_pcm_hw_param_set(sparams, SND_PCM_HW_PARAM_CHANNELS, in snd_pcm_multi_hw_refine_sprepare()
182 snd_pcm_hw_params_t *sparams) in snd_pcm_multi_hw_refine_schange() argument
201 err = _snd_pcm_hw_param_set_mask(sparams, SND_PCM_HW_PARAM_ACCESS, in snd_pcm_multi_hw_refine_schange()
206 err = _snd_pcm_hw_params_refine(sparams, links, params); in snd_pcm_multi_hw_refine_schange()
215 snd_pcm_hw_params_t *sparams) in snd_pcm_multi_hw_refine_cchange() argument
228 …const snd_pcm_access_mask_t *saccess_mask = snd_pcm_hw_param_get_mask(sparams, SND_PCM_HW_PARAM_AC… in snd_pcm_multi_hw_refine_cchange()
240 err = _snd_pcm_hw_params_refine(params, links, sparams); in snd_pcm_multi_hw_refine_cchange()
[all …]
Dpcm_mulaw.c262 static int snd_pcm_mulaw_hw_refine_sprepare(snd_pcm_t *pcm, snd_pcm_hw_params_t *sparams) in snd_pcm_mulaw_hw_refine_sprepare() argument
266 _snd_pcm_hw_params_any(sparams); in snd_pcm_mulaw_hw_refine_sprepare()
267 _snd_pcm_hw_param_set_mask(sparams, SND_PCM_HW_PARAM_ACCESS, in snd_pcm_mulaw_hw_refine_sprepare()
269 _snd_pcm_hw_params_set_format(sparams, mulaw->sformat); in snd_pcm_mulaw_hw_refine_sprepare()
270 _snd_pcm_hw_params_set_subformat(sparams, SND_PCM_SUBFORMAT_STD); in snd_pcm_mulaw_hw_refine_sprepare()
275 snd_pcm_hw_params_t *sparams) in snd_pcm_mulaw_hw_refine_schange() argument
286 err = _snd_pcm_hw_params_refine(sparams, links, params); in snd_pcm_mulaw_hw_refine_schange()
293 snd_pcm_hw_params_t *sparams) in snd_pcm_mulaw_hw_refine_cchange() argument
304 err = _snd_pcm_hw_params_refine(params, links, sparams); in snd_pcm_mulaw_hw_refine_cchange()
Dpcm_alaw.c247 static int snd_pcm_alaw_hw_refine_sprepare(snd_pcm_t *pcm, snd_pcm_hw_params_t *sparams) in snd_pcm_alaw_hw_refine_sprepare() argument
251 _snd_pcm_hw_params_any(sparams); in snd_pcm_alaw_hw_refine_sprepare()
252 _snd_pcm_hw_param_set_mask(sparams, SND_PCM_HW_PARAM_ACCESS, in snd_pcm_alaw_hw_refine_sprepare()
254 _snd_pcm_hw_params_set_format(sparams, alaw->sformat); in snd_pcm_alaw_hw_refine_sprepare()
255 _snd_pcm_hw_params_set_subformat(sparams, SND_PCM_SUBFORMAT_STD); in snd_pcm_alaw_hw_refine_sprepare()
260 snd_pcm_hw_params_t *sparams) in snd_pcm_alaw_hw_refine_schange() argument
271 err = _snd_pcm_hw_params_refine(sparams, links, params); in snd_pcm_alaw_hw_refine_schange()
278 snd_pcm_hw_params_t *sparams) in snd_pcm_alaw_hw_refine_cchange() argument
289 err = _snd_pcm_hw_params_refine(params, links, sparams); in snd_pcm_alaw_hw_refine_cchange()
Dpcm_lfloat.c211 static int snd_pcm_lfloat_hw_refine_sprepare(snd_pcm_t *pcm, snd_pcm_hw_params_t *sparams) in snd_pcm_lfloat_hw_refine_sprepare() argument
215 _snd_pcm_hw_params_any(sparams); in snd_pcm_lfloat_hw_refine_sprepare()
216 _snd_pcm_hw_param_set_mask(sparams, SND_PCM_HW_PARAM_ACCESS, in snd_pcm_lfloat_hw_refine_sprepare()
218 _snd_pcm_hw_params_set_format(sparams, lfloat->sformat); in snd_pcm_lfloat_hw_refine_sprepare()
219 _snd_pcm_hw_params_set_subformat(sparams, SND_PCM_SUBFORMAT_STD); in snd_pcm_lfloat_hw_refine_sprepare()
224 snd_pcm_hw_params_t *sparams) in snd_pcm_lfloat_hw_refine_schange() argument
235 err = _snd_pcm_hw_params_refine(sparams, links, params); in snd_pcm_lfloat_hw_refine_schange()
242 snd_pcm_hw_params_t *sparams) in snd_pcm_lfloat_hw_refine_cchange() argument
253 err = _snd_pcm_hw_params_refine(params, links, sparams); in snd_pcm_lfloat_hw_refine_cchange()
Dpcm_linear.c239 static int snd_pcm_linear_hw_refine_sprepare(snd_pcm_t *pcm, snd_pcm_hw_params_t *sparams) in snd_pcm_linear_hw_refine_sprepare() argument
243 _snd_pcm_hw_params_any(sparams); in snd_pcm_linear_hw_refine_sprepare()
244 _snd_pcm_hw_param_set_mask(sparams, SND_PCM_HW_PARAM_ACCESS, in snd_pcm_linear_hw_refine_sprepare()
246 _snd_pcm_hw_params_set_format(sparams, linear->sformat); in snd_pcm_linear_hw_refine_sprepare()
247 _snd_pcm_hw_params_set_subformat(sparams, SND_PCM_SUBFORMAT_STD); in snd_pcm_linear_hw_refine_sprepare()
252 snd_pcm_hw_params_t *sparams) in snd_pcm_linear_hw_refine_schange() argument
263 err = _snd_pcm_hw_params_refine(sparams, links, params); in snd_pcm_linear_hw_refine_schange()
270 snd_pcm_hw_params_t *sparams) in snd_pcm_linear_hw_refine_cchange() argument
281 err = _snd_pcm_hw_params_refine(params, links, sparams); in snd_pcm_linear_hw_refine_cchange()
Dpcm_adpcm.c351 static int snd_pcm_adpcm_hw_refine_sprepare(snd_pcm_t *pcm, snd_pcm_hw_params_t *sparams) in snd_pcm_adpcm_hw_refine_sprepare() argument
355 _snd_pcm_hw_params_any(sparams); in snd_pcm_adpcm_hw_refine_sprepare()
356 _snd_pcm_hw_param_set_mask(sparams, SND_PCM_HW_PARAM_ACCESS, in snd_pcm_adpcm_hw_refine_sprepare()
358 _snd_pcm_hw_params_set_format(sparams, adpcm->sformat); in snd_pcm_adpcm_hw_refine_sprepare()
359 _snd_pcm_hw_params_set_subformat(sparams, SND_PCM_SUBFORMAT_STD); in snd_pcm_adpcm_hw_refine_sprepare()
364 snd_pcm_hw_params_t *sparams) in snd_pcm_adpcm_hw_refine_schange() argument
375 err = _snd_pcm_hw_params_refine(sparams, links, params); in snd_pcm_adpcm_hw_refine_schange()
382 snd_pcm_hw_params_t *sparams) in snd_pcm_adpcm_hw_refine_cchange() argument
393 err = _snd_pcm_hw_params_refine(params, links, sparams); in snd_pcm_adpcm_hw_refine_cchange()
Dpcm_iec958.c270 static int snd_pcm_iec958_hw_refine_sprepare(snd_pcm_t *pcm, snd_pcm_hw_params_t *sparams) in snd_pcm_iec958_hw_refine_sprepare() argument
274 _snd_pcm_hw_params_any(sparams); in snd_pcm_iec958_hw_refine_sprepare()
275 _snd_pcm_hw_param_set_mask(sparams, SND_PCM_HW_PARAM_ACCESS, in snd_pcm_iec958_hw_refine_sprepare()
277 _snd_pcm_hw_params_set_format(sparams, iec->sformat); in snd_pcm_iec958_hw_refine_sprepare()
278 _snd_pcm_hw_params_set_subformat(sparams, SND_PCM_SUBFORMAT_STD); in snd_pcm_iec958_hw_refine_sprepare()
283 snd_pcm_hw_params_t *sparams) in snd_pcm_iec958_hw_refine_schange() argument
294 err = _snd_pcm_hw_params_refine(sparams, links, params); in snd_pcm_iec958_hw_refine_schange()
301 snd_pcm_hw_params_t *sparams) in snd_pcm_iec958_hw_refine_cchange() argument
312 err = _snd_pcm_hw_params_refine(params, links, sparams); in snd_pcm_iec958_hw_refine_cchange()
Dpcm_shm.c215 …c int snd_pcm_shm_hw_refine_sprepare(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *sparams) in snd_pcm_shm_hw_refine_sprepare() argument
218 _snd_pcm_hw_params_any(sparams); in snd_pcm_shm_hw_refine_sprepare()
219 _snd_pcm_hw_param_set_mask(sparams, SND_PCM_HW_PARAM_ACCESS, in snd_pcm_shm_hw_refine_sprepare()
225 snd_pcm_hw_params_t *sparams) in snd_pcm_shm_hw_refine_schange() argument
232 err = _snd_pcm_hw_param_set_mask(sparams, SND_PCM_HW_PARAM_ACCESS, in snd_pcm_shm_hw_refine_schange()
237 err = _snd_pcm_hw_params_refine(sparams, links, params); in snd_pcm_shm_hw_refine_schange()
244 snd_pcm_hw_params_t *sparams) in snd_pcm_shm_hw_refine_cchange() argument
249 snd_mask_copy(&access_mask, snd_pcm_hw_param_get_mask(sparams, SND_PCM_HW_PARAM_ACCESS)); in snd_pcm_shm_hw_refine_cchange()
252 err = _snd_pcm_hw_param_set_mask(sparams, SND_PCM_HW_PARAM_ACCESS, in snd_pcm_shm_hw_refine_cchange()
256 err = _snd_pcm_hw_params_refine(params, links, sparams); in snd_pcm_shm_hw_refine_cchange()
Dpcm_softvol.c505 static int snd_pcm_softvol_hw_refine_sprepare(snd_pcm_t *pcm, snd_pcm_hw_params_t *sparams) in snd_pcm_softvol_hw_refine_sprepare() argument
509 _snd_pcm_hw_params_any(sparams); in snd_pcm_softvol_hw_refine_sprepare()
510 _snd_pcm_hw_param_set_mask(sparams, SND_PCM_HW_PARAM_ACCESS, in snd_pcm_softvol_hw_refine_sprepare()
513 _snd_pcm_hw_params_set_format(sparams, svol->sformat); in snd_pcm_softvol_hw_refine_sprepare()
514 _snd_pcm_hw_params_set_subformat(sparams, SND_PCM_SUBFORMAT_STD); in snd_pcm_softvol_hw_refine_sprepare()
553 snd_pcm_hw_params_t *sparams) in snd_pcm_softvol_hw_refine_schange() argument
569 err = _snd_pcm_hw_params_refine(sparams, links, params); in snd_pcm_softvol_hw_refine_schange()
573 err = check_access_mask(params, sparams); in snd_pcm_softvol_hw_refine_schange()
582 snd_pcm_hw_params_t *sparams) in snd_pcm_softvol_hw_refine_cchange() argument
598 err = _snd_pcm_hw_params_refine(params, links, sparams); in snd_pcm_softvol_hw_refine_cchange()
[all …]
Dpcm_params.c2202 snd_pcm_hw_params_t *sparams), in snd_pcm_hw_refine_slave() argument
2207 snd_pcm_hw_params_t *sparams), in snd_pcm_hw_refine_slave()
2209 snd_pcm_hw_params_t *sparams)) in snd_pcm_hw_refine_slave()
2215 snd_pcm_hw_params_t sparams; in snd_pcm_hw_refine_slave() local
2224 err = sprepare(pcm, &sparams); in snd_pcm_hw_refine_slave()
2239 snd_pcm_hw_params_dump(&sparams, log); in snd_pcm_hw_refine_slave()
2241 err = schange(pcm, params, &sparams); in snd_pcm_hw_refine_slave()
2247 snd_pcm_hw_params_dump(&sparams, log); in snd_pcm_hw_refine_slave()
2249 err = srefine(pcm, &sparams); in snd_pcm_hw_refine_slave()
2255 snd_pcm_hw_params_dump(&sparams, log); in snd_pcm_hw_refine_slave()
[all …]
Dpcm_route.c472 static int snd_pcm_route_hw_refine_sprepare(snd_pcm_t *pcm, snd_pcm_hw_params_t *sparams) in snd_pcm_route_hw_refine_sprepare() argument
476 _snd_pcm_hw_params_any(sparams); in snd_pcm_route_hw_refine_sprepare()
477 _snd_pcm_hw_param_set_mask(sparams, SND_PCM_HW_PARAM_ACCESS, in snd_pcm_route_hw_refine_sprepare()
480 _snd_pcm_hw_params_set_format(sparams, route->sformat); in snd_pcm_route_hw_refine_sprepare()
481 _snd_pcm_hw_params_set_subformat(sparams, SND_PCM_SUBFORMAT_STD); in snd_pcm_route_hw_refine_sprepare()
484 _snd_pcm_hw_param_set(sparams, SND_PCM_HW_PARAM_CHANNELS, in snd_pcm_route_hw_refine_sprepare()
491 snd_pcm_hw_params_t *sparams) in snd_pcm_route_hw_refine_schange() argument
508 err = _snd_pcm_hw_params_refine(sparams, links, params); in snd_pcm_route_hw_refine_schange()
515 snd_pcm_hw_params_t *sparams) in snd_pcm_route_hw_refine_cchange() argument
532 err = _snd_pcm_hw_params_refine(params, links, sparams); in snd_pcm_route_hw_refine_cchange()
Dpcm_share.c518 static int snd_pcm_share_hw_refine_sprepare(snd_pcm_t *pcm, snd_pcm_hw_params_t *sparams) in snd_pcm_share_hw_refine_sprepare() argument
523 _snd_pcm_hw_params_any(sparams); in snd_pcm_share_hw_refine_sprepare()
524 _snd_pcm_hw_param_set_mask(sparams, SND_PCM_HW_PARAM_ACCESS, in snd_pcm_share_hw_refine_sprepare()
526 _snd_pcm_hw_param_set(sparams, SND_PCM_HW_PARAM_CHANNELS, in snd_pcm_share_hw_refine_sprepare()
532 snd_pcm_hw_params_t *sparams) in snd_pcm_share_hw_refine_schange() argument
550 err = _snd_pcm_hw_param_set_mask(sparams, SND_PCM_HW_PARAM_ACCESS, in snd_pcm_share_hw_refine_schange()
555 err = _snd_pcm_hw_params_refine(sparams, links, params); in snd_pcm_share_hw_refine_schange()
562 snd_pcm_hw_params_t *sparams) in snd_pcm_share_hw_refine_cchange() argument
574 …const snd_pcm_access_mask_t *saccess_mask = snd_pcm_hw_param_get_mask(sparams, SND_PCM_HW_PARAM_AC… in snd_pcm_share_hw_refine_cchange()
586 err = _snd_pcm_hw_params_refine(params, links, sparams); in snd_pcm_share_hw_refine_cchange()
Dpcm_meter.c386 …int snd_pcm_meter_hw_refine_sprepare(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *sparams) in snd_pcm_meter_hw_refine_sprepare() argument
389 _snd_pcm_hw_params_any(sparams); in snd_pcm_meter_hw_refine_sprepare()
390 _snd_pcm_hw_param_set_mask(sparams, SND_PCM_HW_PARAM_ACCESS, in snd_pcm_meter_hw_refine_sprepare()
396 snd_pcm_hw_params_t *sparams) in snd_pcm_meter_hw_refine_schange() argument
400 err = _snd_pcm_hw_params_refine(sparams, links, params); in snd_pcm_meter_hw_refine_schange()
407 snd_pcm_hw_params_t *sparams) in snd_pcm_meter_hw_refine_cchange() argument
411 err = _snd_pcm_hw_params_refine(params, links, sparams); in snd_pcm_meter_hw_refine_cchange()
Dpcm_ladspa.c240 …nt snd_pcm_ladspa_hw_refine_sprepare(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *sparams) in snd_pcm_ladspa_hw_refine_sprepare() argument
244 _snd_pcm_hw_params_any(sparams); in snd_pcm_ladspa_hw_refine_sprepare()
245 _snd_pcm_hw_param_set_mask(sparams, SND_PCM_HW_PARAM_ACCESS, in snd_pcm_ladspa_hw_refine_sprepare()
247 _snd_pcm_hw_params_set_format(sparams, SND_PCM_FORMAT_FLOAT); in snd_pcm_ladspa_hw_refine_sprepare()
248 _snd_pcm_hw_params_set_subformat(sparams, SND_PCM_SUBFORMAT_STD); in snd_pcm_ladspa_hw_refine_sprepare()
250 _snd_pcm_hw_param_set(sparams, SND_PCM_HW_PARAM_CHANNELS, ladspa->channels, 0); in snd_pcm_ladspa_hw_refine_sprepare()
255 snd_pcm_hw_params_t *sparams) in snd_pcm_ladspa_hw_refine_schange() argument
266 err = _snd_pcm_hw_params_refine(sparams, links, params); in snd_pcm_ladspa_hw_refine_schange()
273 snd_pcm_hw_params_t *sparams) in snd_pcm_ladspa_hw_refine_cchange() argument
284 err = _snd_pcm_hw_params_refine(params, links, sparams); in snd_pcm_ladspa_hw_refine_cchange()
Dpcm_local.h713 snd_pcm_hw_params_t *sparams),
718 snd_pcm_hw_params_t *sparams),
720 snd_pcm_hw_params_t *sparams));
724 snd_pcm_hw_params_t *sparams),
729 snd_pcm_hw_params_t *sparams),
730 int (*sparams)(snd_pcm_t *pcm,
731 snd_pcm_hw_params_t *sparams));
/third_party/FreeBSD/sys/dev/usb/controller/
Dehci.c246 uint32_t sparams; in ehci_init() local
275 sparams = EREAD4(sc, EHCI_HCSPARAMS); in ehci_init()
276 DPRINTF("sparams=0x%x\n", sparams); in ehci_init()
278 sc->sc_noport = EHCI_HCS_N_PORTS(sparams); in ehci_init()
/third_party/openssl/test/
Devp_extra_test.c1935 OSSL_PARAM sparams[2] = {OSSL_PARAM_END, OSSL_PARAM_END}; in test_EVP_SM2() local
2047 sparams[0] = in test_EVP_SM2()
2058 if (!TEST_true(EVP_PKEY_CTX_set_params(cctx, sparams))) in test_EVP_SM2()
2068 if (!TEST_true(EVP_PKEY_CTX_set_params(cctx, sparams))) in test_EVP_SM2()