at a couple of #ifdef NOKIAs for now

This commit is contained in:
Lennart Poettering 2009-03-21 01:31:38 +01:00
parent 3aa39726db
commit 8d5b375f67
2 changed files with 60 additions and 14 deletions

View file

@ -42,13 +42,20 @@
PA_MODULE_AUTHOR("Joao Paulo Rechi Vita");
PA_MODULE_DESCRIPTION("Detect available bluetooth audio devices and load bluetooth audio drivers");
PA_MODULE_VERSION(PACKAGE_VERSION);
PA_MODULE_USAGE("sco_sink=<name of sink> "
"sco_source=<name of source>"
"async=<Asynchronous initialization?>");
PA_MODULE_USAGE("async=<Asynchronous initialization?>");
/*
#ifdef NOKIA
"sco_sink=<name of sink> "
"sco_source=<name of source>"
#endif
*/
static const char* const valid_modargs[] = {
#ifdef NOKIA
"sco_sink",
"sco_source",
#endif
"async",
NULL
};
@ -86,6 +93,7 @@ static pa_hook_result_t load_module_for_device(pa_bluetooth_discovery *y, const
args = pa_sprintf_malloc("address=\"%s\" path=\"%s\" profile=\"%s\"", d->address, d->path, d->headset_connected ? "hsp" : "a2dp");
#ifdef NOKIA
if (pa_modargs_get_value(u->modargs, "sco_sink", NULL) &&
pa_modargs_get_value(u->modargs, "sco_source", NULL)) {
char *tmp;
@ -96,6 +104,7 @@ static pa_hook_result_t load_module_for_device(pa_bluetooth_discovery *y, const
pa_xfree(args);
args = tmp;
}
#endif
pa_log_debug("Loading module-bluetooth-device %s", args);
m = pa_module_load(u->module->core, "module-bluetooth-device", args);