Lines Matching refs:plug

35 #define snd_pcm_plug_first(plug) ((plug)->runtime->oss.plugin_first)  argument
36 #define snd_pcm_plug_last(plug) ((plug)->runtime->oss.plugin_last) argument
105 int snd_pcm_plug_alloc(struct snd_pcm_substream *plug, snd_pcm_uframes_t frames) in snd_pcm_plug_alloc() argument
108 if (snd_BUG_ON(!snd_pcm_plug_first(plug))) in snd_pcm_plug_alloc()
110 if (snd_pcm_plug_stream(plug) == SNDRV_PCM_STREAM_PLAYBACK) { in snd_pcm_plug_alloc()
111 struct snd_pcm_plugin *plugin = snd_pcm_plug_first(plug); in snd_pcm_plug_alloc()
123 struct snd_pcm_plugin *plugin = snd_pcm_plug_last(plug); in snd_pcm_plug_alloc()
147 int snd_pcm_plugin_build(struct snd_pcm_substream *plug, in snd_pcm_plugin_build() argument
157 if (snd_BUG_ON(!plug)) in snd_pcm_plugin_build()
165 plugin->plug = plug; in snd_pcm_plugin_build()
166 plugin->stream = snd_pcm_plug_stream(plug); in snd_pcm_plugin_build()
200 static snd_pcm_sframes_t calc_dst_frames(struct snd_pcm_substream *plug, in calc_dst_frames() argument
206 plugin = snd_pcm_plug_first(plug); in calc_dst_frames()
222 static snd_pcm_sframes_t calc_src_frames(struct snd_pcm_substream *plug, in calc_src_frames() argument
228 plugin = snd_pcm_plug_last(plug); in calc_src_frames()
244 snd_pcm_sframes_t snd_pcm_plug_client_size(struct snd_pcm_substream *plug, snd_pcm_uframes_t drv_fr… in snd_pcm_plug_client_size() argument
246 if (snd_BUG_ON(!plug)) in snd_pcm_plug_client_size()
248 switch (snd_pcm_plug_stream(plug)) { in snd_pcm_plug_client_size()
250 return calc_src_frames(plug, drv_frames, false); in snd_pcm_plug_client_size()
252 return calc_dst_frames(plug, drv_frames, false); in snd_pcm_plug_client_size()
259 snd_pcm_sframes_t snd_pcm_plug_slave_size(struct snd_pcm_substream *plug, snd_pcm_uframes_t clt_fra… in snd_pcm_plug_slave_size() argument
261 if (snd_BUG_ON(!plug)) in snd_pcm_plug_slave_size()
263 switch (snd_pcm_plug_stream(plug)) { in snd_pcm_plug_slave_size()
265 return calc_dst_frames(plug, clt_frames, false); in snd_pcm_plug_slave_size()
267 return calc_src_frames(plug, clt_frames, false); in snd_pcm_plug_slave_size()
368 int snd_pcm_plug_format_plugins(struct snd_pcm_substream *plug, in snd_pcm_plug_format_plugins() argument
378 int stream = snd_pcm_plug_stream(plug); in snd_pcm_plug_format_plugins()
426 err = snd_pcm_plugin_build_mulaw(plug, in snd_pcm_plug_format_plugins()
443 err = snd_pcm_plugin_build_route(plug, &srcformat, &tmpformat, &plugin); in snd_pcm_plug_format_plugins()
461 err = snd_pcm_plugin_build_linear(plug, in snd_pcm_plug_format_plugins()
475 err = snd_pcm_plugin_build_rate(plug, in snd_pcm_plug_format_plugins()
495 err = snd_pcm_plugin_build_mulaw(plug, in snd_pcm_plug_format_plugins()
501 err = snd_pcm_plugin_build_linear(plug, in snd_pcm_plug_format_plugins()
522 err = snd_pcm_plugin_build_route(plug, &srcformat, &tmpformat, &plugin); in snd_pcm_plug_format_plugins()
537 err = snd_pcm_plugin_build_copy(plug, in snd_pcm_plug_format_plugins()
554 snd_pcm_sframes_t snd_pcm_plug_client_channels_buf(struct snd_pcm_substream *plug, in snd_pcm_plug_client_channels_buf() argument
563 int stream = snd_pcm_plug_stream(plug); in snd_pcm_plug_client_channels_buf()
568 plugin = snd_pcm_plug_first(plug); in snd_pcm_plug_client_channels_buf()
571 plugin = snd_pcm_plug_last(plug); in snd_pcm_plug_client_channels_buf()
594 snd_pcm_sframes_t snd_pcm_plug_write_transfer(struct snd_pcm_substream *plug, struct snd_pcm_plugin… in snd_pcm_plug_write_transfer() argument
601 plugin = snd_pcm_plug_first(plug); in snd_pcm_plug_write_transfer()
633 return calc_src_frames(plug, frames, true); in snd_pcm_plug_write_transfer()
636 snd_pcm_sframes_t snd_pcm_plug_read_transfer(struct snd_pcm_substream *plug, struct snd_pcm_plugin_… in snd_pcm_plug_read_transfer() argument
643 frames = calc_src_frames(plug, frames, true); in snd_pcm_plug_read_transfer()
648 plugin = snd_pcm_plug_first(plug); in snd_pcm_plug_read_transfer()