Commit 0c8bebc1 authored by Adrian Knoth's avatar Adrian Knoth
Browse files

Allow firewire device be selected via -d

Patch by Thomas Brand <tom@trellis.ch> and in accordance with jackd1
code base.
parent 0279a2d6
...@@ -403,6 +403,11 @@ JackFFADODriver::ffado_driver_new (const char *name, ...@@ -403,6 +403,11 @@ JackFFADODriver::ffado_driver_new (const char *name,
// driver->client = client; // driver->client = client;
driver->engine = NULL; driver->engine = NULL;
//from jack1 ffado_driver.c: put arg -dxxx to ffado device_info_t struct
driver->device_info.nb_device_spec_strings=1;
driver->device_info.device_spec_strings=(char**)calloc(1, sizeof(char *));
driver->device_info.device_spec_strings[0]=strdup(params->device_info);
memset(&driver->device_options, 0, sizeof(driver->device_options)); memset(&driver->device_options, 0, sizeof(driver->device_options));
driver->device_options.sample_rate = params->sample_rate; driver->device_options.sample_rate = params->sample_rate;
driver->device_options.period_size = params->period_size; driver->device_options.period_size = params->period_size;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment