Lines Matching defs:runtime
687 struct snd_pcm_runtime *runtime = substream->runtime;
694 if (runtime->channels > 1)
696 if (snd_pcm_format_width(runtime->format) == 16)
699 snd_sonicvibes_set_dac_rate(sonic, runtime->rate);
701 snd_sonicvibes_setdmaa(sonic, runtime->dma_addr, size);
711 struct snd_pcm_runtime *runtime = substream->runtime;
719 if (runtime->channels > 1)
721 if (snd_pcm_format_width(runtime->format) == 16)
724 snd_sonicvibes_set_adc_rate(sonic, runtime->rate);
726 snd_sonicvibes_setdmac(sonic, runtime->dma_addr, size);
741 return bytes_to_frames(substream->runtime, ptr);
751 return bytes_to_frames(substream->runtime, ptr);
795 struct snd_pcm_runtime *runtime = substream->runtime;
799 runtime->hw = snd_sonicvibes_playback;
800 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);
807 struct snd_pcm_runtime *runtime = substream->runtime;
811 runtime->hw = snd_sonicvibes_capture;
812 snd_pcm_hw_constraint_ratdens(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,