Lines Matching refs:srcformat

369 	struct snd_pcm_plugin_format srcformat;  in snd_pcm_plug_format_plugins()  local
382 srcformat.format = params_format(params); in snd_pcm_plug_format_plugins()
383 srcformat.rate = params_rate(params); in snd_pcm_plug_format_plugins()
384 srcformat.channels = params_channels(params); in snd_pcm_plug_format_plugins()
393 srcformat.format = params_format(slave_params); in snd_pcm_plug_format_plugins()
394 srcformat.rate = params_rate(slave_params); in snd_pcm_plug_format_plugins()
395 srcformat.channels = params_channels(slave_params); in snd_pcm_plug_format_plugins()
404 tmpformat = srcformat; in snd_pcm_plug_format_plugins()
407 srcformat.format, in snd_pcm_plug_format_plugins()
408 srcformat.rate, in snd_pcm_plug_format_plugins()
409 srcformat.channels); in snd_pcm_plug_format_plugins()
416 if (! rate_match(srcformat.rate, dstformat.rate) && in snd_pcm_plug_format_plugins()
417 ! snd_pcm_format_linear(srcformat.format)) { in snd_pcm_plug_format_plugins()
418 if (srcformat.format != SNDRV_PCM_FORMAT_MU_LAW) in snd_pcm_plug_format_plugins()
422 &srcformat, &tmpformat, in snd_pcm_plug_format_plugins()
431 srcformat = tmpformat; in snd_pcm_plug_format_plugins()
436 if (srcformat.channels > dstformat.channels) { in snd_pcm_plug_format_plugins()
438 err = snd_pcm_plugin_build_route(plug, &srcformat, &tmpformat, &plugin); in snd_pcm_plug_format_plugins()
439 …pdprintf("channels reduction: src=%i, dst=%i returns %i\n", srcformat.channels, tmpformat.channels… in snd_pcm_plug_format_plugins()
447 srcformat = tmpformat; in snd_pcm_plug_format_plugins()
452 if (!rate_match(srcformat.rate, dstformat.rate)) { in snd_pcm_plug_format_plugins()
453 if (srcformat.format != SNDRV_PCM_FORMAT_S16) { in snd_pcm_plug_format_plugins()
457 &srcformat, &tmpformat, in snd_pcm_plug_format_plugins()
466 srcformat = tmpformat; in snd_pcm_plug_format_plugins()
471 &srcformat, &tmpformat, in snd_pcm_plug_format_plugins()
473 …pdprintf("rate down resampling: src=%i, dst=%i returns %i\n", srcformat.rate, tmpformat.rate, err); in snd_pcm_plug_format_plugins()
481 srcformat = tmpformat; in snd_pcm_plug_format_plugins()
486 if (srcformat.format != dstformat.format) { in snd_pcm_plug_format_plugins()
488 if (srcformat.format == SNDRV_PCM_FORMAT_MU_LAW || in snd_pcm_plug_format_plugins()
491 &srcformat, &tmpformat, in snd_pcm_plug_format_plugins()
494 else if (snd_pcm_format_linear(srcformat.format) && in snd_pcm_plug_format_plugins()
497 &srcformat, &tmpformat, in snd_pcm_plug_format_plugins()
502 pdprintf("format change: src=%i, dst=%i returns %i\n", srcformat.format, tmpformat.format, err); in snd_pcm_plug_format_plugins()
510 srcformat = tmpformat; in snd_pcm_plug_format_plugins()
515 if (srcformat.channels < dstformat.channels) { in snd_pcm_plug_format_plugins()
517 err = snd_pcm_plugin_build_route(plug, &srcformat, &tmpformat, &plugin); in snd_pcm_plug_format_plugins()
518 …pdprintf("channels extension: src=%i, dst=%i returns %i\n", srcformat.channels, tmpformat.channels… in snd_pcm_plug_format_plugins()
526 srcformat = tmpformat; in snd_pcm_plug_format_plugins()
533 &srcformat, in snd_pcm_plug_format_plugins()