diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2010-08-24 11:22:20 +0200 |
---|---|---|
committer | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2011-03-28 14:40:59 +0530 |
commit | 7b972f5a4523d166df1f2d933502e08d9f16dd4d (patch) | |
tree | 596f2fc4d699085ad538991fd0f464b47216cdd1 | |
parent | 9fa71e75e51f449092cb5cecc4f4d65c1b19219a (diff) |
echo-cancel: use the phone media role
Tag the source and sink with the phone media roles so that they automatially
connect to phone streams such as Empathy when using the intended-rols module.
-rw-r--r-- | src/modules/module-echo-cancel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/module-echo-cancel.c b/src/modules/module-echo-cancel.c index a03481f0..7213e36c 100644 --- a/src/modules/module-echo-cancel.c +++ b/src/modules/module-echo-cancel.c @@ -1360,6 +1360,7 @@ int pa__init(pa_module*m) { pa_source_new_data_set_channel_map(&source_data, &map); pa_proplist_sets(source_data.proplist, PA_PROP_DEVICE_MASTER_DEVICE, source_master->name); pa_proplist_sets(source_data.proplist, PA_PROP_DEVICE_CLASS, "filter"); + pa_proplist_sets(source_data.proplist, PA_PROP_DEVICE_INTENDED_ROLES, "phone"); pa_proplist_sets(source_data.proplist, "device.echo-cancel.name", source_data.name); if (pa_modargs_get_proplist(ma, "source_properties", source_data.proplist, PA_UPDATE_REPLACE) < 0) { @@ -1406,6 +1407,7 @@ int pa__init(pa_module*m) { pa_sink_new_data_set_channel_map(&sink_data, &map); pa_proplist_sets(sink_data.proplist, PA_PROP_DEVICE_MASTER_DEVICE, sink_master->name); pa_proplist_sets(sink_data.proplist, PA_PROP_DEVICE_CLASS, "filter"); + pa_proplist_sets(sink_data.proplist, PA_PROP_DEVICE_INTENDED_ROLES, "phone"); pa_proplist_sets(sink_data.proplist, "device.echo-cancel.name", sink_data.name); if (pa_modargs_get_proplist(ma, "sink_properties", sink_data.proplist, PA_UPDATE_REPLACE) < 0) { |