Lines Matching refs:src_format
58 for (channel = 0; channel < plugin->src_format.channels; channel++) { in rate_init()
79 for (channel = 0; channel < plugin->src_format.channels; channel++) { in resample_expand()
138 for (channel = 0; channel < plugin->src_format.channels; ++channel) { in resample_shrink()
193 if (plugin->src_format.rate < plugin->dst_format.rate) { in rate_src_frames()
226 if (plugin->src_format.rate < plugin->dst_format.rate) { in rate_dst_frames()
264 for (channel = 0; channel < plugin->src_format.channels; channel++) { in rate_transfer()
301 struct snd_pcm_plugin_format *src_format, in snd_pcm_plugin_build_rate() argument
313 if (snd_BUG_ON(src_format->channels != dst_format->channels)) in snd_pcm_plugin_build_rate()
315 if (snd_BUG_ON(src_format->channels <= 0)) in snd_pcm_plugin_build_rate()
317 if (snd_BUG_ON(src_format->format != SNDRV_PCM_FORMAT_S16)) in snd_pcm_plugin_build_rate()
321 if (snd_BUG_ON(src_format->rate == dst_format->rate)) in snd_pcm_plugin_build_rate()
325 src_format, dst_format, in snd_pcm_plugin_build_rate()
327 src_format->channels), in snd_pcm_plugin_build_rate()
332 if (src_format->rate < dst_format->rate) { in snd_pcm_plugin_build_rate()
333 data->pitch = ((src_format->rate << SHIFT) + (dst_format->rate >> 1)) / dst_format->rate; in snd_pcm_plugin_build_rate()
336 data->pitch = ((dst_format->rate << SHIFT) + (src_format->rate >> 1)) / src_format->rate; in snd_pcm_plugin_build_rate()