Lines Matching defs:pcm

2  * \file pcm/pcm_linear.c
218 static int snd_pcm_linear_hw_refine_cprepare(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *params)
238 static int snd_pcm_linear_hw_refine_sprepare(snd_pcm_t *pcm, snd_pcm_hw_params_t *sparams)
240 snd_pcm_linear_t *linear = pcm->private_data;
250 static int snd_pcm_linear_hw_refine_schange(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *params,
268 static int snd_pcm_linear_hw_refine_cchange(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *params,
286 static int snd_pcm_linear_hw_refine(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
288 return snd_pcm_hw_refine_slave(pcm, params,
296 static int snd_pcm_linear_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
298 snd_pcm_linear_t *linear = pcm->private_data;
300 int err = snd_pcm_hw_params_slave(pcm, params,
315 if (pcm->stream == SND_PCM_STREAM_PLAYBACK) {
323 if (pcm->stream == SND_PCM_STREAM_PLAYBACK)
334 snd_pcm_linear_write_areas(snd_pcm_t *pcm,
342 snd_pcm_linear_t *linear = pcm->private_data;
348 pcm->channels, size,
353 pcm->channels, size, linear->conv_idx);
359 snd_pcm_linear_read_areas(snd_pcm_t *pcm,
367 snd_pcm_linear_t *linear = pcm->private_data;
373 pcm->channels, size,
378 pcm->channels, size, linear->conv_idx);
383 static void snd_pcm_linear_dump(snd_pcm_t *pcm, snd_output_t *out)
385 snd_pcm_linear_t *linear = pcm->private_data;
388 if (pcm->setup) {
390 snd_pcm_dump_setup(pcm, out);
429 snd_pcm_t *pcm;
448 err = snd_pcm_new(&pcm, SND_PCM_TYPE_LINEAR, name, slave->stream, slave->mode);
453 pcm->ops = &snd_pcm_linear_ops;
454 pcm->fast_ops = &snd_pcm_plugin_fast_ops;
455 pcm->private_data = linear;
456 pcm->poll_fd = slave->poll_fd;
457 pcm->poll_events = slave->poll_events;
458 pcm->tstamp_type = slave->tstamp_type;
459 snd_pcm_set_hw_ptr(pcm, &linear->plug.hw_ptr, -1, 0);
460 snd_pcm_set_appl_ptr(pcm, &linear->plug.appl_ptr, -1, 0);
461 *pcmp = pcm;
474 pcm.name {
479 pcm STR # Slave PCM name
481 pcm { } # Slave PCM definition