Lines Matching defs:runtime

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