Lines Matching defs:runtime
686 struct snd_pcm_runtime *runtime = substream->runtime;
693 if (runtime->channels > 1)
695 if (snd_pcm_format_width(runtime->format) == 16)
698 snd_sonicvibes_set_dac_rate(sonic, runtime->rate);
700 snd_sonicvibes_setdmaa(sonic, runtime->dma_addr, size);
710 struct snd_pcm_runtime *runtime = substream->runtime;
718 if (runtime->channels > 1)
720 if (snd_pcm_format_width(runtime->format) == 16)
723 snd_sonicvibes_set_adc_rate(sonic, runtime->rate);
725 snd_sonicvibes_setdmac(sonic, runtime->dma_addr, size);
740 return bytes_to_frames(substream->runtime, ptr);
750 return bytes_to_frames(substream->runtime, ptr);
794 struct snd_pcm_runtime *runtime = substream->runtime;
798 runtime->hw = snd_sonicvibes_playback;
799 snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, snd_sonicvibes_hw_constraint_dac_rate, NULL, SNDRV_PCM_HW_PARAM_RATE, -1);
806 struct snd_pcm_runtime *runtime = substream->runtime;
810 runtime->hw = snd_sonicvibes_capture;
811 snd_pcm_hw_constraint_ratdens(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,