• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/sound/pci/emu10k1/

Lines Matching defs:runtime

166 static void snd_p16v_pcm_free_substream(struct snd_pcm_runtime *runtime)
168 struct snd_emu10k1_pcm *epcm = runtime->private_data;
182 struct snd_pcm_runtime *runtime = substream->runtime;
194 runtime->private_data = epcm;
195 runtime->private_free = snd_p16v_pcm_free_substream;
197 runtime->hw = snd_p16v_playback_hw;
207 if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0)
218 struct snd_pcm_runtime *runtime = substream->runtime;
230 runtime->private_data = epcm;
231 runtime->private_free = snd_p16v_pcm_free_substream;
233 runtime->hw = snd_p16v_capture_hw;
243 if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0)
254 //struct snd_pcm_runtime *runtime = substream->runtime;
255 //struct snd_emu10k1_pcm *epcm = runtime->private_data;
264 //struct snd_pcm_runtime *runtime = substream->runtime;
265 //struct snd_emu10k1_pcm *epcm = runtime->private_data;
323 struct snd_pcm_runtime *runtime = substream->runtime;
326 u32 period_size_bytes = frames_to_bytes(runtime, runtime->period_size);
330 //snd_printk("prepare:channel_number=%d, rate=%d, format=0x%x, channels=%d, buffer_size=%ld, period_size=%ld, periods=%u, frames_to_bytes=%d\n",channel, runtime->rate, runtime->format, runtime->channels, runtime->buffer_size, runtime->period_size, runtime->periods, frames_to_bytes(runtime, 1));
331 //snd_printk("dma_addr=%x, dma_area=%p, table_base=%p\n",runtime->dma_addr, runtime->dma_area, table_base);
334 switch (runtime->rate) {
349 for(i = 0; i < runtime->periods; i++) {
350 table_base[i*2]=runtime->dma_addr+(i*period_size_bytes);
355 snd_emu10k1_ptr20_write(emu, PLAYBACK_LIST_SIZE, channel, (runtime->periods - 1) << 19);
357 snd_emu10k1_ptr20_write(emu, PLAYBACK_DMA_ADDR, channel, runtime->dma_addr);
358 //snd_emu10k1_ptr20_write(emu, PLAYBACK_PERIOD_SIZE, channel, frames_to_bytes(runtime, runtime->period_size)<<16); // buffer size in bytes
371 struct snd_pcm_runtime *runtime = substream->runtime;
374 //printk("prepare capture:channel_number=%d, rate=%d, format=0x%x, channels=%d, buffer_size=%ld, period_size=%ld, frames_to_bytes=%d\n",channel, runtime->rate, runtime->format, runtime->channels, runtime->buffer_size, runtime->period_size, frames_to_bytes(runtime, 1));
376 switch (runtime->rate) {
392 snd_emu10k1_ptr20_write(emu, CAPTURE_DMA_ADDR, channel, runtime->dma_addr);
393 snd_emu10k1_ptr20_write(emu, CAPTURE_BUFFER_SIZE, channel, frames_to_bytes(runtime, runtime->buffer_size) << 16); // buffer size in bytes
428 struct snd_pcm_runtime *runtime;
447 runtime = s->runtime;
448 epcm = runtime->private_data;
479 struct snd_pcm_runtime *runtime = substream->runtime;
480 struct snd_emu10k1_pcm *epcm = runtime->private_data;
509 struct snd_pcm_runtime *runtime = substream->runtime;
510 struct snd_emu10k1_pcm *epcm = runtime->private_data;
520 ptr2 = bytes_to_frames(runtime, ptr1);
521 ptr2+= (ptr4 >> 3) * runtime->period_size;
523 if (ptr >= runtime->buffer_size)
524 ptr -= runtime->buffer_size;
534 struct snd_pcm_runtime *runtime = substream->runtime;
535 struct snd_emu10k1_pcm *epcm = runtime->private_data;
543 ptr2 = bytes_to_frames(runtime, ptr1);
545 if (ptr >= runtime->buffer_size) {
546 ptr -= runtime->buffer_size;
549 //printk("ptr1 = 0x%lx, ptr2=0x%lx, ptr=0x%lx, buffer_size = 0x%x, period_size = 0x%x, bits=%d, rate=%d\n", ptr1, ptr2, ptr, (int)runtime->buffer_size, (int)runtime->period_size, (int)runtime->frame_bits, (int)runtime->rate);