Lines Matching full:plug

2  *  PCM Plug-In shared (kernel/library) code
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
104 int snd_pcm_plug_alloc(struct snd_pcm_substream *plug, snd_pcm_uframes_t frames) in snd_pcm_plug_alloc() argument
107 if (snd_BUG_ON(!snd_pcm_plug_first(plug))) in snd_pcm_plug_alloc()
109 if (snd_pcm_plug_stream(plug) == SNDRV_PCM_STREAM_PLAYBACK) { in snd_pcm_plug_alloc()
110 struct snd_pcm_plugin *plugin = snd_pcm_plug_first(plug); in snd_pcm_plug_alloc()
122 struct snd_pcm_plugin *plugin = snd_pcm_plug_last(plug); in snd_pcm_plug_alloc()
146 int snd_pcm_plugin_build(struct snd_pcm_substream *plug, in snd_pcm_plugin_build() argument
156 if (snd_BUG_ON(!plug)) in snd_pcm_plugin_build()
164 plugin->plug = plug; in snd_pcm_plugin_build()
165 plugin->stream = snd_pcm_plug_stream(plug); in snd_pcm_plugin_build()
199 static snd_pcm_sframes_t calc_dst_frames(struct snd_pcm_substream *plug, in calc_dst_frames() argument
205 plugin = snd_pcm_plug_first(plug); in calc_dst_frames()
221 static snd_pcm_sframes_t calc_src_frames(struct snd_pcm_substream *plug, in calc_src_frames() argument
227 plugin = snd_pcm_plug_last(plug); in calc_src_frames()
243 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
245 if (snd_BUG_ON(!plug)) in snd_pcm_plug_client_size()
247 switch (snd_pcm_plug_stream(plug)) { in snd_pcm_plug_client_size()
249 return calc_src_frames(plug, drv_frames, false); in snd_pcm_plug_client_size()
251 return calc_dst_frames(plug, drv_frames, false); in snd_pcm_plug_client_size()
258 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
260 if (snd_BUG_ON(!plug)) in snd_pcm_plug_slave_size()
262 switch (snd_pcm_plug_stream(plug)) { in snd_pcm_plug_slave_size()
264 return calc_dst_frames(plug, clt_frames, false); in snd_pcm_plug_slave_size()
266 return calc_src_frames(plug, clt_frames, false); in snd_pcm_plug_slave_size()
367 int snd_pcm_plug_format_plugins(struct snd_pcm_substream *plug, in snd_pcm_plug_format_plugins() argument
377 int stream = snd_pcm_plug_stream(plug); in snd_pcm_plug_format_plugins()
425 err = snd_pcm_plugin_build_mulaw(plug, in snd_pcm_plug_format_plugins()
442 err = snd_pcm_plugin_build_route(plug, &srcformat, &tmpformat, &plugin); in snd_pcm_plug_format_plugins()
460 err = snd_pcm_plugin_build_linear(plug, in snd_pcm_plug_format_plugins()
474 err = snd_pcm_plugin_build_rate(plug, in snd_pcm_plug_format_plugins()
494 err = snd_pcm_plugin_build_mulaw(plug, in snd_pcm_plug_format_plugins()
500 err = snd_pcm_plugin_build_linear(plug, in snd_pcm_plug_format_plugins()
521 err = snd_pcm_plugin_build_route(plug, &srcformat, &tmpformat, &plugin); in snd_pcm_plug_format_plugins()
536 err = snd_pcm_plugin_build_copy(plug, in snd_pcm_plug_format_plugins()
553 snd_pcm_sframes_t snd_pcm_plug_client_channels_buf(struct snd_pcm_substream *plug, in snd_pcm_plug_client_channels_buf() argument
562 int stream = snd_pcm_plug_stream(plug); in snd_pcm_plug_client_channels_buf()
567 plugin = snd_pcm_plug_first(plug); in snd_pcm_plug_client_channels_buf()
570 plugin = snd_pcm_plug_last(plug); in snd_pcm_plug_client_channels_buf()
592 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
599 plugin = snd_pcm_plug_first(plug); in snd_pcm_plug_write_transfer()
629 return calc_src_frames(plug, frames, true); in snd_pcm_plug_write_transfer()
632 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
639 frames = calc_src_frames(plug, frames, true); in snd_pcm_plug_read_transfer()
644 plugin = snd_pcm_plug_first(plug); in snd_pcm_plug_read_transfer()