• Home
  • Raw
  • Download

Lines Matching refs:runtime

152 static void snd_p16v_pcm_free_substream(struct snd_pcm_runtime *runtime)  in snd_p16v_pcm_free_substream()  argument
154 struct snd_emu10k1_pcm *epcm = runtime->private_data; in snd_p16v_pcm_free_substream()
165 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_pcm_open_playback_channel() local
179 runtime->private_data = epcm; in snd_p16v_pcm_open_playback_channel()
180 runtime->private_free = snd_p16v_pcm_free_substream; in snd_p16v_pcm_open_playback_channel()
182 runtime->hw = snd_p16v_playback_hw; in snd_p16v_pcm_open_playback_channel()
197 if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0) in snd_p16v_pcm_open_playback_channel()
200 runtime->sync.id32[0] = substream->pcm->card->number; in snd_p16v_pcm_open_playback_channel()
201 runtime->sync.id32[1] = 'P'; in snd_p16v_pcm_open_playback_channel()
202 runtime->sync.id32[2] = 16; in snd_p16v_pcm_open_playback_channel()
203 runtime->sync.id32[3] = 'V'; in snd_p16v_pcm_open_playback_channel()
213 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_pcm_open_capture_channel() local
227 runtime->private_data = epcm; in snd_p16v_pcm_open_capture_channel()
228 runtime->private_free = snd_p16v_pcm_free_substream; in snd_p16v_pcm_open_capture_channel()
230 runtime->hw = snd_p16v_capture_hw; in snd_p16v_pcm_open_capture_channel()
245 if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0) in snd_p16v_pcm_open_capture_channel()
289 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_pcm_prepare_playback() local
292 u32 period_size_bytes = frames_to_bytes(runtime, runtime->period_size); in snd_p16v_pcm_prepare_playback()
301 channel, runtime->rate, runtime->format, runtime->channels, in snd_p16v_pcm_prepare_playback()
302 runtime->buffer_size, runtime->period_size, in snd_p16v_pcm_prepare_playback()
303 runtime->periods, frames_to_bytes(runtime, 1)); in snd_p16v_pcm_prepare_playback()
306 runtime->dma_addr, runtime->dma_area, table_base); in snd_p16v_pcm_prepare_playback()
313 switch (runtime->rate) { in snd_p16v_pcm_prepare_playback()
329 for(i = 0; i < runtime->periods; i++) { in snd_p16v_pcm_prepare_playback()
330 table_base[i*2]=runtime->dma_addr+(i*period_size_bytes); in snd_p16v_pcm_prepare_playback()
335 snd_emu10k1_ptr20_write(emu, PLAYBACK_LIST_SIZE, channel, (runtime->periods - 1) << 19); in snd_p16v_pcm_prepare_playback()
337 snd_emu10k1_ptr20_write(emu, PLAYBACK_DMA_ADDR, channel, runtime->dma_addr); in snd_p16v_pcm_prepare_playback()
351 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_pcm_prepare_capture() local
364 switch (runtime->rate) { in snd_p16v_pcm_prepare_capture()
381 snd_emu10k1_ptr20_write(emu, CAPTURE_DMA_ADDR, channel, runtime->dma_addr); in snd_p16v_pcm_prepare_capture()
382 …snd_emu10k1_ptr20_write(emu, CAPTURE_BUFFER_SIZE, channel, frames_to_bytes(runtime, runtime->buffe… in snd_p16v_pcm_prepare_capture()
417 struct snd_pcm_runtime *runtime; in snd_p16v_pcm_trigger_playback() local
439 runtime = s->runtime; in snd_p16v_pcm_trigger_playback()
440 epcm = runtime->private_data; in snd_p16v_pcm_trigger_playback()
471 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_pcm_trigger_capture() local
472 struct snd_emu10k1_pcm *epcm = runtime->private_data; in snd_p16v_pcm_trigger_capture()
501 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_pcm_pointer_playback() local
502 struct snd_emu10k1_pcm *epcm = runtime->private_data; in snd_p16v_pcm_pointer_playback()
512 ptr2 = bytes_to_frames(runtime, ptr1); in snd_p16v_pcm_pointer_playback()
513 ptr2+= (ptr4 >> 3) * runtime->period_size; in snd_p16v_pcm_pointer_playback()
515 if (ptr >= runtime->buffer_size) in snd_p16v_pcm_pointer_playback()
516 ptr -= runtime->buffer_size; in snd_p16v_pcm_pointer_playback()
526 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_pcm_pointer_capture() local
527 struct snd_emu10k1_pcm *epcm = runtime->private_data; in snd_p16v_pcm_pointer_capture()
535 ptr2 = bytes_to_frames(runtime, ptr1); in snd_p16v_pcm_pointer_capture()
537 if (ptr >= runtime->buffer_size) { in snd_p16v_pcm_pointer_capture()
538 ptr -= runtime->buffer_size; in snd_p16v_pcm_pointer_capture()