Lines Matching full:runtime

155 	struct snd_pcm_runtime *runtime = substream->runtime;  in snd_p16v_pcm_open_playback_channel()  local
163 runtime->hw = snd_p16v_playback_hw; in snd_p16v_pcm_open_playback_channel()
173 err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); in snd_p16v_pcm_open_playback_channel()
183 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_pcm_open_capture_channel() local
191 runtime->hw = snd_p16v_capture_hw; in snd_p16v_pcm_open_capture_channel()
193 err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); in snd_p16v_pcm_open_capture_channel()
239 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_pcm_prepare_playback() local
242 u32 period_size_bytes = frames_to_bytes(runtime, runtime->period_size); in snd_p16v_pcm_prepare_playback()
251 channel, runtime->rate, runtime->format, runtime->channels, in snd_p16v_pcm_prepare_playback()
252 runtime->buffer_size, runtime->period_size, in snd_p16v_pcm_prepare_playback()
253 runtime->periods, frames_to_bytes(runtime, 1)); in snd_p16v_pcm_prepare_playback()
256 runtime->dma_addr, runtime->dma_area, table_base); in snd_p16v_pcm_prepare_playback()
264 switch (runtime->rate) { in snd_p16v_pcm_prepare_playback()
284 for(i = 0; i < runtime->periods; i++) { in snd_p16v_pcm_prepare_playback()
285 table_base[i*2]=runtime->dma_addr+(i*period_size_bytes); in snd_p16v_pcm_prepare_playback()
290 snd_emu10k1_ptr20_write(emu, PLAYBACK_LIST_SIZE, channel, (runtime->periods - 1) << 19); in snd_p16v_pcm_prepare_playback()
292 snd_emu10k1_ptr20_write(emu, PLAYBACK_DMA_ADDR, channel, runtime->dma_addr); in snd_p16v_pcm_prepare_playback()
293 …//snd_emu10k1_ptr20_write(emu, PLAYBACK_PERIOD_SIZE, channel, frames_to_bytes(runtime, runtime->pe… in snd_p16v_pcm_prepare_playback()
306 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_pcm_prepare_capture() local
313 channel, runtime->rate, runtime->format, runtime->channels, in snd_p16v_pcm_prepare_capture()
314 runtime->buffer_size, runtime->period_size, in snd_p16v_pcm_prepare_capture()
315 frames_to_bytes(runtime, 1)); in snd_p16v_pcm_prepare_capture()
317 switch (runtime->rate) { in snd_p16v_pcm_prepare_capture()
334 snd_emu10k1_ptr20_write(emu, CAPTURE_DMA_ADDR, channel, runtime->dma_addr); in snd_p16v_pcm_prepare_capture()
335 …snd_emu10k1_ptr20_write(emu, CAPTURE_BUFFER_SIZE, channel, frames_to_bytes(runtime, runtime->buffe… in snd_p16v_pcm_prepare_capture()
376 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_interrupt() local
378 if (runtime && runtime->private_data) { in snd_p16v_interrupt()
389 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_interrupt() local
392 if (runtime && runtime->private_data) { in snd_p16v_interrupt()
406 struct snd_pcm_runtime *runtime; in snd_p16v_pcm_trigger_playback() local
427 runtime = s->runtime; in snd_p16v_pcm_trigger_playback()
430 runtime->private_data = (void *)(ptrdiff_t)running; in snd_p16v_pcm_trigger_playback()
458 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_pcm_trigger_capture() local
467 runtime->private_data = (void *)1; in snd_p16v_pcm_trigger_capture()
473 runtime->private_data = NULL; in snd_p16v_pcm_trigger_capture()
487 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_pcm_pointer_playback() local
491 if (!runtime->private_data) in snd_p16v_pcm_pointer_playback()
498 ptr2 = bytes_to_frames(runtime, ptr1); in snd_p16v_pcm_pointer_playback()
499 ptr2+= (ptr4 >> 3) * runtime->period_size; in snd_p16v_pcm_pointer_playback()
501 if (ptr >= runtime->buffer_size) in snd_p16v_pcm_pointer_playback()
502 ptr -= runtime->buffer_size; in snd_p16v_pcm_pointer_playback()
512 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_pcm_pointer_capture() local
516 if (!runtime->private_data) in snd_p16v_pcm_pointer_capture()
520 ptr2 = bytes_to_frames(runtime, ptr1); in snd_p16v_pcm_pointer_capture()
522 if (ptr >= runtime->buffer_size) { in snd_p16v_pcm_pointer_capture()
523 ptr -= runtime->buffer_size; in snd_p16v_pcm_pointer_capture()
529 ptr1, ptr2, ptr, (int)runtime->buffer_size, in snd_p16v_pcm_pointer_capture()
530 (int)runtime->period_size, (int)runtime->frame_bits, in snd_p16v_pcm_pointer_capture()
531 (int)runtime->rate); in snd_p16v_pcm_pointer_capture()