Lines Matching refs:runtime
231 struct snd_pcm_runtime *runtime = subs->runtime; in emu8k_pcm_open() local
239 runtime->private_data = rec; in emu8k_pcm_open()
244 runtime->hw = emu8k_pcm_hw; in emu8k_pcm_open()
245 runtime->hw.buffer_bytes_max = emu->mem_size - LOOP_BLANK_SIZE * 3; in emu8k_pcm_open()
246 runtime->hw.period_bytes_max = runtime->hw.buffer_bytes_max / 2; in emu8k_pcm_open()
249 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_TIME, in emu8k_pcm_open()
257 struct snd_emu8k_pcm *rec = subs->runtime->private_data; in emu8k_pcm_close()
259 subs->runtime->private_data = NULL; in emu8k_pcm_close()
386 struct snd_emu8k_pcm *rec = subs->runtime->private_data; in emu8k_pcm_trigger()
447 struct snd_emu8k_pcm *rec = subs->runtime->private_data; in emu8k_pcm_copy()
484 struct snd_emu8k_pcm *rec = subs->runtime->private_data; in emu8k_pcm_silence()
513 struct snd_emu8k_pcm *rec = subs->runtime->private_data; in emu8k_pcm_copy()
545 struct snd_emu8k_pcm *rec = subs->runtime->private_data; in emu8k_pcm_silence()
571 struct snd_emu8k_pcm *rec = subs->runtime->private_data; in emu8k_pcm_hw_params()
595 struct snd_emu8k_pcm *rec = subs->runtime->private_data; in emu8k_pcm_hw_free()
613 struct snd_emu8k_pcm *rec = subs->runtime->private_data; in emu8k_pcm_prepare()
615 rec->pitch = 0xe000 + calc_rate_offset(subs->runtime->rate); in emu8k_pcm_prepare()
619 rec->buf_size = subs->runtime->buffer_size; in emu8k_pcm_prepare()
620 rec->period_size = subs->runtime->period_size; in emu8k_pcm_prepare()
621 rec->voices = subs->runtime->channels; in emu8k_pcm_prepare()
659 struct snd_emu8k_pcm *rec = subs->runtime->private_data; in emu8k_pcm_pointer()