Ticket #234: ffado-portaliases.patch
| File ffado-portaliases.patch, 1.5 kB (added by adi, 2 years ago) |
|---|
-
a/linux/firewire/JackFFADODriver.cpp
old new 451 451 452 452 port = fGraphManager->GetPort(port_index); 453 453 port->SetLatency(driver->period_size + driver->capture_frame_latency); 454 // capture port aliases (jackd1 style port names) 455 snprintf(buf, sizeof(buf) - 1, "%s:capture_%i", fClientControl.fName, (int) chn + 1); 456 port->SetAlias(buf); 454 457 fCapturePortList[chn] = port_index; 455 458 jack_log("JackFFADODriver::Attach fCapturePortList[i] %ld ", port_index); 456 459 fCaptureChannels++; … … 526 529 port = fGraphManager->GetPort(port_index); 527 530 // Add one buffer more latency if "async" mode is used... 528 531 port->SetLatency((driver->period_size * (driver->device_options.nb_buffers - 1)) + ((fEngineControl->fSyncMode) ? 0 : fEngineControl->fBufferSize) + driver->playback_frame_latency); 532 // playback port aliases (jackd1 style port names) 533 snprintf(buf, sizeof(buf) - 1, "%s:playback_%i", fClientControl.fName, (int) chn + 1); 534 port->SetAlias(buf); 529 535 fPlaybackPortList[chn] = port_index; 530 536 jack_log("JackFFADODriver::Attach fPlaybackPortList[i] %ld ", port_index); 531 537 fPlaybackChannels++;
