Lines Matching refs:plugin
55 static void convert(struct snd_pcm_plugin *plugin, in convert() argument
60 struct linear_priv *data = (struct linear_priv *)plugin->extra_data; in convert()
62 int nchannels = plugin->src_format.channels; in convert()
70 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in convert()
88 static snd_pcm_sframes_t linear_transfer(struct snd_pcm_plugin *plugin, in linear_transfer() argument
93 if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) in linear_transfer()
100 for (channel = 0; channel < plugin->src_format.channels; channel++) { in linear_transfer()
112 convert(plugin, src_channels, dst_channels, frames); in linear_transfer()
156 struct snd_pcm_plugin *plugin; in snd_pcm_plugin_build_linear() local
172 sizeof(struct linear_priv), &plugin); in snd_pcm_plugin_build_linear()
175 data = (struct linear_priv *)plugin->extra_data; in snd_pcm_plugin_build_linear()
177 plugin->transfer = linear_transfer; in snd_pcm_plugin_build_linear()
178 *r_plugin = plugin; in snd_pcm_plugin_build_linear()