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
108 int snd_pcm_plug_alloc(struct snd_pcm_substream *plug, snd_pcm_uframes_t frames) in snd_pcm_plug_alloc() argument
111 if (snd_BUG_ON(!snd_pcm_plug_first(plug))) in snd_pcm_plug_alloc()
113 if (snd_pcm_plug_stream(plug) == SNDRV_PCM_STREAM_PLAYBACK) { in snd_pcm_plug_alloc()
114 struct snd_pcm_plugin *plugin = snd_pcm_plug_first(plug); in snd_pcm_plug_alloc()
126 struct snd_pcm_plugin *plugin = snd_pcm_plug_last(plug); in snd_pcm_plug_alloc()
150 int snd_pcm_plugin_build(struct snd_pcm_substream *plug, in snd_pcm_plugin_build() argument
160 if (snd_BUG_ON(!plug)) in snd_pcm_plugin_build()
168 plugin->plug = plug; in snd_pcm_plugin_build()
169 plugin->stream = snd_pcm_plug_stream(plug); in snd_pcm_plugin_build()
203 static snd_pcm_sframes_t calc_dst_frames(struct snd_pcm_substream *plug, in calc_dst_frames() argument
209 plugin = snd_pcm_plug_first(plug); in calc_dst_frames()
225 static snd_pcm_sframes_t calc_src_frames(struct snd_pcm_substream *plug, in calc_src_frames() argument
231 plugin = snd_pcm_plug_last(plug); in calc_src_frames()
247 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
249 if (snd_BUG_ON(!plug)) in snd_pcm_plug_client_size()
251 switch (snd_pcm_plug_stream(plug)) { in snd_pcm_plug_client_size()
253 return calc_src_frames(plug, drv_frames, false); in snd_pcm_plug_client_size()
255 return calc_dst_frames(plug, drv_frames, false); in snd_pcm_plug_client_size()
262 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
264 if (snd_BUG_ON(!plug)) in snd_pcm_plug_slave_size()
266 switch (snd_pcm_plug_stream(plug)) { in snd_pcm_plug_slave_size()
268 return calc_dst_frames(plug, clt_frames, false); in snd_pcm_plug_slave_size()
270 return calc_src_frames(plug, clt_frames, false); in snd_pcm_plug_slave_size()
371 int snd_pcm_plug_format_plugins(struct snd_pcm_substream *plug, in snd_pcm_plug_format_plugins() argument
381 int stream = snd_pcm_plug_stream(plug); in snd_pcm_plug_format_plugins()
429 err = snd_pcm_plugin_build_mulaw(plug, in snd_pcm_plug_format_plugins()
446 err = snd_pcm_plugin_build_route(plug, &srcformat, &tmpformat, &plugin); in snd_pcm_plug_format_plugins()
464 err = snd_pcm_plugin_build_linear(plug, in snd_pcm_plug_format_plugins()
478 err = snd_pcm_plugin_build_rate(plug, in snd_pcm_plug_format_plugins()
498 err = snd_pcm_plugin_build_mulaw(plug, in snd_pcm_plug_format_plugins()
504 err = snd_pcm_plugin_build_linear(plug, in snd_pcm_plug_format_plugins()
525 err = snd_pcm_plugin_build_route(plug, &srcformat, &tmpformat, &plugin); in snd_pcm_plug_format_plugins()
540 err = snd_pcm_plugin_build_copy(plug, in snd_pcm_plug_format_plugins()
557 snd_pcm_sframes_t snd_pcm_plug_client_channels_buf(struct snd_pcm_substream *plug, in snd_pcm_plug_client_channels_buf() argument
566 int stream = snd_pcm_plug_stream(plug); in snd_pcm_plug_client_channels_buf()
571 plugin = snd_pcm_plug_first(plug); in snd_pcm_plug_client_channels_buf()
574 plugin = snd_pcm_plug_last(plug); in snd_pcm_plug_client_channels_buf()
597 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
604 plugin = snd_pcm_plug_first(plug); in snd_pcm_plug_write_transfer()
636 return calc_src_frames(plug, frames, true); in snd_pcm_plug_write_transfer()
639 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
646 frames = calc_src_frames(plug, frames, true); in snd_pcm_plug_read_transfer()
651 plugin = snd_pcm_plug_first(plug); in snd_pcm_plug_read_transfer()