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