Lines Matching defs:runtime
305 static int snd_als4000_get_format(struct snd_pcm_runtime *runtime)
310 if (snd_pcm_format_signed(runtime->format))
312 if (snd_pcm_format_physical_width(runtime->format) == 16)
314 if (runtime->channels > 1)
360 struct snd_pcm_runtime *runtime = substream->runtime;
364 chip->capture_format = snd_als4000_get_format(runtime);
374 snd_als4000_set_rate(chip, runtime->rate);
375 snd_als4000_set_capture_dma(chip, runtime->dma_addr, size);
387 struct snd_pcm_runtime *runtime = substream->runtime;
391 chip->playback_format = snd_als4000_get_format(runtime);
407 snd_als4000_set_rate(chip, runtime->rate);
408 snd_als4000_set_playback_dma(chip, runtime->dma_addr, size);
489 return bytes_to_frames( substream->runtime, result );
501 return bytes_to_frames( substream->runtime, result );
612 struct snd_pcm_runtime *runtime = substream->runtime;
615 runtime->hw = snd_als4000_playback;
630 struct snd_pcm_runtime *runtime = substream->runtime;
633 runtime->hw = snd_als4000_capture;