Lines Matching refs:plugin

141 typedef void (*mulaw_f)(struct snd_pcm_plugin *plugin,
168 static void mulaw_decode(struct snd_pcm_plugin *plugin, in mulaw_decode() argument
173 struct mulaw_priv *data = (struct mulaw_priv *)plugin->extra_data; in mulaw_decode()
175 int nchannels = plugin->src_format.channels; in mulaw_decode()
183 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in mulaw_decode()
214 static void mulaw_encode(struct snd_pcm_plugin *plugin, in mulaw_encode() argument
219 struct mulaw_priv *data = (struct mulaw_priv *)plugin->extra_data; in mulaw_encode()
221 int nchannels = plugin->src_format.channels; in mulaw_encode()
229 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in mulaw_encode()
248 static snd_pcm_sframes_t mulaw_transfer(struct snd_pcm_plugin *plugin, in mulaw_transfer() argument
255 if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) in mulaw_transfer()
262 for (channel = 0; channel < plugin->src_format.channels; channel++) { in mulaw_transfer()
274 data = (struct mulaw_priv *)plugin->extra_data; in mulaw_transfer()
275 data->func(plugin, src_channels, dst_channels, frames); in mulaw_transfer()
307 struct snd_pcm_plugin *plugin; in snd_pcm_plugin_build_mulaw() local
337 sizeof(struct mulaw_priv), &plugin); in snd_pcm_plugin_build_mulaw()
340 data = (struct mulaw_priv *)plugin->extra_data; in snd_pcm_plugin_build_mulaw()
343 plugin->transfer = mulaw_transfer; in snd_pcm_plugin_build_mulaw()
344 *r_plugin = plugin; in snd_pcm_plugin_build_mulaw()