Lines Matching refs:srcformat
377 struct snd_pcm_plugin_format srcformat; in snd_pcm_plug_format_plugins() local
390 srcformat.format = params_format(params); in snd_pcm_plug_format_plugins()
391 srcformat.rate = params_rate(params); in snd_pcm_plug_format_plugins()
392 srcformat.channels = params_channels(params); in snd_pcm_plug_format_plugins()
401 srcformat.format = params_format(slave_params); in snd_pcm_plug_format_plugins()
402 srcformat.rate = params_rate(slave_params); in snd_pcm_plug_format_plugins()
403 srcformat.channels = params_channels(slave_params); in snd_pcm_plug_format_plugins()
412 tmpformat = srcformat; in snd_pcm_plug_format_plugins()
415 srcformat.format, in snd_pcm_plug_format_plugins()
416 srcformat.rate, in snd_pcm_plug_format_plugins()
417 srcformat.channels); in snd_pcm_plug_format_plugins()
424 if (! rate_match(srcformat.rate, dstformat.rate) && in snd_pcm_plug_format_plugins()
425 ! snd_pcm_format_linear(srcformat.format)) { in snd_pcm_plug_format_plugins()
426 if (srcformat.format != SNDRV_PCM_FORMAT_MU_LAW) in snd_pcm_plug_format_plugins()
430 &srcformat, &tmpformat, in snd_pcm_plug_format_plugins()
439 srcformat = tmpformat; in snd_pcm_plug_format_plugins()
444 if (srcformat.channels > dstformat.channels) { in snd_pcm_plug_format_plugins()
446 err = snd_pcm_plugin_build_route(plug, &srcformat, &tmpformat, &plugin); in snd_pcm_plug_format_plugins()
447 …pdprintf("channels reduction: src=%i, dst=%i returns %i\n", srcformat.channels, tmpformat.channels… in snd_pcm_plug_format_plugins()
455 srcformat = tmpformat; in snd_pcm_plug_format_plugins()
460 if (!rate_match(srcformat.rate, dstformat.rate)) { in snd_pcm_plug_format_plugins()
461 if (srcformat.format != SNDRV_PCM_FORMAT_S16) { in snd_pcm_plug_format_plugins()
465 &srcformat, &tmpformat, in snd_pcm_plug_format_plugins()
474 srcformat = tmpformat; in snd_pcm_plug_format_plugins()
479 &srcformat, &tmpformat, in snd_pcm_plug_format_plugins()
481 …pdprintf("rate down resampling: src=%i, dst=%i returns %i\n", srcformat.rate, tmpformat.rate, err); in snd_pcm_plug_format_plugins()
489 srcformat = tmpformat; in snd_pcm_plug_format_plugins()
494 if (srcformat.format != dstformat.format) { in snd_pcm_plug_format_plugins()
496 if (srcformat.format == SNDRV_PCM_FORMAT_MU_LAW || in snd_pcm_plug_format_plugins()
499 &srcformat, &tmpformat, in snd_pcm_plug_format_plugins()
502 else if (snd_pcm_format_linear(srcformat.format) && in snd_pcm_plug_format_plugins()
505 &srcformat, &tmpformat, in snd_pcm_plug_format_plugins()
510 pdprintf("format change: src=%i, dst=%i returns %i\n", srcformat.format, tmpformat.format, err); in snd_pcm_plug_format_plugins()
518 srcformat = tmpformat; in snd_pcm_plug_format_plugins()
523 if (srcformat.channels < dstformat.channels) { in snd_pcm_plug_format_plugins()
525 err = snd_pcm_plugin_build_route(plug, &srcformat, &tmpformat, &plugin); in snd_pcm_plug_format_plugins()
526 …pdprintf("channels extension: src=%i, dst=%i returns %i\n", srcformat.channels, tmpformat.channels… in snd_pcm_plug_format_plugins()
534 srcformat = tmpformat; in snd_pcm_plug_format_plugins()
541 &srcformat, in snd_pcm_plug_format_plugins()