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

Lines Matching defs:runtime

314 	void (*private_free)(struct snd_pcm_runtime *runtime);
360 /* -- runtime information -- */
361 struct snd_pcm_runtime *runtime;
611 return (substream->runtime->status->state == SNDRV_PCM_STATE_RUNNING ||
612 (substream->runtime->status->state == SNDRV_PCM_STATE_DRAINING &&
616 static inline ssize_t bytes_to_samples(struct snd_pcm_runtime *runtime, ssize_t size)
618 return size * 8 / runtime->sample_bits;
621 static inline snd_pcm_sframes_t bytes_to_frames(struct snd_pcm_runtime *runtime, ssize_t size)
623 return size * 8 / runtime->frame_bits;
626 static inline ssize_t samples_to_bytes(struct snd_pcm_runtime *runtime, ssize_t size)
628 return size * runtime->sample_bits / 8;
631 static inline ssize_t frames_to_bytes(struct snd_pcm_runtime *runtime, snd_pcm_sframes_t size)
633 return size * runtime->frame_bits / 8;
636 static inline int frame_aligned(struct snd_pcm_runtime *runtime, ssize_t bytes)
638 return bytes % runtime->byte_align == 0;
643 struct snd_pcm_runtime *runtime = substream->runtime;
644 return frames_to_bytes(runtime, runtime->buffer_size);
649 struct snd_pcm_runtime *runtime = substream->runtime;
650 return frames_to_bytes(runtime, runtime->period_size);
656 static inline snd_pcm_uframes_t snd_pcm_playback_avail(struct snd_pcm_runtime *runtime)
658 snd_pcm_sframes_t avail = runtime->status->hw_ptr + runtime->buffer_size - runtime->control->appl_ptr;
660 avail += runtime->boundary;
661 else if ((snd_pcm_uframes_t) avail >= runtime->boundary)
662 avail -= runtime->boundary;
669 static inline snd_pcm_uframes_t snd_pcm_capture_avail(struct snd_pcm_runtime *runtime)
671 snd_pcm_sframes_t avail = runtime->status->hw_ptr - runtime->control->appl_ptr;
673 avail += runtime->boundary;
677 static inline snd_pcm_sframes_t snd_pcm_playback_hw_avail(struct snd_pcm_runtime *runtime)
679 return runtime->buffer_size - snd_pcm_playback_avail(runtime);
682 static inline snd_pcm_sframes_t snd_pcm_capture_hw_avail(struct snd_pcm_runtime *runtime)
684 return runtime->buffer_size - snd_pcm_capture_avail(runtime);
697 struct snd_pcm_runtime *runtime = substream->runtime;
698 return snd_pcm_playback_avail(runtime) >= runtime->control->avail_min;
711 struct snd_pcm_runtime *runtime = substream->runtime;
712 return snd_pcm_capture_avail(runtime) >= runtime->control->avail_min;
726 struct snd_pcm_runtime *runtime = substream->runtime;
728 if (runtime->stop_threshold >= runtime->boundary)
730 return snd_pcm_playback_avail(runtime) < runtime->buffer_size;
743 struct snd_pcm_runtime *runtime = substream->runtime;
744 return snd_pcm_playback_avail(runtime) >= runtime->buffer_size;
757 struct snd_pcm_runtime *runtime = substream->runtime;
758 return snd_pcm_capture_avail(runtime) == 0;
764 substream->runtime->trigger_master = master;
837 int snd_pcm_hw_constraint_mask(struct snd_pcm_runtime *runtime, snd_pcm_hw_param_t var,
839 int snd_pcm_hw_constraint_mask64(struct snd_pcm_runtime *runtime, snd_pcm_hw_param_t var,
841 int snd_pcm_hw_constraint_minmax(struct snd_pcm_runtime *runtime, snd_pcm_hw_param_t var,
843 int snd_pcm_hw_constraint_integer(struct snd_pcm_runtime *runtime, snd_pcm_hw_param_t var);
844 int snd_pcm_hw_constraint_list(struct snd_pcm_runtime *runtime,
848 int snd_pcm_hw_constraint_ratnums(struct snd_pcm_runtime *runtime,
852 int snd_pcm_hw_constraint_ratdens(struct snd_pcm_runtime *runtime,
856 int snd_pcm_hw_constraint_msbits(struct snd_pcm_runtime *runtime,
860 int snd_pcm_hw_constraint_step(struct snd_pcm_runtime *runtime,
864 int snd_pcm_hw_constraint_pow2(struct snd_pcm_runtime *runtime,
867 int snd_pcm_hw_rule_add(struct snd_pcm_runtime *runtime,
915 int snd_pcm_limit_hw_rates(struct snd_pcm_runtime *runtime);
920 struct snd_pcm_runtime *runtime = substream->runtime;
922 runtime->dma_buffer_p = bufp;
923 runtime->dma_area = bufp->area;
924 runtime->dma_addr = bufp->addr;
925 runtime->dma_bytes = bufp->bytes;
927 runtime->dma_buffer_p = NULL;
928 runtime->dma_area = NULL;
929 runtime->dma_addr = 0;
930 runtime->dma_bytes = 0;
957 #define snd_pcm_substream_sgbuf(substream) ((substream)->runtime->dma_buffer_p->private_data)