Lines Matching defs:pcm

2  * \file pcm/pcm_iec958.c
238 static int snd_pcm_iec958_hw_refine_cprepare(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
240 snd_pcm_iec958_t *iec = pcm->private_data;
269 static int snd_pcm_iec958_hw_refine_sprepare(snd_pcm_t *pcm, snd_pcm_hw_params_t *sparams)
271 snd_pcm_iec958_t *iec = pcm->private_data;
281 static int snd_pcm_iec958_hw_refine_schange(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *params,
299 static int snd_pcm_iec958_hw_refine_cchange(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *params,
317 static int snd_pcm_iec958_hw_refine(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
319 return snd_pcm_hw_refine_slave(pcm, params,
327 static int snd_pcm_iec958_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t * params)
329 snd_pcm_iec958_t *iec = pcm->private_data;
331 int err = snd_pcm_hw_params_slave(pcm, params,
344 if (pcm->stream == SND_PCM_STREAM_PLAYBACK) {
445 snd_pcm_iec958_write_areas(snd_pcm_t *pcm,
453 snd_pcm_iec958_t *iec = pcm->private_data;
458 pcm->channels, size);
464 snd_pcm_iec958_read_areas(snd_pcm_t *pcm,
472 snd_pcm_iec958_t *iec = pcm->private_data;
477 pcm->channels, size);
482 static int snd_pcm_iec958_init(snd_pcm_t *pcm)
484 snd_pcm_iec958_t *iec = pcm->private_data;
489 static void snd_pcm_iec958_dump(snd_pcm_t *pcm, snd_output_t *out)
491 snd_pcm_iec958_t *iec = pcm->private_data;
494 if (pcm->setup) {
496 snd_pcm_dump_setup(pcm, out);
502 static snd_pcm_sframes_t snd_pcm_iec958_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames)
505 snd_pcm_iec958_t *iec = pcm->private_data;
506 snd_pcm_sframes_t result = snd_pcm_plugin_rewind(pcm, frames);
516 static snd_pcm_sframes_t snd_pcm_iec958_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames)
520 snd_pcm_iec958_t *iec = pcm->private_data;
521 snd_pcm_sframes_t result = snd_pcm_plugin_rewind(pcm, frames);
570 snd_pcm_t *pcm;
609 err = snd_pcm_new(&pcm, SND_PCM_TYPE_IEC958, name, slave->stream, slave->mode);
614 pcm->ops = &snd_pcm_iec958_ops;
619 pcm->fast_ops = &iec->fops;
621 pcm->private_data = iec;
622 pcm->poll_fd = slave->poll_fd;
623 pcm->poll_events = slave->poll_events;
624 pcm->tstamp_type = slave->tstamp_type;
625 snd_pcm_set_hw_ptr(pcm, &iec->plug.hw_ptr, -1, 0);
626 snd_pcm_set_appl_ptr(pcm, &iec->plug.appl_ptr, -1, 0);
627 *pcmp = pcm;
640 pcm.name {
645 pcm STR # Slave PCM name
647 pcm { } # Slave PCM definition