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  
    451451 
    452452            port = fGraphManager->GetPort(port_index); 
    453453            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); 
    454457            fCapturePortList[chn] = port_index; 
    455458            jack_log("JackFFADODriver::Attach fCapturePortList[i] %ld ", port_index); 
    456459            fCaptureChannels++; 
     
    526529            port = fGraphManager->GetPort(port_index); 
    527530            // Add one buffer more latency if "async" mode is used... 
    528531            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); 
    529535            fPlaybackPortList[chn] = port_index; 
    530536            jack_log("JackFFADODriver::Attach fPlaybackPortList[i] %ld ", port_index); 
    531537            fPlaybackChannels++;