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

Lines Matching refs:runtime

67 	void *pageptr = subs->runtime->dma_area + offset;
78 struct snd_pcm_runtime *runtime = subs->runtime;
79 if (runtime->dma_area) {
81 if (runtime->dma_bytes >= size)
83 vfree(runtime->dma_area);
85 runtime->dma_area = vmalloc_32(size);
86 if (! runtime->dma_area)
88 memset(runtime->dma_area, 0, size);
89 runtime->dma_bytes = size;
100 struct snd_pcm_runtime *runtime = subs->runtime;
102 vfree(runtime->dma_area);
103 runtime->dma_area = NULL;
111 static void vx_pcm_read_per_bytes(struct vx_core *chip, struct snd_pcm_runtime *runtime,
115 unsigned char *buf = (unsigned char *)(runtime->dma_area + offset);
119 buf = (unsigned char *)runtime->dma_area;
124 buf = (unsigned char *)runtime->dma_area;
129 buf = (unsigned char *)runtime->dma_area;
213 * @runtime: pcm runtime instance to be referred
218 struct snd_pcm_runtime *runtime)
222 if (runtime->channels == 1)
224 if (snd_pcm_format_little_endian(runtime->format))
226 if (runtime->rate < 32000 && runtime->rate > 11025)
228 else if (runtime->rate <= 11025)
231 switch (snd_pcm_format_physical_width(runtime->format)) {
577 struct snd_pcm_runtime *runtime = subs->runtime;
605 runtime->hw = vx_pcm_playback_hw;
606 runtime->hw.period_bytes_min = chip->ibl.size;
607 runtime->private_data = pipe;
610 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 4);
611 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 4);
624 if (! subs->runtime->private_data)
627 pipe = subs->runtime->private_data;
674 struct snd_pcm_runtime *runtime,
696 vx_pseudo_dma_write(chip, runtime, pipe, size);
712 struct snd_pcm_runtime *runtime,
729 if (pipe->position >= (int)runtime->buffer_size)
730 pipe->position %= runtime->buffer_size;
744 struct snd_pcm_runtime *runtime = subs->runtime;
749 if ((err = vx_pcm_playback_transfer_chunk(chip, runtime, pipe,
764 struct snd_pcm_runtime *runtime = subs->runtime;
767 if ((err = vx_update_pipe_position(chip, runtime, pipe)) < 0)
769 if (pipe->transferred >= (int)runtime->period_size) {
770 pipe->transferred %= runtime->period_size;
785 struct vx_pipe *pipe = subs->runtime->private_data;
807 struct vx_pipe *pipe = subs->runtime->private_data;
849 struct snd_pcm_runtime *runtime = subs->runtime;
850 struct vx_pipe *pipe = runtime->private_data;
877 struct snd_pcm_runtime *runtime = subs->runtime;
878 struct vx_pipe *pipe = runtime->private_data;
904 if (chip->pcm_running && chip->freq != runtime->rate) {
906 "from the current %d\n", runtime->rate, chip->freq);
909 vx_set_clock(chip, runtime->rate);
911 if ((err = vx_set_format(chip, pipe, runtime)) < 0)
920 pipe->buffer_bytes = frames_to_bytes(runtime, runtime->buffer_size);
921 pipe->period_bytes = frames_to_bytes(runtime, runtime->period_size);
925 vx_update_pipe_position(chip, runtime, pipe);
981 struct snd_pcm_runtime *runtime = subs->runtime;
1024 runtime->hw = vx_pcm_capture_hw;
1025 runtime->hw.period_bytes_min = chip->ibl.size;
1026 runtime->private_data = pipe;
1029 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 4);
1030 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 4);
1044 if (! subs->runtime->private_data)
1046 pipe = subs->runtime->private_data;
1078 struct snd_pcm_runtime *runtime = subs->runtime;
1083 size = runtime->buffer_size - snd_pcm_capture_avail(runtime);
1086 size = frames_to_bytes(runtime, size);
1106 vx_pcm_read_per_bytes(chip, runtime, pipe);
1113 vx_pseudo_dma_read(chip, runtime, pipe, space);
1120 vx_pcm_read_per_bytes(chip, runtime, pipe);
1128 vx_pcm_read_per_bytes(chip, runtime, pipe);
1150 struct snd_pcm_runtime *runtime = subs->runtime;
1151 struct vx_pipe *pipe = runtime->private_data;
1152 return bytes_to_frames(runtime, pipe->hw_ptr);