snd_pcm_sframes_t
snd_pcm_sframes_t frames_output_in_interval_sized =
snd_pcm_sframes_t frames;
snd_pcm_sframes_t result;
snd_pcm_sframes_t diff = appl_ptr - rec->appl_ptr;
if (diff < -(snd_pcm_sframes_t) (runtime->boundary / 2))
snd_pcm_sframes_t diff = appl_ptr - rec->appl_ptr;
if (diff < -(snd_pcm_sframes_t) (runtime->boundary / 2))
snd_pcm_sframes_t __snd_pcm_lib_xfer(struct snd_pcm_substream *substream,
static inline snd_pcm_sframes_t
static inline snd_pcm_sframes_t
static inline snd_pcm_sframes_t
static inline snd_pcm_sframes_t
static inline snd_pcm_sframes_t
static inline snd_pcm_sframes_t
static inline snd_pcm_sframes_t
static inline snd_pcm_sframes_t
snd_pcm_sframes_t delay; /* current delay in frames */
snd_pcm_sframes_t delay; /* extra delay; typically FIFO size */
static inline snd_pcm_sframes_t bytes_to_frames(struct snd_pcm_runtime *runtime, ssize_t size)
static inline ssize_t frames_to_bytes(struct snd_pcm_runtime *runtime, snd_pcm_sframes_t size)
snd_pcm_sframes_t avail = runtime->status->hw_ptr + runtime->buffer_size - runtime->control->appl_ptr;
snd_pcm_sframes_t avail = runtime->status->hw_ptr - runtime->control->appl_ptr;
static inline snd_pcm_sframes_t snd_pcm_playback_hw_avail(struct snd_pcm_runtime *runtime)
static inline snd_pcm_sframes_t snd_pcm_capture_hw_avail(struct snd_pcm_runtime *runtime)
snd_pcm_sframes_t (*delay)(struct snd_soc_component *component,
snd_pcm_sframes_t *cpu_delay, snd_pcm_sframes_t *codec_delay);
snd_pcm_sframes_t *cpu_delay, snd_pcm_sframes_t *codec_delay);
snd_pcm_sframes_t (*delay)(struct snd_pcm_substream *,
snd_pcm_sframes_t delay; /* current delay in frames */
snd_pcm_sframes_t result;
snd_pcm_sframes_t result;
#define SNDRV_PCM_IOCTL_DELAY _IOR('A', 0x21, snd_pcm_sframes_t)
static snd_pcm_sframes_t copy_transfer(struct snd_pcm_plugin *plugin,
static snd_pcm_sframes_t io_playback_transfer(struct snd_pcm_plugin *plugin,
static snd_pcm_sframes_t io_capture_transfer(struct snd_pcm_plugin *plugin,
static snd_pcm_sframes_t io_src_channels(struct snd_pcm_plugin *plugin,
static snd_pcm_sframes_t linear_transfer(struct snd_pcm_plugin *plugin,
static snd_pcm_sframes_t mulaw_transfer(struct snd_pcm_plugin *plugin,
static int snd_pcm_oss_capture_position_fixup(struct snd_pcm_substream *substream, snd_pcm_sframes_t *delay)
if (*delay <= (snd_pcm_sframes_t)runtime->buffer_size)
snd_pcm_sframes_t snd_pcm_oss_write3(struct snd_pcm_substream *substream, const char *ptr, snd_pcm_uframes_t frames, int in_kernel)
snd_pcm_sframes_t snd_pcm_oss_read3(struct snd_pcm_substream *substream, char *ptr, snd_pcm_uframes_t frames, int in_kernel)
snd_pcm_sframes_t delay;
snd_pcm_sframes_t snd_pcm_oss_writev3(struct snd_pcm_substream *substream, void **bufs, snd_pcm_uframes_t frames)
snd_pcm_sframes_t snd_pcm_oss_readv3(struct snd_pcm_substream *substream, void **bufs, snd_pcm_uframes_t frames)
snd_pcm_sframes_t frames, frames1;
return xfer > 0 ? (snd_pcm_sframes_t)xfer : tmp;
snd_pcm_sframes_t frames, frames1;
return xfer > 0 ? (snd_pcm_sframes_t)xfer : tmp;
snd_pcm_sframes_t delay;
snd_pcm_sframes_t delay;
snd_pcm_sframes_t n;
snd_pcm_sframes_t avail;
if ((snd_pcm_sframes_t)frames <= 0)
if ((snd_pcm_sframes_t)frames <= 0)
snd_pcm_sframes_t snd_pcm_plugin_client_channels(struct snd_pcm_plugin *plugin,
static snd_pcm_sframes_t calc_dst_frames(struct snd_pcm_substream *plug,
snd_pcm_sframes_t frames,
static snd_pcm_sframes_t calc_src_frames(struct snd_pcm_substream *plug,
snd_pcm_sframes_t frames,
snd_pcm_sframes_t snd_pcm_plug_client_size(struct snd_pcm_substream *plug, snd_pcm_uframes_t drv_frames)
snd_pcm_sframes_t snd_pcm_plug_slave_size(struct snd_pcm_substream *plug, snd_pcm_uframes_t clt_frames)
snd_pcm_sframes_t snd_pcm_plug_client_channels_buf(struct snd_pcm_substream *plug,
snd_pcm_sframes_t snd_pcm_plug_write_transfer(struct snd_pcm_substream *plug, struct snd_pcm_plugin_channel *src_channels, snd_pcm_uframes_t size)
snd_pcm_sframes_t frames = size;
snd_pcm_sframes_t frames1 = frames;
snd_pcm_sframes_t snd_pcm_plug_read_transfer(struct snd_pcm_substream *plug, struct snd_pcm_plugin_channel *dst_channels_final, snd_pcm_uframes_t size)
snd_pcm_sframes_t frames = size;
snd_pcm_sframes_t snd_pcm_plug_write_transfer(struct snd_pcm_substream *handle,
snd_pcm_sframes_t snd_pcm_plug_read_transfer(struct snd_pcm_substream *handle,
snd_pcm_sframes_t snd_pcm_plug_client_channels_buf(struct snd_pcm_substream *handle,
snd_pcm_sframes_t snd_pcm_plugin_client_channels(struct snd_pcm_plugin *plugin,
static inline snd_pcm_sframes_t snd_pcm_plug_client_size(struct snd_pcm_substream *handle, snd_pcm_uframes_t drv_size) { return drv_size; }
static inline snd_pcm_sframes_t snd_pcm_plug_slave_size(struct snd_pcm_substream *handle, snd_pcm_uframes_t clt_size) { return clt_size; }
snd_pcm_sframes_t snd_pcm_oss_write3(struct snd_pcm_substream *substream,
snd_pcm_sframes_t snd_pcm_oss_read3(struct snd_pcm_substream *substream,
snd_pcm_sframes_t snd_pcm_oss_writev3(struct snd_pcm_substream *substream,
snd_pcm_sframes_t snd_pcm_oss_readv3(struct snd_pcm_substream *substream,
snd_pcm_sframes_t (*src_frames)(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t dst_frames);
snd_pcm_sframes_t (*dst_frames)(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t src_frames);
snd_pcm_sframes_t (*client_channels)(struct snd_pcm_plugin *plugin,
snd_pcm_sframes_t (*transfer)(struct snd_pcm_plugin *plugin,
snd_pcm_sframes_t snd_pcm_plug_client_size(struct snd_pcm_substream *handle, snd_pcm_uframes_t drv_size);
snd_pcm_sframes_t snd_pcm_plug_slave_size(struct snd_pcm_substream *handle, snd_pcm_uframes_t clt_size);
static snd_pcm_sframes_t rate_src_frames(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t frames)
snd_pcm_sframes_t res;
snd_pcm_sframes_t frames1 = frames, res1 = data->old_dst_frames;
static snd_pcm_sframes_t rate_dst_frames(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t frames)
snd_pcm_sframes_t res;
snd_pcm_sframes_t frames1 = frames, res1 = data->old_src_frames;
static snd_pcm_sframes_t rate_transfer(struct snd_pcm_plugin *plugin,
snd_pcm_sframes_t old_src_frames, old_dst_frames;
static snd_pcm_sframes_t route_transfer(struct snd_pcm_plugin *plugin,
snd_pcm_sframes_t delay;
snd_pcm_sframes_t avail = runtime->control->appl_ptr - hw_ptr;
snd_pcm_sframes_t diff;
snd_pcm_sframes_t __snd_pcm_lib_xfer(struct snd_pcm_substream *substream,
snd_pcm_playback_hw_avail(runtime) >= (snd_pcm_sframes_t)runtime->start_threshold) {
return xfer > 0 ? (snd_pcm_sframes_t)xfer : err;
snd_pcm_sframes_t hdelta, delta;
snd_pcm_sframes_t xrun_threshold;
snd_pcm_sframes_t delta;
snd_pcm_sframes_t noise_dist;
if (noise_dist >= (snd_pcm_sframes_t) runtime->silence_threshold)
static snd_pcm_sframes_t forward_appl_ptr(struct snd_pcm_substream *substream,
snd_pcm_sframes_t avail)
snd_pcm_sframes_t appl_ptr;
if (appl_ptr >= (snd_pcm_sframes_t)runtime->boundary)
static snd_pcm_sframes_t rewind_appl_ptr(struct snd_pcm_substream *substream,
snd_pcm_sframes_t avail)
snd_pcm_sframes_t appl_ptr;
static snd_pcm_sframes_t snd_pcm_rewind(struct snd_pcm_substream *substream,
snd_pcm_sframes_t ret;
static snd_pcm_sframes_t snd_pcm_forward(struct snd_pcm_substream *substream,
snd_pcm_sframes_t ret;
snd_pcm_sframes_t *delay)
snd_pcm_sframes_t result;
snd_pcm_sframes_t result;
snd_pcm_sframes_t result;
snd_pcm_sframes_t result;
snd_pcm_sframes_t delay = 0;
snd_pcm_sframes_t __user *res = arg;
snd_pcm_sframes_t result;
snd_pcm_sframes_t result;
snd_pcm_sframes_t result;
snd_pcm_sframes_t result;
snd_pcm_sframes_t result;
static snd_pcm_sframes_t compute_pcm_extra_delay(struct amdtp_stream *s,
snd_pcm_sframes_t delta;
if (delta <= (snd_pcm_sframes_t)rme9652->max_jitter * 4)
static snd_pcm_sframes_t acp_dma_delay(struct snd_soc_component *component,
snd_pcm_sframes_t delay = adata->delay;
snd_pcm_sframes_t delay;
static snd_pcm_sframes_t dac33_dai_delay(
snd_pcm_sframes_t delay = 0;
snd_pcm_sframes_t avail;
static snd_pcm_sframes_t sst_soc_delay(struct snd_soc_component *component,
snd_pcm_sframes_t xfer_cnt; /* Number of frames */
snd_pcm_sframes_t xfer_cnt;
static snd_pcm_sframes_t
snd_pcm_sframes_t delay;
snd_pcm_sframes_t *cpu_delay,
snd_pcm_sframes_t *codec_delay)
snd_pcm_sframes_t delay;
snd_pcm_sframes_t *cpu_delay,
snd_pcm_sframes_t *codec_delay)
snd_pcm_sframes_t codec_delay = 0;
snd_pcm_sframes_t cpu_delay = 0;
static snd_pcm_sframes_t sof_ipc4_pcm_delay(struct snd_soc_component *component,
snd_pcm_sframes_t delay;
static snd_pcm_sframes_t sof_pcm_delay(struct snd_soc_component *component,
snd_pcm_sframes_t (*delay)(struct snd_soc_component *component,
static snd_pcm_sframes_t davinci_mcasp_delay(
static snd_pcm_sframes_t omap_mcbsp_dai_delay(
snd_pcm_sframes_t delay;
snd_pcm_sframes_t delay; /* current delay in frames */
snd_pcm_sframes_t result;
snd_pcm_sframes_t result;
#define SNDRV_PCM_IOCTL_DELAY _IOR('A', 0x21, snd_pcm_sframes_t)
snd_pcm_sframes_t frames;