Lines Matching refs:runtime
461 substream->runtime->rate, in snd_ps3_set_avsetting()
462 snd_pcm_format_width(substream->runtime->format)); in snd_ps3_set_avsetting()
468 switch (substream->runtime->rate) { in snd_ps3_set_avsetting()
483 substream->runtime->rate); in snd_ps3_set_avsetting()
488 switch (snd_pcm_format_width(substream->runtime->format)) { in snd_ps3_set_avsetting()
497 snd_pcm_format_width(substream->runtime->format)); in snd_ps3_set_avsetting()
527 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ps3_pcm_open() local
535 runtime->hw = snd_ps3_pcm_hw; in snd_ps3_pcm_open()
542 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, in snd_ps3_pcm_open()
578 rate = substream->runtime->rate; in snd_ps3_delay_to_bytes()
579 ret = snd_pcm_format_size(substream->runtime->format, in snd_ps3_delay_to_bytes()
581 * substream->runtime->channels; in snd_ps3_delay_to_bytes()
587 snd_pcm_format_size(substream->runtime->format, rate), in snd_ps3_delay_to_bytes()
596 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ps3_pcm_prepare() local
617 card->dma_buffer_size = runtime->dma_bytes; in snd_ps3_pcm_prepare()
622 runtime->dma_area; in snd_ps3_pcm_prepare()
623 card->dma_start_bus_addr[SND_PS3_CH_L] = runtime->dma_addr; in snd_ps3_pcm_prepare()
628 runtime->dma_area + (runtime->dma_bytes / 2); in snd_ps3_pcm_prepare()
630 runtime->dma_addr + (runtime->dma_bytes / 2); in snd_ps3_pcm_prepare()
706 ret = bytes_to_frames(substream->runtime, bytes * 2); in snd_ps3_pcm_pointer()