echo-cancel: Add a modarg to use sink/source master format and spec
authorArun Raghavan <git@arunraghavan.net>
Wed, 17 Feb 2016 14:16:58 +0000 (19:46 +0530)
committerArun Raghavan <git@arunraghavan.net>
Thu, 25 Feb 2016 03:39:12 +0000 (09:09 +0530)
commit0c86543c5105c1e1d690af121ac60d2743e58055
treeb1f04de5ce19d9d850d5703a091b882fc7c95082
parent23ef4911227e69fb0c289a991e2b5d61bb1b0dd6
echo-cancel: Add a modarg to use sink/source master format and spec

This allows us to inherit the sample spec parameters from the sink and
source master (rather than forcing 32 kHz / mono). It is still possible
to override some of the parameters for the source side with modargs.

My original testing showed that these parameters provided a decent
perf/quality trade-off on lower end hardware (which I no longer have
access to). I figure it makes sense to continue with that for now, and
in the future this can be relaxed (use_master_format=yes could be the
default, and resource-constrained systems can disable it).
src/modules/echo-cancel/module-echo-cancel.c