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()
177 runtime->sync.id32[0] = substream->pcm->card->number; in snd_p16v_pcm_open_playback_channel()
178 runtime->sync.id32[1] = 'P'; in snd_p16v_pcm_open_playback_channel()
179 runtime->sync.id32[2] = 16; in snd_p16v_pcm_open_playback_channel()
180 runtime->sync.id32[3] = 'V'; in snd_p16v_pcm_open_playback_channel()
188 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_pcm_open_capture_channel() local
196 runtime->hw = snd_p16v_capture_hw; in snd_p16v_pcm_open_capture_channel()
198 err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); in snd_p16v_pcm_open_capture_channel()
233 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_pcm_prepare_playback() local
236 u32 period_size_bytes = frames_to_bytes(runtime, runtime->period_size); in snd_p16v_pcm_prepare_playback()
245 channel, runtime->rate, runtime->format, runtime->channels, in snd_p16v_pcm_prepare_playback()
246 runtime->buffer_size, runtime->period_size, in snd_p16v_pcm_prepare_playback()
247 runtime->periods, frames_to_bytes(runtime, 1)); in snd_p16v_pcm_prepare_playback()
250 runtime->dma_addr, runtime->dma_area, table_base); in snd_p16v_pcm_prepare_playback()
258 switch (runtime->rate) { in snd_p16v_pcm_prepare_playback()
278 for(i = 0; i < runtime->periods; i++) { in snd_p16v_pcm_prepare_playback()
279 table_base[i*2]=runtime->dma_addr+(i*period_size_bytes); in snd_p16v_pcm_prepare_playback()
284 snd_emu10k1_ptr20_write(emu, PLAYBACK_LIST_SIZE, channel, (runtime->periods - 1) << 19); in snd_p16v_pcm_prepare_playback()
286 snd_emu10k1_ptr20_write(emu, PLAYBACK_DMA_ADDR, channel, runtime->dma_addr); in snd_p16v_pcm_prepare_playback()
287 …//snd_emu10k1_ptr20_write(emu, PLAYBACK_PERIOD_SIZE, channel, frames_to_bytes(runtime, runtime->pe… in snd_p16v_pcm_prepare_playback()
300 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_pcm_prepare_capture() local
307 channel, runtime->rate, runtime->format, runtime->channels, in snd_p16v_pcm_prepare_capture()
308 runtime->buffer_size, runtime->period_size, in snd_p16v_pcm_prepare_capture()
309 frames_to_bytes(runtime, 1)); in snd_p16v_pcm_prepare_capture()
311 switch (runtime->rate) { in snd_p16v_pcm_prepare_capture()
328 snd_emu10k1_ptr20_write(emu, CAPTURE_DMA_ADDR, channel, runtime->dma_addr); in snd_p16v_pcm_prepare_capture()
329 …snd_emu10k1_ptr20_write(emu, CAPTURE_BUFFER_SIZE, channel, frames_to_bytes(runtime, runtime->buffe… in snd_p16v_pcm_prepare_capture()
370 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_interrupt() local
372 if (runtime && runtime->private_data) { in snd_p16v_interrupt()
383 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_interrupt() local
386 if (runtime && runtime->private_data) { in snd_p16v_interrupt()
400 struct snd_pcm_runtime *runtime; in snd_p16v_pcm_trigger_playback() local
421 runtime = s->runtime; in snd_p16v_pcm_trigger_playback()
424 runtime->private_data = (void *)(ptrdiff_t)running; in snd_p16v_pcm_trigger_playback()
452 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_pcm_trigger_capture() local
461 runtime->private_data = (void *)1; in snd_p16v_pcm_trigger_capture()
467 runtime->private_data = NULL; in snd_p16v_pcm_trigger_capture()
481 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_pcm_pointer_playback() local
485 if (!runtime->private_data) in snd_p16v_pcm_pointer_playback()
492 ptr2 = bytes_to_frames(runtime, ptr1); in snd_p16v_pcm_pointer_playback()
493 ptr2+= (ptr4 >> 3) * runtime->period_size; in snd_p16v_pcm_pointer_playback()
495 if (ptr >= runtime->buffer_size) in snd_p16v_pcm_pointer_playback()
496 ptr -= runtime->buffer_size; in snd_p16v_pcm_pointer_playback()
506 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_pcm_pointer_capture() local
510 if (!runtime->private_data) in snd_p16v_pcm_pointer_capture()
514 ptr2 = bytes_to_frames(runtime, ptr1); in snd_p16v_pcm_pointer_capture()
516 if (ptr >= runtime->buffer_size) { in snd_p16v_pcm_pointer_capture()
517 ptr -= runtime->buffer_size; in snd_p16v_pcm_pointer_capture()
523 ptr1, ptr2, ptr, (int)runtime->buffer_size, in snd_p16v_pcm_pointer_capture()
524 (int)runtime->period_size, (int)runtime->frame_bits, in snd_p16v_pcm_pointer_capture()
525 (int)runtime->rate); in snd_p16v_pcm_pointer_capture()