Lines Matching defs:runtime
304 static int snd_als4000_get_format(struct snd_pcm_runtime *runtime)
309 if (snd_pcm_format_signed(runtime->format))
311 if (snd_pcm_format_physical_width(runtime->format) == 16)
313 if (runtime->channels > 1)
359 struct snd_pcm_runtime *runtime = substream->runtime;
363 chip->capture_format = snd_als4000_get_format(runtime);
373 snd_als4000_set_rate(chip, runtime->rate);
374 snd_als4000_set_capture_dma(chip, runtime->dma_addr, size);
386 struct snd_pcm_runtime *runtime = substream->runtime;
390 chip->playback_format = snd_als4000_get_format(runtime);
406 snd_als4000_set_rate(chip, runtime->rate);
407 snd_als4000_set_playback_dma(chip, runtime->dma_addr, size);
488 return bytes_to_frames( substream->runtime, result );
500 return bytes_to_frames( substream->runtime, result );
611 struct snd_pcm_runtime *runtime = substream->runtime;
614 runtime->hw = snd_als4000_playback;
629 struct snd_pcm_runtime *runtime = substream->runtime;
632 runtime->hw = snd_als4000_capture;