Lines Matching refs:runtime
1115 struct m3_dma *s = subs->runtime->private_data; in snd_m3_pcm_trigger()
1153 struct snd_pcm_runtime *runtime = subs->runtime; in snd_m3_pcm_setup1() local
1165 s->dma_size = frames_to_bytes(runtime, runtime->buffer_size); in snd_m3_pcm_setup1()
1166 s->period_size = frames_to_bytes(runtime, runtime->period_size); in snd_m3_pcm_setup1()
1236 struct snd_pcm_runtime *runtime) in snd_m3_pcm_setup2() argument
1256 runtime->channels == 2 ? 0 : 1); in snd_m3_pcm_setup2()
1260 snd_pcm_format_width(runtime->format) == 16 ? 0 : 1); in snd_m3_pcm_setup2()
1263 freq = ((runtime->rate << 15) + 24000 ) / 48000; in snd_m3_pcm_setup2()
1322 subs->runtime->rate > 45000 ? 0xff : 0); in snd_m3_playback_setup()
1398 struct m3_dma *s = substream->runtime->private_data; in snd_m3_pcm_hw_params()
1404 s->buffer_addr = substream->runtime->dma_addr; in snd_m3_pcm_hw_params()
1416 if (substream->runtime->private_data == NULL) in snd_m3_pcm_hw_free()
1418 s = substream->runtime->private_data; in snd_m3_pcm_hw_free()
1428 struct snd_pcm_runtime *runtime = subs->runtime; in snd_m3_pcm_prepare() local
1429 struct m3_dma *s = runtime->private_data; in snd_m3_pcm_prepare()
1434 if (runtime->format != SNDRV_PCM_FORMAT_U8 && in snd_m3_pcm_prepare()
1435 runtime->format != SNDRV_PCM_FORMAT_S16_LE) in snd_m3_pcm_prepare()
1437 if (runtime->rate > 48000 || in snd_m3_pcm_prepare()
1438 runtime->rate < 8000) in snd_m3_pcm_prepare()
1450 snd_m3_pcm_setup2(chip, s, runtime); in snd_m3_pcm_prepare()
1490 struct m3_dma *s = subs->runtime->private_data; in snd_m3_pcm_pointer()
1498 return bytes_to_frames(subs->runtime, ptr); in snd_m3_pcm_pointer()
1749 subs->runtime->private_data = s; in snd_m3_substream_open()
1766 struct m3_dma *s = subs->runtime->private_data; in snd_m3_substream_close()
1789 struct snd_pcm_runtime *runtime = subs->runtime; in snd_m3_playback_open() local
1795 runtime->hw = snd_m3_playback; in snd_m3_playback_open()
1813 struct snd_pcm_runtime *runtime = subs->runtime; in snd_m3_capture_open() local
1819 runtime->hw = snd_m3_capture; in snd_m3_capture_open()