]> code.delx.au - pulseaudio/commit
echo-cancel: Play nice with module-filter-*
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Fri, 22 Apr 2011 12:14:50 +0000 (17:44 +0530)
committerColin Guthrie <colin@mageia.org>
Sat, 23 Apr 2011 17:23:38 +0000 (18:23 +0100)
commit8460466f8645c3b5596652c566f3624260e4d437
treef23a7c3d06203f73b570f5c64195f1663cc6d101
parent87570523f84817b19486ab9302314091424bbad8
echo-cancel: Play nice with module-filter-*

With automaticl filter loading by module-filter-apply, setting the
virtual sink/source to have the "phone" intended role will break routing
when you first connect a phone stream to an ALSA device and then turn on
your Bluetooth headset. This happens because module-intended-roles
doesn't move a stream if it is already on a device that provides the
required role.

This patch introduces a "manual_load" parameter that is meant to be used
when not using module-filter-apply for loading the AEC module. If this
parameter is set, the virtual devices are given the "phone" role, else
we count on module-filter-heuristics to do the right thing.
src/modules/echo-cancel/module-echo-cancel.c