Lines Matching defs:pcm

2  * \file pcm/pcm_adpcm.c
323 static int snd_pcm_adpcm_hw_refine_cprepare(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
325 snd_pcm_adpcm_t *adpcm = pcm->private_data;
350 static int snd_pcm_adpcm_hw_refine_sprepare(snd_pcm_t *pcm, snd_pcm_hw_params_t *sparams)
352 snd_pcm_adpcm_t *adpcm = pcm->private_data;
362 static int snd_pcm_adpcm_hw_refine_schange(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *params,
380 static int snd_pcm_adpcm_hw_refine_cchange(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *params,
398 static int snd_pcm_adpcm_hw_refine(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
400 return snd_pcm_hw_refine_slave(pcm, params,
408 static int snd_pcm_adpcm_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t * params)
410 snd_pcm_adpcm_t *adpcm = pcm->private_data;
412 int err = snd_pcm_hw_params_slave(pcm, params,
424 if (pcm->stream == SND_PCM_STREAM_PLAYBACK) {
448 static int snd_pcm_adpcm_hw_free(snd_pcm_t *pcm)
450 snd_pcm_adpcm_t *adpcm = pcm->private_data;
456 static int snd_pcm_adpcm_init(snd_pcm_t *pcm)
458 snd_pcm_adpcm_t *adpcm = pcm->private_data;
460 for (k = 0; k < pcm->channels; ++k) {
468 snd_pcm_adpcm_write_areas(snd_pcm_t *pcm,
476 snd_pcm_adpcm_t *adpcm = pcm->private_data;
481 pcm->channels, size,
488 snd_pcm_adpcm_read_areas(snd_pcm_t *pcm,
496 snd_pcm_adpcm_t *adpcm = pcm->private_data;
501 pcm->channels, size,
507 static void snd_pcm_adpcm_dump(snd_pcm_t *pcm, snd_output_t *out)
509 snd_pcm_adpcm_t *adpcm = pcm->private_data;
512 if (pcm->setup) {
514 snd_pcm_dump_setup(pcm, out);
552 snd_pcm_t *pcm;
571 err = snd_pcm_new(&pcm, SND_PCM_TYPE_ADPCM, name, slave->stream, slave->mode);
576 pcm->ops = &snd_pcm_adpcm_ops;
577 pcm->fast_ops = &snd_pcm_plugin_fast_ops;
578 pcm->private_data = adpcm;
579 pcm->poll_fd = slave->poll_fd;
580 pcm->poll_events = slave->poll_events;
581 pcm->tstamp_type = slave->tstamp_type;
582 snd_pcm_set_hw_ptr(pcm, &adpcm->plug.hw_ptr, -1, 0);
583 snd_pcm_set_appl_ptr(pcm, &adpcm->plug.appl_ptr, -1, 0);
584 *pcmp = pcm;
598 pcm.name {
603 pcm STR # Slave PCM name
605 pcm { } # Slave PCM definition