Lines Matching defs:runtime
253 struct snd_pcm_runtime *runtime = substream->runtime;
254 snd_card_saa7134_pcm_t *pcm = runtime->private_data;
333 struct snd_pcm_runtime *runtime = substream->runtime;
338 snd_card_saa7134_pcm_t *pcm = runtime->private_data;
344 if (snd_pcm_format_width(runtime->format) == 8)
349 if (snd_pcm_format_signed(runtime->format))
354 if (snd_pcm_format_big_endian(runtime->format))
361 if (1 == runtime->channels)
363 if (2 == runtime->channels)
377 if (1 == runtime->channels)
379 if (2 == runtime->channels)
389 runtime->format, runtime->channels, fmt,
403 dev->dmasound.rate = runtime->rate;
423 struct snd_pcm_runtime *runtime = substream->runtime;
424 snd_card_saa7134_pcm_t *pcm = runtime->private_data;
434 return bytes_to_frames(runtime, dev->dmasound.read_offset);
464 static void snd_card_saa7134_runtime_free(struct snd_pcm_runtime *runtime)
466 snd_card_saa7134_pcm_t *pcm = runtime->private_data;
504 if (substream->runtime->dma_area) {
508 substream->runtime->dma_area = NULL;
541 /* I should be able to use runtime->dma_addr in the control
545 substream->runtime->dma_area = dev->dmasound.dma.vmalloc;
568 if (substream->runtime->dma_area) {
572 substream->runtime->dma_area = NULL;
609 struct snd_pcm_runtime *runtime = substream->runtime;
636 runtime->private_data = pcm;
637 runtime->private_free = snd_card_saa7134_runtime_free;
638 runtime->hw = snd_card_saa7134_capture;
643 if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0)