From 9648851c5f65c8fe80bf318147bec70db64f2dd2 Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Sun, 18 Jul 2010 21:09:40 +0000 Subject: [PATCH 001/113] - Remove ENABLE_ALL - Improve the libffado-dont-use-bundled-libs.patch - Drop BR: expat-devel libavc1394-devel - Move configuration file to the library package - Minor enhancement in the .desktop file - Add links to upstream tickets for patches - Add -ffast-math to the compiler flags - Add patch to compile against libconfig-1.4.5 Tue Jul 13 2010 Orcan Ogetbil - 2.0.1-2.20100706.svn1864 - Add ENABLE_ALL flag to support more devices - Don't bundle tests - Include some preliminary documentation for the tools until the manpages arrive - Patch out bundled libraries. Also fixes some rpmlints - Improve the instructions how to create the tarball Wed Jul 07 2010 Orcan Ogetbil - 2.0.1-1.20100706.svn1864 - Update to trunk, post 2.0.1. Sat Jun 05 2010 Orcan Ogetbil - 2.0.0-1.20100605.svn1845 - Update to trunk, post 2.0.0. Mon May 18 2009 Jarod Wilson - 2.0-0.4.rc2 - Update to 2.0.0-rc2 Thu Nov 06 2008 Jarod Wilson - 2.0-0.3.beta7 - Update to beta7 - Put arch-dependent helper/test binaries in libexecdir instead of datadir Sun Aug 10 2008 Jarod Wilson - 2.0-0.2.beta6 - Review clean-ups (#456353) Tue Jul 22 2008 Jarod Wilson - 2.0-0.1.beta6 - Initial Fedora build of libffado --- .cvsignore | 1 + README.ffado | 8 + import.log | 1 + libffado-api-doc-only.patch | 26 + libffado-desktop.patch | 17 + libffado-dont-use-bundled-libs.patch | 1148 ++++++++++++++++++++++++++ libffado-libconfig145.patch | 12 + libffado-no-shebang.patch | 83 ++ libffado.spec | 197 +++++ sources | 1 + 10 files changed, 1494 insertions(+) create mode 100644 README.ffado create mode 100644 import.log create mode 100644 libffado-api-doc-only.patch create mode 100644 libffado-desktop.patch create mode 100644 libffado-dont-use-bundled-libs.patch create mode 100644 libffado-libconfig145.patch create mode 100644 libffado-no-shebang.patch create mode 100644 libffado.spec diff --git a/.cvsignore b/.cvsignore index e69de29..140e0e5 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +libffado-2.0.1-svn1864.tar.bz2 diff --git a/README.ffado b/README.ffado new file mode 100644 index 0000000..109f54d --- /dev/null +++ b/README.ffado @@ -0,0 +1,8 @@ +ffado-bridgeco-downloader -- Firmware downloader application for BridgeCo devices +ffado-diag -- FFADO diagnostic utility +ffado-dbus-server -- Expose the mixer features of connected FFADO devices through DBus +ffado-fireworks-downloader -- Firmware downloader application for ECHO Fireworks devices +ffado-mixer -- Qt based FFADO device mixer + +FFADO is work in progress, hence there are no useful manpages. +Please refer to http://www.ffado.org/ for more information. diff --git a/import.log b/import.log new file mode 100644 index 0000000..d9f2996 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +libffado-2_0_1-3_20100706_svn1864_fc13:HEAD:libffado-2.0.1-3.20100706.svn1864.fc13.src.rpm:1279487332 diff --git a/libffado-api-doc-only.patch b/libffado-api-doc-only.patch new file mode 100644 index 0000000..0c2564a --- /dev/null +++ b/libffado-api-doc-only.patch @@ -0,0 +1,26 @@ +diff -rupN libffado.old/doc/reference.doxygen.in libffado/doc/reference.doxygen.in +--- libffado.old/doc/reference.doxygen.in 2009-12-18 13:52:13.000000000 -0500 ++++ libffado/doc/reference.doxygen.in 2010-06-05 21:00:54.000000000 -0400 +@@ -568,9 +568,7 @@ WARN_LOGFILE = + # directories like "/usr/src/myproject". Separate the files or directories + # with spaces. + +-INPUT = $top_srcdir/src \ +- $top_srcdir/doc \ +- $top_srcdir/libffado ++INPUT = $top_srcdir/libffado + + # This tag can be used to specify the character encoding of the source files + # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is +diff -rupN libffado.old/SConstruct libffado/SConstruct +--- libffado.old/SConstruct 2010-05-10 15:34:07.000000000 -0400 ++++ libffado/SConstruct 2010-06-05 21:29:43.000000000 -0400 +@@ -583,7 +583,7 @@ if not env.GetOption('clean'): + Default( 'support' ) + if env['BUILD_TESTS']: + Default( 'tests' ) +- ++ Default( 'doc' ) + # + # Deal with the DESTDIR vs. xdg-tools conflict (which is basicely that the + # xdg-tools can't deal with DESTDIR, so the packagers have to deal with this diff --git a/libffado-desktop.patch b/libffado-desktop.patch new file mode 100644 index 0000000..058dc52 --- /dev/null +++ b/libffado-desktop.patch @@ -0,0 +1,17 @@ +diff -rupN libffado.old/support/xdg/ffado.org-ffadomixer.desktop libffado/support/xdg/ffado.org-ffadomixer.desktop +--- libffado.old/support/xdg/ffado.org-ffadomixer.desktop 2008-11-16 18:30:46.000000000 -0500 ++++ libffado/support/xdg/ffado.org-ffadomixer.desktop 2010-07-14 15:42:28.000000000 -0400 +@@ -1,9 +1,8 @@ + [Desktop Entry] +-Comment= ++Name=FFADO Mixer ++Comment=Audio mixer for Firewire devices + Exec=ffado-mixer +-GenericName= ++GenericName=Firewire audio mixer + Icon=ffado +-Name=ffado-mixer +-Path= + Type=Application +-Categories=Mixer;Audio;AudioVideo;HardwareSettings;Qt ++Categories=Mixer;Audio;AudioVideo;HardwareSettings;Qt; diff --git a/libffado-dont-use-bundled-libs.patch b/libffado-dont-use-bundled-libs.patch new file mode 100644 index 0000000..9d79ca4 --- /dev/null +++ b/libffado-dont-use-bundled-libs.patch @@ -0,0 +1,1148 @@ +diff -rupN libffado.old/admin/dbus.py libffado/admin/dbus.py +--- libffado.old/admin/dbus.py 2008-01-20 05:29:17.000000000 -0500 ++++ libffado/admin/dbus.py 2010-07-13 23:47:14.000000000 -0400 +@@ -27,15 +27,15 @@ + # + + def dbusxx_xml2cpp_emitter(target, source, env): +- env.Depends(target, "#/external/dbus/dbusxx-xml2cpp" ) ++ #env.Depends(target, "#/external/dbus/dbusxx-xml2cpp" ) + return (target, source) + + def dbusxx_xml2cpp_adaptor_action( target, source, env ): +- env.Execute( "./external/dbus/dbusxx-xml2cpp %s --adaptor=%s" % ( source[0], target[0] ) ) ++ env.Execute( "dbusxx-xml2cpp %s --adaptor=%s" % ( source[0], target[0] ) ) + return 0 + + def dbusxx_xml2cpp_proxy_action( target, source, env ): +- env.Execute( "./external/dbus/dbusxx-xml2cpp %s --proxy=%s" % ( source[0], target[0] ) ) ++ env.Execute( "dbusxx-xml2cpp %s --proxy=%s" % ( source[0], target[0] ) ) + return 0 + + def generate( env, **kw ): +diff -rupN libffado.old/README libffado/README +--- libffado.old/README 2009-08-16 08:37:38.000000000 -0400 ++++ libffado/README 2010-07-13 23:47:14.000000000 -0400 +@@ -97,7 +97,8 @@ These libraries here should be at least + libraw1394 (>= 1.3.0), http://www.linux1394.org + libiec61883 (>= 1.1.0), http://www.linux1394.org + dbus-1 (>= 1.0), http://dbus.freedesktop.org +- ++dbus-c++ (>= 0), http://sourceforge.net/apps/mediawiki/dbus-cplusplus/ ++libconfig (>= 0), http://www.hyperrealm.com/libconfig/ + Currently only the jackd audio server is supported. + + jackd (>= 0.109.12), http://jackaudio.org +diff -rupN libffado.old/SConstruct libffado/SConstruct +--- libffado.old/SConstruct 2010-06-13 10:34:09.000000000 -0400 ++++ libffado/SConstruct 2010-07-13 23:48:12.000000000 -0400 +@@ -198,13 +198,15 @@ if not env.GetOption('clean'): + # The following checks are for headers and libs and packages we need. + # + allpresent = 1; +- # for DBUS C++ bindings and cache-serialization. +- allpresent &= conf.CheckHeader( "expat.h" ) +- allpresent &= conf.CheckLib( 'expat', 'XML_ExpatVersion', '#include ' ) ++ # for cache-serialization. ++ if env['SERIALIZE_USE_EXPAT']: ++ allpresent &= conf.CheckHeader( "expat.h" ) ++ allpresent &= conf.CheckLib( 'expat', 'XML_ExpatVersion', '#include ' ) + + pkgs = { + 'libraw1394' : '1.3.0', + 'libiec61883' : '1.1.0', ++ 'libconfig++' : '0' + } + + if env['REQUIRE_LIBAVC']: +@@ -287,25 +289,43 @@ Therefor the qt4 mixer will not get inst + pkgs = { + 'alsa': '0', + 'dbus-1': '1.0', ++ 'dbus-c++-1' : '0', + } + for pkg in pkgs: + name2 = pkg.replace("+","").replace(".","").replace("-","").upper() + env['%s_FLAGS' % name2] = conf.GetPKGFlags( pkg, pkgs[pkg] ) + +-# +-# Get the directory where dbus stores the service-files +-# +-if env['DBUS1_FLAGS']: ++dbus_checkfail = False ++ ++if not env['DBUS1_FLAGS']: ++ dbus_checkfail = True ++ print """ ++The dbus headers were not found.""" ++ ++if not env['DBUSC1_FLAGS']: ++ dbus_checkfail = True ++ print """ ++The dbus-c++ headers were not found.""" ++ ++if not conf.CheckForApp( 'which dbusxx-xml2cpp' ): ++ dbus_checkfail = True ++ print """ ++The program dbusxx-xml2cpp could not be found.""" ++ ++if dbus_checkfail: ++ env['DBUS1_FLAGS'] = "" ++ env['DBUSC1_FLAGS'] = "" ++ print """The dbus-server for ffado will therefore not be built. ++""" ++else: ++ # Get the directory where dbus stores the service-files + env['dbus_service_dir'] = conf.GetPKGVariable( 'dbus-1', 'session_bus_services_dir' ).strip() + # this is required to indicate that the DBUS version we use has support + # for platform dependent threading init functions + # this is true for DBUS >= 0.96 or so. Since we require >= 1.0 it is + # always true + env.MergeFlags( "-DDBUS_HAS_THREADS_INIT_DEFAULT" ) +-else: +- print """ +-The dbus-headers where not found. The dbus-server for ffado will therefor not be built. +-""" ++ + + config_guess = conf.ConfigGuess() + +@@ -550,7 +570,7 @@ env.Install( env['libdir'] + '/pkgconfig + + env.Install( env['sharedir'], 'configuration' ) + +-subdirs=['external','src','libffado','support','doc'] ++subdirs=['src','libffado','support','doc'] + if env['BUILD_TESTS']: + subdirs.append('tests') + +diff -rupN libffado.old/src/libutil/Configuration.h libffado/src/libutil/Configuration.h +--- libffado.old/src/libutil/Configuration.h 2009-04-25 13:14:57.000000000 -0400 ++++ libffado/src/libutil/Configuration.h 2010-07-13 23:47:14.000000000 -0400 +@@ -25,7 +25,7 @@ + #define _FFADO_UTIL_CONFIGURATION_ + + #include "debugmodule/debugmodule.h" +-#include "external/libconfig/libconfigpp.h" ++#include "libconfig.h++" + + #include + +diff -rupN libffado.old/src/SConscript libffado/src/SConscript +--- libffado.old/src/SConscript 2010-01-04 11:09:43.000000000 -0500 ++++ libffado/src/SConscript 2010-07-13 23:47:14.000000000 -0400 +@@ -272,6 +272,7 @@ if not env.GetOption( "clean" ): + libenv.MergeFlags( "-lrt -lpthread" ) + libenv.MergeFlags( env['LIBRAW1394_FLAGS'] ) + libenv.MergeFlags( env['LIBIEC61883_FLAGS'] ) ++ libenv.MergeFlags( env['LIBCONFIG_FLAGS'] ) + if not env['SERIALIZE_USE_EXPAT']: + libenv.MergeFlags( env['LIBXML26_FLAGS'] ) + else: +@@ -279,11 +280,6 @@ if not env.GetOption( "clean" ): + if env['REQUIRE_LIBAVC']: + libenv.MergeFlags( env['LIBAVC1394_FLAGS'] ) + +-# add the libconfig +-libenv.MergeFlags( "-I#/external/libconfig" ) +-libenv.MergeFlags( "-L"+env['build_base']+"external/libconfig" ) +-libenv.MergeFlags( "-lconfigpp" ) +- + libname_versioned = "libffado.so.%s" % libenv['VERSION'] + libname_versioned_short = "libffado.so.%s" % libenv['VERSION'].split('.')[0] + +diff -rupN libffado.old/support/dbus/controlclient.h libffado/support/dbus/controlclient.h +--- libffado.old/support/dbus/controlclient.h 2008-04-26 13:30:41.000000000 -0400 ++++ libffado/support/dbus/controlclient.h 2010-07-13 23:47:14.000000000 -0400 +@@ -34,7 +34,7 @@ namespace DBusControl { + + // simple fader element + class ContinuousClient +-: public org::ffado::Control::Element::Continuous, ++: public org::ffado::Control::Element::Continuous_proxy, + public DBus::IntrospectableProxy, + public DBus::ObjectProxy + { +diff -rupN libffado.old/support/dbus/controlserver.cpp libffado/support/dbus/controlserver.cpp +--- libffado.old/support/dbus/controlserver.cpp 2010-01-04 16:10:45.000000000 -0500 ++++ libffado/support/dbus/controlserver.cpp 2010-07-13 23:47:14.000000000 -0400 +@@ -52,19 +52,19 @@ Element::Element( DBus::Connection& conn + setVerboseLevel(m_Slave.getVerboseLevel()); + } + +-void Element::setVerboseLevel( const DBus::Int32 &i) ++void Element::setVerboseLevel( const int32_t &i) + { + setDebugLevel(i); + m_Slave.setVerboseLevel(i); + if(m_UpdateLock) m_UpdateLock->setVerboseLevel(i); + } + +-DBus::Int32 Element::getVerboseLevel() ++int32_t Element::getVerboseLevel() + { + return getDebugLevel(); + } + +-DBus::Bool ++bool + Element::canChangeValue() + { + return m_Slave.canChangeValue(); +@@ -110,28 +110,28 @@ Element::getLock() + } + } + +-DBus::UInt64 ++uint64_t + Element::getId( ) + { + return m_Slave.getId(); + } + +-DBus::String ++std::string + Element::getName( ) + { +- return DBus::String(m_Slave.getName()); ++ return std::string(m_Slave.getName()); + } + +-DBus::String ++std::string + Element::getLabel( ) + { +- return DBus::String(m_Slave.getLabel()); ++ return std::string(m_Slave.getLabel()); + } + +-DBus::String ++std::string + Element::getDescription( ) + { +- return DBus::String(m_Slave.getDescription()); ++ return std::string(m_Slave.getDescription()); + } + + // --- Container +@@ -183,7 +183,7 @@ Container::~Container() { + } + + void +-Container::setVerboseLevel( const DBus::Int32 & i) ++Container::setVerboseLevel( const int32_t & i) + { + Element::setVerboseLevel(i); + for ( ElementVectorIterator it = m_Children.begin(); +@@ -194,13 +194,13 @@ Container::setVerboseLevel( const DBus:: + } + } + +-DBus::Int32 ++int32_t + Container::getNbElements( ) { + return m_Slave.countElements(); + } + +-DBus::String +-Container::getElementName( const DBus::Int32& i ) { ++std::string ++Container::getElementName( const int32_t& i ) { + int nbElements=m_Slave.countElements(); + if (i %lf\n", idx, val ); + return val; + } + +-DBus::Double ++double + Continuous::getMinimum() + { + double val = m_Slave.getMinimum(); +@@ -511,7 +511,7 @@ Continuous::getMinimum() + return val; + } + +-DBus::Double ++double + Continuous::getMaximum() + { + double val = m_Slave.getMaximum(); +@@ -529,8 +529,8 @@ Discrete::Discrete( DBus::Connection& co + path().c_str() ); + } + +-DBus::Int32 +-Discrete::setValue( const DBus::Int32& value ) ++int32_t ++Discrete::setValue( const int32_t& value ) + { + m_Slave.setValue(value); + +@@ -541,7 +541,7 @@ Discrete::setValue( const DBus::Int32& v + return value; + } + +-DBus::Int32 ++int32_t + Discrete::getValue() + { + int32_t val = m_Slave.getValue(); +@@ -549,8 +549,8 @@ Discrete::getValue() + return val; + } + +-DBus::Int32 +-Discrete::setValueIdx( const DBus::Int32& idx, const DBus::Int32& value ) ++int32_t ++Discrete::setValueIdx( const int32_t& idx, const int32_t& value ) + { + m_Slave.setValue(idx, value); + +@@ -561,8 +561,8 @@ Discrete::setValueIdx( const DBus::Int32 + return value; + } + +-DBus::Int32 +-Discrete::getValueIdx( const DBus::Int32& idx ) ++int32_t ++Discrete::getValueIdx( const int32_t& idx ) + { + int32_t val = m_Slave.getValue(idx); + debugOutput( DEBUG_LEVEL_VERBOSE, "getValue(%d) => %d\n", idx, val ); +@@ -579,8 +579,8 @@ Text::Text( DBus::Connection& connection + path().c_str() ); + } + +-DBus::String +-Text::setValue( const DBus::String& value ) ++std::string ++Text::setValue( const std::string& value ) + { + m_Slave.setValue(value); + +@@ -591,7 +591,7 @@ Text::setValue( const DBus::String& valu + return value; + } + +-DBus::String ++std::string + Text::getValue() + { + std::string val = m_Slave.getValue(); +@@ -609,8 +609,8 @@ Register::Register( DBus::Connection& co + path().c_str() ); + } + +-DBus::UInt64 +-Register::setValue( const DBus::UInt64& addr, const DBus::UInt64& value ) ++uint64_t ++Register::setValue( const uint64_t& addr, const uint64_t& value ) + { + m_Slave.setValue(addr, value); + +@@ -621,10 +621,10 @@ Register::setValue( const DBus::UInt64& + return value; + } + +-DBus::UInt64 +-Register::getValue( const DBus::UInt64& addr ) ++uint64_t ++Register::getValue( const uint64_t& addr ) + { +- DBus::UInt64 val = m_Slave.getValue(addr); ++ uint64_t val = m_Slave.getValue(addr); + debugOutput( DEBUG_LEVEL_VERBOSE, "getValue(%lld) => %lld\n", addr, val ); + return val; + } +@@ -639,14 +639,14 @@ Enum::Enum( DBus::Connection& connection + path().c_str() ); + } + +-DBus::Int32 +-Enum::select( const DBus::Int32& idx ) ++int32_t ++Enum::select( const int32_t& idx ) + { + debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "select(%d)\n", idx ); + return m_Slave.select(idx); + } + +-DBus::Int32 ++int32_t + Enum::selected() + { + int retval = m_Slave.selected(); +@@ -654,7 +654,7 @@ Enum::selected() + return retval; + } + +-DBus::Int32 ++int32_t + Enum::count() + { + int retval = m_Slave.count(); +@@ -662,8 +662,8 @@ Enum::count() + return retval; + } + +-DBus::String +-Enum::getEnumLabel( const DBus::Int32 & idx ) ++std::string ++Enum::getEnumLabel( const int32_t & idx ) + { + std::string retval = m_Slave.getEnumLabel(idx); + debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "getEnumLabel(%d) => %s\n", idx, retval.c_str() ); +@@ -679,14 +679,14 @@ AttributeEnum::AttributeEnum( DBus::Conn + path().c_str() ); + } + +-DBus::Int32 +-AttributeEnum::select( const DBus::Int32& idx ) ++int32_t ++AttributeEnum::select( const int32_t& idx ) + { + debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "select(%d)\n", idx ); + return m_Slave.select(idx); + } + +-DBus::Int32 ++int32_t + AttributeEnum::selected() + { + int retval = m_Slave.selected(); +@@ -694,7 +694,7 @@ AttributeEnum::selected() + return retval; + } + +-DBus::Int32 ++int32_t + AttributeEnum::count() + { + int retval = m_Slave.count(); +@@ -702,7 +702,7 @@ AttributeEnum::count() + return retval; + } + +-DBus::Int32 ++int32_t + AttributeEnum::attributeCount() + { + int retval = m_Slave.attributeCount(); +@@ -710,24 +710,24 @@ AttributeEnum::attributeCount() + return retval; + } + +-DBus::String +-AttributeEnum::getEnumLabel( const DBus::Int32 & idx ) ++std::string ++AttributeEnum::getEnumLabel( const int32_t & idx ) + { + std::string retval = m_Slave.getEnumLabel(idx); + debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "getEnumLabel(%d) => %s\n", idx, retval.c_str() ); + return retval; + } + +-DBus::String +-AttributeEnum::getAttributeValue( const DBus::Int32 & idx ) ++std::string ++AttributeEnum::getAttributeValue( const int32_t & idx ) + { + std::string retval = m_Slave.getAttributeValue(idx); + debugOutput( DEBUG_LEVEL_VERBOSE, "getAttributeValue(%d) => %s\n", idx, retval.c_str() ); + return retval; + } + +-DBus::String +-AttributeEnum::getAttributeName( const DBus::Int32 & idx ) ++std::string ++AttributeEnum::getAttributeName( const int32_t & idx ) + { + std::string retval = m_Slave.getAttributeName(idx); + debugOutput( DEBUG_LEVEL_VERBOSE, "getAttributeName(%d) => %s\n", idx, retval.c_str() ); +@@ -744,37 +744,37 @@ ConfigRomX::ConfigRomX( DBus::Connection + path().c_str() ); + } + +-DBus::String ++std::string + ConfigRomX::getGUID( ) + { + return m_Slave.getGuidString(); + } + +-DBus::String ++std::string + ConfigRomX::getVendorName( ) + { + return m_Slave.getVendorName(); + } + +-DBus::String ++std::string + ConfigRomX::getModelName( ) + { + return m_Slave.getModelName(); + } + +-DBus::Int32 ++int32_t + ConfigRomX::getVendorId( ) + { + return m_Slave.getNodeVendorId(); + } + +-DBus::Int32 ++int32_t + ConfigRomX::getModelId( ) + { + return m_Slave.getModelId(); + } + +-DBus::Int32 ++int32_t + ConfigRomX::getUnitVersion( ) + { + return m_Slave.getUnitVersion(); +@@ -790,70 +790,70 @@ MatrixMixer::MatrixMixer( DBus::Connecti + path().c_str() ); + } + +-DBus::Int32 ++int32_t + MatrixMixer::getRowCount( ) { + return m_Slave.getRowCount(); + } + +-DBus::Int32 ++int32_t + MatrixMixer::getColCount( ) { + return m_Slave.getColCount(); + } + +-DBus::Int32 +-MatrixMixer::canWrite( const DBus::Int32& row, const DBus::Int32& col) { ++int32_t ++MatrixMixer::canWrite( const int32_t& row, const int32_t& col) { + return m_Slave.canWrite(row,col); + } + +-DBus::Double +-MatrixMixer::setValue( const DBus::Int32& row, const DBus::Int32& col, const DBus::Double& val ) { ++double ++MatrixMixer::setValue( const int32_t& row, const int32_t& col, const double& val ) { + return m_Slave.setValue(row,col,val); + } + +-DBus::Double +-MatrixMixer::getValue( const DBus::Int32& row, const DBus::Int32& col) { ++double ++MatrixMixer::getValue( const int32_t& row, const int32_t& col) { + return m_Slave.getValue(row,col); + } + +-DBus::Bool ++bool + MatrixMixer::hasNames() { + return m_Slave.hasNames(); + } +-DBus::String +-MatrixMixer::getRowName( const DBus::Int32& row) { ++std::string ++MatrixMixer::getRowName( const int32_t& row) { + return m_Slave.getRowName(row); + } +-DBus::String +-MatrixMixer::getColName( const DBus::Int32& col) { ++std::string ++MatrixMixer::getColName( const int32_t& col) { + return m_Slave.getColName(col); + } +-DBus::Bool +-MatrixMixer::setRowName( const DBus::Int32& row, const DBus::String& name) { ++bool ++MatrixMixer::setRowName( const int32_t& row, const std::string& name) { + return m_Slave.setRowName(row, name); + } +-DBus::Bool +-MatrixMixer::setColName( const DBus::Int32& col, const DBus::String& name) { ++bool ++MatrixMixer::setColName( const int32_t& col, const std::string& name) { + return m_Slave.setColName(col, name); + } + +-DBus::Bool ++bool + MatrixMixer::canConnect() { + return m_Slave.canConnect(); + } +-std::vector +-MatrixMixer::availableConnectionsForRow( const DBus::Int32& row) { ++std::vector ++MatrixMixer::availableConnectionsForRow( const int32_t& row) { + return m_Slave.availableConnectionsForRow(row); + } +-std::vector +-MatrixMixer::availableConnectionsForCol( const DBus::Int32& col) { ++std::vector ++MatrixMixer::availableConnectionsForCol( const int32_t& col) { + return m_Slave.availableConnectionsForCol(col); + } +-DBus::Bool +-MatrixMixer::connectRowTo( const DBus::Int32& row, const DBus::String& target) { ++bool ++MatrixMixer::connectRowTo( const int32_t& row, const std::string& target) { + return m_Slave.connectRowTo(row, target); + } +-DBus::Bool +-MatrixMixer::connectColTo( const DBus::Int32& col, const DBus::String& target) { ++bool ++MatrixMixer::connectColTo( const int32_t& col, const std::string& target) { + return m_Slave.connectColTo(col, target); + } + +@@ -867,84 +867,84 @@ CrossbarRouter::CrossbarRouter( DBus::Co + path().c_str() ); + } + +-/*DBus::Int32 +-CrossbarRouter::getSourceIndex(const DBus::String &name) ++/*int32_t ++CrossbarRouter::getSourceIndex(const std::string &name) + { + return m_Slave.getSourceIndex(name); + } + +-DBus::Int32 +-CrossbarRouter::getDestinationIndex(const DBus::String &name) ++int32_t ++CrossbarRouter::getDestinationIndex(const std::string &name) + { + return m_Slave.getDestinationIndex(name); + }*/ + +-std::vector< DBus::String > ++std::vector< std::string > + CrossbarRouter::getSourceNames() + { + return m_Slave.getSourceNames(); + } + +-std::vector< DBus::String > ++std::vector< std::string > + CrossbarRouter::getDestinationNames() + { + return m_Slave.getDestinationNames(); + } + +-std::vector< DBus::String > +-CrossbarRouter::getDestinationsForSource(const DBus::String &idx) ++std::vector< std::string > ++CrossbarRouter::getDestinationsForSource(const std::string &idx) + { + return m_Slave.getDestinationsForSource(idx); + } + +-DBus::String +-CrossbarRouter::getSourceForDestination(const DBus::String &idx) ++std::string ++CrossbarRouter::getSourceForDestination(const std::string &idx) + { + return m_Slave.getSourceForDestination(idx); + } + +-DBus::Bool +-CrossbarRouter::canConnect(const DBus::String &source, const DBus::String &dest) ++bool ++CrossbarRouter::canConnect(const std::string &source, const std::string &dest) + { + return m_Slave.canConnect(source, dest); + } + +-DBus::Bool +-CrossbarRouter::setConnectionState(const DBus::String &source, const DBus::String &dest, const DBus::Bool &enable) ++bool ++CrossbarRouter::setConnectionState(const std::string &source, const std::string &dest, const bool &enable) + { + return m_Slave.setConnectionState(source, dest, enable); + } + +-DBus::Bool +-CrossbarRouter::getConnectionState(const DBus::String &source, const DBus::String &dest) ++bool ++CrossbarRouter::getConnectionState(const std::string &source, const std::string &dest) + { + return m_Slave.getConnectionState(source, dest); + } + +-DBus::Bool ++bool + CrossbarRouter::clearAllConnections() + { + return m_Slave.clearAllConnections(); + } + +-DBus::Bool ++bool + CrossbarRouter::hasPeakMetering() + { + return m_Slave.hasPeakMetering(); + } + +-DBus::Double +-CrossbarRouter::getPeakValue(const DBus::String &dest) ++double ++CrossbarRouter::getPeakValue(const std::string &dest) + { + return m_Slave.getPeakValue(dest); + } +-std::vector< DBus::Struct > ++std::vector< DBus::Struct > + CrossbarRouter::getPeakValues() + { + std::map peakvalues = m_Slave.getPeakValues(); +- std::vector< DBus::Struct > ret; ++ std::vector< DBus::Struct > ret; + for (std::map::iterator it=peakvalues.begin(); it!=peakvalues.end(); ++it) { +- DBus::Struct tmp; ++ DBus::Struct tmp; + tmp._1 = it->first; + tmp._2 = it->second; + ret.push_back(tmp); +@@ -971,14 +971,14 @@ Boolean::Boolean( DBus::Connection& conn + path().c_str() ); + } + +-DBus::Bool +-Boolean::select( const DBus::Bool& value ) ++bool ++Boolean::select( const bool& value ) + { + debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "select(%d)\n", value ); + return m_Slave.select(value); + } + +-DBus::Bool ++bool + Boolean::selected() + { + bool retval = m_Slave.selected(); +@@ -986,8 +986,8 @@ Boolean::selected() + return retval; + } + +-DBus::String +-Boolean::getBooleanLabel( const DBus::Bool& value ) ++std::string ++Boolean::getBooleanLabel( const bool& value ) + { + std::string retval = m_Slave.getBooleanLabel(value); + debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "getBooleanLabel(%d) => %s\n", value, retval.c_str() ); +diff -rupN libffado.old/support/dbus/controlserver.h libffado/support/dbus/controlserver.h +--- libffado.old/support/dbus/controlserver.h 2010-01-02 18:07:26.000000000 -0500 ++++ libffado/support/dbus/controlserver.h 2010-07-13 23:47:14.000000000 -0400 +@@ -98,7 +98,7 @@ private: + }; + + class Element +-: public org::ffado::Control::Element::Element ++: public org::ffado::Control::Element::Element_adaptor + , public DBus::IntrospectableAdaptor + , public DBus::ObjectAdaptor + { +@@ -109,15 +109,15 @@ public: + std::string p, Element *, + Control::Element &slave ); + +- DBus::UInt64 getId( ); +- DBus::String getName( ); +- DBus::String getLabel( ); +- DBus::String getDescription( ); ++ uint64_t getId( ); ++ std::string getName( ); ++ std::string getLabel( ); ++ std::string getDescription( ); + +- DBus::Bool canChangeValue( ); ++ bool canChangeValue( ); + +- void setVerboseLevel( const DBus::Int32 &); +- DBus::Int32 getVerboseLevel(); ++ void setVerboseLevel( const int32_t &); ++ int32_t getVerboseLevel(); + + protected: + void Lock(); +@@ -137,7 +137,7 @@ typedef std::vector::iterator + typedef std::vector::const_iterator ConstElementVectorIterator; + + class Container +-: public org::ffado::Control::Element::Container ++: public org::ffado::Control::Element::Container_adaptor + , public DBusControl::Element + { + public: +@@ -146,13 +146,13 @@ public: + Control::Container &slave ); + virtual ~Container(); + +- DBus::Int32 getNbElements( ); +- DBus::String getElementName( const DBus::Int32& ); ++ int32_t getNbElements( ); ++ std::string getElementName( const int32_t& ); + + void updated(int new_nb_elements); + void destroyed(); + +- void setVerboseLevel( const DBus::Int32 &); ++ void setVerboseLevel( const int32_t &); + private: + Element *createHandler(Element *, Control::Element& e); + void updateTree(); +@@ -165,7 +165,7 @@ private: + }; + + class Continuous +-: public org::ffado::Control::Element::Continuous ++: public org::ffado::Control::Element::Continuous_adaptor + , public Element + { + public: +@@ -173,20 +173,20 @@ public: + std::string p, Element *, + Control::Continuous &slave ); + +- DBus::Double setValue( const DBus::Double & value ); +- DBus::Double getValue( ); +- DBus::Double getMinimum( ); +- DBus::Double getMaximum( ); +- DBus::Double setValueIdx( const DBus::Int32 & idx, +- const DBus::Double & value ); +- DBus::Double getValueIdx( const DBus::Int32 & idx ); ++ double setValue( const double & value ); ++ double getValue( ); ++ double getMinimum( ); ++ double getMaximum( ); ++ double setValueIdx( const int32_t & idx, ++ const double & value ); ++ double getValueIdx( const int32_t & idx ); + + private: + Control::Continuous &m_Slave; + }; + + class Discrete +-: public org::ffado::Control::Element::Discrete ++: public org::ffado::Control::Element::Discrete_adaptor + , public Element + { + public: +@@ -194,18 +194,18 @@ public: + std::string p, Element *, + Control::Discrete &slave ); + +- DBus::Int32 setValue( const DBus::Int32 & value ); +- DBus::Int32 getValue( ); +- DBus::Int32 setValueIdx( const DBus::Int32 & idx, +- const DBus::Int32 & value ); +- DBus::Int32 getValueIdx( const DBus::Int32 & idx ); ++ int32_t setValue( const int32_t & value ); ++ int32_t getValue( ); ++ int32_t setValueIdx( const int32_t & idx, ++ const int32_t & value ); ++ int32_t getValueIdx( const int32_t & idx ); + + private: + Control::Discrete &m_Slave; + }; + + class Text +-: public org::ffado::Control::Element::Text ++: public org::ffado::Control::Element::Text_adaptor + , public Element + { + public: +@@ -213,15 +213,15 @@ public: + std::string p, Element *, + Control::Text &slave ); + +- DBus::String setValue( const DBus::String & value ); +- DBus::String getValue( ); ++ std::string setValue( const std::string & value ); ++ std::string getValue( ); + + private: + Control::Text &m_Slave; + }; + + class Register +-: public org::ffado::Control::Element::Register ++: public org::ffado::Control::Element::Register_adaptor + , public Element + { + public: +@@ -229,15 +229,15 @@ public: + std::string p, Element *, + Control::Register &slave ); + +- DBus::UInt64 setValue( const DBus::UInt64 & addr, const DBus::UInt64 & value ); +- DBus::UInt64 getValue( const DBus::UInt64 & addr ); ++ uint64_t setValue( const uint64_t & addr, const uint64_t & value ); ++ uint64_t getValue( const uint64_t & addr ); + + private: + Control::Register &m_Slave; + }; + + class Enum +-: public org::ffado::Control::Element::Enum ++: public org::ffado::Control::Element::Enum_adaptor + , public Element + { + public: +@@ -245,17 +245,17 @@ public: + std::string p, Element *, + Control::Enum &slave ); + +- DBus::Int32 select( const DBus::Int32 & idx ); +- DBus::Int32 selected( ); +- DBus::Int32 count( ); +- DBus::String getEnumLabel( const DBus::Int32 & idx ); ++ int32_t select( const int32_t & idx ); ++ int32_t selected( ); ++ int32_t count( ); ++ std::string getEnumLabel( const int32_t & idx ); + + private: + Control::Enum &m_Slave; + }; + + class AttributeEnum +-: public org::ffado::Control::Element::AttributeEnum ++: public org::ffado::Control::Element::AttributeEnum_adaptor + , public Element + { + public: +@@ -263,13 +263,13 @@ public: + std::string p, Element *, + Control::AttributeEnum &slave ); + +- DBus::Int32 select( const DBus::Int32 & idx ); +- DBus::Int32 selected( ); +- DBus::Int32 count( ); +- DBus::Int32 attributeCount(); +- DBus::String getEnumLabel( const DBus::Int32 & idx ); +- DBus::String getAttributeValue( const DBus::Int32 & idx ); +- DBus::String getAttributeName( const DBus::Int32 & idx ); ++ int32_t select( const int32_t & idx ); ++ int32_t selected( ); ++ int32_t count( ); ++ int32_t attributeCount(); ++ std::string getEnumLabel( const int32_t & idx ); ++ std::string getAttributeValue( const int32_t & idx ); ++ std::string getAttributeName( const int32_t & idx ); + + private: + Control::AttributeEnum &m_Slave; +@@ -278,7 +278,7 @@ private: + // FIXME: to change this to a normal ConfigRom class name we have to + // put the 1394 config rom class into a separate namespace. + class ConfigRomX +-: public org::ffado::Control::Element::ConfigRomX ++: public org::ffado::Control::Element::ConfigRomX_adaptor + , public Element + { + public: +@@ -286,19 +286,19 @@ public: + std::string p, Element *, + ConfigRom &slave ); + +- DBus::String getGUID( ); +- DBus::String getVendorName( ); +- DBus::String getModelName( ); +- DBus::Int32 getVendorId( ); +- DBus::Int32 getModelId( ); +- DBus::Int32 getUnitVersion( ); ++ std::string getGUID( ); ++ std::string getVendorName( ); ++ std::string getModelName( ); ++ int32_t getVendorId( ); ++ int32_t getModelId( ); ++ int32_t getUnitVersion( ); + + private: + ConfigRom &m_Slave; + }; + + class MatrixMixer +-: public org::ffado::Control::Element::MatrixMixer ++: public org::ffado::Control::Element::MatrixMixer_adaptor + , public Element + { + public: +@@ -306,31 +306,31 @@ public: + std::string p, Element *, + Control::MatrixMixer &slave ); + +- DBus::Int32 getRowCount( ); +- DBus::Int32 getColCount( ); ++ int32_t getRowCount( ); ++ int32_t getColCount( ); + +- DBus::Int32 canWrite( const DBus::Int32&, const DBus::Int32& ); +- DBus::Double setValue( const DBus::Int32&, const DBus::Int32&, const DBus::Double& ); +- DBus::Double getValue( const DBus::Int32&, const DBus::Int32& ); +- +- DBus::Bool hasNames(); +- DBus::String getRowName( const DBus::Int32& ); +- DBus::String getColName( const DBus::Int32& ); +- DBus::Bool setRowName( const DBus::Int32&, const DBus::String& ); +- DBus::Bool setColName( const DBus::Int32&, const DBus::String& ); +- +- DBus::Bool canConnect(); +- std::vector availableConnectionsForRow( const DBus::Int32& ); +- std::vector availableConnectionsForCol( const DBus::Int32& ); +- DBus::Bool connectRowTo( const DBus::Int32&, const DBus::String& ); +- DBus::Bool connectColTo( const DBus::Int32&, const DBus::String& ); ++ int32_t canWrite( const int32_t&, const int32_t& ); ++ double setValue( const int32_t&, const int32_t&, const double& ); ++ double getValue( const int32_t&, const int32_t& ); ++ ++ bool hasNames(); ++ std::string getRowName( const int32_t& ); ++ std::string getColName( const int32_t& ); ++ bool setRowName( const int32_t&, const std::string& ); ++ bool setColName( const int32_t&, const std::string& ); ++ ++ bool canConnect(); ++ std::vector availableConnectionsForRow( const int32_t& ); ++ std::vector availableConnectionsForCol( const int32_t& ); ++ bool connectRowTo( const int32_t&, const std::string& ); ++ bool connectColTo( const int32_t&, const std::string& ); + + private: + Control::MatrixMixer &m_Slave; + }; + + class CrossbarRouter +-: public org::ffado::Control::Element::CrossbarRouter ++: public org::ffado::Control::Element::CrossbarRouter_adaptor + , public Element + { + public: +@@ -338,28 +338,28 @@ public: + std::string p, Element *, + Control::CrossbarRouter &slave ); + +- std::vector< DBus::String > getSourceNames(); +- std::vector< DBus::String > getDestinationNames(); ++ std::vector< std::string > getSourceNames(); ++ std::vector< std::string > getDestinationNames(); + +- std::vector< DBus::String > getDestinationsForSource(const DBus::String &); +- DBus::String getSourceForDestination(const DBus::String &); ++ std::vector< std::string > getDestinationsForSource(const std::string &); ++ std::string getSourceForDestination(const std::string &); + +- DBus::Bool canConnect(const DBus::String &source, const DBus::String &dest); +- DBus::Bool setConnectionState(const DBus::String &source, const DBus::String &dest, const DBus::Bool &enable); +- DBus::Bool getConnectionState(const DBus::String &source, const DBus::String &dest); ++ bool canConnect(const std::string &source, const std::string &dest); ++ bool setConnectionState(const std::string &source, const std::string &dest, const bool &enable); ++ bool getConnectionState(const std::string &source, const std::string &dest); + +- DBus::Bool clearAllConnections(); ++ bool clearAllConnections(); + +- DBus::Bool hasPeakMetering(); +- DBus::Double getPeakValue(const DBus::String &dest); +- std::vector< DBus::Struct > getPeakValues(); ++ bool hasPeakMetering(); ++ double getPeakValue(const std::string &dest); ++ std::vector< DBus::Struct > getPeakValues(); + + private: + Control::CrossbarRouter &m_Slave; + }; + + class Boolean +-: public org::ffado::Control::Element::Boolean ++: public org::ffado::Control::Element::Boolean_adaptor + , public Element + { + public: +@@ -367,9 +367,9 @@ public: + std::string p, Element *, + Control::Boolean &slave ); + +- DBus::Bool select( const DBus::Bool& value ); +- DBus::Bool selected(); +- DBus::String getBooleanLabel( const DBus::Bool& value ); ++ bool select( const bool& value ); ++ bool selected(); ++ std::string getBooleanLabel( const bool& value ); + + private: + Control::Boolean &m_Slave; +diff -rupN libffado.old/support/dbus/SConscript libffado/support/dbus/SConscript +--- libffado.old/support/dbus/SConscript 2009-12-19 11:12:53.000000000 -0500 ++++ libffado/support/dbus/SConscript 2010-07-13 23:47:14.000000000 -0400 +@@ -32,12 +32,13 @@ env = env.Clone() + # For the debugging apps + # + +-env.AppendUnique( CPPPATH=["#/", "#/src", "#/external/dbus/include"] ) +-env.PrependUnique( LIBPATH=[env['build_base']+"src", env['build_base']+"external/dbus"] ) +-env.PrependUnique( LIBS=["ffado", "dbus-c++"] ) ++env.AppendUnique( CPPPATH=["#/", "#/src"] ) ++env.PrependUnique( LIBPATH=[env['build_base']+"src"] ) ++env.PrependUnique( LIBS=["ffado"] ) + + if not env.GetOption( "clean" ): + env.MergeFlags( env["DBUS1_FLAGS"] ) ++ env.MergeFlags( env["DBUSC1_FLAGS"] ) + env.MergeFlags( env['LIBRAW1394_FLAGS'] ) + if not env['SERIALIZE_USE_EXPAT']: + env.MergeFlags( env['LIBXML26_FLAGS'] ) diff --git a/libffado-libconfig145.patch b/libffado-libconfig145.patch new file mode 100644 index 0000000..a05e300 --- /dev/null +++ b/libffado-libconfig145.patch @@ -0,0 +1,12 @@ +--- libffado.old/src/libutil/Configuration.cpp 2010-06-19 14:31:27.000000000 -0400 ++++ libffado/src/libutil/Configuration.cpp 2010-07-14 01:37:57.000000000 -0400 +@@ -333,7 +333,8 @@ Configuration::getValueForDeviceSetting( + libconfig::Setting *s = getDeviceSetting( vendor_id, model_id ); + if(s) { + try { +- return s->lookupValue(setting, ref); ++ long long int refverylong = ref; ++ return s->lookupValue(setting, refverylong); + } catch (...) { + debugOutput(DEBUG_LEVEL_VERBOSE, "Setting %s not found\n", setting.c_str()); + return false; diff --git a/libffado-no-shebang.patch b/libffado-no-shebang.patch new file mode 100644 index 0000000..257afbe --- /dev/null +++ b/libffado-no-shebang.patch @@ -0,0 +1,83 @@ +diff -rupN libffado.old/support/mixer-qt4/ffado/configuration.py libffado/support/mixer-qt4/ffado/configuration.py +--- libffado.old/support/mixer-qt4/ffado/configuration.py 2009-11-09 15:34:33.000000000 -0500 ++++ libffado/support/mixer-qt4/ffado/configuration.py 2010-06-05 21:45:12.000000000 -0400 +@@ -1,4 +1,3 @@ +-#!/usr/bin/python + # + # Copyright (C) 2008-2009 by Arnold Krille + # +diff -rupN libffado.old/support/mixer-qt4/ffado/dbus_util.py libffado/support/mixer-qt4/ffado/dbus_util.py +--- libffado.old/support/mixer-qt4/ffado/dbus_util.py 2009-08-30 15:05:51.000000000 -0400 ++++ libffado/support/mixer-qt4/ffado/dbus_util.py 2010-06-05 21:44:01.000000000 -0400 +@@ -1,4 +1,3 @@ +-#!/usr/bin/python + # + # Copyright (C) 2005-2008 by Pieter Palmers + # 2007-2008 by Arnold Krille +diff -rupN libffado.old/support/mixer-qt4/ffado/logginghandler.py libffado/support/mixer-qt4/ffado/logginghandler.py +--- libffado.old/support/mixer-qt4/ffado/logginghandler.py 2009-09-01 14:30:51.000000000 -0400 ++++ libffado/support/mixer-qt4/ffado/logginghandler.py 2010-06-05 21:44:41.000000000 -0400 +@@ -1,4 +1,3 @@ +-#!/usr/bin/python + # + # Copyright (C) 2008 by Arnold Krille + # +diff -rupN libffado.old/support/mixer-qt4/ffado/mixer/nodevice.py libffado/support/mixer-qt4/ffado/mixer/nodevice.py +--- libffado.old/support/mixer-qt4/ffado/mixer/nodevice.py 2009-10-17 14:14:32.000000000 -0400 ++++ libffado/support/mixer-qt4/ffado/mixer/nodevice.py 2010-06-05 21:44:18.000000000 -0400 +@@ -1,4 +1,3 @@ +-#!/usr/bin/python + # + # Copyright (C) 2005-2008 by Pieter Palmers + # 2007-2008 by Arnold Krille +diff -rupN libffado.old/support/mixer-qt4/ffado/panelmanager.py libffado/support/mixer-qt4/ffado/panelmanager.py +--- libffado.old/support/mixer-qt4/ffado/panelmanager.py 2010-02-17 17:08:15.000000000 -0500 ++++ libffado/support/mixer-qt4/ffado/panelmanager.py 2010-06-05 21:43:49.000000000 -0400 +@@ -1,4 +1,3 @@ +-#!/usr/bin/python + # + # Copyright (C) 2005-2008 by Pieter Palmers + # 2007-2008 by Arnold Krille +diff -rupN libffado.old/support/mixer-qt4/ffado/registration.py libffado/support/mixer-qt4/ffado/registration.py +--- libffado.old/support/mixer-qt4/ffado/registration.py 2009-08-30 15:05:51.000000000 -0400 ++++ libffado/support/mixer-qt4/ffado/registration.py 2010-06-05 21:45:31.000000000 -0400 +@@ -1,4 +1,3 @@ +-#!/usr/bin/python + # + # Copyright (C) 2008-2009 by Pieter Palmers + # 2009 by Arnold Krille +diff -rupN libffado.old/support/mixer-qt4/ffado/widgets/matrixmixer.py libffado/support/mixer-qt4/ffado/widgets/matrixmixer.py +--- libffado.old/support/mixer-qt4/ffado/widgets/matrixmixer.py 2009-12-01 17:49:23.000000000 -0500 ++++ libffado/support/mixer-qt4/ffado/widgets/matrixmixer.py 2010-06-05 21:43:31.000000000 -0400 +@@ -1,4 +1,3 @@ +-#!/usr/bin/env python + # coding=utf8 + # + # Copyright (C) 2009 by Arnold Krille +diff -rupN libffado.old/support/tools/ffado_diag_helpers.py libffado/support/tools/ffado_diag_helpers.py +--- libffado.old/support/tools/ffado_diag_helpers.py 2009-10-12 16:32:00.000000000 -0400 ++++ libffado/support/tools/ffado_diag_helpers.py 2010-06-05 21:42:49.000000000 -0400 +@@ -1,6 +1,3 @@ +-#!/usr/bin/python +-# +- + # + # Copyright (C) 2008 Pieter Palmers + # +diff -rupN libffado.old/support/tools/helpstrings.py libffado/support/tools/helpstrings.py +--- libffado.old/support/tools/helpstrings.py 2008-04-18 11:36:39.000000000 -0400 ++++ libffado/support/tools/helpstrings.py 2010-06-05 21:43:04.000000000 -0400 +@@ -1,6 +1,3 @@ +-#!/usr/bin/python +-# +- + # + # Copyright (C) 2008 Pieter Palmers + # +@@ -57,4 +54,4 @@ the user/group permissions. + + def show(self, sid): + print self.get(sid) +- +\ No newline at end of file ++ diff --git a/libffado.spec b/libffado.spec new file mode 100644 index 0000000..9277ca4 --- /dev/null +++ b/libffado.spec @@ -0,0 +1,197 @@ +%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%endif + +Summary: Free firewire audio driver library +Name: libffado +Version: 2.0.1 +Release: 3.20100706.svn1864%{?dist} +# src/libutil/float_cast.h is LGPLv2+. +# The rest is (GPLv2 or GPLv3) +License: LGPLv2+ and (GPLv2 or GPLv3) +Group: System Environment/Libraries +URL: http://www.ffado.org/ +# The trunk is tarballed as follows: +# svn export -r 1864 http://subversion.ffado.org/ffado/trunk/libffado libffado +# tar jcf libffado-2.0.1-svn1864.tar.bz2 libffado +Source0: %{name}-%{version}-svn1864.tar.bz2 +# Additional README file until we have proper manpages +Source1: README.ffado +# We want the documentation for the library API only, not for the entire source: +# http://subversion.ffado.org/ticket/293 +Patch0: libffado-api-doc-only.patch +# Make the .desktop file nicer +# http://subversion.ffado.org/ticket/291 +Patch1: libffado-desktop.patch +# Clean the redundant shebangs +# http://subversion.ffado.org/ticket/292 +Patch2: libffado-no-shebang.patch +# Use system libraries +# Submitted to upstream devel ML on 2010-07-12. +# Working together with the Debian packager Adrian Knoth. Cool guy. +# http://subversion.ffado.org/ticket/290 +Patch3: libffado-dont-use-bundled-libs.patch +# Make libffado compile against libconfig-1.4.5 +# http://subversion.ffado.org/ticket/290 +Patch4: libffado-libconfig145.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: alsa-lib-devel +BuildRequires: dbus-c++-devel +BuildRequires: dbus-devel +BuildRequires: dbus-python-devel +BuildRequires: desktop-file-utils +BuildRequires: doxygen +BuildRequires: glibmm24-devel +BuildRequires: graphviz +BuildRequires: libconfig-devel +BuildRequires: libiec61883-devel +BuildRequires: libraw1394-devel +BuildRequires: libxml++-devel +BuildRequires: pkgconfig +BuildRequires: PyQt4-devel +BuildRequires: python2-devel +BuildRequires: scons +BuildRequires: subversion + +%description +The FFADO project aims to provide a generic, open-source solution for the +support of FireWire based audio devices for the Linux platform. It is the +successor of the FreeBoB project. + +%package devel +Summary: Free firewire audio driver library development headers +Group: Development/Libraries +License: GPLv2 or GPLv3 +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig + +%description devel +Development files needed to build applications against libffado. + +%package -n ffado +Summary: Free firewire audio driver library applications and utilities +Group: Applications/Multimedia +# support/tools/* is GPLv3 +# Some files in support/mixer-qt4/ffado are GPLv3+ +# The rest is GPLv2 or GPLv3 +License: GPLv3 and GPLv3+ and (GPLv2 or GPLv3) +Requires: %{name} = %{version}-%{release} +Requires: dbus +Requires: dbus-python +Requires: PyQt4 + +%description -n ffado +Applications and utilities for use with libffado. + + +%prep +%setup -q -n %{name} +%patch0 -p1 -b .api.doc.only +%patch1 -p1 -b .desktop.nicer +%patch2 -p1 +%patch3 -p1 -b .systemlib +%patch4 -p1 -b .libconfig145 + +cp -a %{SOURCE1} . + +%build +scons %{?_smp_mflags} \ + COMPILE_FLAGS="%{optflags} -ffast-math" \ + PREFIX=%{_prefix} \ + LIBDIR=%{_libdir} \ + BUILD_TESTS=0 + +%install +rm -rf %{buildroot} +scons DESTDIR=%{buildroot} install + +# We need to install the xdg stuff manually +mkdir -p %{buildroot}%{_datadir}/applications +desktop-file-install --dir %{buildroot}%{_datadir}/applications \ + support/xdg/ffado.org-ffadomixer.desktop +mkdir -p %{buildroot}%{_datadir}/icons/hicolor/64x64/apps +ln -s ../../../../libffado/icons/hi64-apps-ffado.png \ + %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/ffado.png + +%clean +rm -rf %{buildroot} + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%post -n ffado +touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : + +%postun -n ffado +if [ $1 -eq 0 ] ; then + touch --no-create %{_datadir}/icons/hicolor &>/dev/null + gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +fi + +%posttrans -n ffado +gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog LICENSE.* README +%{_libdir}/libffado.so.* +%dir %{_datadir}/libffado/ +%{_datadir}/libffado/configuration + +%files devel +%defattr(-,root,root,-) +%doc doc/reference/html/ +%{_includedir}/libffado/ +%{_libdir}/pkgconfig/libffado.pc +%{_libdir}/libffado.so + +%files -n ffado +%defattr(-,root,root,-) +%doc README.ffado +%{_bindir}/* +%{_datadir}/libffado/*.xml +%{_datadir}/libffado/python/ +%{_datadir}/libffado/icons/ +%{_datadir}/dbus-1/services/org.ffado.Control.service +%{_datadir}/applications/ffado.org-ffadomixer.desktop +%{_datadir}/icons/hicolor/64x64/apps/ffado.png +%{python_sitelib}/ffado/ + +%changelog +* Wed Jul 14 2010 Orcan Ogetbil - 2.0.1-3.20100706.svn1864 +- Remove ENABLE_ALL +- Improve the libffado-dont-use-bundled-libs.patch +- Drop BR: expat-devel libavc1394-devel +- Move configuration file to the library package +- Minor enhancement in the .desktop file +- Add links to upstream tickets for patches +- Add -ffast-math to the compiler flags +- Add patch to compile against libconfig-1.4.5 + +* Tue Jul 13 2010 Orcan Ogetbil - 2.0.1-2.20100706.svn1864 +- Add ENABLE_ALL flag to support more devices +- Don't bundle tests +- Include some preliminary documentation for the tools until the manpages arrive +- Patch out bundled libraries. Also fixes some rpmlints +- Improve the instructions how to create the tarball + +* Wed Jul 07 2010 Orcan Ogetbil - 2.0.1-1.20100706.svn1864 +- Update to trunk, post 2.0.1. + +* Sat Jun 05 2010 Orcan Ogetbil - 2.0.0-1.20100605.svn1845 +- Update to trunk, post 2.0.0. + +* Mon May 18 2009 Jarod Wilson - 2.0-0.4.rc2 +- Update to 2.0.0-rc2 + +* Thu Nov 06 2008 Jarod Wilson - 2.0-0.3.beta7 +- Update to beta7 +- Put arch-dependent helper/test binaries in libexecdir instead of datadir + +* Sun Aug 10 2008 Jarod Wilson - 2.0-0.2.beta6 +- Review clean-ups (#456353) + +* Tue Jul 22 2008 Jarod Wilson - 2.0-0.1.beta6 +- Initial Fedora build of libffado diff --git a/sources b/sources index e69de29..896c5c9 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6263a5e84a17afc2df16291bbd14961d libffado-2.0.1-svn1864.tar.bz2 From a4a9fe8f7ce7416359df850d58a9ca44998f2c47 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 28 Jul 2010 20:55:58 +0000 Subject: [PATCH 002/113] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- import.log | 1 - 3 files changed, 22 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 import.log diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index fe58bf5..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: libffado -# $Id$ -NAME := libffado -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/import.log b/import.log deleted file mode 100644 index d9f2996..0000000 --- a/import.log +++ /dev/null @@ -1 +0,0 @@ -libffado-2_0_1-3_20100706_svn1864_fc13:HEAD:libffado-2.0.1-3.20100706.svn1864.fc13.src.rpm:1279487332 From 2a1e56607f55df46335c814898f261e2299c2916 Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Thu, 29 Jul 2010 23:31:33 -0400 Subject: [PATCH 003/113] * Thu Jul 29 2010 Orcan Ogetbil - 2.0.1-4.20100706.svn1864 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index 9277ca4..48cc7dd 100644 --- a/libffado.spec +++ b/libffado.spec @@ -5,7 +5,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.0.1 -Release: 3.20100706.svn1864%{?dist} +Release: 4.20100706.svn1864%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -160,6 +160,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{python_sitelib}/ffado/ %changelog +* Thu Jul 29 2010 Orcan Ogetbil - 2.0.1-4.20100706.svn1864 +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild + * Wed Jul 14 2010 Orcan Ogetbil - 2.0.1-3.20100706.svn1864 - Remove ENABLE_ALL - Improve the libffado-dont-use-bundled-libs.patch From c26cd0667c68cf6db6197d7765e6db2473059134 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Hor=C3=A1k?= Date: Thu, 26 Aug 2010 10:31:48 +0200 Subject: [PATCH 004/113] - no Firewire on s390(x) --- libffado.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index 48cc7dd..9856378 100644 --- a/libffado.spec +++ b/libffado.spec @@ -5,7 +5,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.0.1 -Release: 4.20100706.svn1864%{?dist} +Release: 5.20100706.svn1864%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -52,6 +52,7 @@ BuildRequires: PyQt4-devel BuildRequires: python2-devel BuildRequires: scons BuildRequires: subversion +ExcludeArch: s390 s390x %description The FFADO project aims to provide a generic, open-source solution for the @@ -160,6 +161,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{python_sitelib}/ffado/ %changelog +* Thu Aug 26 2010 Dan Horák - 2.0.1-5.20100706.svn1864 +- no Firewire on s390(x) + * Thu Jul 29 2010 Orcan Ogetbil - 2.0.1-4.20100706.svn1864 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild From 93682909787ce7bcaa4f7c62242ab0673dc0bba9 Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Fri, 15 Oct 2010 03:25:35 -0400 Subject: [PATCH 005/113] - Update to svn1913. Fixes RHBZ#635315 - Drop upstreamed patches --- .gitignore | 1 + libffado-desktop.patch | 17 - libffado-dont-use-bundled-libs.patch | 1148 -------------------------- libffado-snapshot.sh | 33 + libffado.spec | 27 +- sources | 2 +- 6 files changed, 46 insertions(+), 1182 deletions(-) delete mode 100644 libffado-desktop.patch delete mode 100644 libffado-dont-use-bundled-libs.patch create mode 100644 libffado-snapshot.sh diff --git a/.gitignore b/.gitignore index 140e0e5..065a8f3 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ libffado-2.0.1-svn1864.tar.bz2 +/libffado-2.1.0-svn1913.tar.bz2 diff --git a/libffado-desktop.patch b/libffado-desktop.patch deleted file mode 100644 index 058dc52..0000000 --- a/libffado-desktop.patch +++ /dev/null @@ -1,17 +0,0 @@ -diff -rupN libffado.old/support/xdg/ffado.org-ffadomixer.desktop libffado/support/xdg/ffado.org-ffadomixer.desktop ---- libffado.old/support/xdg/ffado.org-ffadomixer.desktop 2008-11-16 18:30:46.000000000 -0500 -+++ libffado/support/xdg/ffado.org-ffadomixer.desktop 2010-07-14 15:42:28.000000000 -0400 -@@ -1,9 +1,8 @@ - [Desktop Entry] --Comment= -+Name=FFADO Mixer -+Comment=Audio mixer for Firewire devices - Exec=ffado-mixer --GenericName= -+GenericName=Firewire audio mixer - Icon=ffado --Name=ffado-mixer --Path= - Type=Application --Categories=Mixer;Audio;AudioVideo;HardwareSettings;Qt -+Categories=Mixer;Audio;AudioVideo;HardwareSettings;Qt; diff --git a/libffado-dont-use-bundled-libs.patch b/libffado-dont-use-bundled-libs.patch deleted file mode 100644 index 9d79ca4..0000000 --- a/libffado-dont-use-bundled-libs.patch +++ /dev/null @@ -1,1148 +0,0 @@ -diff -rupN libffado.old/admin/dbus.py libffado/admin/dbus.py ---- libffado.old/admin/dbus.py 2008-01-20 05:29:17.000000000 -0500 -+++ libffado/admin/dbus.py 2010-07-13 23:47:14.000000000 -0400 -@@ -27,15 +27,15 @@ - # - - def dbusxx_xml2cpp_emitter(target, source, env): -- env.Depends(target, "#/external/dbus/dbusxx-xml2cpp" ) -+ #env.Depends(target, "#/external/dbus/dbusxx-xml2cpp" ) - return (target, source) - - def dbusxx_xml2cpp_adaptor_action( target, source, env ): -- env.Execute( "./external/dbus/dbusxx-xml2cpp %s --adaptor=%s" % ( source[0], target[0] ) ) -+ env.Execute( "dbusxx-xml2cpp %s --adaptor=%s" % ( source[0], target[0] ) ) - return 0 - - def dbusxx_xml2cpp_proxy_action( target, source, env ): -- env.Execute( "./external/dbus/dbusxx-xml2cpp %s --proxy=%s" % ( source[0], target[0] ) ) -+ env.Execute( "dbusxx-xml2cpp %s --proxy=%s" % ( source[0], target[0] ) ) - return 0 - - def generate( env, **kw ): -diff -rupN libffado.old/README libffado/README ---- libffado.old/README 2009-08-16 08:37:38.000000000 -0400 -+++ libffado/README 2010-07-13 23:47:14.000000000 -0400 -@@ -97,7 +97,8 @@ These libraries here should be at least - libraw1394 (>= 1.3.0), http://www.linux1394.org - libiec61883 (>= 1.1.0), http://www.linux1394.org - dbus-1 (>= 1.0), http://dbus.freedesktop.org -- -+dbus-c++ (>= 0), http://sourceforge.net/apps/mediawiki/dbus-cplusplus/ -+libconfig (>= 0), http://www.hyperrealm.com/libconfig/ - Currently only the jackd audio server is supported. - - jackd (>= 0.109.12), http://jackaudio.org -diff -rupN libffado.old/SConstruct libffado/SConstruct ---- libffado.old/SConstruct 2010-06-13 10:34:09.000000000 -0400 -+++ libffado/SConstruct 2010-07-13 23:48:12.000000000 -0400 -@@ -198,13 +198,15 @@ if not env.GetOption('clean'): - # The following checks are for headers and libs and packages we need. - # - allpresent = 1; -- # for DBUS C++ bindings and cache-serialization. -- allpresent &= conf.CheckHeader( "expat.h" ) -- allpresent &= conf.CheckLib( 'expat', 'XML_ExpatVersion', '#include ' ) -+ # for cache-serialization. -+ if env['SERIALIZE_USE_EXPAT']: -+ allpresent &= conf.CheckHeader( "expat.h" ) -+ allpresent &= conf.CheckLib( 'expat', 'XML_ExpatVersion', '#include ' ) - - pkgs = { - 'libraw1394' : '1.3.0', - 'libiec61883' : '1.1.0', -+ 'libconfig++' : '0' - } - - if env['REQUIRE_LIBAVC']: -@@ -287,25 +289,43 @@ Therefor the qt4 mixer will not get inst - pkgs = { - 'alsa': '0', - 'dbus-1': '1.0', -+ 'dbus-c++-1' : '0', - } - for pkg in pkgs: - name2 = pkg.replace("+","").replace(".","").replace("-","").upper() - env['%s_FLAGS' % name2] = conf.GetPKGFlags( pkg, pkgs[pkg] ) - --# --# Get the directory where dbus stores the service-files --# --if env['DBUS1_FLAGS']: -+dbus_checkfail = False -+ -+if not env['DBUS1_FLAGS']: -+ dbus_checkfail = True -+ print """ -+The dbus headers were not found.""" -+ -+if not env['DBUSC1_FLAGS']: -+ dbus_checkfail = True -+ print """ -+The dbus-c++ headers were not found.""" -+ -+if not conf.CheckForApp( 'which dbusxx-xml2cpp' ): -+ dbus_checkfail = True -+ print """ -+The program dbusxx-xml2cpp could not be found.""" -+ -+if dbus_checkfail: -+ env['DBUS1_FLAGS'] = "" -+ env['DBUSC1_FLAGS'] = "" -+ print """The dbus-server for ffado will therefore not be built. -+""" -+else: -+ # Get the directory where dbus stores the service-files - env['dbus_service_dir'] = conf.GetPKGVariable( 'dbus-1', 'session_bus_services_dir' ).strip() - # this is required to indicate that the DBUS version we use has support - # for platform dependent threading init functions - # this is true for DBUS >= 0.96 or so. Since we require >= 1.0 it is - # always true - env.MergeFlags( "-DDBUS_HAS_THREADS_INIT_DEFAULT" ) --else: -- print """ --The dbus-headers where not found. The dbus-server for ffado will therefor not be built. --""" -+ - - config_guess = conf.ConfigGuess() - -@@ -550,7 +570,7 @@ env.Install( env['libdir'] + '/pkgconfig - - env.Install( env['sharedir'], 'configuration' ) - --subdirs=['external','src','libffado','support','doc'] -+subdirs=['src','libffado','support','doc'] - if env['BUILD_TESTS']: - subdirs.append('tests') - -diff -rupN libffado.old/src/libutil/Configuration.h libffado/src/libutil/Configuration.h ---- libffado.old/src/libutil/Configuration.h 2009-04-25 13:14:57.000000000 -0400 -+++ libffado/src/libutil/Configuration.h 2010-07-13 23:47:14.000000000 -0400 -@@ -25,7 +25,7 @@ - #define _FFADO_UTIL_CONFIGURATION_ - - #include "debugmodule/debugmodule.h" --#include "external/libconfig/libconfigpp.h" -+#include "libconfig.h++" - - #include - -diff -rupN libffado.old/src/SConscript libffado/src/SConscript ---- libffado.old/src/SConscript 2010-01-04 11:09:43.000000000 -0500 -+++ libffado/src/SConscript 2010-07-13 23:47:14.000000000 -0400 -@@ -272,6 +272,7 @@ if not env.GetOption( "clean" ): - libenv.MergeFlags( "-lrt -lpthread" ) - libenv.MergeFlags( env['LIBRAW1394_FLAGS'] ) - libenv.MergeFlags( env['LIBIEC61883_FLAGS'] ) -+ libenv.MergeFlags( env['LIBCONFIG_FLAGS'] ) - if not env['SERIALIZE_USE_EXPAT']: - libenv.MergeFlags( env['LIBXML26_FLAGS'] ) - else: -@@ -279,11 +280,6 @@ if not env.GetOption( "clean" ): - if env['REQUIRE_LIBAVC']: - libenv.MergeFlags( env['LIBAVC1394_FLAGS'] ) - --# add the libconfig --libenv.MergeFlags( "-I#/external/libconfig" ) --libenv.MergeFlags( "-L"+env['build_base']+"external/libconfig" ) --libenv.MergeFlags( "-lconfigpp" ) -- - libname_versioned = "libffado.so.%s" % libenv['VERSION'] - libname_versioned_short = "libffado.so.%s" % libenv['VERSION'].split('.')[0] - -diff -rupN libffado.old/support/dbus/controlclient.h libffado/support/dbus/controlclient.h ---- libffado.old/support/dbus/controlclient.h 2008-04-26 13:30:41.000000000 -0400 -+++ libffado/support/dbus/controlclient.h 2010-07-13 23:47:14.000000000 -0400 -@@ -34,7 +34,7 @@ namespace DBusControl { - - // simple fader element - class ContinuousClient --: public org::ffado::Control::Element::Continuous, -+: public org::ffado::Control::Element::Continuous_proxy, - public DBus::IntrospectableProxy, - public DBus::ObjectProxy - { -diff -rupN libffado.old/support/dbus/controlserver.cpp libffado/support/dbus/controlserver.cpp ---- libffado.old/support/dbus/controlserver.cpp 2010-01-04 16:10:45.000000000 -0500 -+++ libffado/support/dbus/controlserver.cpp 2010-07-13 23:47:14.000000000 -0400 -@@ -52,19 +52,19 @@ Element::Element( DBus::Connection& conn - setVerboseLevel(m_Slave.getVerboseLevel()); - } - --void Element::setVerboseLevel( const DBus::Int32 &i) -+void Element::setVerboseLevel( const int32_t &i) - { - setDebugLevel(i); - m_Slave.setVerboseLevel(i); - if(m_UpdateLock) m_UpdateLock->setVerboseLevel(i); - } - --DBus::Int32 Element::getVerboseLevel() -+int32_t Element::getVerboseLevel() - { - return getDebugLevel(); - } - --DBus::Bool -+bool - Element::canChangeValue() - { - return m_Slave.canChangeValue(); -@@ -110,28 +110,28 @@ Element::getLock() - } - } - --DBus::UInt64 -+uint64_t - Element::getId( ) - { - return m_Slave.getId(); - } - --DBus::String -+std::string - Element::getName( ) - { -- return DBus::String(m_Slave.getName()); -+ return std::string(m_Slave.getName()); - } - --DBus::String -+std::string - Element::getLabel( ) - { -- return DBus::String(m_Slave.getLabel()); -+ return std::string(m_Slave.getLabel()); - } - --DBus::String -+std::string - Element::getDescription( ) - { -- return DBus::String(m_Slave.getDescription()); -+ return std::string(m_Slave.getDescription()); - } - - // --- Container -@@ -183,7 +183,7 @@ Container::~Container() { - } - - void --Container::setVerboseLevel( const DBus::Int32 & i) -+Container::setVerboseLevel( const int32_t & i) - { - Element::setVerboseLevel(i); - for ( ElementVectorIterator it = m_Children.begin(); -@@ -194,13 +194,13 @@ Container::setVerboseLevel( const DBus:: - } - } - --DBus::Int32 -+int32_t - Container::getNbElements( ) { - return m_Slave.countElements(); - } - --DBus::String --Container::getElementName( const DBus::Int32& i ) { -+std::string -+Container::getElementName( const int32_t& i ) { - int nbElements=m_Slave.countElements(); - if (i %lf\n", idx, val ); - return val; - } - --DBus::Double -+double - Continuous::getMinimum() - { - double val = m_Slave.getMinimum(); -@@ -511,7 +511,7 @@ Continuous::getMinimum() - return val; - } - --DBus::Double -+double - Continuous::getMaximum() - { - double val = m_Slave.getMaximum(); -@@ -529,8 +529,8 @@ Discrete::Discrete( DBus::Connection& co - path().c_str() ); - } - --DBus::Int32 --Discrete::setValue( const DBus::Int32& value ) -+int32_t -+Discrete::setValue( const int32_t& value ) - { - m_Slave.setValue(value); - -@@ -541,7 +541,7 @@ Discrete::setValue( const DBus::Int32& v - return value; - } - --DBus::Int32 -+int32_t - Discrete::getValue() - { - int32_t val = m_Slave.getValue(); -@@ -549,8 +549,8 @@ Discrete::getValue() - return val; - } - --DBus::Int32 --Discrete::setValueIdx( const DBus::Int32& idx, const DBus::Int32& value ) -+int32_t -+Discrete::setValueIdx( const int32_t& idx, const int32_t& value ) - { - m_Slave.setValue(idx, value); - -@@ -561,8 +561,8 @@ Discrete::setValueIdx( const DBus::Int32 - return value; - } - --DBus::Int32 --Discrete::getValueIdx( const DBus::Int32& idx ) -+int32_t -+Discrete::getValueIdx( const int32_t& idx ) - { - int32_t val = m_Slave.getValue(idx); - debugOutput( DEBUG_LEVEL_VERBOSE, "getValue(%d) => %d\n", idx, val ); -@@ -579,8 +579,8 @@ Text::Text( DBus::Connection& connection - path().c_str() ); - } - --DBus::String --Text::setValue( const DBus::String& value ) -+std::string -+Text::setValue( const std::string& value ) - { - m_Slave.setValue(value); - -@@ -591,7 +591,7 @@ Text::setValue( const DBus::String& valu - return value; - } - --DBus::String -+std::string - Text::getValue() - { - std::string val = m_Slave.getValue(); -@@ -609,8 +609,8 @@ Register::Register( DBus::Connection& co - path().c_str() ); - } - --DBus::UInt64 --Register::setValue( const DBus::UInt64& addr, const DBus::UInt64& value ) -+uint64_t -+Register::setValue( const uint64_t& addr, const uint64_t& value ) - { - m_Slave.setValue(addr, value); - -@@ -621,10 +621,10 @@ Register::setValue( const DBus::UInt64& - return value; - } - --DBus::UInt64 --Register::getValue( const DBus::UInt64& addr ) -+uint64_t -+Register::getValue( const uint64_t& addr ) - { -- DBus::UInt64 val = m_Slave.getValue(addr); -+ uint64_t val = m_Slave.getValue(addr); - debugOutput( DEBUG_LEVEL_VERBOSE, "getValue(%lld) => %lld\n", addr, val ); - return val; - } -@@ -639,14 +639,14 @@ Enum::Enum( DBus::Connection& connection - path().c_str() ); - } - --DBus::Int32 --Enum::select( const DBus::Int32& idx ) -+int32_t -+Enum::select( const int32_t& idx ) - { - debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "select(%d)\n", idx ); - return m_Slave.select(idx); - } - --DBus::Int32 -+int32_t - Enum::selected() - { - int retval = m_Slave.selected(); -@@ -654,7 +654,7 @@ Enum::selected() - return retval; - } - --DBus::Int32 -+int32_t - Enum::count() - { - int retval = m_Slave.count(); -@@ -662,8 +662,8 @@ Enum::count() - return retval; - } - --DBus::String --Enum::getEnumLabel( const DBus::Int32 & idx ) -+std::string -+Enum::getEnumLabel( const int32_t & idx ) - { - std::string retval = m_Slave.getEnumLabel(idx); - debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "getEnumLabel(%d) => %s\n", idx, retval.c_str() ); -@@ -679,14 +679,14 @@ AttributeEnum::AttributeEnum( DBus::Conn - path().c_str() ); - } - --DBus::Int32 --AttributeEnum::select( const DBus::Int32& idx ) -+int32_t -+AttributeEnum::select( const int32_t& idx ) - { - debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "select(%d)\n", idx ); - return m_Slave.select(idx); - } - --DBus::Int32 -+int32_t - AttributeEnum::selected() - { - int retval = m_Slave.selected(); -@@ -694,7 +694,7 @@ AttributeEnum::selected() - return retval; - } - --DBus::Int32 -+int32_t - AttributeEnum::count() - { - int retval = m_Slave.count(); -@@ -702,7 +702,7 @@ AttributeEnum::count() - return retval; - } - --DBus::Int32 -+int32_t - AttributeEnum::attributeCount() - { - int retval = m_Slave.attributeCount(); -@@ -710,24 +710,24 @@ AttributeEnum::attributeCount() - return retval; - } - --DBus::String --AttributeEnum::getEnumLabel( const DBus::Int32 & idx ) -+std::string -+AttributeEnum::getEnumLabel( const int32_t & idx ) - { - std::string retval = m_Slave.getEnumLabel(idx); - debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "getEnumLabel(%d) => %s\n", idx, retval.c_str() ); - return retval; - } - --DBus::String --AttributeEnum::getAttributeValue( const DBus::Int32 & idx ) -+std::string -+AttributeEnum::getAttributeValue( const int32_t & idx ) - { - std::string retval = m_Slave.getAttributeValue(idx); - debugOutput( DEBUG_LEVEL_VERBOSE, "getAttributeValue(%d) => %s\n", idx, retval.c_str() ); - return retval; - } - --DBus::String --AttributeEnum::getAttributeName( const DBus::Int32 & idx ) -+std::string -+AttributeEnum::getAttributeName( const int32_t & idx ) - { - std::string retval = m_Slave.getAttributeName(idx); - debugOutput( DEBUG_LEVEL_VERBOSE, "getAttributeName(%d) => %s\n", idx, retval.c_str() ); -@@ -744,37 +744,37 @@ ConfigRomX::ConfigRomX( DBus::Connection - path().c_str() ); - } - --DBus::String -+std::string - ConfigRomX::getGUID( ) - { - return m_Slave.getGuidString(); - } - --DBus::String -+std::string - ConfigRomX::getVendorName( ) - { - return m_Slave.getVendorName(); - } - --DBus::String -+std::string - ConfigRomX::getModelName( ) - { - return m_Slave.getModelName(); - } - --DBus::Int32 -+int32_t - ConfigRomX::getVendorId( ) - { - return m_Slave.getNodeVendorId(); - } - --DBus::Int32 -+int32_t - ConfigRomX::getModelId( ) - { - return m_Slave.getModelId(); - } - --DBus::Int32 -+int32_t - ConfigRomX::getUnitVersion( ) - { - return m_Slave.getUnitVersion(); -@@ -790,70 +790,70 @@ MatrixMixer::MatrixMixer( DBus::Connecti - path().c_str() ); - } - --DBus::Int32 -+int32_t - MatrixMixer::getRowCount( ) { - return m_Slave.getRowCount(); - } - --DBus::Int32 -+int32_t - MatrixMixer::getColCount( ) { - return m_Slave.getColCount(); - } - --DBus::Int32 --MatrixMixer::canWrite( const DBus::Int32& row, const DBus::Int32& col) { -+int32_t -+MatrixMixer::canWrite( const int32_t& row, const int32_t& col) { - return m_Slave.canWrite(row,col); - } - --DBus::Double --MatrixMixer::setValue( const DBus::Int32& row, const DBus::Int32& col, const DBus::Double& val ) { -+double -+MatrixMixer::setValue( const int32_t& row, const int32_t& col, const double& val ) { - return m_Slave.setValue(row,col,val); - } - --DBus::Double --MatrixMixer::getValue( const DBus::Int32& row, const DBus::Int32& col) { -+double -+MatrixMixer::getValue( const int32_t& row, const int32_t& col) { - return m_Slave.getValue(row,col); - } - --DBus::Bool -+bool - MatrixMixer::hasNames() { - return m_Slave.hasNames(); - } --DBus::String --MatrixMixer::getRowName( const DBus::Int32& row) { -+std::string -+MatrixMixer::getRowName( const int32_t& row) { - return m_Slave.getRowName(row); - } --DBus::String --MatrixMixer::getColName( const DBus::Int32& col) { -+std::string -+MatrixMixer::getColName( const int32_t& col) { - return m_Slave.getColName(col); - } --DBus::Bool --MatrixMixer::setRowName( const DBus::Int32& row, const DBus::String& name) { -+bool -+MatrixMixer::setRowName( const int32_t& row, const std::string& name) { - return m_Slave.setRowName(row, name); - } --DBus::Bool --MatrixMixer::setColName( const DBus::Int32& col, const DBus::String& name) { -+bool -+MatrixMixer::setColName( const int32_t& col, const std::string& name) { - return m_Slave.setColName(col, name); - } - --DBus::Bool -+bool - MatrixMixer::canConnect() { - return m_Slave.canConnect(); - } --std::vector --MatrixMixer::availableConnectionsForRow( const DBus::Int32& row) { -+std::vector -+MatrixMixer::availableConnectionsForRow( const int32_t& row) { - return m_Slave.availableConnectionsForRow(row); - } --std::vector --MatrixMixer::availableConnectionsForCol( const DBus::Int32& col) { -+std::vector -+MatrixMixer::availableConnectionsForCol( const int32_t& col) { - return m_Slave.availableConnectionsForCol(col); - } --DBus::Bool --MatrixMixer::connectRowTo( const DBus::Int32& row, const DBus::String& target) { -+bool -+MatrixMixer::connectRowTo( const int32_t& row, const std::string& target) { - return m_Slave.connectRowTo(row, target); - } --DBus::Bool --MatrixMixer::connectColTo( const DBus::Int32& col, const DBus::String& target) { -+bool -+MatrixMixer::connectColTo( const int32_t& col, const std::string& target) { - return m_Slave.connectColTo(col, target); - } - -@@ -867,84 +867,84 @@ CrossbarRouter::CrossbarRouter( DBus::Co - path().c_str() ); - } - --/*DBus::Int32 --CrossbarRouter::getSourceIndex(const DBus::String &name) -+/*int32_t -+CrossbarRouter::getSourceIndex(const std::string &name) - { - return m_Slave.getSourceIndex(name); - } - --DBus::Int32 --CrossbarRouter::getDestinationIndex(const DBus::String &name) -+int32_t -+CrossbarRouter::getDestinationIndex(const std::string &name) - { - return m_Slave.getDestinationIndex(name); - }*/ - --std::vector< DBus::String > -+std::vector< std::string > - CrossbarRouter::getSourceNames() - { - return m_Slave.getSourceNames(); - } - --std::vector< DBus::String > -+std::vector< std::string > - CrossbarRouter::getDestinationNames() - { - return m_Slave.getDestinationNames(); - } - --std::vector< DBus::String > --CrossbarRouter::getDestinationsForSource(const DBus::String &idx) -+std::vector< std::string > -+CrossbarRouter::getDestinationsForSource(const std::string &idx) - { - return m_Slave.getDestinationsForSource(idx); - } - --DBus::String --CrossbarRouter::getSourceForDestination(const DBus::String &idx) -+std::string -+CrossbarRouter::getSourceForDestination(const std::string &idx) - { - return m_Slave.getSourceForDestination(idx); - } - --DBus::Bool --CrossbarRouter::canConnect(const DBus::String &source, const DBus::String &dest) -+bool -+CrossbarRouter::canConnect(const std::string &source, const std::string &dest) - { - return m_Slave.canConnect(source, dest); - } - --DBus::Bool --CrossbarRouter::setConnectionState(const DBus::String &source, const DBus::String &dest, const DBus::Bool &enable) -+bool -+CrossbarRouter::setConnectionState(const std::string &source, const std::string &dest, const bool &enable) - { - return m_Slave.setConnectionState(source, dest, enable); - } - --DBus::Bool --CrossbarRouter::getConnectionState(const DBus::String &source, const DBus::String &dest) -+bool -+CrossbarRouter::getConnectionState(const std::string &source, const std::string &dest) - { - return m_Slave.getConnectionState(source, dest); - } - --DBus::Bool -+bool - CrossbarRouter::clearAllConnections() - { - return m_Slave.clearAllConnections(); - } - --DBus::Bool -+bool - CrossbarRouter::hasPeakMetering() - { - return m_Slave.hasPeakMetering(); - } - --DBus::Double --CrossbarRouter::getPeakValue(const DBus::String &dest) -+double -+CrossbarRouter::getPeakValue(const std::string &dest) - { - return m_Slave.getPeakValue(dest); - } --std::vector< DBus::Struct > -+std::vector< DBus::Struct > - CrossbarRouter::getPeakValues() - { - std::map peakvalues = m_Slave.getPeakValues(); -- std::vector< DBus::Struct > ret; -+ std::vector< DBus::Struct > ret; - for (std::map::iterator it=peakvalues.begin(); it!=peakvalues.end(); ++it) { -- DBus::Struct tmp; -+ DBus::Struct tmp; - tmp._1 = it->first; - tmp._2 = it->second; - ret.push_back(tmp); -@@ -971,14 +971,14 @@ Boolean::Boolean( DBus::Connection& conn - path().c_str() ); - } - --DBus::Bool --Boolean::select( const DBus::Bool& value ) -+bool -+Boolean::select( const bool& value ) - { - debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "select(%d)\n", value ); - return m_Slave.select(value); - } - --DBus::Bool -+bool - Boolean::selected() - { - bool retval = m_Slave.selected(); -@@ -986,8 +986,8 @@ Boolean::selected() - return retval; - } - --DBus::String --Boolean::getBooleanLabel( const DBus::Bool& value ) -+std::string -+Boolean::getBooleanLabel( const bool& value ) - { - std::string retval = m_Slave.getBooleanLabel(value); - debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "getBooleanLabel(%d) => %s\n", value, retval.c_str() ); -diff -rupN libffado.old/support/dbus/controlserver.h libffado/support/dbus/controlserver.h ---- libffado.old/support/dbus/controlserver.h 2010-01-02 18:07:26.000000000 -0500 -+++ libffado/support/dbus/controlserver.h 2010-07-13 23:47:14.000000000 -0400 -@@ -98,7 +98,7 @@ private: - }; - - class Element --: public org::ffado::Control::Element::Element -+: public org::ffado::Control::Element::Element_adaptor - , public DBus::IntrospectableAdaptor - , public DBus::ObjectAdaptor - { -@@ -109,15 +109,15 @@ public: - std::string p, Element *, - Control::Element &slave ); - -- DBus::UInt64 getId( ); -- DBus::String getName( ); -- DBus::String getLabel( ); -- DBus::String getDescription( ); -+ uint64_t getId( ); -+ std::string getName( ); -+ std::string getLabel( ); -+ std::string getDescription( ); - -- DBus::Bool canChangeValue( ); -+ bool canChangeValue( ); - -- void setVerboseLevel( const DBus::Int32 &); -- DBus::Int32 getVerboseLevel(); -+ void setVerboseLevel( const int32_t &); -+ int32_t getVerboseLevel(); - - protected: - void Lock(); -@@ -137,7 +137,7 @@ typedef std::vector::iterator - typedef std::vector::const_iterator ConstElementVectorIterator; - - class Container --: public org::ffado::Control::Element::Container -+: public org::ffado::Control::Element::Container_adaptor - , public DBusControl::Element - { - public: -@@ -146,13 +146,13 @@ public: - Control::Container &slave ); - virtual ~Container(); - -- DBus::Int32 getNbElements( ); -- DBus::String getElementName( const DBus::Int32& ); -+ int32_t getNbElements( ); -+ std::string getElementName( const int32_t& ); - - void updated(int new_nb_elements); - void destroyed(); - -- void setVerboseLevel( const DBus::Int32 &); -+ void setVerboseLevel( const int32_t &); - private: - Element *createHandler(Element *, Control::Element& e); - void updateTree(); -@@ -165,7 +165,7 @@ private: - }; - - class Continuous --: public org::ffado::Control::Element::Continuous -+: public org::ffado::Control::Element::Continuous_adaptor - , public Element - { - public: -@@ -173,20 +173,20 @@ public: - std::string p, Element *, - Control::Continuous &slave ); - -- DBus::Double setValue( const DBus::Double & value ); -- DBus::Double getValue( ); -- DBus::Double getMinimum( ); -- DBus::Double getMaximum( ); -- DBus::Double setValueIdx( const DBus::Int32 & idx, -- const DBus::Double & value ); -- DBus::Double getValueIdx( const DBus::Int32 & idx ); -+ double setValue( const double & value ); -+ double getValue( ); -+ double getMinimum( ); -+ double getMaximum( ); -+ double setValueIdx( const int32_t & idx, -+ const double & value ); -+ double getValueIdx( const int32_t & idx ); - - private: - Control::Continuous &m_Slave; - }; - - class Discrete --: public org::ffado::Control::Element::Discrete -+: public org::ffado::Control::Element::Discrete_adaptor - , public Element - { - public: -@@ -194,18 +194,18 @@ public: - std::string p, Element *, - Control::Discrete &slave ); - -- DBus::Int32 setValue( const DBus::Int32 & value ); -- DBus::Int32 getValue( ); -- DBus::Int32 setValueIdx( const DBus::Int32 & idx, -- const DBus::Int32 & value ); -- DBus::Int32 getValueIdx( const DBus::Int32 & idx ); -+ int32_t setValue( const int32_t & value ); -+ int32_t getValue( ); -+ int32_t setValueIdx( const int32_t & idx, -+ const int32_t & value ); -+ int32_t getValueIdx( const int32_t & idx ); - - private: - Control::Discrete &m_Slave; - }; - - class Text --: public org::ffado::Control::Element::Text -+: public org::ffado::Control::Element::Text_adaptor - , public Element - { - public: -@@ -213,15 +213,15 @@ public: - std::string p, Element *, - Control::Text &slave ); - -- DBus::String setValue( const DBus::String & value ); -- DBus::String getValue( ); -+ std::string setValue( const std::string & value ); -+ std::string getValue( ); - - private: - Control::Text &m_Slave; - }; - - class Register --: public org::ffado::Control::Element::Register -+: public org::ffado::Control::Element::Register_adaptor - , public Element - { - public: -@@ -229,15 +229,15 @@ public: - std::string p, Element *, - Control::Register &slave ); - -- DBus::UInt64 setValue( const DBus::UInt64 & addr, const DBus::UInt64 & value ); -- DBus::UInt64 getValue( const DBus::UInt64 & addr ); -+ uint64_t setValue( const uint64_t & addr, const uint64_t & value ); -+ uint64_t getValue( const uint64_t & addr ); - - private: - Control::Register &m_Slave; - }; - - class Enum --: public org::ffado::Control::Element::Enum -+: public org::ffado::Control::Element::Enum_adaptor - , public Element - { - public: -@@ -245,17 +245,17 @@ public: - std::string p, Element *, - Control::Enum &slave ); - -- DBus::Int32 select( const DBus::Int32 & idx ); -- DBus::Int32 selected( ); -- DBus::Int32 count( ); -- DBus::String getEnumLabel( const DBus::Int32 & idx ); -+ int32_t select( const int32_t & idx ); -+ int32_t selected( ); -+ int32_t count( ); -+ std::string getEnumLabel( const int32_t & idx ); - - private: - Control::Enum &m_Slave; - }; - - class AttributeEnum --: public org::ffado::Control::Element::AttributeEnum -+: public org::ffado::Control::Element::AttributeEnum_adaptor - , public Element - { - public: -@@ -263,13 +263,13 @@ public: - std::string p, Element *, - Control::AttributeEnum &slave ); - -- DBus::Int32 select( const DBus::Int32 & idx ); -- DBus::Int32 selected( ); -- DBus::Int32 count( ); -- DBus::Int32 attributeCount(); -- DBus::String getEnumLabel( const DBus::Int32 & idx ); -- DBus::String getAttributeValue( const DBus::Int32 & idx ); -- DBus::String getAttributeName( const DBus::Int32 & idx ); -+ int32_t select( const int32_t & idx ); -+ int32_t selected( ); -+ int32_t count( ); -+ int32_t attributeCount(); -+ std::string getEnumLabel( const int32_t & idx ); -+ std::string getAttributeValue( const int32_t & idx ); -+ std::string getAttributeName( const int32_t & idx ); - - private: - Control::AttributeEnum &m_Slave; -@@ -278,7 +278,7 @@ private: - // FIXME: to change this to a normal ConfigRom class name we have to - // put the 1394 config rom class into a separate namespace. - class ConfigRomX --: public org::ffado::Control::Element::ConfigRomX -+: public org::ffado::Control::Element::ConfigRomX_adaptor - , public Element - { - public: -@@ -286,19 +286,19 @@ public: - std::string p, Element *, - ConfigRom &slave ); - -- DBus::String getGUID( ); -- DBus::String getVendorName( ); -- DBus::String getModelName( ); -- DBus::Int32 getVendorId( ); -- DBus::Int32 getModelId( ); -- DBus::Int32 getUnitVersion( ); -+ std::string getGUID( ); -+ std::string getVendorName( ); -+ std::string getModelName( ); -+ int32_t getVendorId( ); -+ int32_t getModelId( ); -+ int32_t getUnitVersion( ); - - private: - ConfigRom &m_Slave; - }; - - class MatrixMixer --: public org::ffado::Control::Element::MatrixMixer -+: public org::ffado::Control::Element::MatrixMixer_adaptor - , public Element - { - public: -@@ -306,31 +306,31 @@ public: - std::string p, Element *, - Control::MatrixMixer &slave ); - -- DBus::Int32 getRowCount( ); -- DBus::Int32 getColCount( ); -+ int32_t getRowCount( ); -+ int32_t getColCount( ); - -- DBus::Int32 canWrite( const DBus::Int32&, const DBus::Int32& ); -- DBus::Double setValue( const DBus::Int32&, const DBus::Int32&, const DBus::Double& ); -- DBus::Double getValue( const DBus::Int32&, const DBus::Int32& ); -- -- DBus::Bool hasNames(); -- DBus::String getRowName( const DBus::Int32& ); -- DBus::String getColName( const DBus::Int32& ); -- DBus::Bool setRowName( const DBus::Int32&, const DBus::String& ); -- DBus::Bool setColName( const DBus::Int32&, const DBus::String& ); -- -- DBus::Bool canConnect(); -- std::vector availableConnectionsForRow( const DBus::Int32& ); -- std::vector availableConnectionsForCol( const DBus::Int32& ); -- DBus::Bool connectRowTo( const DBus::Int32&, const DBus::String& ); -- DBus::Bool connectColTo( const DBus::Int32&, const DBus::String& ); -+ int32_t canWrite( const int32_t&, const int32_t& ); -+ double setValue( const int32_t&, const int32_t&, const double& ); -+ double getValue( const int32_t&, const int32_t& ); -+ -+ bool hasNames(); -+ std::string getRowName( const int32_t& ); -+ std::string getColName( const int32_t& ); -+ bool setRowName( const int32_t&, const std::string& ); -+ bool setColName( const int32_t&, const std::string& ); -+ -+ bool canConnect(); -+ std::vector availableConnectionsForRow( const int32_t& ); -+ std::vector availableConnectionsForCol( const int32_t& ); -+ bool connectRowTo( const int32_t&, const std::string& ); -+ bool connectColTo( const int32_t&, const std::string& ); - - private: - Control::MatrixMixer &m_Slave; - }; - - class CrossbarRouter --: public org::ffado::Control::Element::CrossbarRouter -+: public org::ffado::Control::Element::CrossbarRouter_adaptor - , public Element - { - public: -@@ -338,28 +338,28 @@ public: - std::string p, Element *, - Control::CrossbarRouter &slave ); - -- std::vector< DBus::String > getSourceNames(); -- std::vector< DBus::String > getDestinationNames(); -+ std::vector< std::string > getSourceNames(); -+ std::vector< std::string > getDestinationNames(); - -- std::vector< DBus::String > getDestinationsForSource(const DBus::String &); -- DBus::String getSourceForDestination(const DBus::String &); -+ std::vector< std::string > getDestinationsForSource(const std::string &); -+ std::string getSourceForDestination(const std::string &); - -- DBus::Bool canConnect(const DBus::String &source, const DBus::String &dest); -- DBus::Bool setConnectionState(const DBus::String &source, const DBus::String &dest, const DBus::Bool &enable); -- DBus::Bool getConnectionState(const DBus::String &source, const DBus::String &dest); -+ bool canConnect(const std::string &source, const std::string &dest); -+ bool setConnectionState(const std::string &source, const std::string &dest, const bool &enable); -+ bool getConnectionState(const std::string &source, const std::string &dest); - -- DBus::Bool clearAllConnections(); -+ bool clearAllConnections(); - -- DBus::Bool hasPeakMetering(); -- DBus::Double getPeakValue(const DBus::String &dest); -- std::vector< DBus::Struct > getPeakValues(); -+ bool hasPeakMetering(); -+ double getPeakValue(const std::string &dest); -+ std::vector< DBus::Struct > getPeakValues(); - - private: - Control::CrossbarRouter &m_Slave; - }; - - class Boolean --: public org::ffado::Control::Element::Boolean -+: public org::ffado::Control::Element::Boolean_adaptor - , public Element - { - public: -@@ -367,9 +367,9 @@ public: - std::string p, Element *, - Control::Boolean &slave ); - -- DBus::Bool select( const DBus::Bool& value ); -- DBus::Bool selected(); -- DBus::String getBooleanLabel( const DBus::Bool& value ); -+ bool select( const bool& value ); -+ bool selected(); -+ std::string getBooleanLabel( const bool& value ); - - private: - Control::Boolean &m_Slave; -diff -rupN libffado.old/support/dbus/SConscript libffado/support/dbus/SConscript ---- libffado.old/support/dbus/SConscript 2009-12-19 11:12:53.000000000 -0500 -+++ libffado/support/dbus/SConscript 2010-07-13 23:47:14.000000000 -0400 -@@ -32,12 +32,13 @@ env = env.Clone() - # For the debugging apps - # - --env.AppendUnique( CPPPATH=["#/", "#/src", "#/external/dbus/include"] ) --env.PrependUnique( LIBPATH=[env['build_base']+"src", env['build_base']+"external/dbus"] ) --env.PrependUnique( LIBS=["ffado", "dbus-c++"] ) -+env.AppendUnique( CPPPATH=["#/", "#/src"] ) -+env.PrependUnique( LIBPATH=[env['build_base']+"src"] ) -+env.PrependUnique( LIBS=["ffado"] ) - - if not env.GetOption( "clean" ): - env.MergeFlags( env["DBUS1_FLAGS"] ) -+ env.MergeFlags( env["DBUSC1_FLAGS"] ) - env.MergeFlags( env['LIBRAW1394_FLAGS'] ) - if not env['SERIALIZE_USE_EXPAT']: - env.MergeFlags( env['LIBXML26_FLAGS'] ) diff --git a/libffado-snapshot.sh b/libffado-snapshot.sh new file mode 100644 index 0000000..4152235 --- /dev/null +++ b/libffado-snapshot.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +# $1 - revision number to checkout. +: ${1?"You must either provide desired revision number \"X\" to checkout: `basename $0` X + or fetch the latest revision by: `basename $0` HEAD"} + +set -e + +tmp=$(mktemp -d) + +trap cleanup EXIT +cleanup() { + set +e + [ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp" +} + +unset CDPATH +pwd=$(pwd) +name=libffado +version=2.1.0 + +revision=$1 + +pushd "$tmp" >/dev/null +echo "Fetching SVN revision: $1" +svn export -r$revision http://subversion.ffado.org/ffado/trunk/$name $name-$version |tee $name.stdout +revision=$(cat $name.stdout|grep "Exported revision"|sed 's|[^0-9]*||g') +echo "Fetched SVN revision: $revision" +rm -f $name.stdout + +tar jcf "$pwd"/$name-$version-svn$revision.tar.bz2 $name-$version +echo "Written: $name-$version-svn$revision.tar.bz2" +popd >/dev/null diff --git a/libffado.spec b/libffado.spec index 9856378..bbeb27e 100644 --- a/libffado.spec +++ b/libffado.spec @@ -4,33 +4,26 @@ Summary: Free firewire audio driver library Name: libffado -Version: 2.0.1 -Release: 5.20100706.svn1864%{?dist} +Version: 2.1.0 +Release: 0.1.20101015.svn1913%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) Group: System Environment/Libraries URL: http://www.ffado.org/ # The trunk is tarballed as follows: -# svn export -r 1864 http://subversion.ffado.org/ffado/trunk/libffado libffado -# tar jcf libffado-2.0.1-svn1864.tar.bz2 libffado -Source0: %{name}-%{version}-svn1864.tar.bz2 +# bash libffado-snapshot.sh 1913 +Source0: %{name}-%{version}-svn1913.tar.bz2 # Additional README file until we have proper manpages Source1: README.ffado +# The fetch script +Source9: libffado-snapshot.sh # We want the documentation for the library API only, not for the entire source: # http://subversion.ffado.org/ticket/293 Patch0: libffado-api-doc-only.patch -# Make the .desktop file nicer -# http://subversion.ffado.org/ticket/291 -Patch1: libffado-desktop.patch # Clean the redundant shebangs # http://subversion.ffado.org/ticket/292 Patch2: libffado-no-shebang.patch -# Use system libraries -# Submitted to upstream devel ML on 2010-07-12. -# Working together with the Debian packager Adrian Knoth. Cool guy. -# http://subversion.ffado.org/ticket/290 -Patch3: libffado-dont-use-bundled-libs.patch # Make libffado compile against libconfig-1.4.5 # http://subversion.ffado.org/ticket/290 Patch4: libffado-libconfig145.patch @@ -86,11 +79,9 @@ Applications and utilities for use with libffado. %prep -%setup -q -n %{name} +%setup -q %patch0 -p1 -b .api.doc.only -%patch1 -p1 -b .desktop.nicer %patch2 -p1 -%patch3 -p1 -b .systemlib %patch4 -p1 -b .libconfig145 cp -a %{SOURCE1} . @@ -161,6 +152,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{python_sitelib}/ffado/ %changelog +* Fri Oct 15 2010 Orcan Ogetbil - 2.1.0-0.1.20101015.svn1913 +- Update to svn1913. Fixes RHBZ#635315 +- Drop upstreamed patches + * Thu Aug 26 2010 Dan Horák - 2.0.1-5.20100706.svn1864 - no Firewire on s390(x) diff --git a/sources b/sources index 896c5c9..3fdd77c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -6263a5e84a17afc2df16291bbd14961d libffado-2.0.1-svn1864.tar.bz2 +ce90eab1c3e3e309f359fa324f6210ce libffado-2.1.0-svn1913.tar.bz2 From 3598fdfad2cc6a8688d22ed1d36a143dc15e4a73 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Mon, 7 Feb 2011 23:40:27 -0600 Subject: [PATCH 006/113] - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index bbeb27e..1e3db7c 100644 --- a/libffado.spec +++ b/libffado.spec @@ -5,7 +5,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.1.0 -Release: 0.1.20101015.svn1913%{?dist} +Release: 0.2.20101015.svn1913%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -152,6 +152,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{python_sitelib}/ffado/ %changelog +* Mon Feb 07 2011 Fedora Release Engineering - 2.1.0-0.2.20101015.svn1913 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + * Fri Oct 15 2010 Orcan Ogetbil - 2.1.0-0.1.20101015.svn1913 - Update to svn1913. Fixes RHBZ#635315 - Drop upstreamed patches From eabded1c394cbc5a78ef5895d17b8a558504ee90 Mon Sep 17 00:00:00 2001 From: Brendan Jones Date: Thu, 28 Apr 2011 07:55:50 +1000 Subject: [PATCH 007/113] Update to svn1983, rebuild using gold linker. Fixes #684392 --- libffado-add-link-flags | 26 ++++++++++++ libffado-libconfig145.patch | 12 ------ libffado-no-shebang.patch | 83 ------------------------------------- libffado.spec | 31 ++++++++------ sources | 2 +- 5 files changed, 46 insertions(+), 108 deletions(-) create mode 100644 libffado-add-link-flags delete mode 100644 libffado-libconfig145.patch delete mode 100644 libffado-no-shebang.patch diff --git a/libffado-add-link-flags b/libffado-add-link-flags new file mode 100644 index 0000000..0ce8752 --- /dev/null +++ b/libffado-add-link-flags @@ -0,0 +1,26 @@ +diff -PNur libffado-2.1.0.orig/SConstruct libffado-2.1.0/SConstruct +--- libffado-2.1.0.orig/SConstruct 2011-04-21 21:32:11.000000000 +1000 ++++ libffado-2.1.0/SConstruct 2011-04-25 23:42:12.000000000 +1000 +@@ -75,7 +75,7 @@ + BoolVariable( "ENABLE_OPTIMIZATIONS", "Enable optimizations and the use of processor specific extentions (MMX/SSE/...).", False ), + BoolVariable( "PEDANTIC", "Enable -Werror and more pedantic options during compile.", False ), + ( "COMPILE_FLAGS", "Add additional flags to the environment.\nOnly meant for distributors and gentoo-users who want to over-optimize their built.\n Using this is not supported by the ffado-devs!" ), +- ++ ( "LINKFLAGS", "Add additional flags to the linker command line.","") + ) + + ## Load the builders in config +diff -PNur libffado-2.1.0.orig/src/SConscript libffado-2.1.0/src/SConscript +--- libffado-2.1.0.orig/src/SConscript 2010-09-11 07:50:58.000000000 +1000 ++++ libffado-2.1.0/src/SConscript 2011-04-26 13:01:32.000000000 +1000 +@@ -280,6 +280,10 @@ + if env['REQUIRE_LIBAVC']: + libenv.MergeFlags( env['LIBAVC1394_FLAGS'] ) + ++# Add additional linker flags ++if env['LINKFLAGS']: ++ libenv.MergeFlags( env['LINKFLAGS'] ) ++ + libname_versioned = "libffado.so.%s" % libenv['VERSION'] + libname_versioned_short = "libffado.so.%s" % libenv['VERSION'].split('.')[0] + diff --git a/libffado-libconfig145.patch b/libffado-libconfig145.patch deleted file mode 100644 index a05e300..0000000 --- a/libffado-libconfig145.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- libffado.old/src/libutil/Configuration.cpp 2010-06-19 14:31:27.000000000 -0400 -+++ libffado/src/libutil/Configuration.cpp 2010-07-14 01:37:57.000000000 -0400 -@@ -333,7 +333,8 @@ Configuration::getValueForDeviceSetting( - libconfig::Setting *s = getDeviceSetting( vendor_id, model_id ); - if(s) { - try { -- return s->lookupValue(setting, ref); -+ long long int refverylong = ref; -+ return s->lookupValue(setting, refverylong); - } catch (...) { - debugOutput(DEBUG_LEVEL_VERBOSE, "Setting %s not found\n", setting.c_str()); - return false; diff --git a/libffado-no-shebang.patch b/libffado-no-shebang.patch deleted file mode 100644 index 257afbe..0000000 --- a/libffado-no-shebang.patch +++ /dev/null @@ -1,83 +0,0 @@ -diff -rupN libffado.old/support/mixer-qt4/ffado/configuration.py libffado/support/mixer-qt4/ffado/configuration.py ---- libffado.old/support/mixer-qt4/ffado/configuration.py 2009-11-09 15:34:33.000000000 -0500 -+++ libffado/support/mixer-qt4/ffado/configuration.py 2010-06-05 21:45:12.000000000 -0400 -@@ -1,4 +1,3 @@ --#!/usr/bin/python - # - # Copyright (C) 2008-2009 by Arnold Krille - # -diff -rupN libffado.old/support/mixer-qt4/ffado/dbus_util.py libffado/support/mixer-qt4/ffado/dbus_util.py ---- libffado.old/support/mixer-qt4/ffado/dbus_util.py 2009-08-30 15:05:51.000000000 -0400 -+++ libffado/support/mixer-qt4/ffado/dbus_util.py 2010-06-05 21:44:01.000000000 -0400 -@@ -1,4 +1,3 @@ --#!/usr/bin/python - # - # Copyright (C) 2005-2008 by Pieter Palmers - # 2007-2008 by Arnold Krille -diff -rupN libffado.old/support/mixer-qt4/ffado/logginghandler.py libffado/support/mixer-qt4/ffado/logginghandler.py ---- libffado.old/support/mixer-qt4/ffado/logginghandler.py 2009-09-01 14:30:51.000000000 -0400 -+++ libffado/support/mixer-qt4/ffado/logginghandler.py 2010-06-05 21:44:41.000000000 -0400 -@@ -1,4 +1,3 @@ --#!/usr/bin/python - # - # Copyright (C) 2008 by Arnold Krille - # -diff -rupN libffado.old/support/mixer-qt4/ffado/mixer/nodevice.py libffado/support/mixer-qt4/ffado/mixer/nodevice.py ---- libffado.old/support/mixer-qt4/ffado/mixer/nodevice.py 2009-10-17 14:14:32.000000000 -0400 -+++ libffado/support/mixer-qt4/ffado/mixer/nodevice.py 2010-06-05 21:44:18.000000000 -0400 -@@ -1,4 +1,3 @@ --#!/usr/bin/python - # - # Copyright (C) 2005-2008 by Pieter Palmers - # 2007-2008 by Arnold Krille -diff -rupN libffado.old/support/mixer-qt4/ffado/panelmanager.py libffado/support/mixer-qt4/ffado/panelmanager.py ---- libffado.old/support/mixer-qt4/ffado/panelmanager.py 2010-02-17 17:08:15.000000000 -0500 -+++ libffado/support/mixer-qt4/ffado/panelmanager.py 2010-06-05 21:43:49.000000000 -0400 -@@ -1,4 +1,3 @@ --#!/usr/bin/python - # - # Copyright (C) 2005-2008 by Pieter Palmers - # 2007-2008 by Arnold Krille -diff -rupN libffado.old/support/mixer-qt4/ffado/registration.py libffado/support/mixer-qt4/ffado/registration.py ---- libffado.old/support/mixer-qt4/ffado/registration.py 2009-08-30 15:05:51.000000000 -0400 -+++ libffado/support/mixer-qt4/ffado/registration.py 2010-06-05 21:45:31.000000000 -0400 -@@ -1,4 +1,3 @@ --#!/usr/bin/python - # - # Copyright (C) 2008-2009 by Pieter Palmers - # 2009 by Arnold Krille -diff -rupN libffado.old/support/mixer-qt4/ffado/widgets/matrixmixer.py libffado/support/mixer-qt4/ffado/widgets/matrixmixer.py ---- libffado.old/support/mixer-qt4/ffado/widgets/matrixmixer.py 2009-12-01 17:49:23.000000000 -0500 -+++ libffado/support/mixer-qt4/ffado/widgets/matrixmixer.py 2010-06-05 21:43:31.000000000 -0400 -@@ -1,4 +1,3 @@ --#!/usr/bin/env python - # coding=utf8 - # - # Copyright (C) 2009 by Arnold Krille -diff -rupN libffado.old/support/tools/ffado_diag_helpers.py libffado/support/tools/ffado_diag_helpers.py ---- libffado.old/support/tools/ffado_diag_helpers.py 2009-10-12 16:32:00.000000000 -0400 -+++ libffado/support/tools/ffado_diag_helpers.py 2010-06-05 21:42:49.000000000 -0400 -@@ -1,6 +1,3 @@ --#!/usr/bin/python --# -- - # - # Copyright (C) 2008 Pieter Palmers - # -diff -rupN libffado.old/support/tools/helpstrings.py libffado/support/tools/helpstrings.py ---- libffado.old/support/tools/helpstrings.py 2008-04-18 11:36:39.000000000 -0400 -+++ libffado/support/tools/helpstrings.py 2010-06-05 21:43:04.000000000 -0400 -@@ -1,6 +1,3 @@ --#!/usr/bin/python --# -- - # - # Copyright (C) 2008 Pieter Palmers - # -@@ -57,4 +54,4 @@ the user/group permissions. - - def show(self, sid): - print self.get(sid) -- -\ No newline at end of file -+ diff --git a/libffado.spec b/libffado.spec index 1e3db7c..5df4729 100644 --- a/libffado.spec +++ b/libffado.spec @@ -5,15 +5,15 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.1.0 -Release: 0.2.20101015.svn1913%{?dist} +Release: 0.3.20110426.svn1983%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) Group: System Environment/Libraries URL: http://www.ffado.org/ # The trunk is tarballed as follows: -# bash libffado-snapshot.sh 1913 -Source0: %{name}-%{version}-svn1913.tar.bz2 +# bash libffado-snapshot.sh 1983 +Source0: %{name}-%{version}-svn1983.tar.bz2 # Additional README file until we have proper manpages Source1: README.ffado # The fetch script @@ -21,12 +21,8 @@ Source9: libffado-snapshot.sh # We want the documentation for the library API only, not for the entire source: # http://subversion.ffado.org/ticket/293 Patch0: libffado-api-doc-only.patch -# Clean the redundant shebangs -# http://subversion.ffado.org/ticket/292 -Patch2: libffado-no-shebang.patch -# Make libffado compile against libconfig-1.4.5 -# http://subversion.ffado.org/ticket/290 -Patch4: libffado-libconfig145.patch +# Patch scons to receive additional LINK flags +Patch1: libffado-add-link-flags BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: alsa-lib-devel BuildRequires: dbus-c++-devel @@ -81,17 +77,23 @@ Applications and utilities for use with libffado. %prep %setup -q %patch0 -p1 -b .api.doc.only -%patch2 -p1 -%patch4 -p1 -b .libconfig145 +%patch1 -p1 cp -a %{SOURCE1} . %build +# use gold linker +ln -s /usr/bin/ld.gold ld + scons %{?_smp_mflags} \ COMPILE_FLAGS="%{optflags} -ffast-math" \ PREFIX=%{_prefix} \ LIBDIR=%{_libdir} \ - BUILD_TESTS=0 + BUILD_TESTS=0 \ + LINKFLAGS="-B%{_builddir}/%{name}-%{version}" + +# remove ld.gold symlink +rm ld %install rm -rf %{buildroot} @@ -152,6 +154,11 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{python_sitelib}/ffado/ %changelog +* Mon Apr 26 2011 Brendan Jones - 2.1.0-0.3.20110426.svn1983 +- Update to svn1983 +- Clean up redundant patches +- Patch to rebuild using gold linker. Fixes RHBZ#684392 + * Mon Feb 07 2011 Fedora Release Engineering - 2.1.0-0.2.20101015.svn1913 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild diff --git a/sources b/sources index 3fdd77c..6766682 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -ce90eab1c3e3e309f359fa324f6210ce libffado-2.1.0-svn1913.tar.bz2 +80fed375751ce6016ffee345ceec193a libffado-2.1.0-svn1983.tar.bz2 From bb57305102f6bae25e3f8c05df01624bf6b98fb7 Mon Sep 17 00:00:00 2001 From: Brendan Jones Date: Thu, 28 Apr 2011 09:40:47 +1000 Subject: [PATCH 008/113] Update to svn1983, rebuild using gold linker. Fixes #684392 --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 065a8f3..2818779 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ libffado-2.0.1-svn1864.tar.bz2 /libffado-2.1.0-svn1913.tar.bz2 +/libffado-2.1.0-svn1983.tar.bz2 From fca88cc09bfefc78afb68e8c2f041c1c353a35b2 Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Tue, 1 Nov 2011 22:42:33 -0400 Subject: [PATCH 009/113] Update to svn2000. Drop the gold linker patch. The issue is properly solved upstream. See upstream tracker #293 --- .gitignore | 1 + libffado-add-link-flags | 26 -------------------------- libffado.spec | 21 ++++++++------------- sources | 2 +- 4 files changed, 10 insertions(+), 40 deletions(-) delete mode 100644 libffado-add-link-flags diff --git a/.gitignore b/.gitignore index 2818779..d8e2a3b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ libffado-2.0.1-svn1864.tar.bz2 /libffado-2.1.0-svn1913.tar.bz2 /libffado-2.1.0-svn1983.tar.bz2 +/libffado-2.1.0-svn2000.tar.bz2 diff --git a/libffado-add-link-flags b/libffado-add-link-flags deleted file mode 100644 index 0ce8752..0000000 --- a/libffado-add-link-flags +++ /dev/null @@ -1,26 +0,0 @@ -diff -PNur libffado-2.1.0.orig/SConstruct libffado-2.1.0/SConstruct ---- libffado-2.1.0.orig/SConstruct 2011-04-21 21:32:11.000000000 +1000 -+++ libffado-2.1.0/SConstruct 2011-04-25 23:42:12.000000000 +1000 -@@ -75,7 +75,7 @@ - BoolVariable( "ENABLE_OPTIMIZATIONS", "Enable optimizations and the use of processor specific extentions (MMX/SSE/...).", False ), - BoolVariable( "PEDANTIC", "Enable -Werror and more pedantic options during compile.", False ), - ( "COMPILE_FLAGS", "Add additional flags to the environment.\nOnly meant for distributors and gentoo-users who want to over-optimize their built.\n Using this is not supported by the ffado-devs!" ), -- -+ ( "LINKFLAGS", "Add additional flags to the linker command line.","") - ) - - ## Load the builders in config -diff -PNur libffado-2.1.0.orig/src/SConscript libffado-2.1.0/src/SConscript ---- libffado-2.1.0.orig/src/SConscript 2010-09-11 07:50:58.000000000 +1000 -+++ libffado-2.1.0/src/SConscript 2011-04-26 13:01:32.000000000 +1000 -@@ -280,6 +280,10 @@ - if env['REQUIRE_LIBAVC']: - libenv.MergeFlags( env['LIBAVC1394_FLAGS'] ) - -+# Add additional linker flags -+if env['LINKFLAGS']: -+ libenv.MergeFlags( env['LINKFLAGS'] ) -+ - libname_versioned = "libffado.so.%s" % libenv['VERSION'] - libname_versioned_short = "libffado.so.%s" % libenv['VERSION'].split('.')[0] - diff --git a/libffado.spec b/libffado.spec index 5df4729..ab735b1 100644 --- a/libffado.spec +++ b/libffado.spec @@ -5,15 +5,15 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.1.0 -Release: 0.3.20110426.svn1983%{?dist} +Release: 0.4.20111030.svn2000%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) Group: System Environment/Libraries URL: http://www.ffado.org/ # The trunk is tarballed as follows: -# bash libffado-snapshot.sh 1983 -Source0: %{name}-%{version}-svn1983.tar.bz2 +# bash libffado-snapshot.sh 2000 +Source0: %{name}-%{version}-svn2000.tar.bz2 # Additional README file until we have proper manpages Source1: README.ffado # The fetch script @@ -21,8 +21,6 @@ Source9: libffado-snapshot.sh # We want the documentation for the library API only, not for the entire source: # http://subversion.ffado.org/ticket/293 Patch0: libffado-api-doc-only.patch -# Patch scons to receive additional LINK flags -Patch1: libffado-add-link-flags BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: alsa-lib-devel BuildRequires: dbus-c++-devel @@ -77,23 +75,16 @@ Applications and utilities for use with libffado. %prep %setup -q %patch0 -p1 -b .api.doc.only -%patch1 -p1 cp -a %{SOURCE1} . %build -# use gold linker -ln -s /usr/bin/ld.gold ld - scons %{?_smp_mflags} \ COMPILE_FLAGS="%{optflags} -ffast-math" \ PREFIX=%{_prefix} \ LIBDIR=%{_libdir} \ - BUILD_TESTS=0 \ - LINKFLAGS="-B%{_builddir}/%{name}-%{version}" + BUILD_TESTS=0 -# remove ld.gold symlink -rm ld %install rm -rf %{buildroot} @@ -154,6 +145,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{python_sitelib}/ffado/ %changelog +* Sun Oct 30 2011 Orcan Ogetbil - 2.1.0-0.4.20111030.svn2000 +- Update to svn2000. +- Drop the gold linker patch. The issue is properly solved upstream. See upstream tracker #293 + * Mon Apr 26 2011 Brendan Jones - 2.1.0-0.3.20110426.svn1983 - Update to svn1983 - Clean up redundant patches diff --git a/sources b/sources index 6766682..cacc7ed 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -80fed375751ce6016ffee345ceec193a libffado-2.1.0-svn1983.tar.bz2 +029234b5146bfebd9fa7cb18bef57e2d libffado-2.1.0-svn2000.tar.bz2 From a7929d2706e82d5e855db85b06ff501a8e20dc77 Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Tue, 10 Jan 2012 23:42:25 -0500 Subject: [PATCH 010/113] gcc-4.7 compile fix --- libffado-gcc47.patch | 66 ++++++++++++++++++++++++++++++++++++++++++++ libffado.spec | 15 +++++----- 2 files changed, 74 insertions(+), 7 deletions(-) create mode 100644 libffado-gcc47.patch diff --git a/libffado-gcc47.patch b/libffado-gcc47.patch new file mode 100644 index 0000000..426ff97 --- /dev/null +++ b/libffado-gcc47.patch @@ -0,0 +1,66 @@ +diff -rupN libffado-2.1.0.old/src/bebob/bebob_dl_mgr.cpp libffado-2.1.0/src/bebob/bebob_dl_mgr.cpp +--- libffado-2.1.0.old/src/bebob/bebob_dl_mgr.cpp 2009-12-19 11:12:53.000000000 -0500 ++++ libffado-2.1.0/src/bebob/bebob_dl_mgr.cpp 2012-01-10 23:30:49.727652689 -0500 +@@ -35,6 +35,7 @@ + + #include + #include ++#include + + namespace BeBoB { + enum { +diff -rupN libffado-2.1.0.old/src/ffadodevice.cpp libffado-2.1.0/src/ffadodevice.cpp +--- libffado-2.1.0.old/src/ffadodevice.cpp 2010-01-10 15:59:02.000000000 -0500 ++++ libffado-2.1.0/src/ffadodevice.cpp 2012-01-10 23:30:49.737652631 -0500 +@@ -34,6 +34,7 @@ + + #include + #include ++#include + + #include + +diff -rupN libffado-2.1.0.old/src/fireworks/fireworks_device.cpp libffado-2.1.0/src/fireworks/fireworks_device.cpp +--- libffado-2.1.0.old/src/fireworks/fireworks_device.cpp 2010-10-10 13:39:07.000000000 -0400 ++++ libffado-2.1.0/src/fireworks/fireworks_device.cpp 2012-01-10 23:30:49.747652573 -0500 +@@ -45,6 +45,7 @@ + #define FIREWORKS_MIN_FIRMWARE_VERSION 0x04080000 + + #include ++#include + using namespace std; + + // FireWorks is the platform used and developed by ECHO AUDIO +diff -rupN libffado-2.1.0.old/src/libieee1394/IsoHandlerManager.cpp libffado-2.1.0/src/libieee1394/IsoHandlerManager.cpp +--- libffado-2.1.0.old/src/libieee1394/IsoHandlerManager.cpp 2011-09-12 20:22:20.000000000 -0400 ++++ libffado-2.1.0/src/libieee1394/IsoHandlerManager.cpp 2012-01-10 23:30:49.758652510 -0500 +@@ -35,6 +35,7 @@ + #include "libutil/Configuration.h" + + #include ++#include + #include + + IMPL_DEBUG_MODULE( IsoHandlerManager, IsoHandlerManager, DEBUG_LEVEL_NORMAL ); +diff -rupN libffado-2.1.0.old/src/libutil/PosixSharedMemory.cpp libffado-2.1.0/src/libutil/PosixSharedMemory.cpp +--- libffado-2.1.0.old/src/libutil/PosixSharedMemory.cpp 2008-05-15 00:38:31.000000000 -0400 ++++ libffado-2.1.0/src/libutil/PosixSharedMemory.cpp 2012-01-10 23:30:49.767652458 -0500 +@@ -26,6 +26,7 @@ + #include + #include + #include ++#include + #include + + namespace Util { +diff -rupN libffado-2.1.0.old/support/dbus/test-dbus.cpp libffado-2.1.0/support/dbus/test-dbus.cpp +--- libffado-2.1.0.old/support/dbus/test-dbus.cpp 2008-04-26 13:30:41.000000000 -0400 ++++ libffado-2.1.0/support/dbus/test-dbus.cpp 2012-01-10 23:30:49.776652406 -0500 +@@ -24,6 +24,7 @@ + #include + #include + #include ++#include + #include + + #include "controlclient.h" diff --git a/libffado.spec b/libffado.spec index ab735b1..ee3e051 100644 --- a/libffado.spec +++ b/libffado.spec @@ -5,7 +5,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.1.0 -Release: 0.4.20111030.svn2000%{?dist} +Release: 0.5.20111030.svn2000%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -21,6 +21,9 @@ Source9: libffado-snapshot.sh # We want the documentation for the library API only, not for the entire source: # http://subversion.ffado.org/ticket/293 Patch0: libffado-api-doc-only.patch +# Fix gcc-4.7 compilation error +# http://subversion.ffado.org/ticket/344 +Patch1: libffado-gcc47.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: alsa-lib-devel BuildRequires: dbus-c++-devel @@ -75,6 +78,7 @@ Applications and utilities for use with libffado. %prep %setup -q %patch0 -p1 -b .api.doc.only +%patch1 -p1 -b .gcc47 cp -a %{SOURCE1} . @@ -87,7 +91,6 @@ scons %{?_smp_mflags} \ %install -rm -rf %{buildroot} scons DESTDIR=%{buildroot} install # We need to install the xdg stuff manually @@ -98,8 +101,6 @@ mkdir -p %{buildroot}%{_datadir}/icons/hicolor/64x64/apps ln -s ../../../../libffado/icons/hi64-apps-ffado.png \ %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/ffado.png -%clean -rm -rf %{buildroot} %post -p /sbin/ldconfig @@ -119,21 +120,18 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files -%defattr(-,root,root,-) %doc AUTHORS ChangeLog LICENSE.* README %{_libdir}/libffado.so.* %dir %{_datadir}/libffado/ %{_datadir}/libffado/configuration %files devel -%defattr(-,root,root,-) %doc doc/reference/html/ %{_includedir}/libffado/ %{_libdir}/pkgconfig/libffado.pc %{_libdir}/libffado.so %files -n ffado -%defattr(-,root,root,-) %doc README.ffado %{_bindir}/* %{_datadir}/libffado/*.xml @@ -145,6 +143,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{python_sitelib}/ffado/ %changelog +* Tue Jan 10 2012 Orcan Ogetbil - 2.1.0-0.5.20111030.svn2000 +- gcc-4.7 compile fix + * Sun Oct 30 2011 Orcan Ogetbil - 2.1.0-0.4.20111030.svn2000 - Update to svn2000. - Drop the gold linker patch. The issue is properly solved upstream. See upstream tracker #293 From d96be614194288465f685d067d431b10f0f59e1c Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Tue, 28 Feb 2012 12:56:07 -0600 Subject: [PATCH 011/113] - Rebuilt for c++ ABI breakage --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index ee3e051..3f0037a 100644 --- a/libffado.spec +++ b/libffado.spec @@ -5,7 +5,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.1.0 -Release: 0.5.20111030.svn2000%{?dist} +Release: 0.6.20111030.svn2000%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -143,6 +143,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{python_sitelib}/ffado/ %changelog +* Tue Feb 28 2012 Fedora Release Engineering - 2.1.0-0.6.20111030.svn2000 +- Rebuilt for c++ ABI breakage + * Tue Jan 10 2012 Orcan Ogetbil - 2.1.0-0.5.20111030.svn2000 - gcc-4.7 compile fix From 925a2e67535ace42c5b465f651c817fbfdaa7972 Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Thu, 22 Mar 2012 22:34:01 -0400 Subject: [PATCH 012/113] Include the ffado-test executable RHBZ#805940 - Fix .desktop file warning --- libffado-gcc47.patch | 91 ++++++++++++++++++++++++++++++++++++++++++++ libffado.spec | 15 ++++++-- 2 files changed, 103 insertions(+), 3 deletions(-) diff --git a/libffado-gcc47.patch b/libffado-gcc47.patch index 426ff97..74b6cf4 100644 --- a/libffado-gcc47.patch +++ b/libffado-gcc47.patch @@ -64,3 +64,94 @@ diff -rupN libffado-2.1.0.old/support/dbus/test-dbus.cpp libffado-2.1.0/support/ #include #include "controlclient.h" +diff -rupN libffado-2.1.0.old/tests/test-dice-eap.cpp libffado-2.1.0/tests/test-dice-eap.cpp +--- libffado-2.1.0.old/tests/test-dice-eap.cpp 2010-01-04 17:20:56.000000000 -0500 ++++ libffado-2.1.0/tests/test-dice-eap.cpp 2012-03-22 22:00:44.139732286 -0400 +@@ -45,6 +45,7 @@ using namespace Dice; + #include + #include + #include ++#include + + #include + int run; +diff -rupN libffado-2.1.0.old/tests/test-fw410.cpp libffado-2.1.0/tests/test-fw410.cpp +--- libffado-2.1.0.old/tests/test-fw410.cpp 2008-01-20 05:29:17.000000000 -0500 ++++ libffado-2.1.0/tests/test-fw410.cpp 2012-03-22 22:00:15.473867173 -0400 +@@ -27,6 +27,7 @@ + #include + #include + #include ++#include + + using namespace std; + +diff -rupN libffado-2.1.0.old/tests/test-ieee1394service.cpp libffado-2.1.0/tests/test-ieee1394service.cpp +--- libffado-2.1.0.old/tests/test-ieee1394service.cpp 2009-12-19 11:12:53.000000000 -0500 ++++ libffado-2.1.0/tests/test-ieee1394service.cpp 2012-03-22 22:03:36.150915502 -0400 +@@ -29,6 +29,7 @@ + #include + #include + #include ++#include + + #include + +diff -rupN libffado-2.1.0.old/tests/test-ipcringbuffer.cpp libffado-2.1.0/tests/test-ipcringbuffer.cpp +--- libffado-2.1.0.old/tests/test-ipcringbuffer.cpp 2008-05-15 00:38:31.000000000 -0400 ++++ libffado-2.1.0/tests/test-ipcringbuffer.cpp 2012-03-22 22:05:04.425493246 -0400 +@@ -30,6 +30,7 @@ + #include + #include + #include ++#include + + using namespace Util; + +diff -rupN libffado-2.1.0.old/tests/test-messagequeue.cpp libffado-2.1.0/tests/test-messagequeue.cpp +--- libffado-2.1.0.old/tests/test-messagequeue.cpp 2008-05-29 04:24:21.000000000 -0400 ++++ libffado-2.1.0/tests/test-messagequeue.cpp 2012-03-22 22:06:16.287149558 -0400 +@@ -30,6 +30,7 @@ + #include + #include + #include ++#include + + #include + #include +diff -rupN libffado-2.1.0.old/tests/test-scs.cpp libffado-2.1.0/tests/test-scs.cpp +--- libffado-2.1.0.old/tests/test-scs.cpp 2009-12-23 14:10:49.000000000 -0500 ++++ libffado-2.1.0/tests/test-scs.cpp 2012-03-22 22:12:26.287380774 -0400 +@@ -477,8 +477,8 @@ main(int argc, char **argv) + } + #endif + +- BridgeMapIterator it = seqport2bridgemap.find(portNumber); +- if(it == seqport2bridgemap.end()) { ++ BridgeMapIterator it2 = seqport2bridgemap.find(portNumber); ++ if(it2 == seqport2bridgemap.end()) { + seqport2bridgemap[portNumber] = bridge; + } else { + debugError("BUG: port already present in bridge map, duplicate port.\n"); +diff -rupN libffado-2.1.0.old/tests/test-shm.cpp libffado-2.1.0/tests/test-shm.cpp +--- libffado-2.1.0.old/tests/test-shm.cpp 2008-05-15 00:38:31.000000000 -0400 ++++ libffado-2.1.0/tests/test-shm.cpp 2012-03-22 22:13:47.973990443 -0400 +@@ -29,6 +29,7 @@ + #include + #include + #include ++#include + + using namespace Util; + +diff -rupN libffado-2.1.0.old/tests/test-streamdump.cpp libffado-2.1.0/tests/test-streamdump.cpp +--- libffado-2.1.0.old/tests/test-streamdump.cpp 2008-05-09 08:02:40.000000000 -0400 ++++ libffado-2.1.0/tests/test-streamdump.cpp 2012-03-22 22:14:57.222659592 -0400 +@@ -27,6 +27,7 @@ + + #include + #include ++#include + #include + + using namespace std; diff --git a/libffado.spec b/libffado.spec index 3f0037a..70036fd 100644 --- a/libffado.spec +++ b/libffado.spec @@ -5,7 +5,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.1.0 -Release: 0.6.20111030.svn2000%{?dist} +Release: 0.7.20111030.svn2000%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -24,7 +24,6 @@ Patch0: libffado-api-doc-only.patch # Fix gcc-4.7 compilation error # http://subversion.ffado.org/ticket/344 Patch1: libffado-gcc47.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: alsa-lib-devel BuildRequires: dbus-c++-devel BuildRequires: dbus-devel @@ -82,12 +81,15 @@ Applications and utilities for use with libffado. cp -a %{SOURCE1} . +# We don't want to install all tests +sed -i '/Install/d' tests/{,*/}SConscript + %build scons %{?_smp_mflags} \ COMPILE_FLAGS="%{optflags} -ffast-math" \ PREFIX=%{_prefix} \ LIBDIR=%{_libdir} \ - BUILD_TESTS=0 + BUILD_TESTS=1 %install @@ -96,11 +98,14 @@ scons DESTDIR=%{buildroot} install # We need to install the xdg stuff manually mkdir -p %{buildroot}%{_datadir}/applications desktop-file-install --dir %{buildroot}%{_datadir}/applications \ + --add-category="Settings" \ support/xdg/ffado.org-ffadomixer.desktop mkdir -p %{buildroot}%{_datadir}/icons/hicolor/64x64/apps ln -s ../../../../libffado/icons/hi64-apps-ffado.png \ %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/ffado.png +# Install ffado-test RHBZ#805940 +install -m 755 tests/ffado-test %{buildroot}%{_bindir} %post -p /sbin/ldconfig @@ -143,6 +148,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{python_sitelib}/ffado/ %changelog +* Thu Mar 22 2012 Orcan Ogetbil - 2.1.0-0.7.20111030.svn2000 +- Include the ffado-test executable RHBZ#805940 +- Fix .desktop file warning + * Tue Feb 28 2012 Fedora Release Engineering - 2.1.0-0.6.20111030.svn2000 - Rebuilt for c++ ABI breakage From 75bf0fc6bc31bbff7551355dc773f8647bb69c01 Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Sun, 25 Mar 2012 14:08:11 -0400 Subject: [PATCH 013/113] Update to svn2088. - Drop upstreamed gcc-4.7 patch. --- libffado-gcc47.patch | 157 ------------------------------------------- libffado-snapshot.sh | 1 + libffado.spec | 14 ++-- 3 files changed, 8 insertions(+), 164 deletions(-) delete mode 100644 libffado-gcc47.patch diff --git a/libffado-gcc47.patch b/libffado-gcc47.patch deleted file mode 100644 index 74b6cf4..0000000 --- a/libffado-gcc47.patch +++ /dev/null @@ -1,157 +0,0 @@ -diff -rupN libffado-2.1.0.old/src/bebob/bebob_dl_mgr.cpp libffado-2.1.0/src/bebob/bebob_dl_mgr.cpp ---- libffado-2.1.0.old/src/bebob/bebob_dl_mgr.cpp 2009-12-19 11:12:53.000000000 -0500 -+++ libffado-2.1.0/src/bebob/bebob_dl_mgr.cpp 2012-01-10 23:30:49.727652689 -0500 -@@ -35,6 +35,7 @@ - - #include - #include -+#include - - namespace BeBoB { - enum { -diff -rupN libffado-2.1.0.old/src/ffadodevice.cpp libffado-2.1.0/src/ffadodevice.cpp ---- libffado-2.1.0.old/src/ffadodevice.cpp 2010-01-10 15:59:02.000000000 -0500 -+++ libffado-2.1.0/src/ffadodevice.cpp 2012-01-10 23:30:49.737652631 -0500 -@@ -34,6 +34,7 @@ - - #include - #include -+#include - - #include - -diff -rupN libffado-2.1.0.old/src/fireworks/fireworks_device.cpp libffado-2.1.0/src/fireworks/fireworks_device.cpp ---- libffado-2.1.0.old/src/fireworks/fireworks_device.cpp 2010-10-10 13:39:07.000000000 -0400 -+++ libffado-2.1.0/src/fireworks/fireworks_device.cpp 2012-01-10 23:30:49.747652573 -0500 -@@ -45,6 +45,7 @@ - #define FIREWORKS_MIN_FIRMWARE_VERSION 0x04080000 - - #include -+#include - using namespace std; - - // FireWorks is the platform used and developed by ECHO AUDIO -diff -rupN libffado-2.1.0.old/src/libieee1394/IsoHandlerManager.cpp libffado-2.1.0/src/libieee1394/IsoHandlerManager.cpp ---- libffado-2.1.0.old/src/libieee1394/IsoHandlerManager.cpp 2011-09-12 20:22:20.000000000 -0400 -+++ libffado-2.1.0/src/libieee1394/IsoHandlerManager.cpp 2012-01-10 23:30:49.758652510 -0500 -@@ -35,6 +35,7 @@ - #include "libutil/Configuration.h" - - #include -+#include - #include - - IMPL_DEBUG_MODULE( IsoHandlerManager, IsoHandlerManager, DEBUG_LEVEL_NORMAL ); -diff -rupN libffado-2.1.0.old/src/libutil/PosixSharedMemory.cpp libffado-2.1.0/src/libutil/PosixSharedMemory.cpp ---- libffado-2.1.0.old/src/libutil/PosixSharedMemory.cpp 2008-05-15 00:38:31.000000000 -0400 -+++ libffado-2.1.0/src/libutil/PosixSharedMemory.cpp 2012-01-10 23:30:49.767652458 -0500 -@@ -26,6 +26,7 @@ - #include - #include - #include -+#include - #include - - namespace Util { -diff -rupN libffado-2.1.0.old/support/dbus/test-dbus.cpp libffado-2.1.0/support/dbus/test-dbus.cpp ---- libffado-2.1.0.old/support/dbus/test-dbus.cpp 2008-04-26 13:30:41.000000000 -0400 -+++ libffado-2.1.0/support/dbus/test-dbus.cpp 2012-01-10 23:30:49.776652406 -0500 -@@ -24,6 +24,7 @@ - #include - #include - #include -+#include - #include - - #include "controlclient.h" -diff -rupN libffado-2.1.0.old/tests/test-dice-eap.cpp libffado-2.1.0/tests/test-dice-eap.cpp ---- libffado-2.1.0.old/tests/test-dice-eap.cpp 2010-01-04 17:20:56.000000000 -0500 -+++ libffado-2.1.0/tests/test-dice-eap.cpp 2012-03-22 22:00:44.139732286 -0400 -@@ -45,6 +45,7 @@ using namespace Dice; - #include - #include - #include -+#include - - #include - int run; -diff -rupN libffado-2.1.0.old/tests/test-fw410.cpp libffado-2.1.0/tests/test-fw410.cpp ---- libffado-2.1.0.old/tests/test-fw410.cpp 2008-01-20 05:29:17.000000000 -0500 -+++ libffado-2.1.0/tests/test-fw410.cpp 2012-03-22 22:00:15.473867173 -0400 -@@ -27,6 +27,7 @@ - #include - #include - #include -+#include - - using namespace std; - -diff -rupN libffado-2.1.0.old/tests/test-ieee1394service.cpp libffado-2.1.0/tests/test-ieee1394service.cpp ---- libffado-2.1.0.old/tests/test-ieee1394service.cpp 2009-12-19 11:12:53.000000000 -0500 -+++ libffado-2.1.0/tests/test-ieee1394service.cpp 2012-03-22 22:03:36.150915502 -0400 -@@ -29,6 +29,7 @@ - #include - #include - #include -+#include - - #include - -diff -rupN libffado-2.1.0.old/tests/test-ipcringbuffer.cpp libffado-2.1.0/tests/test-ipcringbuffer.cpp ---- libffado-2.1.0.old/tests/test-ipcringbuffer.cpp 2008-05-15 00:38:31.000000000 -0400 -+++ libffado-2.1.0/tests/test-ipcringbuffer.cpp 2012-03-22 22:05:04.425493246 -0400 -@@ -30,6 +30,7 @@ - #include - #include - #include -+#include - - using namespace Util; - -diff -rupN libffado-2.1.0.old/tests/test-messagequeue.cpp libffado-2.1.0/tests/test-messagequeue.cpp ---- libffado-2.1.0.old/tests/test-messagequeue.cpp 2008-05-29 04:24:21.000000000 -0400 -+++ libffado-2.1.0/tests/test-messagequeue.cpp 2012-03-22 22:06:16.287149558 -0400 -@@ -30,6 +30,7 @@ - #include - #include - #include -+#include - - #include - #include -diff -rupN libffado-2.1.0.old/tests/test-scs.cpp libffado-2.1.0/tests/test-scs.cpp ---- libffado-2.1.0.old/tests/test-scs.cpp 2009-12-23 14:10:49.000000000 -0500 -+++ libffado-2.1.0/tests/test-scs.cpp 2012-03-22 22:12:26.287380774 -0400 -@@ -477,8 +477,8 @@ main(int argc, char **argv) - } - #endif - -- BridgeMapIterator it = seqport2bridgemap.find(portNumber); -- if(it == seqport2bridgemap.end()) { -+ BridgeMapIterator it2 = seqport2bridgemap.find(portNumber); -+ if(it2 == seqport2bridgemap.end()) { - seqport2bridgemap[portNumber] = bridge; - } else { - debugError("BUG: port already present in bridge map, duplicate port.\n"); -diff -rupN libffado-2.1.0.old/tests/test-shm.cpp libffado-2.1.0/tests/test-shm.cpp ---- libffado-2.1.0.old/tests/test-shm.cpp 2008-05-15 00:38:31.000000000 -0400 -+++ libffado-2.1.0/tests/test-shm.cpp 2012-03-22 22:13:47.973990443 -0400 -@@ -29,6 +29,7 @@ - #include - #include - #include -+#include - - using namespace Util; - -diff -rupN libffado-2.1.0.old/tests/test-streamdump.cpp libffado-2.1.0/tests/test-streamdump.cpp ---- libffado-2.1.0.old/tests/test-streamdump.cpp 2008-05-09 08:02:40.000000000 -0400 -+++ libffado-2.1.0/tests/test-streamdump.cpp 2012-03-22 22:14:57.222659592 -0400 -@@ -27,6 +27,7 @@ - - #include - #include -+#include - #include - - using namespace std; diff --git a/libffado-snapshot.sh b/libffado-snapshot.sh index 4152235..0c3b37f 100644 --- a/libffado-snapshot.sh +++ b/libffado-snapshot.sh @@ -15,6 +15,7 @@ cleanup() { } unset CDPATH +unset GREP_OPTIONS pwd=$(pwd) name=libffado version=2.1.0 diff --git a/libffado.spec b/libffado.spec index 70036fd..3b1de9d 100644 --- a/libffado.spec +++ b/libffado.spec @@ -5,15 +5,15 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.1.0 -Release: 0.7.20111030.svn2000%{?dist} +Release: 0.8.20120325.svn2088%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) Group: System Environment/Libraries URL: http://www.ffado.org/ # The trunk is tarballed as follows: -# bash libffado-snapshot.sh 2000 -Source0: %{name}-%{version}-svn2000.tar.bz2 +# bash libffado-snapshot.sh 2088 +Source0: %{name}-%{version}-svn2088.tar.bz2 # Additional README file until we have proper manpages Source1: README.ffado # The fetch script @@ -21,9 +21,6 @@ Source9: libffado-snapshot.sh # We want the documentation for the library API only, not for the entire source: # http://subversion.ffado.org/ticket/293 Patch0: libffado-api-doc-only.patch -# Fix gcc-4.7 compilation error -# http://subversion.ffado.org/ticket/344 -Patch1: libffado-gcc47.patch BuildRequires: alsa-lib-devel BuildRequires: dbus-c++-devel BuildRequires: dbus-devel @@ -77,7 +74,6 @@ Applications and utilities for use with libffado. %prep %setup -q %patch0 -p1 -b .api.doc.only -%patch1 -p1 -b .gcc47 cp -a %{SOURCE1} . @@ -148,6 +144,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{python_sitelib}/ffado/ %changelog +* Sun Mar 25 2012 Orcan Ogetbil - 2.1.0-0.8.20120325.svn2088 +- Update to svn2088. +- Drop upstreamed gcc-4.7 patch. + * Thu Mar 22 2012 Orcan Ogetbil - 2.1.0-0.7.20111030.svn2000 - Include the ffado-test executable RHBZ#805940 - Fix .desktop file warning From b18a1e43a6ad21fcd5b09d228976985850f6afb4 Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Sun, 25 Mar 2012 14:09:22 -0400 Subject: [PATCH 014/113] new tarball --- .gitignore | 1 + sources | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index d8e2a3b..54cee6c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ libffado-2.0.1-svn1864.tar.bz2 /libffado-2.1.0-svn1913.tar.bz2 /libffado-2.1.0-svn1983.tar.bz2 /libffado-2.1.0-svn2000.tar.bz2 +/libffado-2.1.0-svn2088.tar.bz2 diff --git a/sources b/sources index cacc7ed..457cd61 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -029234b5146bfebd9fa7cb18bef57e2d libffado-2.1.0-svn2000.tar.bz2 +cf22e49f7b4fc4dfa2da0e65fee010dd libffado-2.1.0-svn2088.tar.bz2 From 423a2685b24c2dfb9a819d6f5ee079b527dd65a5 Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Tue, 12 Jun 2012 21:30:35 -0400 Subject: [PATCH 015/113] Fix multilib confict RHBZ#831405 - Fix DSO linking #ticket 355 --- libffado-dso-linking.patch | 12 ++++++++++++ libffado-no_date_footer.patch | 22 ++++++++++++++++++++++ libffado.spec | 17 ++++++++++++++--- 3 files changed, 48 insertions(+), 3 deletions(-) create mode 100644 libffado-dso-linking.patch create mode 100644 libffado-no_date_footer.patch diff --git a/libffado-dso-linking.patch b/libffado-dso-linking.patch new file mode 100644 index 0000000..26574eb --- /dev/null +++ b/libffado-dso-linking.patch @@ -0,0 +1,12 @@ +diff -rupN libffado-2.1.0.old/support/dbus/SConscript libffado-2.1.0/support/dbus/SConscript +--- libffado-2.1.0.old/support/dbus/SConscript 2011-02-02 17:51:32.000000000 -0500 ++++ libffado-2.1.0/support/dbus/SConscript 2012-06-12 20:53:36.173805796 -0400 +@@ -34,7 +34,7 @@ env = env.Clone() + + env.AppendUnique( CPPPATH=["#/", "#/src"] ) + env.PrependUnique( LIBPATH=[env['build_base']+"src"] ) +-env.PrependUnique( LIBS=["ffado"] ) ++env.PrependUnique( LIBS=["ffado", "pthread"] ) + + if not env.GetOption( "clean" ): + env.MergeFlags( env["DBUS1_FLAGS"] ) diff --git a/libffado-no_date_footer.patch b/libffado-no_date_footer.patch new file mode 100644 index 0000000..bb2938d --- /dev/null +++ b/libffado-no_date_footer.patch @@ -0,0 +1,22 @@ +diff -rupN libffado-2.1.0.old/doc/no_date_footer.html libffado-2.1.0/doc/no_date_footer.html +--- libffado-2.1.0.old/doc/no_date_footer.html 1969-12-31 19:00:00.000000000 -0500 ++++ libffado-2.1.0/doc/no_date_footer.html 2012-06-12 20:02:34.047382587 -0400 +@@ -0,0 +1,6 @@ ++
++Generated for $projectname by doxygen ++$doxygenversion
++ ++ +diff -rupN libffado-2.1.0.old/doc/reference.doxygen.in libffado-2.1.0/doc/reference.doxygen.in +--- libffado-2.1.0.old/doc/reference.doxygen.in 2009-12-18 13:52:13.000000000 -0500 ++++ libffado-2.1.0/doc/reference.doxygen.in 2012-06-12 20:01:46.355591137 -0400 +@@ -790,7 +790,7 @@ HTML_HEADER = + # each generated HTML page. If it is left blank doxygen will generate a + # standard footer. + +-HTML_FOOTER = ++HTML_FOOTER = no_date_footer.html + + # The HTML_STYLESHEET tag can be used to specify a user-defined cascading + # style sheet that is used by each HTML page. It can be used to diff --git a/libffado.spec b/libffado.spec index 3b1de9d..5d212dd 100644 --- a/libffado.spec +++ b/libffado.spec @@ -5,7 +5,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.1.0 -Release: 0.8.20120325.svn2088%{?dist} +Release: 0.9.20120325.svn2088%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -21,6 +21,11 @@ Source9: libffado-snapshot.sh # We want the documentation for the library API only, not for the entire source: # http://subversion.ffado.org/ticket/293 Patch0: libffado-api-doc-only.patch +# Remove dates from doc footers to prevent multilib conflict PHBZ#831405 +Patch1: libffado-no_date_footer.patch +# Fix DSO linking +# http://subversion.ffado.org/ticket/355 +Patch2: libffado-dso-linking.patch BuildRequires: alsa-lib-devel BuildRequires: dbus-c++-devel BuildRequires: dbus-devel @@ -49,7 +54,7 @@ successor of the FreeBoB project. Summary: Free firewire audio driver library development headers Group: Development/Libraries License: GPLv2 or GPLv3 -Requires: %{name} = %{version}-%{release} +Requires: %{name}%{?_isa} = %{version}-%{release} Requires: pkgconfig %description devel @@ -62,7 +67,7 @@ Group: Applications/Multimedia # Some files in support/mixer-qt4/ffado are GPLv3+ # The rest is GPLv2 or GPLv3 License: GPLv3 and GPLv3+ and (GPLv2 or GPLv3) -Requires: %{name} = %{version}-%{release} +Requires: %{name}%{?_isa} = %{version}-%{release} Requires: dbus Requires: dbus-python Requires: PyQt4 @@ -74,6 +79,8 @@ Applications and utilities for use with libffado. %prep %setup -q %patch0 -p1 -b .api.doc.only +%patch1 -p1 -b .no.date +%patch2 -p1 -b .dso.linking cp -a %{SOURCE1} . @@ -144,6 +151,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{python_sitelib}/ffado/ %changelog +* Tue Jun 12 2012 Orcan Ogetbil - 2.1.0-0.9.20120325.svn2088 +- Fix multilib confict RHBZ#831405 +- Fix DSO linking #ticket 355 + * Sun Mar 25 2012 Orcan Ogetbil - 2.1.0-0.8.20120325.svn2088 - Update to svn2088. - Drop upstreamed gcc-4.7 patch. From 30b2de48ce09451af683e4a51a47f5effe5c3aa8 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Thu, 19 Jul 2012 14:44:23 -0500 Subject: [PATCH 016/113] - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index 5d212dd..ca64eb3 100644 --- a/libffado.spec +++ b/libffado.spec @@ -5,7 +5,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.1.0 -Release: 0.9.20120325.svn2088%{?dist} +Release: 0.10.20120325.svn2088%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -151,6 +151,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{python_sitelib}/ffado/ %changelog +* Thu Jul 19 2012 Fedora Release Engineering - 2.1.0-0.10.20120325.svn2088 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + * Tue Jun 12 2012 Orcan Ogetbil - 2.1.0-0.9.20120325.svn2088 - Fix multilib confict RHBZ#831405 - Fix DSO linking #ticket 355 From 1c84d6d40d2e16c39d4c67d6863275ff22eb0455 Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Thu, 20 Sep 2012 23:57:00 -0400 Subject: [PATCH 017/113] Update to 2.1.0. - Drop upstreamed & old patches, README.Fedora file. --- .gitignore | 1 + README.ffado | 8 -------- libffado-dso-linking.patch | 12 ------------ libffado-no_date_footer.patch | 22 ---------------------- libffado.spec | 33 ++++++++++++--------------------- sources | 2 +- 6 files changed, 14 insertions(+), 64 deletions(-) delete mode 100644 README.ffado delete mode 100644 libffado-dso-linking.patch delete mode 100644 libffado-no_date_footer.patch diff --git a/.gitignore b/.gitignore index 54cee6c..d9af863 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ libffado-2.0.1-svn1864.tar.bz2 /libffado-2.1.0-svn1983.tar.bz2 /libffado-2.1.0-svn2000.tar.bz2 /libffado-2.1.0-svn2088.tar.bz2 +/libffado-2.1.0.tgz diff --git a/README.ffado b/README.ffado deleted file mode 100644 index 109f54d..0000000 --- a/README.ffado +++ /dev/null @@ -1,8 +0,0 @@ -ffado-bridgeco-downloader -- Firmware downloader application for BridgeCo devices -ffado-diag -- FFADO diagnostic utility -ffado-dbus-server -- Expose the mixer features of connected FFADO devices through DBus -ffado-fireworks-downloader -- Firmware downloader application for ECHO Fireworks devices -ffado-mixer -- Qt based FFADO device mixer - -FFADO is work in progress, hence there are no useful manpages. -Please refer to http://www.ffado.org/ for more information. diff --git a/libffado-dso-linking.patch b/libffado-dso-linking.patch deleted file mode 100644 index 26574eb..0000000 --- a/libffado-dso-linking.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -rupN libffado-2.1.0.old/support/dbus/SConscript libffado-2.1.0/support/dbus/SConscript ---- libffado-2.1.0.old/support/dbus/SConscript 2011-02-02 17:51:32.000000000 -0500 -+++ libffado-2.1.0/support/dbus/SConscript 2012-06-12 20:53:36.173805796 -0400 -@@ -34,7 +34,7 @@ env = env.Clone() - - env.AppendUnique( CPPPATH=["#/", "#/src"] ) - env.PrependUnique( LIBPATH=[env['build_base']+"src"] ) --env.PrependUnique( LIBS=["ffado"] ) -+env.PrependUnique( LIBS=["ffado", "pthread"] ) - - if not env.GetOption( "clean" ): - env.MergeFlags( env["DBUS1_FLAGS"] ) diff --git a/libffado-no_date_footer.patch b/libffado-no_date_footer.patch deleted file mode 100644 index bb2938d..0000000 --- a/libffado-no_date_footer.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff -rupN libffado-2.1.0.old/doc/no_date_footer.html libffado-2.1.0/doc/no_date_footer.html ---- libffado-2.1.0.old/doc/no_date_footer.html 1969-12-31 19:00:00.000000000 -0500 -+++ libffado-2.1.0/doc/no_date_footer.html 2012-06-12 20:02:34.047382587 -0400 -@@ -0,0 +1,6 @@ -+
-+Generated for $projectname by doxygen -+$doxygenversion
-+ -+ -diff -rupN libffado-2.1.0.old/doc/reference.doxygen.in libffado-2.1.0/doc/reference.doxygen.in ---- libffado-2.1.0.old/doc/reference.doxygen.in 2009-12-18 13:52:13.000000000 -0500 -+++ libffado-2.1.0/doc/reference.doxygen.in 2012-06-12 20:01:46.355591137 -0400 -@@ -790,7 +790,7 @@ HTML_HEADER = - # each generated HTML page. If it is left blank doxygen will generate a - # standard footer. - --HTML_FOOTER = -+HTML_FOOTER = no_date_footer.html - - # The HTML_STYLESHEET tag can be used to specify a user-defined cascading - # style sheet that is used by each HTML page. It can be used to diff --git a/libffado.spec b/libffado.spec index ca64eb3..76dd930 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,31 +1,20 @@ -%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} -%endif - Summary: Free firewire audio driver library Name: libffado Version: 2.1.0 -Release: 0.10.20120325.svn2088%{?dist} +Release: 1%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) Group: System Environment/Libraries URL: http://www.ffado.org/ +Source0: http://www.ffado.org/files/%{name}-%{version}.tgz # The trunk is tarballed as follows: # bash libffado-snapshot.sh 2088 -Source0: %{name}-%{version}-svn2088.tar.bz2 -# Additional README file until we have proper manpages -Source1: README.ffado # The fetch script Source9: libffado-snapshot.sh # We want the documentation for the library API only, not for the entire source: # http://subversion.ffado.org/ticket/293 Patch0: libffado-api-doc-only.patch -# Remove dates from doc footers to prevent multilib conflict PHBZ#831405 -Patch1: libffado-no_date_footer.patch -# Fix DSO linking -# http://subversion.ffado.org/ticket/355 -Patch2: libffado-dso-linking.patch BuildRequires: alsa-lib-devel BuildRequires: dbus-c++-devel BuildRequires: dbus-devel @@ -44,6 +33,7 @@ BuildRequires: python2-devel BuildRequires: scons BuildRequires: subversion ExcludeArch: s390 s390x +Requires: udev %description The FFADO project aims to provide a generic, open-source solution for the @@ -55,7 +45,6 @@ Summary: Free firewire audio driver library development headers Group: Development/Libraries License: GPLv2 or GPLv3 Requires: %{name}%{?_isa} = %{version}-%{release} -Requires: pkgconfig %description devel Development files needed to build applications against libffado. @@ -79,10 +68,6 @@ Applications and utilities for use with libffado. %prep %setup -q %patch0 -p1 -b .api.doc.only -%patch1 -p1 -b .no.date -%patch2 -p1 -b .dso.linking - -cp -a %{SOURCE1} . # We don't want to install all tests sed -i '/Install/d' tests/{,*/}SConscript @@ -92,9 +77,10 @@ scons %{?_smp_mflags} \ COMPILE_FLAGS="%{optflags} -ffast-math" \ PREFIX=%{_prefix} \ LIBDIR=%{_libdir} \ + MANDIR=%{_mandir} \ + UDEVDIR=%{_prefix}/lib/udev/rules.d/ \ BUILD_TESTS=1 - %install scons DESTDIR=%{buildroot} install @@ -126,12 +112,12 @@ fi %posttrans -n ffado gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : - %files %doc AUTHORS ChangeLog LICENSE.* README %{_libdir}/libffado.so.* %dir %{_datadir}/libffado/ %{_datadir}/libffado/configuration +%{_prefix}/lib/udev/rules.d/* %files devel %doc doc/reference/html/ @@ -140,7 +126,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{_libdir}/libffado.so %files -n ffado -%doc README.ffado +%{_mandir}/man1/ffado-*.1* %{_bindir}/* %{_datadir}/libffado/*.xml %{_datadir}/libffado/python/ @@ -150,7 +136,12 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{_datadir}/icons/hicolor/64x64/apps/ffado.png %{python_sitelib}/ffado/ + %changelog +* Thu Sep 20 2012 Orcan Ogetbil - 2.1.0-1 +- Update to 2.1.0. +- Drop upstreamed & old patches, README.Fedora file. + * Thu Jul 19 2012 Fedora Release Engineering - 2.1.0-0.10.20120325.svn2088 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild diff --git a/sources b/sources index 457cd61..2dadc7c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -cf22e49f7b4fc4dfa2da0e65fee010dd libffado-2.1.0-svn2088.tar.bz2 +26bce2be0b9c1fa4e614f2f494edf388 libffado-2.1.0.tgz From c94ff1f516378303394a12139d8de73983a45702 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 13 Feb 2013 22:19:23 -0600 Subject: [PATCH 018/113] - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index 76dd930..b3576d7 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.1.0 -Release: 1%{?dist} +Release: 2%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -138,6 +138,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Thu Feb 14 2013 Fedora Release Engineering - 2.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + * Thu Sep 20 2012 Orcan Ogetbil - 2.1.0-1 - Update to 2.1.0. - Drop upstreamed & old patches, README.Fedora file. From fafbd52cb60360ed74395fa88aa2e77bf9374cbf Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sat, 3 Aug 2013 00:24:23 -0500 Subject: [PATCH 019/113] - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index b3576d7..6c5ce70 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.1.0 -Release: 2%{?dist} +Release: 3%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -138,6 +138,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Sat Aug 03 2013 Fedora Release Engineering - 2.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + * Thu Feb 14 2013 Fedora Release Engineering - 2.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild From f3af56ed96a0f79a11309918517a681ee4d4089d Mon Sep 17 00:00:00 2001 From: Brendan Jones Date: Mon, 30 Sep 2013 04:05:17 +0200 Subject: [PATCH 020/113] Comments on separate lines in udev rules --- libffado-2.1.0-udev-rules.patch | 84 +++++++++++++++++++++++++++++++++ libffado.spec | 4 +- 2 files changed, 87 insertions(+), 1 deletion(-) create mode 100644 libffado-2.1.0-udev-rules.patch diff --git a/libffado-2.1.0-udev-rules.patch b/libffado-2.1.0-udev-rules.patch new file mode 100644 index 0000000..8e37c16 --- /dev/null +++ b/libffado-2.1.0-udev-rules.patch @@ -0,0 +1,84 @@ +--- libffado/60-ffado.rules ++++ libffado/60-ffado.rules +@@ -1,35 +1,58 @@ + SUBSYSTEM!="firewire", GOTO="ffado_end" + +-ATTR{vendor}=="0x000166", GROUP="audio", ENV{ID_FFADO}="1" # TC GROUP A/S +-ATTR{vendor}=="0x0001f2", GROUP="audio", ENV{ID_FFADO}="1" # Mark of the Unicorn, Inc. (aka MOTU) +-ATTR{vendor}=="0x0003db", GROUP="audio", ENV{ID_FFADO}="1" # Apogee Electronics Corp. +-ATTR{vendor}=="0x000595", GROUP="audio", ENV{ID_FFADO}="1" # Alesis Corporation +-ATTR{vendor}=="0x0007f5", GROUP="audio", ENV{ID_FFADO}="1" # Bridgeco Co AG +-ATTR{vendor}=="0x000a92", GROUP="audio", ENV{ID_FFADO}="1" # Presonus Corporation +-ATTR{vendor}=="0x000aac", GROUP="audio", ENV{ID_FFADO}="1" # TerraTec Electronic GmbH +-ATTR{vendor}=="0x000d6c", GROUP="audio", ENV{ID_FFADO}="1" # M-Audio +-ATTR{vendor}=="0x000f1b", GROUP="audio", ENV{ID_FFADO}="1" # Ego Systems Inc. +-ATTR{vendor}=="0x000ff2", GROUP="audio", ENV{ID_FFADO}="1" # Loud Technologies Inc. +-ATTR{vendor}=="0x001260", GROUP="audio", ENV{ID_FFADO}="1" # Stanton Magnetics,inc. +-ATTR{vendor}=="0x00130e", GROUP="audio", ENV{ID_FFADO}="1" # Focusrite Audio Engineering Limited +-ATTR{vendor}=="0x001486", GROUP="audio", ENV{ID_FFADO}="1" # Echo Digital Audio Corporation +-ATTR{vendor}=="0x001496", GROUP="audio", ENV{ID_FFADO}="1" # Phonic Corporation +-ATTR{vendor}=="0x001564", GROUP="audio", ENV{ID_FFADO}="1" # BEHRINGER Spezielle Studiotechnik GmbH +-ATTR{vendor}=="0x001c2d", GROUP="audio", ENV{ID_FFADO}="1" # FlexRadio Systems +-ATTR{vendor}=="0x001c6a", GROUP="audio", ENV{ID_FFADO}="1" # Weiss Engineering Ltd. +-ATTR{vendor}=="0x0040ab", GROUP="audio", ENV{ID_FFADO}="1" # ROLAND DG CORPORATION +-ATTR{vendor}=="0x000f64", GROUP="audio", ENV{ID_FFADO}="1" # DnR ++# TC GROUP A/S ++ATTR{vendor}=="0x000166", GROUP="audio", ENV{ID_FFADO}="1" ++# Mark of the Unicorn, Inc. (aka MOTU) ++ATTR{vendor}=="0x0001f2", GROUP="audio", ENV{ID_FFADO}="1" ++# Apogee Electronics Corp. ++ATTR{vendor}=="0x0003db", GROUP="audio", ENV{ID_FFADO}="1" ++# Alesis Corporation ++ATTR{vendor}=="0x000595", GROUP="audio", ENV{ID_FFADO}="1" ++# Bridgeco Co AG ++ATTR{vendor}=="0x0007f5", GROUP="audio", ENV{ID_FFADO}="1" ++# Presonus Corporation ++ATTR{vendor}=="0x000a92", GROUP="audio", ENV{ID_FFADO}="1" ++# TerraTec Electronic GmbH ++ATTR{vendor}=="0x000aac", GROUP="audio", ENV{ID_FFADO}="1" ++# M-Audio ++ATTR{vendor}=="0x000d6c", GROUP="audio", ENV{ID_FFADO}="1" ++# Ego Systems Inc. ++ATTR{vendor}=="0x000f1b", GROUP="audio", ENV{ID_FFADO}="1" ++# Loud Technologies Inc. ++ATTR{vendor}=="0x000ff2", GROUP="audio", ENV{ID_FFADO}="1" ++# Stanton Magnetics,inc. ++ATTR{vendor}=="0x001260", GROUP="audio", ENV{ID_FFADO}="1" ++# Focusrite Audio Engineering Limited ++ATTR{vendor}=="0x00130e", GROUP="audio", ENV{ID_FFADO}="1" ++# Echo Digital Audio Corporation ++ATTR{vendor}=="0x001486", GROUP="audio", ENV{ID_FFADO}="1" ++# Phonic Corporation ++ATTR{vendor}=="0x001496", GROUP="audio", ENV{ID_FFADO}="1" ++# BEHRINGER Spezielle Studiotechnik GmbH ++ATTR{vendor}=="0x001564", GROUP="audio", ENV{ID_FFADO}="1" ++# FlexRadio Systems ++ATTR{vendor}=="0x001c2d", GROUP="audio", ENV{ID_FFADO}="1" ++# Weiss Engineering Ltd. ++ATTR{vendor}=="0x001c6a", GROUP="audio", ENV{ID_FFADO}="1" ++# ROLAND DG CORPORATION ++ATTR{vendor}=="0x0040ab", GROUP="audio", ENV{ID_FFADO}="1" ++# DnR ++ATTR{vendor}=="0x000f64", GROUP="audio", ENV{ID_FFADO}="1" + + # The devices below are by vendors who make other firewire devices in + # addition to their audio interfaces. They need more specific rules to + # ensure only audio interfaces are covered here. + +-ATTR{vendor}=="0x00022e", ATTR{model}=="0x010067", GROUP="audio", ENV{ID_FFADO}="1" # Tascam, a subsiduary of TEAC (the OUI is TEAC's) ++# Tascam, a subsiduary of TEAC (the OUI is TEAC's) ++ATTR{vendor}=="0x00022e", ATTR{model}=="0x010067", GROUP="audio", ENV{ID_FFADO}="1" + + # The devices below abuse another Vendor's ID, and therefore we need more advanced rules for those. + +-ATTR{vendor}=="0x00000a", ATTR{model}=="0x030000", ATTR{units}=="*0x00a02d:0x010001*", GROUP="audio", ENV{ID_FFADO}="1" # CME, Matrix K FW +-ATTR{vendor}=="0x00000f", ATTR{model}=="0x01006?", ATTR{units}=="*0x00a02d:0x010001*", GROUP="audio", ENV{ID_FFADO}="1" # Mackie, Onyx Firewire +-ATTR{vendor}=="0x000a35", ATTR{units}=="0x000a35:0x00000[12]", GROUP="audio", ENV{ID_FFADO}="1" # RME ++# CME, Matrix K FW ++ATTR{vendor}=="0x00000a", ATTR{model}=="0x030000", ATTR{units}=="*0x00a02d:0x010001*", GROUP="audio", ENV{ID_FFADO}="1" ++# Mackie, Onyx Firewire ++ATTR{vendor}=="0x00000f", ATTR{model}=="0x01006?", ATTR{units}=="*0x00a02d:0x010001*", GROUP="audio", ENV{ID_FFADO}="1" ++# RME ++ATTR{vendor}=="0x000a35", ATTR{units}=="0x000a35:0x00000[12]", GROUP="audio", ENV{ID_FFADO}="1" + + LABEL="ffado_end" diff --git a/libffado.spec b/libffado.spec index 6c5ce70..23fa906 100644 --- a/libffado.spec +++ b/libffado.spec @@ -15,6 +15,7 @@ Source9: libffado-snapshot.sh # We want the documentation for the library API only, not for the entire source: # http://subversion.ffado.org/ticket/293 Patch0: libffado-api-doc-only.patch +Patch1: libffado-2.1.0-udev-rules.patch BuildRequires: alsa-lib-devel BuildRequires: dbus-c++-devel BuildRequires: dbus-devel @@ -68,6 +69,7 @@ Applications and utilities for use with libffado. %prep %setup -q %patch0 -p1 -b .api.doc.only +%patch1 -p0 -b .udev.rules # We don't want to install all tests sed -i '/Install/d' tests/{,*/}SConscript @@ -173,7 +175,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : - Update to svn2000. - Drop the gold linker patch. The issue is properly solved upstream. See upstream tracker #293 -* Mon Apr 26 2011 Brendan Jones - 2.1.0-0.3.20110426.svn1983 +* Tue Apr 26 2011 Brendan Jones - 2.1.0-0.3.20110426.svn1983 - Update to svn1983 - Clean up redundant patches - Patch to rebuild using gold linker. Fixes RHBZ#684392 From c60882b04f1c12c340c16d7bee21c7f0f7413b71 Mon Sep 17 00:00:00 2001 From: Brendan Jones Date: Mon, 30 Sep 2013 06:08:42 +0200 Subject: [PATCH 021/113] Correct changelog --- libffado.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index 23fa906..120539f 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.1.0 -Release: 3%{?dist} +Release: 4%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -140,6 +140,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Mon Sep 30 2013 Brendan Jones 2.1.0-4 +- Corrrect udev rules RFBZ#999580 +- Correct changelog + * Sat Aug 03 2013 Fedora Release Engineering - 2.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild From fba5df8932c9916eeba5f1c95370d0aa62e24e86 Mon Sep 17 00:00:00 2001 From: Brendan Jones Date: Tue, 3 Jun 2014 09:18:57 +0200 Subject: [PATCH 022/113] Update to 2.2.1 --- .gitignore | 1 + libffado-2.1.0-udev-rules.patch | 84 --------------------------------- libffado.spec | 10 ++-- sources | 2 +- 4 files changed, 8 insertions(+), 89 deletions(-) delete mode 100644 libffado-2.1.0-udev-rules.patch diff --git a/.gitignore b/.gitignore index d9af863..5076f1b 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ libffado-2.0.1-svn1864.tar.bz2 /libffado-2.1.0-svn2000.tar.bz2 /libffado-2.1.0-svn2088.tar.bz2 /libffado-2.1.0.tgz +/libffado-2.2.1.tgz diff --git a/libffado-2.1.0-udev-rules.patch b/libffado-2.1.0-udev-rules.patch deleted file mode 100644 index 8e37c16..0000000 --- a/libffado-2.1.0-udev-rules.patch +++ /dev/null @@ -1,84 +0,0 @@ ---- libffado/60-ffado.rules -+++ libffado/60-ffado.rules -@@ -1,35 +1,58 @@ - SUBSYSTEM!="firewire", GOTO="ffado_end" - --ATTR{vendor}=="0x000166", GROUP="audio", ENV{ID_FFADO}="1" # TC GROUP A/S --ATTR{vendor}=="0x0001f2", GROUP="audio", ENV{ID_FFADO}="1" # Mark of the Unicorn, Inc. (aka MOTU) --ATTR{vendor}=="0x0003db", GROUP="audio", ENV{ID_FFADO}="1" # Apogee Electronics Corp. --ATTR{vendor}=="0x000595", GROUP="audio", ENV{ID_FFADO}="1" # Alesis Corporation --ATTR{vendor}=="0x0007f5", GROUP="audio", ENV{ID_FFADO}="1" # Bridgeco Co AG --ATTR{vendor}=="0x000a92", GROUP="audio", ENV{ID_FFADO}="1" # Presonus Corporation --ATTR{vendor}=="0x000aac", GROUP="audio", ENV{ID_FFADO}="1" # TerraTec Electronic GmbH --ATTR{vendor}=="0x000d6c", GROUP="audio", ENV{ID_FFADO}="1" # M-Audio --ATTR{vendor}=="0x000f1b", GROUP="audio", ENV{ID_FFADO}="1" # Ego Systems Inc. --ATTR{vendor}=="0x000ff2", GROUP="audio", ENV{ID_FFADO}="1" # Loud Technologies Inc. --ATTR{vendor}=="0x001260", GROUP="audio", ENV{ID_FFADO}="1" # Stanton Magnetics,inc. --ATTR{vendor}=="0x00130e", GROUP="audio", ENV{ID_FFADO}="1" # Focusrite Audio Engineering Limited --ATTR{vendor}=="0x001486", GROUP="audio", ENV{ID_FFADO}="1" # Echo Digital Audio Corporation --ATTR{vendor}=="0x001496", GROUP="audio", ENV{ID_FFADO}="1" # Phonic Corporation --ATTR{vendor}=="0x001564", GROUP="audio", ENV{ID_FFADO}="1" # BEHRINGER Spezielle Studiotechnik GmbH --ATTR{vendor}=="0x001c2d", GROUP="audio", ENV{ID_FFADO}="1" # FlexRadio Systems --ATTR{vendor}=="0x001c6a", GROUP="audio", ENV{ID_FFADO}="1" # Weiss Engineering Ltd. --ATTR{vendor}=="0x0040ab", GROUP="audio", ENV{ID_FFADO}="1" # ROLAND DG CORPORATION --ATTR{vendor}=="0x000f64", GROUP="audio", ENV{ID_FFADO}="1" # DnR -+# TC GROUP A/S -+ATTR{vendor}=="0x000166", GROUP="audio", ENV{ID_FFADO}="1" -+# Mark of the Unicorn, Inc. (aka MOTU) -+ATTR{vendor}=="0x0001f2", GROUP="audio", ENV{ID_FFADO}="1" -+# Apogee Electronics Corp. -+ATTR{vendor}=="0x0003db", GROUP="audio", ENV{ID_FFADO}="1" -+# Alesis Corporation -+ATTR{vendor}=="0x000595", GROUP="audio", ENV{ID_FFADO}="1" -+# Bridgeco Co AG -+ATTR{vendor}=="0x0007f5", GROUP="audio", ENV{ID_FFADO}="1" -+# Presonus Corporation -+ATTR{vendor}=="0x000a92", GROUP="audio", ENV{ID_FFADO}="1" -+# TerraTec Electronic GmbH -+ATTR{vendor}=="0x000aac", GROUP="audio", ENV{ID_FFADO}="1" -+# M-Audio -+ATTR{vendor}=="0x000d6c", GROUP="audio", ENV{ID_FFADO}="1" -+# Ego Systems Inc. -+ATTR{vendor}=="0x000f1b", GROUP="audio", ENV{ID_FFADO}="1" -+# Loud Technologies Inc. -+ATTR{vendor}=="0x000ff2", GROUP="audio", ENV{ID_FFADO}="1" -+# Stanton Magnetics,inc. -+ATTR{vendor}=="0x001260", GROUP="audio", ENV{ID_FFADO}="1" -+# Focusrite Audio Engineering Limited -+ATTR{vendor}=="0x00130e", GROUP="audio", ENV{ID_FFADO}="1" -+# Echo Digital Audio Corporation -+ATTR{vendor}=="0x001486", GROUP="audio", ENV{ID_FFADO}="1" -+# Phonic Corporation -+ATTR{vendor}=="0x001496", GROUP="audio", ENV{ID_FFADO}="1" -+# BEHRINGER Spezielle Studiotechnik GmbH -+ATTR{vendor}=="0x001564", GROUP="audio", ENV{ID_FFADO}="1" -+# FlexRadio Systems -+ATTR{vendor}=="0x001c2d", GROUP="audio", ENV{ID_FFADO}="1" -+# Weiss Engineering Ltd. -+ATTR{vendor}=="0x001c6a", GROUP="audio", ENV{ID_FFADO}="1" -+# ROLAND DG CORPORATION -+ATTR{vendor}=="0x0040ab", GROUP="audio", ENV{ID_FFADO}="1" -+# DnR -+ATTR{vendor}=="0x000f64", GROUP="audio", ENV{ID_FFADO}="1" - - # The devices below are by vendors who make other firewire devices in - # addition to their audio interfaces. They need more specific rules to - # ensure only audio interfaces are covered here. - --ATTR{vendor}=="0x00022e", ATTR{model}=="0x010067", GROUP="audio", ENV{ID_FFADO}="1" # Tascam, a subsiduary of TEAC (the OUI is TEAC's) -+# Tascam, a subsiduary of TEAC (the OUI is TEAC's) -+ATTR{vendor}=="0x00022e", ATTR{model}=="0x010067", GROUP="audio", ENV{ID_FFADO}="1" - - # The devices below abuse another Vendor's ID, and therefore we need more advanced rules for those. - --ATTR{vendor}=="0x00000a", ATTR{model}=="0x030000", ATTR{units}=="*0x00a02d:0x010001*", GROUP="audio", ENV{ID_FFADO}="1" # CME, Matrix K FW --ATTR{vendor}=="0x00000f", ATTR{model}=="0x01006?", ATTR{units}=="*0x00a02d:0x010001*", GROUP="audio", ENV{ID_FFADO}="1" # Mackie, Onyx Firewire --ATTR{vendor}=="0x000a35", ATTR{units}=="0x000a35:0x00000[12]", GROUP="audio", ENV{ID_FFADO}="1" # RME -+# CME, Matrix K FW -+ATTR{vendor}=="0x00000a", ATTR{model}=="0x030000", ATTR{units}=="*0x00a02d:0x010001*", GROUP="audio", ENV{ID_FFADO}="1" -+# Mackie, Onyx Firewire -+ATTR{vendor}=="0x00000f", ATTR{model}=="0x01006?", ATTR{units}=="*0x00a02d:0x010001*", GROUP="audio", ENV{ID_FFADO}="1" -+# RME -+ATTR{vendor}=="0x000a35", ATTR{units}=="0x000a35:0x00000[12]", GROUP="audio", ENV{ID_FFADO}="1" - - LABEL="ffado_end" diff --git a/libffado.spec b/libffado.spec index 120539f..eeeb9a4 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado -Version: 2.1.0 -Release: 4%{?dist} +Version: 2.2.1 +Release: 1%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -15,7 +15,6 @@ Source9: libffado-snapshot.sh # We want the documentation for the library API only, not for the entire source: # http://subversion.ffado.org/ticket/293 Patch0: libffado-api-doc-only.patch -Patch1: libffado-2.1.0-udev-rules.patch BuildRequires: alsa-lib-devel BuildRequires: dbus-c++-devel BuildRequires: dbus-devel @@ -69,7 +68,6 @@ Applications and utilities for use with libffado. %prep %setup -q %patch0 -p1 -b .api.doc.only -%patch1 -p0 -b .udev.rules # We don't want to install all tests sed -i '/Install/d' tests/{,*/}SConscript @@ -140,6 +138,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Sun Jun 01 2014 Brendan Jones 2.2.1-1 +- Update to 2.2.1 +- Remove incorporated udev rules patch + * Mon Sep 30 2013 Brendan Jones 2.1.0-4 - Corrrect udev rules RFBZ#999580 - Correct changelog diff --git a/sources b/sources index 2dadc7c..345518b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -26bce2be0b9c1fa4e614f2f494edf388 libffado-2.1.0.tgz +e113d828835051f835fb4a329cb0cbd4 libffado-2.2.1.tgz From c6866dcae0df6d41e4e7f0ddb81a2120c0a93872 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Fri, 6 Jun 2014 22:19:53 -0500 Subject: [PATCH 023/113] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index eeeb9a4..5f5f784 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.2.1 -Release: 1%{?dist} +Release: 2%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -138,6 +138,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Sat Jun 07 2014 Fedora Release Engineering - 2.2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + * Sun Jun 01 2014 Brendan Jones 2.2.1-1 - Update to 2.2.1 - Remove incorporated udev rules patch From 79de29e10ba7a5a4d06bc93e1714e54dc6442de6 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Sun, 17 Aug 2014 03:15:56 +0000 Subject: [PATCH 024/113] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index 5f5f784..f85d470 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.2.1 -Release: 2%{?dist} +Release: 3%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -138,6 +138,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Sun Aug 17 2014 Fedora Release Engineering - 2.2.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + * Sat Jun 07 2014 Fedora Release Engineering - 2.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild From db1039804be18f6b40db19f71ce69a3a0b042c75 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Sat, 2 May 2015 15:16:33 +0200 Subject: [PATCH 025/113] Rebuilt for GCC 5 C++11 ABI change --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index f85d470..5052d2c 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.2.1 -Release: 3%{?dist} +Release: 4%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -138,6 +138,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Sat May 02 2015 Kalev Lember - 2.2.1-4 +- Rebuilt for GCC 5 C++11 ABI change + * Sun Aug 17 2014 Fedora Release Engineering - 2.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild From 5b7d0fe6be87e804914619a6cd8418ecc1044d29 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 17 Jun 2015 15:15:31 +0000 Subject: [PATCH 026/113] - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index 5052d2c..dc87c16 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.2.1 -Release: 4%{?dist} +Release: 5%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -138,6 +138,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Wed Jun 17 2015 Fedora Release Engineering - 2.2.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + * Sat May 02 2015 Kalev Lember - 2.2.1-4 - Rebuilt for GCC 5 C++11 ABI change From 49ad40f74cdd17635b8442caafab44e457bd3f35 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Fri, 22 Jan 2016 21:53:17 +0100 Subject: [PATCH 027/113] Fix FTBFS --- libffado-errno.patch | 52 ++++++++++++++++++++++++++++++++++++++++++++ libffado.spec | 10 +++++++-- 2 files changed, 60 insertions(+), 2 deletions(-) create mode 100644 libffado-errno.patch diff --git a/libffado-errno.patch b/libffado-errno.patch new file mode 100644 index 0000000..de4275b --- /dev/null +++ b/libffado-errno.patch @@ -0,0 +1,52 @@ +diff --git a/tests/test-enhanced-mixer.cpp b/tests/test-enhanced-mixer.cpp +index 8ac00aa..d557daf 100644 +--- a/tests/test-enhanced-mixer.cpp ++++ b/tests/test-enhanced-mixer.cpp +@@ -77,7 +77,7 @@ main(int argc, char **argv) + exit(0); + } + +- int errno = 0; ++ errno = 0; + char* tail; + int node_id = strtol( argv[1], &tail, 0 ); + int fb_id = strtol( argv[2], &tail, 0 ); +diff --git a/tests/test-mixer.cpp b/tests/test-mixer.cpp +index 807bd7b..5f426a7 100644 +--- a/tests/test-mixer.cpp ++++ b/tests/test-mixer.cpp +@@ -227,7 +227,7 @@ main( int argc, char **argv ) + exit(0); + } + +- int errno = 0; ++ errno = 0; + char* tail; + int port = strtol( argv[1], &tail, 0 ); + int node_id = strtol( argv[2], &tail, 0 ); +diff --git a/tests/test-pan.cpp b/tests/test-pan.cpp +index 4b7b825..895c9cf 100644 +--- a/tests/test-pan.cpp ++++ b/tests/test-pan.cpp +@@ -131,7 +131,7 @@ main(int argc, char **argv) + exit(0); + } + +- int errno = 0; ++ errno = 0; + char* tail; + int node_id = strtol( argv[1], &tail, 0 ); + int fb_id = strtol( argv[2], &tail, 0 ); +diff --git a/tests/test-volume.cpp b/tests/test-volume.cpp +index 65ccb8b..6810819 100644 +--- a/tests/test-volume.cpp ++++ b/tests/test-volume.cpp +@@ -127,7 +127,7 @@ main(int argc, char **argv) + exit(0); + } + +- int errno = 0; ++ errno = 0; + char* tail; + int node_id = strtol( argv[1], &tail, 0 ); + int fb_id = strtol( argv[2], &tail, 0 ); diff --git a/libffado.spec b/libffado.spec index dc87c16..60d66bb 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.2.1 -Release: 5%{?dist} +Release: 6%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -15,6 +15,8 @@ Source9: libffado-snapshot.sh # We want the documentation for the library API only, not for the entire source: # http://subversion.ffado.org/ticket/293 Patch0: libffado-api-doc-only.patch +Patch1: libffado-errno.patch + BuildRequires: alsa-lib-devel BuildRequires: dbus-c++-devel BuildRequires: dbus-devel @@ -68,13 +70,14 @@ Applications and utilities for use with libffado. %prep %setup -q %patch0 -p1 -b .api.doc.only +%patch1 -p1 -b .errno # We don't want to install all tests sed -i '/Install/d' tests/{,*/}SConscript %build scons %{?_smp_mflags} \ - COMPILE_FLAGS="%{optflags} -ffast-math" \ + COMPILE_FLAGS="%{optflags} -ffast-math --std=gnu++11" \ PREFIX=%{_prefix} \ LIBDIR=%{_libdir} \ MANDIR=%{_mandir} \ @@ -138,6 +141,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Fri Jan 22 2016 Lubomir Rintel - 2.2.1-6 +- Fix FTBFS + * Wed Jun 17 2015 Fedora Release Engineering - 2.2.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild From 175daffcce377a6e0ce9250602409a44671179ff Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Thu, 4 Feb 2016 03:09:04 +0000 Subject: [PATCH 028/113] - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index 60d66bb..6855d67 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.2.1 -Release: 6%{?dist} +Release: 7%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -141,6 +141,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Thu Feb 04 2016 Fedora Release Engineering - 2.2.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + * Fri Jan 22 2016 Lubomir Rintel - 2.2.1-6 - Fix FTBFS From e7d51c2d960aa7b155783e3d42d6ee6912a62c50 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Mon, 29 Feb 2016 21:19:36 -0600 Subject: [PATCH 029/113] Fix FTBFS with GCC 6 (#1307721) --- libffado-gcc6.patch | 19 +++++++++++++++++++ libffado.spec | 7 ++++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 libffado-gcc6.patch diff --git a/libffado-gcc6.patch b/libffado-gcc6.patch new file mode 100644 index 0000000..7e98992 --- /dev/null +++ b/libffado-gcc6.patch @@ -0,0 +1,19 @@ +diff -urp a/src/libutil/TimestampedBuffer.cpp b/src/libutil/TimestampedBuffer.cpp +--- a/src/libutil/TimestampedBuffer.cpp 2014-06-01 19:00:10.000000000 -0500 ++++ b/src/libutil/TimestampedBuffer.cpp 2016-02-29 21:01:56.693239943 -0600 +@@ -32,6 +32,7 @@ + + #include + #include ++#include + + #define DLL_PI (3.141592653589793238) + #define DLL_SQRT2 (1.414213562373095049) +@@ -179,7 +180,6 @@ bool TimestampedBuffer::setWrapValue(ffa + m_wrap_at=w; + return true; + } +-#include + + /** + * \brief return the effective rate diff --git a/libffado.spec b/libffado.spec index 6855d67..33c9fff 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.2.1 -Release: 7%{?dist} +Release: 8%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -16,6 +16,7 @@ Source9: libffado-snapshot.sh # http://subversion.ffado.org/ticket/293 Patch0: libffado-api-doc-only.patch Patch1: libffado-errno.patch +Patch2: libffado-gcc6.patch BuildRequires: alsa-lib-devel BuildRequires: dbus-c++-devel @@ -71,6 +72,7 @@ Applications and utilities for use with libffado. %setup -q %patch0 -p1 -b .api.doc.only %patch1 -p1 -b .errno +%patch2 -p1 -b .gcc6 # We don't want to install all tests sed -i '/Install/d' tests/{,*/}SConscript @@ -141,6 +143,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Tue Mar 01 2016 Yaakov Selkowitz - 2.2.1-8 +- Fix FTBFS with GCC 6 (#1307721) + * Thu Feb 04 2016 Fedora Release Engineering - 2.2.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild From f3b3180ebdb341b9aee2ca029b9786b5b2d2652d Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 19 Jul 2016 07:38:35 +0000 Subject: [PATCH 030/113] - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index 33c9fff..58ac95d 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.2.1 -Release: 8%{?dist} +Release: 9%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -143,6 +143,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Tue Jul 19 2016 Fedora Release Engineering - 2.2.1-9 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + * Tue Mar 01 2016 Yaakov Selkowitz - 2.2.1-8 - Fix FTBFS with GCC 6 (#1307721) From afff2e5d5d209cf15afd8ca3db667d84fc3eb1f6 Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Tue, 9 Aug 2016 01:04:21 -0400 Subject: [PATCH 031/113] Update to 2.3.0. --- .gitignore | 1 + libffado-errno.patch | 52 -------------------------------------------- libffado.spec | 9 ++++---- sources | 2 +- 4 files changed, 7 insertions(+), 57 deletions(-) delete mode 100644 libffado-errno.patch diff --git a/.gitignore b/.gitignore index 5076f1b..52af185 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ libffado-2.0.1-svn1864.tar.bz2 /libffado-2.1.0-svn2088.tar.bz2 /libffado-2.1.0.tgz /libffado-2.2.1.tgz +/libffado-2.3.0.tgz diff --git a/libffado-errno.patch b/libffado-errno.patch deleted file mode 100644 index de4275b..0000000 --- a/libffado-errno.patch +++ /dev/null @@ -1,52 +0,0 @@ -diff --git a/tests/test-enhanced-mixer.cpp b/tests/test-enhanced-mixer.cpp -index 8ac00aa..d557daf 100644 ---- a/tests/test-enhanced-mixer.cpp -+++ b/tests/test-enhanced-mixer.cpp -@@ -77,7 +77,7 @@ main(int argc, char **argv) - exit(0); - } - -- int errno = 0; -+ errno = 0; - char* tail; - int node_id = strtol( argv[1], &tail, 0 ); - int fb_id = strtol( argv[2], &tail, 0 ); -diff --git a/tests/test-mixer.cpp b/tests/test-mixer.cpp -index 807bd7b..5f426a7 100644 ---- a/tests/test-mixer.cpp -+++ b/tests/test-mixer.cpp -@@ -227,7 +227,7 @@ main( int argc, char **argv ) - exit(0); - } - -- int errno = 0; -+ errno = 0; - char* tail; - int port = strtol( argv[1], &tail, 0 ); - int node_id = strtol( argv[2], &tail, 0 ); -diff --git a/tests/test-pan.cpp b/tests/test-pan.cpp -index 4b7b825..895c9cf 100644 ---- a/tests/test-pan.cpp -+++ b/tests/test-pan.cpp -@@ -131,7 +131,7 @@ main(int argc, char **argv) - exit(0); - } - -- int errno = 0; -+ errno = 0; - char* tail; - int node_id = strtol( argv[1], &tail, 0 ); - int fb_id = strtol( argv[2], &tail, 0 ); -diff --git a/tests/test-volume.cpp b/tests/test-volume.cpp -index 65ccb8b..6810819 100644 ---- a/tests/test-volume.cpp -+++ b/tests/test-volume.cpp -@@ -127,7 +127,7 @@ main(int argc, char **argv) - exit(0); - } - -- int errno = 0; -+ errno = 0; - char* tail; - int node_id = strtol( argv[1], &tail, 0 ); - int fb_id = strtol( argv[2], &tail, 0 ); diff --git a/libffado.spec b/libffado.spec index 58ac95d..ac85e45 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado -Version: 2.2.1 -Release: 9%{?dist} +Version: 2.3.0 +Release: 1%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -15,7 +15,6 @@ Source9: libffado-snapshot.sh # We want the documentation for the library API only, not for the entire source: # http://subversion.ffado.org/ticket/293 Patch0: libffado-api-doc-only.patch -Patch1: libffado-errno.patch Patch2: libffado-gcc6.patch BuildRequires: alsa-lib-devel @@ -71,7 +70,6 @@ Applications and utilities for use with libffado. %prep %setup -q %patch0 -p1 -b .api.doc.only -%patch1 -p1 -b .errno %patch2 -p1 -b .gcc6 # We don't want to install all tests @@ -143,6 +141,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Mon Aug 08 2016 Orcan Ogetbil - 2.3.0-1 +- Update to 2.3.0. + * Tue Jul 19 2016 Fedora Release Engineering - 2.2.1-9 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages diff --git a/sources b/sources index 345518b..f83514a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -e113d828835051f835fb4a329cb0cbd4 libffado-2.2.1.tgz +8f452977267200cfaf9b8e16ba3c92df libffado-2.3.0.tgz From 2a2b45ad3376876e3ad16f1dd3484cb1e14e6019 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 10 Feb 2017 18:38:54 +0000 Subject: [PATCH 032/113] - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index ac85e45..5d2c88e 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.3.0 -Release: 1%{?dist} +Release: 2%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -141,6 +141,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Fri Feb 10 2017 Fedora Release Engineering - 2.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + * Mon Aug 08 2016 Orcan Ogetbil - 2.3.0-1 - Update to 2.3.0. From c2b44503a2f40d2f45f9717a817b5c44c16ec389 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Thu, 16 Feb 2017 12:14:00 +0000 Subject: [PATCH 033/113] Patch invalid code to build with GCC 7 --- libffado-derefptr.patch | 20 ++++++++++++++++++++ libffado.spec | 6 ++++++ 2 files changed, 26 insertions(+) create mode 100644 libffado-derefptr.patch diff --git a/libffado-derefptr.patch b/libffado-derefptr.patch new file mode 100644 index 0000000..74f5456 --- /dev/null +++ b/libffado-derefptr.patch @@ -0,0 +1,20 @@ +--- libffado-2.3.0/src/libieee1394/configrom.cpp.derefptr 2017-02-16 12:03:33.894937836 +0000 ++++ libffado-2.3.0/src/libieee1394/configrom.cpp 2017-02-16 12:03:44.000947451 +0000 +@@ -176,7 +176,7 @@ + ( void* )CSR1212_TEXTUAL_DESCRIPTOR_LEAF_DATA( m_vendorNameKv ), + len ); + +- while ((buf + len - 1) == '\0') { ++ while (*(buf + len - 1) == '\0') { + len--; + } + // \todo XXX seems a bit strage to do this but the nodemgr.c code does +@@ -195,7 +195,7 @@ + memcpy( buf, + ( void* )CSR1212_TEXTUAL_DESCRIPTOR_LEAF_DATA( m_modelNameKv ), + len ); +- while ((buf + len - 1) == '\0') { ++ while (*(buf + len - 1) == '\0') { + len--; + } + // \todo XXX for edirol fa-66 it seems somehow broken. see above diff --git a/libffado.spec b/libffado.spec index 5d2c88e..560d9a3 100644 --- a/libffado.spec +++ b/libffado.spec @@ -16,6 +16,8 @@ Source9: libffado-snapshot.sh # http://subversion.ffado.org/ticket/293 Patch0: libffado-api-doc-only.patch Patch2: libffado-gcc6.patch +# http://subversion.ffado.org/changeset/2673 +Patch3: libffado-derefptr.patch BuildRequires: alsa-lib-devel BuildRequires: dbus-c++-devel @@ -71,6 +73,7 @@ Applications and utilities for use with libffado. %setup -q %patch0 -p1 -b .api.doc.only %patch2 -p1 -b .gcc6 +%patch3 -p1 -b .derefptr # We don't want to install all tests sed -i '/Install/d' tests/{,*/}SConscript @@ -141,6 +144,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Thu Feb 16 2017 Jonathan Wakely - 2.3.0-2 +- Patch invalid code to build with GCC 7 + * Fri Feb 10 2017 Fedora Release Engineering - 2.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild From 4419e7cb3771d4c05002ab11f91c7178cd5752ea Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 15 May 2017 20:43:00 +0000 Subject: [PATCH 034/113] - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index 560d9a3..22a18d9 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.3.0 -Release: 2%{?dist} +Release: 3%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -144,6 +144,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Mon May 15 2017 Fedora Release Engineering - 2.3.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild + * Thu Feb 16 2017 Jonathan Wakely - 2.3.0-2 - Patch invalid code to build with GCC 7 From 69300058bacf0845207908af3be6170c4ae9a407 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 26 Jul 2017 18:50:08 +0000 Subject: [PATCH 035/113] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index 22a18d9..8ae1295 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.3.0 -Release: 3%{?dist} +Release: 4%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -144,6 +144,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Wed Jul 26 2017 Fedora Release Engineering - 2.3.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + * Mon May 15 2017 Fedora Release Engineering - 2.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild From dc79b126b904369cfb92b216460e1140bb3cbfab Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 3 Aug 2017 01:27:16 +0000 Subject: [PATCH 036/113] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index 8ae1295..48aff5e 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.3.0 -Release: 4%{?dist} +Release: 5%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -144,6 +144,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Thu Aug 03 2017 Fedora Release Engineering - 2.3.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + * Wed Jul 26 2017 Fedora Release Engineering - 2.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild From cd705915efe061734a35e4f58a960d31a98247c1 Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Thu, 10 Aug 2017 22:21:26 -0400 Subject: [PATCH 037/113] Fix FTBFS on F27 Backported fixes from trunk for various compilation warnings MIPS support RHBZ#1366701 --- libffado-MIPS.patch | 12 + libffado-diff-trunk-from-r2650-to-r2651.diff | 2208 ++++++++++++++++++ libffado-diff-trunk-from-r2690-to-r2691.diff | 1137 +++++++++ libffado-diff-trunk-from-r2705-to-r2706.diff | 10 + libffado-diff-trunk-from-r2706-to-r2707.diff | 11 + libffado.spec | 34 +- 6 files changed, 3407 insertions(+), 5 deletions(-) create mode 100644 libffado-MIPS.patch create mode 100644 libffado-diff-trunk-from-r2650-to-r2651.diff create mode 100644 libffado-diff-trunk-from-r2690-to-r2691.diff create mode 100644 libffado-diff-trunk-from-r2705-to-r2706.diff create mode 100644 libffado-diff-trunk-from-r2706-to-r2707.diff diff --git a/libffado-MIPS.patch b/libffado-MIPS.patch new file mode 100644 index 0000000..4d5d2f5 --- /dev/null +++ b/libffado-MIPS.patch @@ -0,0 +1,12 @@ +diff -rupN libffado-2.3.0.org/SConstruct libffado-2.3.0/SConstruct +--- libffado-2.3.0.org/SConstruct 2016-08-08 06:31:03.000000000 -0400 ++++ libffado-2.3.0/SConstruct 2017-08-10 21:56:15.358412952 -0400 +@@ -558,7 +558,7 @@ def cpuinfo_kv(): + for line in f: + line = line.strip() + if line: +- k,v = line.split(':') ++ k,v = line.split(':', 1) + yield (k.strip(), v.strip()) + f.close() + diff --git a/libffado-diff-trunk-from-r2650-to-r2651.diff b/libffado-diff-trunk-from-r2650-to-r2651.diff new file mode 100644 index 0000000..a2540a0 --- /dev/null +++ b/libffado-diff-trunk-from-r2650-to-r2651.diff @@ -0,0 +1,2208 @@ +Index: trunk/libffado/src/libieee1394/test-cyclecalc.cpp +=================================================================== +--- trunk/libffado/src/libieee1394/test-cyclecalc.cpp (revision 2540) ++++ trunk/libffado/src/libieee1394/test-cyclecalc.cpp (revision 2651) +@@ -51,5 +51,5 @@ + (unsigned int)CYCLE_TIMER_GET_OFFSET(now_ctr)); + +- debugOutput(DEBUG_LEVEL_VERBOSE,"NOW : %011"PRIu64" (%03us %04uc %04ut)\n", ++ debugOutput(DEBUG_LEVEL_VERBOSE,"NOW : %011" PRIu64 " (%03us %04uc %04ut)\n", + now, + (unsigned int)TICKS_TO_SECS(now), +@@ -65,5 +65,5 @@ + uint64_t calc_ts = sytRecvToFullTicks(syt, cycle, now_ctr); + +- debugOutput(DEBUG_LEVEL_VERBOSE,"CALC_TS : %011"PRIu64" (%03us %04uc %04ut)\n", ++ debugOutput(DEBUG_LEVEL_VERBOSE,"CALC_TS : %011" PRIu64 " (%03us %04uc %04ut)\n", + calc_ts, + (unsigned int)TICKS_TO_SECS(calc_ts), +Index: trunk/libffado/src/libieee1394/CycleTimerHelper.cpp +=================================================================== +--- trunk/libffado/src/libieee1394/CycleTimerHelper.cpp (revision 2523) ++++ trunk/libffado/src/libieee1394/CycleTimerHelper.cpp (revision 2651) +@@ -164,8 +164,8 @@ + m_cycle_timer_prev, maxtries2); + } +- debugOutput( DEBUG_LEVEL_VERBOSE, " read : CTR: %11u, local: %17"PRIu64"\n", ++ debugOutput( DEBUG_LEVEL_VERBOSE, " read : CTR: %11u, local: %17" PRIu64 "\n", + m_cycle_timer_prev, local_time); + debugOutput(DEBUG_LEVEL_VERBOSE, +- " ctr : 0x%08X %11"PRIu64" (%03us %04ucy %04uticks)\n", ++ " ctr : 0x%08X %11" PRIu64 " (%03us %04ucy %04uticks)\n", + (uint32_t)m_cycle_timer_prev, (uint64_t)CYCLE_TIMER_TO_TICKS(m_cycle_timer_prev), + (unsigned int)CYCLE_TIMER_GET_SECS( m_cycle_timer_prev ), +@@ -292,8 +292,8 @@ + #endif + +- debugOutputExtreme( DEBUG_LEVEL_VERY_VERBOSE, " read : CTR: %11u, local: %17"PRIu64"\n", ++ debugOutputExtreme( DEBUG_LEVEL_VERY_VERBOSE, " read : CTR: %11u, local: %17" PRIu64 "\n", + cycle_timer, local_time); + debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, +- " ctr : 0x%08X %11"PRIu64" (%03us %04ucy %04uticks)\n", ++ " ctr : 0x%08X %11" PRIu64 " (%03us %04ucy %04uticks)\n", + (uint32_t)cycle_timer, (uint64_t)cycle_timer_ticks, + (unsigned int)TICKS_TO_SECS( (uint64_t)cycle_timer_ticks ), +@@ -352,5 +352,5 @@ + ffado_microsecs_t now = Util::SystemTimeSource::getCurrentTimeAsUsecs(); + int sleep_time = m_sleep_until - now; +- debugOutput( DEBUG_LEVEL_ULTRA_VERBOSE, "(%p) Sleep until %"PRId64"/%f (now: %"PRId64", diff=%d) ...\n", ++ debugOutput( DEBUG_LEVEL_ULTRA_VERBOSE, "(%p) Sleep until %" PRId64 "/%f (now: %" PRId64 ", diff=%d) ...\n", + this, m_sleep_until, m_next_time_usecs, now, sleep_time); + #endif +@@ -403,5 +403,5 @@ + if(not_good) { + debugOutput(DEBUG_LEVEL_VERBOSE, +- "(%p) have to retry CTR read, diff unrealistic: diff: %"PRId64", max: +/- %u (try: %d) %"PRId64"\n", ++ "(%p) have to retry CTR read, diff unrealistic: diff: %" PRId64 ", max: +/- %u (try: %d) %" PRId64 "\n", + this, err_ticks, 1*TICKS_PER_CYCLE, ntries, expected_ticks); + // sleep half a cycle to make sure the hardware moved on +@@ -432,8 +432,8 @@ + } + +- debugOutputExtreme( DEBUG_LEVEL_ULTRA_VERBOSE, " read : CTR: %11u, local: %17"PRIu64"\n", ++ debugOutputExtreme( DEBUG_LEVEL_ULTRA_VERBOSE, " read : CTR: %11u, local: %17" PRIu64 "\n", + cycle_timer, local_time); + debugOutputExtreme(DEBUG_LEVEL_ULTRA_VERBOSE, +- " ctr : 0x%08X %11"PRIu64" (%03us %04ucy %04uticks)\n", ++ " ctr : 0x%08X %11" PRIu64 " (%03us %04ucy %04uticks)\n", + (uint32_t)cycle_timer, (uint64_t)cycle_timer_ticks, + (unsigned int)TICKS_TO_SECS( (uint64_t)cycle_timer_ticks ), +@@ -449,5 +449,5 @@ + } else if (diff_ticks > m_ticks_per_update * 20) { + debugOutput(DEBUG_LEVEL_VERBOSE, +- "re-init dll due to too large tick diff: %"PRId64" >> %f\n", ++ "re-init dll due to too large tick diff: %" PRId64 " >> %f\n", + diff_ticks, (float)(m_ticks_per_update * 20)); + if(!initDLL()) { +@@ -475,5 +475,5 @@ + diff_ticks_corr = diff_ticks - ticks_late; + debugOutputExtreme(DEBUG_LEVEL_ULTRA_VERBOSE, +- "diff_ticks_corr=%"PRId64", diff_ticks = %"PRId64", ticks_late = %"PRId64"\n", ++ "diff_ticks_corr=%" PRId64 ", diff_ticks = %" PRId64 ", ticks_late = %" PRId64 "\n", + diff_ticks_corr, diff_ticks, ticks_late); + } else { +@@ -486,5 +486,5 @@ + // makes no sense if not running realtime + if(m_realtime && usecs_late > 1000) { +- debugOutput(DEBUG_LEVEL_VERBOSE, "Rather late wakeup: %"PRId64" usecs\n", usecs_late); ++ debugOutput(DEBUG_LEVEL_VERBOSE, "Rather late wakeup: %" PRId64 " usecs\n", usecs_late); + } + #endif +@@ -539,11 +539,11 @@ + + debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, +- " usecs: current: %f next: %f usecs_late=%"PRId64" ticks_late=%"PRId64"\n", ++ " usecs: current: %f next: %f usecs_late=%" PRId64 " ticks_late=%" PRId64 "\n", + m_current_time_usecs, m_next_time_usecs, usecs_late, ticks_late); + debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, +- " ticks: current: %f next: %f diff=%"PRId64"\n", ++ " ticks: current: %f next: %f diff=%" PRId64 "\n", + m_current_time_ticks, m_next_time_ticks, diff_ticks); + debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, +- " ticks: current: %011"PRIu64" (%03us %04ucy %04uticks)\n", ++ " ticks: current: %011" PRIu64 " (%03us %04ucy %04uticks)\n", + (uint64_t)m_current_time_ticks, + (unsigned int)TICKS_TO_SECS( (uint64_t)m_current_time_ticks ), +@@ -551,5 +551,5 @@ + (unsigned int)TICKS_TO_OFFSET( (uint64_t)m_current_time_ticks ) ); + debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, +- " ticks: next : %011"PRIu64" (%03us %04ucy %04uticks)\n", ++ " ticks: next : %011" PRIu64 " (%03us %04ucy %04uticks)\n", + (uint64_t)m_next_time_ticks, + (unsigned int)TICKS_TO_SECS( (uint64_t)m_next_time_ticks ), +@@ -558,5 +558,5 @@ + + debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, +- " state: local: %11"PRIu64", dll_e2: %f, rate: %f\n", ++ " state: local: %11" PRIu64 ", dll_e2: %f, rate: %f\n", + local_time, m_dll_e2, getRate()); + } +@@ -602,5 +602,5 @@ + } + int32_t ctr_diff = cycle_timer_ticks-dll_time; +- debugOutput(DEBUG_LEVEL_ULTRA_VERBOSE, "(%p) CTR DIFF: HW %010"PRIu64" - DLL %010u = %010d (%s)\n", ++ debugOutput(DEBUG_LEVEL_ULTRA_VERBOSE, "(%p) CTR DIFF: HW %010" PRIu64 " - DLL %010u = %010d (%s)\n", + this, cycle_timer_ticks, dll_time, ctr_diff, (ctr_diff>0?"lag":"lead")); + #endif +@@ -805,5 +805,5 @@ + if (diffTicks(cycle_timer_ticks, m_cycle_timer_ticks_prev) < 0) { + debugOutput( DEBUG_LEVEL_VERY_VERBOSE, +- "non-monotonic CTR (try %02d): %"PRIu64" -> %"PRIu64"\n", ++ "non-monotonic CTR (try %02d): %" PRIu64 " -> %" PRIu64 "\n", + maxtries, m_cycle_timer_ticks_prev, cycle_timer_ticks); + debugOutput( DEBUG_LEVEL_VERY_VERBOSE, +@@ -811,5 +811,5 @@ + m_cycle_timer_prev, *cycle_timer); + debugOutput( DEBUG_LEVEL_VERY_VERBOSE, +- " current: %011"PRIu64" (%03us %04ucy %04uticks)\n", ++ " current: %011" PRIu64 " (%03us %04ucy %04uticks)\n", + cycle_timer_ticks, + (unsigned int)TICKS_TO_SECS( cycle_timer_ticks ), +@@ -817,5 +817,5 @@ + (unsigned int)TICKS_TO_OFFSET( cycle_timer_ticks ) ); + debugOutput( DEBUG_LEVEL_VERY_VERBOSE, +- " prev : %011"PRIu64" (%03us %04ucy %04uticks)\n", ++ " prev : %011" PRIu64 " (%03us %04ucy %04uticks)\n", + m_cycle_timer_ticks_prev, + (unsigned int)TICKS_TO_SECS( m_cycle_timer_ticks_prev ), +Index: trunk/libffado/src/libieee1394/cycletimer.h +=================================================================== +--- trunk/libffado/src/libieee1394/cycletimer.h (revision 1763) ++++ trunk/libffado/src/libieee1394/cycletimer.h (revision 2651) +@@ -95,5 +95,5 @@ + #ifdef DEBUG + if (x >= TICKS_PER_SECOND * 128L) { +- debugWarning("insufficient wrapping: %"PRIu64"\n",x); ++ debugWarning("insufficient wrapping: %" PRIu64 "\n",x); + } + #endif +@@ -118,5 +118,5 @@ + #ifdef DEBUG + if (x < 0) { +- debugWarning("insufficient wrapping: %"PRId64"\n",x); ++ debugWarning("insufficient wrapping: %" PRId64 "\n",x); + } + #endif +@@ -145,8 +145,8 @@ + #ifdef DEBUG + if (x >= (int64_t)(TICKS_PER_SECOND * 128L)) { +- debugWarning("insufficient wrapping (max): %"PRIu64"\n",x); ++ debugWarning("insufficient wrapping (max): %" PRIu64 "\n",x); + } + if (x < 0) { +- debugWarning("insufficient wrapping (min): %"PRId64"\n",x); ++ debugWarning("insufficient wrapping (min): %" PRId64 "\n",x); + } + #endif +@@ -249,5 +249,5 @@ + if(diff > max || diff < -max) { + debugWarning("difference does not make any sense\n"); +- debugWarning("diff=%"PRId64" max=%"PRId64"\n", diff, max); ++ debugWarning("diff=%" PRId64 " max=%" PRId64 "\n", diff, max); + + } +@@ -302,5 +302,5 @@ + uint64_t timestamp; + +- debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, "SYT=%"PRIX64" CY=%u CTR=%08"PRIX64"\n", ++ debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, "SYT=%" PRIX64 " CY=%u CTR=%08" PRIX64 "\n", + syt_timestamp, rcv_cycle, ctr_now); + +@@ -313,5 +313,5 @@ + int diff_cycles = diffCycles(cc_cycles, rcv_cycle); + if (diff_cycles<0) { +- debugWarning("current cycle timer not ahead of receive cycle: rcv: %u / cc: %"PRIu64" (%d)\n", ++ debugWarning("current cycle timer not ahead of receive cycle: rcv: %u / cc: %" PRIu64 " (%d)\n", + rcv_cycle, cc_cycles, diff_cycles); + } +@@ -351,5 +351,5 @@ + } else { + debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, +- "Detected wraparound: %u + %"PRId64" = %"PRId64"\n", ++ "Detected wraparound: %u + %" PRId64 " = %" PRId64 "\n", + rcv_cycle, delta_cycles, new_cycles); + +@@ -372,5 +372,5 @@ + if(( TICKS_TO_CYCLE_TIMER(timestamp) & 0xFFFF) != syt_timestamp) { + debugWarning("back-converted timestamp not equal to SYT\n"); +- debugWarning("TS=%011"PRIu64" TSC=%08"PRIX64" SYT=%04"PRIX64"\n", ++ debugWarning("TS=%011" PRIu64 " TSC=%08" PRIX64 " SYT=%04" PRIX64 "\n", + timestamp, TICKS_TO_CYCLE_TIMER(timestamp), syt_timestamp); + } +@@ -391,5 +391,5 @@ + uint64_t timestamp; + +- debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, "SYT=%04"PRIX64" RCV_CTR=%08X\n", ++ debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, "SYT=%04" PRIX64 " RCV_CTR=%08X\n", + syt_timestamp, rcv_ctr); + +@@ -433,5 +433,5 @@ + if(( TICKS_TO_CYCLE_TIMER(timestamp) & 0xFFFF) != syt_timestamp) { + debugWarning("back-converted timestamp not equal to SYT\n"); +- debugWarning("TS=%011"PRIu64" TSC=%08"PRIX64" SYT=%04"PRIX64"\n", ++ debugWarning("TS=%011" PRIu64 " TSC=%08" PRIX64 " SYT=%04" PRIX64 "\n", + timestamp, TICKS_TO_CYCLE_TIMER(timestamp), syt_timestamp); + } +@@ -457,5 +457,5 @@ + uint64_t timestamp; + +- debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, "SYT=%08"PRIX64" CY=%04X CTR=%08"PRIX64"\n", ++ debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, "SYT=%08" PRIX64 " CY=%04X CTR=%08" PRIX64 "\n", + syt_timestamp, xmt_cycle, ctr_now); + +@@ -467,5 +467,5 @@ + int diff_cycles = diffCycles(xmt_cycle, cc_cycles); + if (diff_cycles<0) { +- debugWarning("xmit cycle not ahead of current cycle: xmt: %u / cc: %"PRIu64" (%d)\n", ++ debugWarning("xmit cycle not ahead of current cycle: xmt: %u / cc: %" PRIu64 " (%d)\n", + xmt_cycle, cc_cycles, diff_cycles); + } +@@ -505,5 +505,5 @@ + } else { + debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, +- "Detected wraparound: %u + %"PRId64" = %"PRId64"\n", ++ "Detected wraparound: %u + %" PRId64 " = %" PRId64 "\n", + xmt_cycle, delta_cycles, new_cycles); + +@@ -526,5 +526,5 @@ + if(( TICKS_TO_CYCLE_TIMER(timestamp) & 0xFFFF) != syt_timestamp) { + debugWarning("back-converted timestamp not equal to SYT\n"); +- debugWarning("TS=%011"PRIu64" TSC=%08"PRIX64" SYT=%04"PRIX64"\n", ++ debugWarning("TS=%011" PRIu64 " TSC=%08" PRIX64 " SYT=%04" PRIX64 "\n", + timestamp, TICKS_TO_CYCLE_TIMER(timestamp), syt_timestamp); + } +Index: trunk/libffado/src/libieee1394/ieee1394service.cpp +=================================================================== +--- trunk/libffado/src/libieee1394/ieee1394service.cpp (revision 2419) ++++ trunk/libffado/src/libieee1394/ieee1394service.cpp (revision 2651) +@@ -137,9 +137,9 @@ + ++it ) + { +- debugOutput(DEBUG_LEVEL_VERBOSE, "Unregistering ARM handler for 0x%016"PRIX64"\n", (*it)->getStart()); ++ debugOutput(DEBUG_LEVEL_VERBOSE, "Unregistering ARM handler for 0x%016" PRIX64 "\n", (*it)->getStart()); + if(m_armHelperNormal) { + int err = raw1394_arm_unregister(m_armHelperNormal->get1394Handle(), (*it)->getStart()); + if (err) { +- debugError(" Failed to unregister ARM handler for 0x%016"PRIX64"\n", (*it)->getStart()); ++ debugError(" Failed to unregister ARM handler for 0x%016" PRIX64 "\n", (*it)->getStart()); + debugError(" Error: %s\n", strerror(errno)); + } +@@ -604,5 +604,5 @@ + #ifdef DEBUG + debugOutput(DEBUG_LEVEL_VERY_VERBOSE, +- "read: node 0x%hX, addr = 0x%016"PRIX64", length = %zd\n", ++ "read: node 0x%hX, addr = 0x%016" PRIX64 ", length = %zd\n", + nodeId, addr, length); + printBuffer( DEBUG_LEVEL_VERY_VERBOSE, length, buffer ); +@@ -613,5 +613,5 @@ + #ifdef DEBUG + debugOutput(DEBUG_LEVEL_VERBOSE, +- "raw1394_read failed: node 0x%hX, addr = 0x%016"PRIX64", length = %zd\n", ++ "raw1394_read failed: node 0x%hX, addr = 0x%016" PRIX64 ", length = %zd\n", + nodeId, addr, length); + #endif +@@ -659,5 +659,5 @@ + + #ifdef DEBUG +- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"write: node 0x%hX, addr = 0x%016"PRIX64", length = %zd\n", ++ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"write: node 0x%hX, addr = 0x%016" PRIX64 ", length = %zd\n", + nodeId, addr, length); + printBuffer( DEBUG_LEVEL_VERY_VERBOSE, length, data ); +@@ -696,7 +696,7 @@ + } + #ifdef DEBUG +- debugOutput(DEBUG_LEVEL_VERBOSE,"lockCompareSwap64: node 0x%X, addr = 0x%016"PRIX64"\n", ++ debugOutput(DEBUG_LEVEL_VERBOSE,"lockCompareSwap64: node 0x%X, addr = 0x%016" PRIX64 "\n", + nodeId, addr); +- debugOutput(DEBUG_LEVEL_VERBOSE," if (*(addr)==0x%016"PRIX64") *(addr)=0x%016"PRIX64"\n", ++ debugOutput(DEBUG_LEVEL_VERBOSE," if (*(addr)==0x%016" PRIX64 ") *(addr)=0x%016" PRIX64 "\n", + compare_value, swap_value); + fb_octlet_t buffer; +@@ -704,5 +704,5 @@ + debugWarning("Could not read register\n"); + } else { +- debugOutput(DEBUG_LEVEL_VERBOSE,"before = 0x%016"PRIX64"\n", buffer); ++ debugOutput(DEBUG_LEVEL_VERBOSE,"before = 0x%016" PRIX64 "\n", buffer); + } + #endif +@@ -728,5 +728,5 @@ + debugWarning("Could not read register\n"); + } else { +- debugOutput(DEBUG_LEVEL_VERBOSE,"after = 0x%016"PRIX64"\n", buffer); ++ debugOutput(DEBUG_LEVEL_VERBOSE,"after = 0x%016" PRIX64 "\n", buffer); + } + #endif +@@ -1122,5 +1122,5 @@ + bool Ieee1394Service::registerARMHandler(ARMHandler *h) { + debugOutput(DEBUG_LEVEL_VERBOSE, +- "Registering ARM handler (%p) for 0x%016"PRIX64", length %zu\n", ++ "Registering ARM handler (%p) for 0x%016" PRIX64 ", length %zu\n", + h, h->getStart(), h->getLength()); + +@@ -1132,5 +1132,5 @@ + h->getClientTransactions()); + if (err) { +- debugError("Failed to register ARM handler for 0x%016"PRIX64"\n", h->getStart()); ++ debugError("Failed to register ARM handler for 0x%016" PRIX64 "\n", h->getStart()); + debugError(" Error: %s\n", strerror(errno)); + return false; +@@ -1141,5 +1141,5 @@ + + bool Ieee1394Service::unregisterARMHandler( ARMHandler *h ) { +- debugOutput(DEBUG_LEVEL_VERBOSE, "Unregistering ARM handler (%p) for 0x%016"PRIX64"\n", ++ debugOutput(DEBUG_LEVEL_VERBOSE, "Unregistering ARM handler (%p) for 0x%016" PRIX64 "\n", + h, h->getStart()); + +@@ -1173,5 +1173,5 @@ + nodeaddr_t Ieee1394Service::findFreeARMBlock( nodeaddr_t start, size_t length, size_t step ) { + debugOutput(DEBUG_LEVEL_VERBOSE, +- "Finding free ARM block of %zd bytes, from 0x%016"PRIX64" in steps of %zd bytes\n", ++ "Finding free ARM block of %zd bytes, from 0x%016" PRIX64 " in steps of %zd bytes\n", + length, start, step); + +@@ -1185,9 +1185,9 @@ + + if (err) { +- debugOutput(DEBUG_LEVEL_VERBOSE, " -> cannot use 0x%016"PRIX64"\n", start); ++ debugOutput(DEBUG_LEVEL_VERBOSE, " -> cannot use 0x%016" PRIX64 "\n", start); + debugError(" Error: %s\n", strerror(errno)); + start += step; + } else { +- debugOutput(DEBUG_LEVEL_VERBOSE, " -> use 0x%016"PRIX64"\n", start); ++ debugOutput(DEBUG_LEVEL_VERBOSE, " -> use 0x%016" PRIX64 "\n", start); + err = raw1394_arm_unregister(m_handle, start); + if (err) { +@@ -1238,5 +1238,5 @@ + raw1394_arm_response_t arm_resp = arm_req_resp->response; + +- debugOutput(DEBUG_LEVEL_VERBOSE,"ARM handler for address 0x%016"PRIX64" called\n", ++ debugOutput(DEBUG_LEVEL_VERBOSE,"ARM handler for address 0x%016" PRIX64 " called\n", + (*it)->getStart()); + debugOutput(DEBUG_LEVEL_VERBOSE," request type : 0x%02X\n", request_type); +@@ -1634,5 +1634,5 @@ + debugOutput( DEBUG_LEVEL_VERBOSE, " CycleTimerHelper: %p, IsoManager: %p, WatchDog: %p\n", + m_pCTRHelper, m_pIsoManager, m_pWatchdog ); +- debugOutput( DEBUG_LEVEL_VERBOSE, " Time: %011"PRIu64" (%03us %04ucy %04uticks)\n", ++ debugOutput( DEBUG_LEVEL_VERBOSE, " Time: %011" PRIu64 " (%03us %04ucy %04uticks)\n", + ctr, + (unsigned int)TICKS_TO_SECS( ctr ), +Index: trunk/libffado/src/libieee1394/configrom.cpp +=================================================================== +--- trunk/libffado/src/libieee1394/configrom.cpp (revision 2194) ++++ trunk/libffado/src/libieee1394/configrom.cpp (revision 2651) +@@ -528,5 +528,5 @@ + { + debugOutput( DEBUG_LEVEL_VERBOSE, +- "Checking for updated node id for device with GUID 0x%016"PRIX64"...\n", ++ "Checking for updated node id for device with GUID 0x%016" PRIX64 "...\n", + getGuid()); + +@@ -559,5 +559,5 @@ + + debugOutput( DEBUG_LEVEL_VERBOSE, +- " Node has GUID 0x%016"PRIX64"\n", ++ " Node has GUID 0x%016" PRIX64 "\n", + guid); + +@@ -566,5 +566,5 @@ + if ( nodeId != getNodeId() ) { + debugOutput( DEBUG_LEVEL_VERBOSE, +- "Device with GUID 0x%016"PRIX64" changed node id " ++ "Device with GUID 0x%016" PRIX64 " changed node id " + "from %d to %d\n", + getGuid(), +@@ -574,5 +574,5 @@ + } else { + debugOutput( DEBUG_LEVEL_VERBOSE, +- "Device with GUID 0x%016"PRIX64" kept node id %d\n", ++ "Device with GUID 0x%016" PRIX64 " kept node id %d\n", + getGuid(), + getNodeId()); +@@ -591,5 +591,5 @@ + + debugOutput( DEBUG_LEVEL_VERBOSE, +- "Device with GUID 0x%016"PRIX64" could not be found on " ++ "Device with GUID 0x%016" PRIX64 " could not be found on " + "the bus anymore (removed?)\n", + getGuid() ); +@@ -604,5 +604,5 @@ + debugOutput(DEBUG_LEVEL_NORMAL, "Config ROM\n" ); + debugOutput(DEBUG_LEVEL_NORMAL, "\tCurrent Node Id:\t%d\n", getNodeId() ); +- debugOutput(DEBUG_LEVEL_NORMAL, "\tGUID:\t\t\t0x%016"PRIX64"\n", getGuid()); ++ debugOutput(DEBUG_LEVEL_NORMAL, "\tGUID:\t\t\t0x%016" PRIX64 "\n", getGuid()); + debugOutput(DEBUG_LEVEL_NORMAL, "\tVendor Name:\t\t%s\n", getVendorName().c_str() ); + debugOutput(DEBUG_LEVEL_NORMAL, "\tModel Name:\t\t%s\n", getModelName().c_str() ); +@@ -625,5 +625,5 @@ + printMessage("Config ROM\n" ); + printMessage("\tCurrent Node Id:\t%d\n", getNodeId() ); +- printMessage("\tGUID:\t\t\t0x%016"PRIX64"\n", getGuid()); ++ printMessage("\tGUID:\t\t\t0x%016" PRIX64 "\n", getGuid()); + printMessage("\tVendor Name:\t\t%s\n", getVendorName().c_str() ); + printMessage("\tModel Name:\t\t%s\n", getModelName().c_str() ); +Index: trunk/libffado/src/libieee1394/IsoHandlerManager.cpp +=================================================================== +--- trunk/libffado/src/libieee1394/IsoHandlerManager.cpp (revision 2593) ++++ trunk/libffado/src/libieee1394/IsoHandlerManager.cpp (revision 2651) +@@ -346,9 +346,9 @@ + + debugOutputExtreme(DEBUG_LEVEL_VERBOSE, +- "(%p, %s) check handler %d: diff = %"PRId64", max = %"PRId64", now: %08X, last: %08X\n", ++ "(%p, %s) check handler %d: diff = %" PRId64 ", max = %" PRId64 ", now: %08X, last: %08X\n", + this, (m_handlerType == IsoHandler::eHT_Transmit? "Transmit": "Receive"), + i, measured_diff_ticks, max_diff_ticks, ctr_at_poll_return, last_packet_seen); + if(measured_diff_ticks > max_diff_ticks) { +- debugWarning("(%p, %s) Handler died: now: %08X, last: %08X, diff: %"PRId64" (max: %"PRId64")\n", ++ debugWarning("(%p, %s) Handler died: now: %08X, last: %08X, diff: %" PRId64 " (max: %" PRId64 ")\n", + this, (m_handlerType == IsoHandler::eHT_Transmit? "Transmit": "Receive"), + ctr_at_poll_return, last_packet_seen, measured_diff_ticks, max_diff_ticks); +@@ -439,5 +439,5 @@ + debugError("(%p) sem_timedwait error (result=%d errno=EINVAL)\n", + this, result); +- debugError("(%p) timeout_nsec=%lld ts.sec=%"PRId64" ts.nsec=%"PRId64"\n", ++ debugError("(%p) timeout_nsec=%lld ts.sec=%" PRId64 " ts.nsec=%" PRId64 "\n", + this, m_activity_wait_timeout_nsec, + (int64_t)ts.tv_sec, (int64_t)ts.tv_nsec); +@@ -446,5 +446,5 @@ + debugError("(%p) sem_timedwait error (result=%d errno=%d)\n", + this, result, errno); +- debugError("(%p) timeout_nsec=%lld ts.sec=%"PRId64" ts.nsec=%"PRId64"\n", ++ debugError("(%p) timeout_nsec=%lld ts.sec=%" PRId64 " ts.nsec=%" PRId64 "\n", + this, m_activity_wait_timeout_nsec, + (int64_t)ts.tv_sec, (int64_t)ts.tv_nsec); +@@ -1593,5 +1593,5 @@ + if((pkt_ctr & ~0x0FFFL) != pkt_ctr_ref) { + debugWarning("reconstructed CTR counter discrepancy\n"); +- debugWarning(" ingredients: %X, %X, %X, %X, %X, %d, %ld, %ld, %"PRId64"\n", ++ debugWarning(" ingredients: %X, %X, %X, %X, %X, %d, %ld, %ld, %" PRId64 "\n", + cycle, pkt_ctr_ref, pkt_ctr, + now, m_last_now, now_secs_ref, +@@ -1599,5 +1599,5 @@ + (long int)CYCLE_TIMER_GET_SECS(m_last_now), + tmp); +- debugWarning(" diffcy = %"PRId64" \n", diff_cycles); ++ debugWarning(" diffcy = %" PRId64 " \n", diff_cycles); + } + #endif +@@ -1678,5 +1678,5 @@ + if(((pkt_ctr & ~0x0FFFL) != pkt_ctr_ref) && (m_packets > m_buf_packets)) { + debugWarning("reconstructed CTR counter discrepancy\n"); +- debugWarning(" ingredients: %X, %X, %X, %X, %X, %d, %ld, %ld, %"PRId64"\n", ++ debugWarning(" ingredients: %X, %X, %X, %X, %X, %d, %ld, %ld, %" PRId64 "\n", + cycle, pkt_ctr_ref, pkt_ctr, + now, m_last_now, now_secs_ref, +@@ -1684,5 +1684,5 @@ + (long int)CYCLE_TIMER_GET_SECS(m_last_now), + tmp); +- debugWarning(" diffcy = %"PRId64" \n", diff_cycles); ++ debugWarning(" diffcy = %" PRId64 " \n", diff_cycles); + } + #endif +Index: trunk/libffado/src/libstreaming/rme/RmeTransmitStreamProcessor.cpp +=================================================================== +--- trunk/libffado/src/libstreaming/rme/RmeTransmitStreamProcessor.cpp (revision 2574) ++++ trunk/libffado/src/libstreaming/rme/RmeTransmitStreamProcessor.cpp (revision 2651) +@@ -228,5 +228,5 @@ + // we are too late + debugOutput(DEBUG_LEVEL_VERBOSE, +- "Too late: CY=%04u, TC=%04u, CUT=%04d, TSP=%011"PRIu64" (%04u)\n", ++ "Too late: CY=%04u, TC=%04u, CUT=%04d, TSP=%011" PRIu64 " (%04u)\n", + cycle, + transmit_at_cycle, cycles_until_transmit, +@@ -266,5 +266,5 @@ + { + debugOutput ( DEBUG_LEVEL_VERY_VERBOSE, +- "Too early: CY=%04u, TC=%04u, CUT=%04d, TST=%011"PRIu64" (%04u), TSP=%011"PRIu64" (%04u)\n", ++ "Too early: CY=%04u, TC=%04u, CUT=%04d, TST=%011" PRIu64 " (%04u), TSP=%011" PRIu64 " (%04u)\n", + cycle, + transmit_at_cycle, cycles_until_transmit, +@@ -275,5 +275,5 @@ + { + debugOutput ( DEBUG_LEVEL_VERY_VERBOSE, +- "Way too early: CY=%04u, TC=%04u, CUT=%04d, TST=%011"PRIu64" (%04u), TSP=%011"PRIu64" (%04u)\n", ++ "Way too early: CY=%04u, TC=%04u, CUT=%04d, TST=%011" PRIu64 " (%04u), TSP=%011" PRIu64 " (%04u)\n", + cycle, + transmit_at_cycle, cycles_until_transmit, +@@ -342,5 +342,5 @@ + uint32_t pkt_ctr ) + { +- debugOutput ( DEBUG_LEVEL_VERY_VERBOSE, "XMIT EMPTY: CY=%04lu, TSP=%011"PRIu64" (%04u)\n", ++ debugOutput ( DEBUG_LEVEL_VERY_VERBOSE, "XMIT EMPTY: CY=%04lu, TSP=%011" PRIu64 " (%04u)\n", + CYCLE_TIMER_GET_CYCLES(pkt_ctr), m_last_timestamp, + ( unsigned int ) TICKS_TO_CYCLES ( m_last_timestamp ) ); +@@ -427,5 +427,5 @@ + unsigned int cycle = CYCLE_TIMER_GET_CYCLES(pkt_ctr); + +- debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "XMIT SILENT: CY=%04u, TSP=%011"PRIu64" (%04u)\n", ++ debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "XMIT SILENT: CY=%04u, TSP=%011" PRIu64 " (%04u)\n", + cycle, m_last_timestamp, + ( unsigned int ) TICKS_TO_CYCLES ( m_last_timestamp ) ); +Index: trunk/libffado/src/libstreaming/rme/RmeReceiveStreamProcessor.cpp +=================================================================== +--- trunk/libffado/src/libstreaming/rme/RmeReceiveStreamProcessor.cpp (revision 2574) ++++ trunk/libffado/src/libstreaming/rme/RmeReceiveStreamProcessor.cpp (revision 2651) +@@ -232,5 +232,5 @@ + #ifdef DEBUG + if(isRunning()) { +- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"STMP: %"PRIu64"ticks | tpf=%f\n", ++ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"STMP: %" PRIu64 "ticks | tpf=%f\n", + m_last_timestamp, getTicksPerFrame()); + } +Index: trunk/libffado/src/libstreaming/amdtp-oxford/AmdtpOxfordReceiveStreamProcessor.cpp +=================================================================== +--- trunk/libffado/src/libstreaming/amdtp-oxford/AmdtpOxfordReceiveStreamProcessor.cpp (revision 1945) ++++ trunk/libffado/src/libstreaming/amdtp-oxford/AmdtpOxfordReceiveStreamProcessor.cpp (revision 2651) +@@ -194,5 +194,5 @@ + + debugOutput(DEBUG_LEVEL_VERY_VERBOSE, +- "Generated TSP: %16"PRIu64" %"PRId64" %d %d\n", ++ "Generated TSP: %16" PRIu64 " %" PRId64 " %d %d\n", + m_next_packet_timestamp, + m_next_packet_timestamp-m_last_timestamp, +Index: trunk/libffado/src/libstreaming/motu/MotuTransmitStreamProcessor.cpp +=================================================================== +--- trunk/libffado/src/libstreaming/motu/MotuTransmitStreamProcessor.cpp (revision 2532) ++++ trunk/libffado/src/libstreaming/motu/MotuTransmitStreamProcessor.cpp (revision 2651) +@@ -229,5 +229,5 @@ + // we are too late + debugOutput(DEBUG_LEVEL_VERBOSE, +- "Too late: CY=%04u, TC=%04u, CUT=%04d, TSP=%011"PRIu64" (%04u)\n", ++ "Too late: CY=%04u, TC=%04u, CUT=%04d, TSP=%011" PRIu64 " (%04u)\n", + cycle, + transmit_at_cycle, cycles_until_transmit, +@@ -260,5 +260,5 @@ + { + debugOutput ( DEBUG_LEVEL_VERY_VERBOSE, +- "Too early: CY=%04u, TC=%04u, CUT=%04d, TST=%011"PRIu64" (%04u), TSP=%011"PRIu64" (%04u)\n", ++ "Too early: CY=%04u, TC=%04u, CUT=%04d, TST=%011" PRIu64 " (%04u), TSP=%011" PRIu64 " (%04u)\n", + cycle, + transmit_at_cycle, cycles_until_transmit, +@@ -269,5 +269,5 @@ + { + debugOutput ( DEBUG_LEVEL_VERY_VERBOSE, +- "Way too early: CY=%04u, TC=%04u, CUT=%04d, TST=%011"PRIu64" (%04u), TSP=%011"PRIu64" (%04u)\n", ++ "Way too early: CY=%04u, TC=%04u, CUT=%04d, TST=%011" PRIu64 " (%04u), TSP=%011" PRIu64 " (%04u)\n", + cycle, + transmit_at_cycle, cycles_until_transmit, +@@ -378,5 +378,5 @@ + uint32_t pkt_ctr ) + { +- debugOutput ( DEBUG_LEVEL_VERY_VERBOSE, "XMIT EMPTY: CY=%04d, TSP=%011"PRIu64" (%04u)\n", ++ debugOutput ( DEBUG_LEVEL_VERY_VERBOSE, "XMIT EMPTY: CY=%04d, TSP=%011" PRIu64 " (%04u)\n", + (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), m_last_timestamp, + ( unsigned int ) TICKS_TO_CYCLES ( m_last_timestamp ) ); +@@ -408,5 +408,5 @@ + unsigned int cycle = CYCLE_TIMER_GET_CYCLES(pkt_ctr); + +- debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "XMIT SILENT: CY=%04u, TSP=%011"PRIu64" (%04u)\n", ++ debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "XMIT SILENT: CY=%04u, TSP=%011" PRIu64 " (%04u)\n", + cycle, m_last_timestamp, + ( unsigned int ) TICKS_TO_CYCLES ( m_last_timestamp ) ); +Index: trunk/libffado/src/libstreaming/motu/MotuReceiveStreamProcessor.cpp +=================================================================== +--- trunk/libffado/src/libstreaming/motu/MotuReceiveStreamProcessor.cpp (revision 2532) ++++ trunk/libffado/src/libstreaming/motu/MotuReceiveStreamProcessor.cpp (revision 2651) +@@ -237,5 +237,5 @@ + #ifdef DEBUG + if(isRunning()) { +- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"STMP: %"PRIu64"ticks | tpf=%f\n", ++ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"STMP: %" PRIu64 "ticks | tpf=%f\n", + m_last_timestamp, getTicksPerFrame()); + } +Index: trunk/libffado/src/libstreaming/amdtp/AmdtpTransmitStreamProcessor.cpp +=================================================================== +--- trunk/libffado/src/libstreaming/amdtp/AmdtpTransmitStreamProcessor.cpp (revision 2574) ++++ trunk/libffado/src/libstreaming/amdtp/AmdtpTransmitStreamProcessor.cpp (revision 2651) +@@ -202,5 +202,5 @@ + // we are too late + debugOutput(DEBUG_LEVEL_VERBOSE, +- "Too late: CY=%04d, TC=%04u, CUT=%04d, TSP=%011"PRIu64" (%04u)\n", ++ "Too late: CY=%04d, TC=%04u, CUT=%04d, TSP=%011" PRIu64 " (%04u)\n", + (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), + transmit_at_cycle, cycles_until_transmit, +@@ -231,5 +231,5 @@ + // for timestamp tracing + debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, +- "XMIT PKT: TSP= %011"PRIu64" (%04u) (%04u) (%04u)\n", ++ "XMIT PKT: TSP= %011" PRIu64 " (%04u) (%04u) (%04u)\n", + presentation_time, + (unsigned int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), +@@ -241,5 +241,5 @@ + { + debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, +- "Too early: CY=%04u, TC=%04u, CUT=%04d, TST=%011"PRIu64" (%04u), TSP=%011"PRId64" (%04u)\n", ++ "Too early: CY=%04u, TC=%04u, CUT=%04d, TST=%011" PRIu64 " (%04u), TSP=%011" PRId64 " (%04u)\n", + (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), + transmit_at_cycle, cycles_until_transmit, +@@ -250,5 +250,5 @@ + { + debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, +- "Way too early: CY=%04u, TC=%04u, CUT=%04d, TST=%011"PRIu64" (%04u), TSP=%011"PRId64"(%04u)\n", ++ "Way too early: CY=%04u, TC=%04u, CUT=%04d, TST=%011" PRIu64 " (%04u), TSP=%011" PRId64 "(%04u)\n", + (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), + transmit_at_cycle, cycles_until_transmit, +@@ -271,5 +271,5 @@ + { + debugOutputExtreme(DEBUG_LEVEL_VERBOSE, +- "XMIT DATA: TSP= %011"PRIu64" (%04u)\n", ++ "XMIT DATA: TSP= %011" PRIu64 " (%04u)\n", + m_last_timestamp, + (unsigned int)TICKS_TO_CYCLES(m_last_timestamp)); +@@ -303,5 +303,5 @@ + struct iec61883_packet *packet = ( struct iec61883_packet * ) data; + debugOutputExtreme(DEBUG_LEVEL_ULTRA_VERBOSE, +- "XMIT SILENT (cy %04d): TSP=%011"PRIu64" (%04u)\n", ++ "XMIT SILENT (cy %04d): TSP=%011" PRIu64 " (%04u)\n", + (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), m_last_timestamp, + (unsigned int)TICKS_TO_CYCLES(m_last_timestamp)); +@@ -341,5 +341,5 @@ + struct iec61883_packet *packet = ( struct iec61883_packet * ) data; + debugOutputExtreme(DEBUG_LEVEL_ULTRA_VERBOSE, +- "XMIT EMPTY (cy %04d): TSP=%011"PRIu64" (%04u)\n", ++ "XMIT EMPTY (cy %04d): TSP=%011" PRIu64 " (%04u)\n", + (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), m_last_timestamp, + (unsigned int)TICKS_TO_CYCLES(m_last_timestamp) ); +Index: trunk/libffado/src/libstreaming/StreamProcessorManager.cpp +=================================================================== +--- trunk/libffado/src/libstreaming/StreamProcessorManager.cpp (revision 2524) ++++ trunk/libffado/src/libstreaming/StreamProcessorManager.cpp (revision 2651) +@@ -199,5 +199,5 @@ + debugError("(%p) sem_[timed]wait error (result=%d errno=EINVAL)\n", + this, result); +- debugError("(%p) timeout_nsec=%"PRId64" ts.sec=%"PRId64" ts.nsec=%"PRId64"\n", ++ debugError("(%p) timeout_nsec=%" PRId64 " ts.sec=%" PRId64 " ts.nsec=%" PRId64 "\n", + this, m_activity_wait_timeout_nsec, + (int64_t)ts.tv_sec, (int64_t)ts.tv_nsec); +@@ -206,5 +206,5 @@ + debugError("(%p) sem_[timed]wait error (result=%d errno=%d)\n", + this, result, errno); +- debugError("(%p) timeout_nsec=%"PRId64" ts.sec=%"PRId64" ts.nsec=%"PRId64"\n", ++ debugError("(%p) timeout_nsec=%" PRId64 " ts.sec=%" PRId64 " ts.nsec=%" PRId64 "\n", + this, m_activity_wait_timeout_nsec, + (int64_t)ts.tv_sec, (int64_t)ts.tv_nsec); +@@ -636,6 +636,6 @@ + #if DEBUG_EXTREME_ENABLE + int64_t now = Util::SystemTimeSource::getCurrentTime(); +- debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "CTR pred: %"PRId64", syncdelay: %"PRId64", diff: %"PRId64"\n", ticks_at_period, ticks_at_period_margin, ticks_at_period_margin-ticks_at_period ); +- debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "PREWAIT pred: %"PRId64", now: %"PRId64", wait: %"PRId64"\n", pred_system_time_at_xfer, now, pred_system_time_at_xfer-now ); ++ debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "CTR pred: %" PRId64 ", syncdelay: %" PRId64 ", diff: %" PRId64 "\n", ticks_at_period, ticks_at_period_margin, ticks_at_period_margin-ticks_at_period ); ++ debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "PREWAIT pred: %" PRId64 ", now: %" PRId64 ", wait: %" PRId64 "\n", pred_system_time_at_xfer, now, pred_system_time_at_xfer-now ); + #endif + +@@ -645,5 +645,5 @@ + #if DEBUG_EXTREME_ENABLE + now = Util::SystemTimeSource::getCurrentTime(); +- debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "POSTWAIT pred: %"PRId64", now: %"PRId64", excess: %"PRId64"\n", pred_system_time_at_xfer, now, now-pred_system_time_at_xfer ); ++ debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "POSTWAIT pred: %" PRId64 ", now: %" PRId64 ", excess: %" PRId64 "\n", pred_system_time_at_xfer, now, now-pred_system_time_at_xfer ); + #endif + } +@@ -666,5 +666,5 @@ + // figure out where we are now + uint64_t time_of_first_sample = m_SyncSource->getTimeAtPeriod(); +- debugOutput( DEBUG_LEVEL_VERBOSE, " sync at TS=%011"PRIu64" (%03us %04uc %04ut)...\n", ++ debugOutput( DEBUG_LEVEL_VERBOSE, " sync at TS=%011" PRIu64 " (%03us %04uc %04ut)...\n", + time_of_first_sample, + (unsigned int)TICKS_TO_SECS(time_of_first_sample), +@@ -683,8 +683,8 @@ + time_of_first_sample = addTicks(time_of_first_sample, + time_for_startup_ticks); +- debugOutput( DEBUG_LEVEL_VERBOSE, " add %d frames (%011"PRIu64" ticks)...\n", ++ debugOutput( DEBUG_LEVEL_VERBOSE, " add %d frames (%011" PRIu64 " ticks)...\n", + time_for_startup_frames, time_for_startup_ticks); + +- debugOutput( DEBUG_LEVEL_VERBOSE, " => first sample at TS=%011"PRIu64" (%03us %04uc %04ut)...\n", ++ debugOutput( DEBUG_LEVEL_VERBOSE, " => first sample at TS=%011" PRIu64 " (%03us %04uc %04ut)...\n", + time_of_first_sample, + (unsigned int)TICKS_TO_SECS(time_of_first_sample), +@@ -699,10 +699,10 @@ + uint64_t time_to_start_recv = substractTicks(time_of_first_sample, + prestart_cycles_for_recv * TICKS_PER_CYCLE); +- debugOutput( DEBUG_LEVEL_VERBOSE, " => xmit starts at TS=%011"PRIu64" (%03us %04uc %04ut)...\n", ++ debugOutput( DEBUG_LEVEL_VERBOSE, " => xmit starts at TS=%011" PRIu64 " (%03us %04uc %04ut)...\n", + time_to_start_xmit, + (unsigned int)TICKS_TO_SECS(time_to_start_xmit), + (unsigned int)TICKS_TO_CYCLES(time_to_start_xmit), + (unsigned int)TICKS_TO_OFFSET(time_to_start_xmit)); +- debugOutput( DEBUG_LEVEL_VERBOSE, " => recv starts at TS=%011"PRIu64" (%03us %04uc %04ut)...\n", ++ debugOutput( DEBUG_LEVEL_VERBOSE, " => recv starts at TS=%011" PRIu64 " (%03us %04uc %04ut)...\n", + time_to_start_recv, + (unsigned int)TICKS_TO_SECS(time_to_start_recv), +@@ -756,5 +756,5 @@ + signed int fc; + (*it)->getBufferHeadTimestamp ( &ts, &fc ); +- debugOutput( DEBUG_LEVEL_VERBOSE, " transmit buffer tail %010"PRId64" => head TS %010"PRIu64", fc=%d...\n", ++ debugOutput( DEBUG_LEVEL_VERBOSE, " transmit buffer tail %010" PRId64 " => head TS %010" PRIu64 ", fc=%d...\n", + time_of_first_sample, (uint64_t)ts, fc); + } +@@ -786,5 +786,5 @@ + } + if(!m_SyncSource->scheduleStartRunning(time_to_start_sync)) { +- debugError("m_SyncSource->scheduleStartRunning(%11"PRIu64") failed\n", time_to_start_sync); ++ debugError("m_SyncSource->scheduleStartRunning(%11" PRIu64 ") failed\n", time_to_start_sync); + return false; + } +@@ -796,5 +796,5 @@ + if(*it != m_SyncSource) { + if(!(*it)->scheduleStartRunning(time_to_start_recv)) { +- debugError("%p->scheduleStartRunning(%11"PRIu64") failed\n", *it, time_to_start_recv); ++ debugError("%p->scheduleStartRunning(%11" PRIu64 ") failed\n", *it, time_to_start_recv); + return false; + } +@@ -806,5 +806,5 @@ + if(*it != m_SyncSource) { + if(!(*it)->scheduleStartRunning(time_to_start_xmit)) { +- debugError("%p->scheduleStartRunning(%11"PRIu64") failed\n", *it, time_to_start_xmit); ++ debugError("%p->scheduleStartRunning(%11" PRIu64 ") failed\n", *it, time_to_start_xmit); + return false; + } +@@ -839,5 +839,5 @@ + #endif + +- debugOutput( DEBUG_LEVEL_VERBOSE, " initial time of transfer %010"PRId64", rate %f...\n", ++ debugOutput( DEBUG_LEVEL_VERBOSE, " initial time of transfer %010" PRId64 ", rate %f...\n", + m_time_of_transfer, rate); + +@@ -858,5 +858,5 @@ + + int64_t transmit_tail_timestamp = addTicks(m_time_of_transfer, delay_in_ticks); +- debugOutput( DEBUG_LEVEL_VERBOSE, " preset transmit tail TS %010"PRId64", rate %f...\n", ++ debugOutput( DEBUG_LEVEL_VERBOSE, " preset transmit tail TS %010" PRId64 ", rate %f...\n", + transmit_tail_timestamp, rate); + +@@ -869,5 +869,5 @@ + signed int fc; + (*it)->getBufferHeadTimestamp ( &ts, &fc ); +- debugOutput( DEBUG_LEVEL_VERBOSE, " => transmit head TS %010"PRId64", fc=%d...\n", ++ debugOutput( DEBUG_LEVEL_VERBOSE, " => transmit head TS %010" PRId64 ", fc=%d...\n", + (uint64_t)ts, fc); + } +@@ -926,5 +926,5 @@ + StreamProcessor *s = m_ReceiveProcessors.at(i); + diff = diffTicks(m_SyncSource->getTimeAtPeriod(), s->getTimeAtPeriod()); +- debugOutput( DEBUG_LEVEL_VERY_VERBOSE, " offset between SyncSP %p and SP %p is %"PRId64" ticks...\n", ++ debugOutput( DEBUG_LEVEL_VERY_VERBOSE, " offset between SyncSP %p and SP %p is %" PRId64 " ticks...\n", + m_SyncSource, s, diff); + if ( nb_sync_runs == periods_per_align_try ) { +@@ -948,5 +948,5 @@ + diff_between_streams[i] /= periods_per_align_try; + diff_between_streams_frames[i] = (int)roundf(diff_between_streams[i] / s->getTicksPerFrame()); +- debugOutput( DEBUG_LEVEL_VERBOSE, " avg offset between SyncSP %p and SP %p is %"PRId64" ticks, %d frames...\n", ++ debugOutput( DEBUG_LEVEL_VERBOSE, " avg offset between SyncSP %p and SP %p is %" PRId64 " ticks, %d frames...\n", + m_SyncSource, s, diff_between_streams[i], diff_between_streams_frames[i]); + +@@ -1230,6 +1230,6 @@ + #if DEBUG_EXTREME_ENABLE + int64_t now = Util::SystemTimeSource::getCurrentTime(); +- debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "CTR pred: %"PRId64", syncdelay: %"PRId64", diff: %"PRId64"\n", ticks_at_period, ticks_at_period_margin, ticks_at_period_margin-ticks_at_period ); +- debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "PREWAIT pred: %"PRId64", now: %"PRId64", wait: %"PRId64"\n", pred_system_time_at_xfer, now, pred_system_time_at_xfer-now ); ++ debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "CTR pred: %" PRId64 ", syncdelay: %" PRId64 ", diff: %" PRId64 "\n", ticks_at_period, ticks_at_period_margin, ticks_at_period_margin-ticks_at_period ); ++ debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "PREWAIT pred: %" PRId64 ", now: %" PRId64 ", wait: %" PRId64 "\n", pred_system_time_at_xfer, now, pred_system_time_at_xfer-now ); + #endif + +@@ -1239,5 +1239,5 @@ + #if DEBUG_EXTREME_ENABLE + now = Util::SystemTimeSource::getCurrentTime(); +- debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "POSTWAIT pred: %"PRId64", now: %"PRId64", excess: %"PRId64"\n", pred_system_time_at_xfer, now, now-pred_system_time_at_xfer ); ++ debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "POSTWAIT pred: %" PRId64 ", now: %" PRId64 ", excess: %" PRId64 "\n", pred_system_time_at_xfer, now, now-pred_system_time_at_xfer ); + #endif + +@@ -1369,5 +1369,5 @@ + // so 50 ticks = 10%, which is a rather large jitter value. + if(diff-ticks_per_period > m_max_diff_ticks || diff-ticks_per_period < -m_max_diff_ticks) { +- debugOutput(DEBUG_LEVEL_VERBOSE, "rather large TSP difference TS=%011"PRIu64" => TS=%011"PRIu64" (%d, nom %d)\n", ++ debugOutput(DEBUG_LEVEL_VERBOSE, "rather large TSP difference TS=%011" PRIu64 " => TS=%011" PRIu64 " (%d, nom %d)\n", + m_time_of_transfer2, m_time_of_transfer, diff, ticks_per_period); + } +@@ -1376,5 +1376,5 @@ + + debugOutputExtreme(DEBUG_LEVEL_VERBOSE, +- "transfer period %d at %"PRIu64" ticks...\n", ++ "transfer period %d at %" PRIu64 " ticks...\n", + m_nbperiods, m_time_of_transfer); + +@@ -1392,5 +1392,5 @@ + } + debugOutputExtreme( DEBUG_LEVEL_VERY_VERBOSE, +- "XF at %011"PRIu64" ticks, RBF=%d, XBF=%d, SUM=%d...\n", ++ "XF at %011" PRIu64 " ticks, RBF=%d, XBF=%d, SUM=%d...\n", + m_time_of_transfer, rcv_bf, xmt_bf, rcv_bf+xmt_bf); + #endif +@@ -1467,5 +1467,5 @@ + if(m_SyncSource == NULL) return false; + debugOutputExtreme( DEBUG_LEVEL_VERY_VERBOSE, +- "transfer(%d) at TS=%011"PRIu64" (%03us %04uc %04ut)...\n", ++ "transfer(%d) at TS=%011" PRIu64 " (%03us %04uc %04ut)...\n", + t, m_time_of_transfer, + (unsigned int)TICKS_TO_SECS(m_time_of_transfer), +@@ -1481,5 +1481,5 @@ + ++it ) { + if(!(*it)->getFrames(m_period, m_time_of_transfer)) { +- debugWarning("could not getFrames(%u, %11"PRIu64") from stream processor (%p)\n", ++ debugWarning("could not getFrames(%u, %11" PRIu64 ") from stream processor (%p)\n", + m_period, m_time_of_transfer,*it); + retval &= false; // buffer underrun +@@ -1504,5 +1504,5 @@ + + if(!(*it)->putFrames(m_period, transmit_timestamp)) { +- debugWarning("could not putFrames(%u,%"PRIu64") to stream processor (%p)\n", ++ debugWarning("could not putFrames(%u,%" PRIu64 ") to stream processor (%p)\n", + m_period, transmit_timestamp, *it); + retval &= false; // buffer underrun +@@ -1545,5 +1545,5 @@ + if(m_SyncSource == NULL) return false; + debugOutput( DEBUG_LEVEL_VERY_VERBOSE, +- "transferSilence(%d) at TS=%011"PRIu64" (%03us %04uc %04ut)...\n", ++ "transferSilence(%d) at TS=%011" PRIu64 " (%03us %04uc %04ut)...\n", + t, m_time_of_transfer, + (unsigned int)TICKS_TO_SECS(m_time_of_transfer), +@@ -1559,5 +1559,5 @@ + ++it ) { + if(!(*it)->dropFrames(m_period, m_time_of_transfer)) { +- debugWarning("could not dropFrames(%u, %11"PRIu64") from stream processor (%p)\n", ++ debugWarning("could not dropFrames(%u, %11" PRIu64 ") from stream processor (%p)\n", + m_period, m_time_of_transfer,*it); + retval &= false; // buffer underrun +@@ -1582,5 +1582,5 @@ + + if(!(*it)->putSilenceFrames(m_period, transmit_timestamp)) { +- debugWarning("could not putSilenceFrames(%u,%"PRIu64") to stream processor (%p)\n", ++ debugWarning("could not putSilenceFrames(%u,%" PRIu64 ") to stream processor (%p)\n", + m_period, transmit_timestamp, *it); + retval &= false; // buffer underrun +Index: trunk/libffado/src/libstreaming/generic/StreamProcessor.cpp +=================================================================== +--- trunk/libffado/src/libstreaming/generic/StreamProcessor.cpp (revision 2593) ++++ trunk/libffado/src/libstreaming/generic/StreamProcessor.cpp (revision 2651) +@@ -304,5 +304,5 @@ + m_data_buffer->getBufferTailTimestamp(&ts,&fc); + +- debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "=> NPD="TIMESTAMP_FORMAT_SPEC", LTS="TIMESTAMP_FORMAT_SPEC", FC=%5u, TPF=%f\n", ++ debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "=> NPD=" TIMESTAMP_FORMAT_SPEC ", LTS=" TIMESTAMP_FORMAT_SPEC ", FC=%5u, TPF=%f\n", + next_period_boundary, ts, fc, getTicksPerFrame() + ); +@@ -317,5 +317,5 @@ + m_data_buffer->getBufferTailTimestamp(&ts,&fc); + +- debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "=> NPD="TIMESTAMP_FORMAT_SPEC", LTS="TIMESTAMP_FORMAT_SPEC", FC=%5u, TPF=%f\n", ++ debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "=> NPD=" TIMESTAMP_FORMAT_SPEC ", LTS=" TIMESTAMP_FORMAT_SPEC ", FC=%5u, TPF=%f\n", + next_period_boundary, ts, fc, getTicksPerFrame() + ); +@@ -465,5 +465,5 @@ + if (m_last_timestamp > 0 && m_last_timestamp2 > 0) { + int64_t tsp_diff = diffTicks(m_last_timestamp, m_last_timestamp2); +- debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "TSP diff: %"PRId64"\n", tsp_diff); ++ debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "TSP diff: %" PRId64 "\n", tsp_diff); + double tsp_diff_d = tsp_diff; + double fs_syt = 1.0/tsp_diff_d; +@@ -487,5 +487,5 @@ + if(diff-ticks_per_packet > m_max_diff_ticks || diff-ticks_per_packet < -m_max_diff_ticks) { + debugOutput(DEBUG_LEVEL_VERBOSE, +- "cy %04d rather large TSP difference TS=%011"PRIu64" => TS=%011"PRIu64" (%d, nom %d)\n", ++ "cy %04d rather large TSP difference TS=%011" PRIu64 " => TS=%011" PRIu64 " (%d, nom %d)\n", + (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), m_last_timestamp2, + m_last_timestamp, diff, ticks_per_packet); +@@ -498,5 +498,5 @@ + diff = diffTicks(last_timestamp_fixed, m_last_timestamp2); + if(diff-ticks_per_packet < 50 && diff-ticks_per_packet > -50) { +- debugWarning("cy %04d rather large TSP difference TS=%011"PRIu64" => TS=%011"PRIu64" (%d, nom %d)\n", ++ debugWarning("cy %04d rather large TSP difference TS=%011" PRIu64 " => TS=%011" PRIu64 " (%d, nom %d)\n", + (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), m_last_timestamp2, + m_last_timestamp, diff, ticks_per_packet); +@@ -508,5 +508,5 @@ + diff = diffTicks(last_timestamp_fixed, m_last_timestamp2); + if(diff-ticks_per_packet < 50 && diff-ticks_per_packet > -50) { +- debugWarning("cy %04d rather large TSP difference TS=%011"PRIu64" => TS=%011"PRIu64" (%d, nom %d)\n", ++ debugWarning("cy %04d rather large TSP difference TS=%011" PRIu64 " => TS=%011" PRIu64 " (%d, nom %d)\n", + (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), m_last_timestamp2, + m_last_timestamp, diff, ticks_per_packet); +@@ -517,5 +517,5 @@ + } + debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, +- "%04u %011"PRIu64" %011"PRIu64" %d %d\n", ++ "%04u %011" PRIu64 " %011" PRIu64 " %d %d\n", + (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), + m_last_timestamp2, m_last_timestamp, +@@ -525,5 +525,5 @@ + + debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, +- "RECV: CY=%04u TS=%011"PRIu64"\n", ++ "RECV: CY=%04u TS=%011" PRIu64 "\n", + (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), + m_last_timestamp); +@@ -694,5 +694,5 @@ + if (result == eCRV_Packet) { + debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, +- "XMIT SILENT: CY=%04u TS=%011"PRIu64"\n", ++ "XMIT SILENT: CY=%04u TS=%011" PRIu64 "\n", + (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), m_last_timestamp); + +@@ -745,5 +745,5 @@ + if (result == eCRV_Packet || result == eCRV_Defer) { + debugOutputExtreme(DEBUG_LEVEL_VERBOSE, +- "XMIT: CY=%04u TS=%011"PRIu64"\n", ++ "XMIT: CY=%04u TS=%011" PRIu64 "\n", + (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), m_last_timestamp); + +@@ -782,5 +782,5 @@ + if (m_last_timestamp > 0 && m_last_timestamp2 > 0) { + int64_t tsp_diff = diffTicks(m_last_timestamp, m_last_timestamp2); +- debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "TSP diff: %"PRId64"\n", tsp_diff); ++ debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "TSP diff: %" PRId64 "\n", tsp_diff); + double tsp_diff_d = tsp_diff; + double fs_syt = 1.0/tsp_diff_d; +@@ -791,5 +791,5 @@ + debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "Nom fs: %12f, Instantanous fs: %12f, diff: %12f (%12f)\n", + fs_nom, fs_syt, fs_diff, fs_diff_norm); +-// debugOutput(DEBUG_LEVEL_VERBOSE, "Diff fs: %12f, m_last_timestamp: %011"PRIu64", m_last_timestamp2: %011"PRIu64"\n", ++// debugOutput(DEBUG_LEVEL_VERBOSE, "Diff fs: %12f, m_last_timestamp: %011" PRIu64 ", m_last_timestamp2: %011" PRIu64 "\n", + // fs_diff, m_last_timestamp, m_last_timestamp2); + if (fs_diff_norm > m_max_fs_diff_norm || fs_diff_norm < -m_max_fs_diff_norm) { +@@ -805,10 +805,10 @@ + if(diff-ticks_per_packet > m_max_diff_ticks || diff-ticks_per_packet < -m_max_diff_ticks) { + debugOutput(DEBUG_LEVEL_VERBOSE, +- "cy %04d, rather large TSP difference TS=%011"PRIu64" => TS=%011"PRIu64" (%d, nom %d)\n", ++ "cy %04d, rather large TSP difference TS=%011" PRIu64 " => TS=%011" PRIu64 " (%d, nom %d)\n", + (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), m_last_timestamp2, + m_last_timestamp, diff, ticks_per_packet); + } + debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, +- "%04d %011"PRIu64" %011"PRIu64" %d %d\n", ++ "%04d %011" PRIu64 " %011" PRIu64 " %d %d\n", + (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), m_last_timestamp2, + m_last_timestamp, diff, ticks_per_packet); +@@ -903,5 +903,5 @@ + bool result; + debugOutputExtreme( DEBUG_LEVEL_VERBOSE, +- "(%p, %s) getFrames(%d, %11"PRIu64")\n", ++ "(%p, %s) getFrames(%d, %11" PRIu64 ")\n", + this, getTypeString(), nbframes, ts); + assert( getType() == ePT_Receive ); +@@ -934,13 +934,13 @@ + lag_frames = (((float)lag_ticks) / srate); + debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, +- "stream (%p): drifts %6d ticks = %10.5f frames (rate=%10.5f), %"PRId64", %"PRIu64", %d\n", ++ "stream (%p): drifts %6d ticks = %10.5f frames (rate=%10.5f), %" PRId64 ", %" PRIu64 ", %d\n", + this, lag_ticks, lag_frames, srate, ts, ts_expected, fc); + if (lag_frames >= 1.0) { + // the stream lags +- debugOutput(DEBUG_LEVEL_VERBOSE, "stream (%p): lags with %6d ticks = %10.5f frames (rate=%10.5f), %"PRId64", %"PRIu64", %d\n", ++ debugOutput(DEBUG_LEVEL_VERBOSE, "stream (%p): lags with %6d ticks = %10.5f frames (rate=%10.5f), %" PRId64 ", %" PRIu64 ", %d\n", + this, lag_ticks, lag_frames, srate, ts, ts_expected, fc); + } else if (lag_frames <= -1.0) { + // the stream leads +- debugOutput(DEBUG_LEVEL_VERBOSE, "stream (%p): leads with %6d ticks = %10.5f frames (rate=%10.5f), %"PRId64", %"PRIu64", %d\n", ++ debugOutput(DEBUG_LEVEL_VERBOSE, "stream (%p): leads with %6d ticks = %10.5f frames (rate=%10.5f), %" PRId64 ", %" PRIu64 ", %d\n", + this, lag_ticks, lag_frames, srate, ts, ts_expected, fc); + } +@@ -956,5 +956,5 @@ + { + debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, +- "stream (%p): dry run %d frames (@ ts=%"PRId64")\n", ++ "stream (%p): dry run %d frames (@ ts=%" PRId64 ")\n", + this, nbframes, ts); + // dry run on this side means that we put silence in all enabled ports +@@ -967,5 +967,5 @@ + { + bool result; +- debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "StreamProcessor::dropFrames(%d, %"PRId64")\n", nbframes, ts); ++ debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "StreamProcessor::dropFrames(%d, %" PRId64 ")\n", nbframes, ts); + result = m_data_buffer->dropFrames(nbframes); + SIGNAL_ACTIVITY_ISO_RECV; +@@ -977,5 +977,5 @@ + bool result; + debugOutputExtreme( DEBUG_LEVEL_VERBOSE, +- "(%p, %s) putFrames(%d, %11"PRIu64")\n", ++ "(%p, %s) putFrames(%d, %11" PRIu64 ")\n", + this, getTypeString(), nbframes, ts); + assert( getType() == ePT_Transmit ); +@@ -990,10 +990,10 @@ + { + debugOutputExtreme(DEBUG_LEVEL_ULTRA_VERBOSE, +- "StreamProcessor::putFramesWet(%d, %"PRIu64")\n", ++ "StreamProcessor::putFramesWet(%d, %" PRIu64 ")\n", + nbframes, ts); + // transfer the data + m_data_buffer->blockProcessWriteFrames(nbframes, ts); + debugOutputExtreme(DEBUG_LEVEL_ULTRA_VERBOSE, +- " New timestamp: %"PRIu64"\n", ts); ++ " New timestamp: %" PRIu64 "\n", ts); + return true; // FIXME: what about failure? + } +@@ -1003,5 +1003,5 @@ + { + debugOutputExtreme(DEBUG_LEVEL_ULTRA_VERBOSE, +- "StreamProcessor::putFramesDry(%d, %"PRIu64")\n", ++ "StreamProcessor::putFramesDry(%d, %" PRIu64 ")\n", + nbframes, ts); + // do nothing +@@ -1013,5 +1013,5 @@ + { + debugOutput(DEBUG_LEVEL_VERY_VERBOSE, +- "StreamProcessor::putSilenceFrames(%d, %"PRIu64")\n", ++ "StreamProcessor::putSilenceFrames(%d, %" PRIu64 ")\n", + nbframes, ts); + +@@ -1233,10 +1233,10 @@ + #ifdef DEBUG + uint64_t now = m_1394service.getCycleTimerTicks(); +- debugOutput(DEBUG_LEVEL_VERBOSE," Now : %011"PRIu64" (%03us %04uc %04ut)\n", ++ debugOutput(DEBUG_LEVEL_VERBOSE," Now : %011" PRIu64 " (%03us %04uc %04ut)\n", + now, + (unsigned int)TICKS_TO_SECS(now), + (unsigned int)TICKS_TO_CYCLES(now), + (unsigned int)TICKS_TO_OFFSET(now)); +- debugOutput(DEBUG_LEVEL_VERBOSE," Start at : %011"PRIu64" (%03us %04uc %04ut)\n", ++ debugOutput(DEBUG_LEVEL_VERBOSE," Start at : %011" PRIu64 " (%03us %04uc %04ut)\n", + tx, + (unsigned int)TICKS_TO_SECS(tx), +@@ -1279,10 +1279,10 @@ + #ifdef DEBUG + uint64_t now = m_1394service.getCycleTimerTicks(); +- debugOutput(DEBUG_LEVEL_VERBOSE," Now : %011"PRIu64" (%03us %04uc %04ut)\n", ++ debugOutput(DEBUG_LEVEL_VERBOSE," Now : %011" PRIu64 " (%03us %04uc %04ut)\n", + now, + (unsigned int)TICKS_TO_SECS(now), + (unsigned int)TICKS_TO_CYCLES(now), + (unsigned int)TICKS_TO_OFFSET(now)); +- debugOutput(DEBUG_LEVEL_VERBOSE," Start at : %011"PRIu64" (%03us %04uc %04ut)\n", ++ debugOutput(DEBUG_LEVEL_VERBOSE," Start at : %011" PRIu64 " (%03us %04uc %04ut)\n", + tx, + (unsigned int)TICKS_TO_SECS(tx), +@@ -1303,10 +1303,10 @@ + #ifdef DEBUG + uint64_t now = m_1394service.getCycleTimerTicks(); +- debugOutput(DEBUG_LEVEL_VERBOSE," Now : %011"PRIu64" (%03us %04uc %04ut)\n", ++ debugOutput(DEBUG_LEVEL_VERBOSE," Now : %011" PRIu64 " (%03us %04uc %04ut)\n", + now, + (unsigned int)TICKS_TO_SECS(now), + (unsigned int)TICKS_TO_CYCLES(now), + (unsigned int)TICKS_TO_OFFSET(now)); +- debugOutput(DEBUG_LEVEL_VERBOSE," Stop at : %011"PRIu64" (%03us %04uc %04ut)\n", ++ debugOutput(DEBUG_LEVEL_VERBOSE," Stop at : %011" PRIu64 " (%03us %04uc %04ut)\n", + tx, + (unsigned int)TICKS_TO_SECS(tx), +@@ -1328,10 +1328,10 @@ + #ifdef DEBUG + uint64_t now = m_1394service.getCycleTimerTicks(); +- debugOutput(DEBUG_LEVEL_VERBOSE," Now : %011"PRIu64" (%03us %04uc %04ut)\n", ++ debugOutput(DEBUG_LEVEL_VERBOSE," Now : %011" PRIu64 " (%03us %04uc %04ut)\n", + now, + (unsigned int)TICKS_TO_SECS(now), + (unsigned int)TICKS_TO_CYCLES(now), + (unsigned int)TICKS_TO_OFFSET(now)); +- debugOutput(DEBUG_LEVEL_VERBOSE," Stop at : %011"PRIu64" (%03us %04uc %04ut)\n", ++ debugOutput(DEBUG_LEVEL_VERBOSE," Stop at : %011" PRIu64 " (%03us %04uc %04ut)\n", + tx, + (unsigned int)TICKS_TO_SECS(tx), +@@ -1953,5 +1953,5 @@ + m_IsoHandlerManager.dumpInfoForStream(this); + uint64_t now = m_1394service.getCycleTimerTicks(); +- debugOutputShort( DEBUG_LEVEL_NORMAL, " Now : %011"PRIu64" (%03us %04uc %04ut)\n", ++ debugOutputShort( DEBUG_LEVEL_NORMAL, " Now : %011" PRIu64 " (%03us %04uc %04ut)\n", + now, + (unsigned int)TICKS_TO_SECS(now), +Index: trunk/libffado/src/rme/fireface_flash.cpp +=================================================================== +--- trunk/libffado/src/rme/fireface_flash.cpp (revision 2574) ++++ trunk/libffado/src/rme/fireface_flash.cpp (revision 2651) +@@ -581,13 +581,13 @@ + + i = read_flash(addr, (quadlet_t *)(vbuf), RME_FF_FLASH_MIXER_ARRAY_SIZE/4); +- debugOutput(DEBUG_LEVEL_VERBOSE, "read_flash(%"PRId64") returned %d\n", addr, i); ++ debugOutput(DEBUG_LEVEL_VERBOSE, "read_flash(%" PRId64 ") returned %d\n", addr, i); + + addr += RME_FF_FLASH_MIXER_ARRAY_SIZE; + i = read_flash(addr, (quadlet_t *)(pbuf), RME_FF_FLASH_MIXER_ARRAY_SIZE/4); +- debugOutput(DEBUG_LEVEL_VERBOSE, "read_flash(%"PRId64") returned %d\n", addr, i); ++ debugOutput(DEBUG_LEVEL_VERBOSE, "read_flash(%" PRId64 ") returned %d\n", addr, i); + + addr += RME_FF_FLASH_MIXER_ARRAY_SIZE; + i = read_flash(addr, (quadlet_t *)obuf, RME_FF_FLASH_SECTOR_SIZE_QUADS); +- debugOutput(DEBUG_LEVEL_VERBOSE, "read_flash(%"PRId64") returned %d\n", addr, i); ++ debugOutput(DEBUG_LEVEL_VERBOSE, "read_flash(%" PRId64 ") returned %d\n", addr, i); + + for (out=0; out maxlen) { +- debugError("requested length too large: %zd > %"PRIu64"\n", length, maxlen); ++ debugError("requested length too large: %zd > %" PRIu64 "\n", length, maxlen); + return DICE_INVALID_OFFSET; + } +Index: trunk/libffado/src/dice/dice_avdevice.cpp +=================================================================== +--- trunk/libffado/src/dice/dice_avdevice.cpp (revision 2597) ++++ trunk/libffado/src/dice/dice_avdevice.cpp (revision 2651) +@@ -461,5 +461,5 @@ + readGlobalReg(DICE_REGISTER_GLOBAL_CLOCKCAPABILITIES, &clock_caps); + uint16_t clocks_supported = (clock_caps >> 16) & 0xFFFF; +- debugOutput(DEBUG_LEVEL_VERBOSE," Clock caps: 0x%08"PRIX32", supported=0x%04X\n", ++ debugOutput(DEBUG_LEVEL_VERBOSE," Clock caps: 0x%08" PRIX32 ", supported=0x%04X\n", + clock_caps, clocks_supported); + +@@ -467,5 +467,5 @@ + readGlobalReg(DICE_REGISTER_GLOBAL_CLOCK_SELECT, &clock_select); + byte_t clock_selected = (clock_select) & 0xFF; +- debugOutput(DEBUG_LEVEL_VERBOSE," Clock select: 0x%08"PRIX32", selected=0x%04X\n", ++ debugOutput(DEBUG_LEVEL_VERBOSE," Clock select: 0x%08" PRIX32 ", selected=0x%04X\n", + clock_select, clock_selected); + quadlet_t extended_status; +@@ -474,5 +474,5 @@ + uint16_t clock_status = (extended_status) & 0xFFFF; + uint16_t clock_slipping = (extended_status >> 16) & 0xFFFF; +- debugOutput(DEBUG_LEVEL_VERBOSE," Clock status: 0x%08"PRIX32", status=0x%04X, slip=0x%04X\n", ++ debugOutput(DEBUG_LEVEL_VERBOSE," Clock status: 0x%08" PRIX32 ", status=0x%04X, slip=0x%04X\n", + extended_status, clock_status, clock_slipping); + #endif +@@ -625,5 +625,5 @@ + readGlobalReg(DICE_REGISTER_GLOBAL_CLOCKCAPABILITIES, &clock_caps); + uint16_t clocks_supported = (clock_caps >> 16) & 0xFFFF; +- debugOutput(DEBUG_LEVEL_VERBOSE," Clock caps: 0x%08"PRIX32", supported=0x%04X\n", ++ debugOutput(DEBUG_LEVEL_VERBOSE," Clock caps: 0x%08" PRIX32 ", supported=0x%04X\n", + clock_caps, clocks_supported); + +@@ -631,5 +631,5 @@ + readGlobalReg(DICE_REGISTER_GLOBAL_CLOCK_SELECT, &clock_select); + byte_t id = (clock_select) & 0xFF; +- debugOutput(DEBUG_LEVEL_VERBOSE," Clock select: 0x%08"PRIX32", selected=0x%04X\n", ++ debugOutput(DEBUG_LEVEL_VERBOSE," Clock select: 0x%08" PRIX32 ", selected=0x%04X\n", + clock_select, id); + quadlet_t extended_status; +@@ -638,5 +638,5 @@ + uint16_t clock_status = (extended_status) & 0xFFFF; + uint16_t clock_slipping = (extended_status >> 16) & 0xFFFF; +- debugOutput(DEBUG_LEVEL_VERBOSE," Clock status: 0x%08"PRIX32", status=0x%04X, slip=0x%04X\n", ++ debugOutput(DEBUG_LEVEL_VERBOSE," Clock status: 0x%08" PRIX32 ", status=0x%04X, slip=0x%04X\n", + extended_status, clock_status, clock_slipping); + #endif +@@ -723,8 +723,8 @@ + + readGlobalRegBlock(DICE_REGISTER_GLOBAL_OWNER, reinterpret_cast(&tmp_octlet), sizeof(fb_octlet_t)); +- printMessage(" Owner : 0x%016"PRIX64"\n",tmp_octlet); ++ printMessage(" Owner : 0x%016" PRIX64 "\n",tmp_octlet); + + readGlobalReg(DICE_REGISTER_GLOBAL_NOTIFICATION, &tmp_quadlet); +- printMessage(" Notification : 0x%08"PRIX32"\n",tmp_quadlet); ++ printMessage(" Notification : 0x%08" PRIX32 "\n",tmp_quadlet); + + readGlobalReg(DICE_REGISTER_GLOBAL_NOTIFICATION, &tmp_quadlet); +@@ -744,14 +744,14 @@ + + readGlobalReg(DICE_REGISTER_GLOBAL_EXTENDED_STATUS, &tmp_quadlet); +- printMessage(" Extended Status : 0x%08"PRIX32"\n", tmp_quadlet); ++ printMessage(" Extended Status : 0x%08" PRIX32 "\n", tmp_quadlet); + + readGlobalReg(DICE_REGISTER_GLOBAL_SAMPLE_RATE, &tmp_quadlet); +- printMessage(" Samplerate : 0x%08"PRIX32" (%"PRIu32")\n", tmp_quadlet, tmp_quadlet); ++ printMessage(" Samplerate : 0x%08" PRIX32 " (%" PRIu32 ")\n", tmp_quadlet, tmp_quadlet); + + readGlobalRegBlock(DICE_REGISTER_GLOBAL_VERSION, reinterpret_cast(&tmp_quadlet), sizeof(fb_quadlet_t)); +- printMessage(" Version : 0x%08"PRIX32"\n", tmp_quadlet); ++ printMessage(" Version : 0x%08" PRIX32 "\n", tmp_quadlet); + + readGlobalReg(DICE_REGISTER_GLOBAL_VERSION, &tmp_quadlet); +- printMessage(" Version : 0x%08"PRIX32" (%u.%u.%u.%u)\n", ++ printMessage(" Version : 0x%08" PRIX32 " (%u.%u.%u.%u)\n", + tmp_quadlet, + DICE_DRIVER_SPEC_VERSION_NUMBER_GET_A(tmp_quadlet), +@@ -762,5 +762,5 @@ + + readGlobalReg(DICE_REGISTER_GLOBAL_CLOCKCAPABILITIES, &tmp_quadlet); +- printMessage(" Clock caps : 0x%08"PRIX32"\n", tmp_quadlet); ++ printMessage(" Clock caps : 0x%08" PRIX32 "\n", tmp_quadlet); + + stringlist names=getClockSourceNameString(); +@@ -790,7 +790,7 @@ + + readTxReg(i, DICE_REGISTER_TX_AC3_CAPABILITIES_BASE, &tmp_quadlet); +- printMessage(" AC3 caps : 0x%08"PRIX32"\n", tmp_quadlet); ++ printMessage(" AC3 caps : 0x%08" PRIX32 "\n", tmp_quadlet); + readTxReg(i, DICE_REGISTER_TX_AC3_ENABLE_BASE, &tmp_quadlet); +- printMessage(" AC3 enable : 0x%08"PRIX32"\n", tmp_quadlet); ++ printMessage(" AC3 enable : 0x%08" PRIX32 "\n", tmp_quadlet); + + stringlist channel_names=getTxNameString(i); +@@ -820,7 +820,7 @@ + + readRxReg(i, DICE_REGISTER_RX_AC3_CAPABILITIES_BASE, &tmp_quadlet); +- printMessage(" AC3 caps : 0x%08"PRIX32"\n", tmp_quadlet); ++ printMessage(" AC3 caps : 0x%08" PRIX32 "\n", tmp_quadlet); + readRxReg(i, DICE_REGISTER_RX_AC3_ENABLE_BASE, &tmp_quadlet); +- printMessage(" AC3 enable : 0x%08"PRIX32"\n", tmp_quadlet); ++ printMessage(" AC3 enable : 0x%08" PRIX32 "\n", tmp_quadlet); + + stringlist channel_names = getRxNameString(i); +@@ -1193,5 +1193,5 @@ + + if (result != DICE_OWNER_NO_OWNER && result != swap_value) { +- debugWarning("Unexpected GLOBAL_OWNER register value: 0x%016"PRIX64"\n", result); ++ debugWarning("Unexpected GLOBAL_OWNER register value: 0x%016" PRIX64 "\n", result); + fprintf(stderr, "Could not register ourselves as owner of %s.\n", getNickname().c_str()); + fprintf(stderr, "If the snd-dice kernel driver is present, " +@@ -1379,5 +1379,5 @@ + } + if(reg_isoch != 0xFFFFFFFFUL) { +- debugWarning("ISO_CHANNEL register != 0xFFFFFFFF (=0x%08"PRIX32") for A%s %d\n", reg_isoch, dir, n); ++ debugWarning("ISO_CHANNEL register != 0xFFFFFFFF (=0x%08" PRIX32 ") for A%s %d\n", reg_isoch, dir, n); + /* The ISO channel has already been registered, probably + * because the device was running before and jackd just +@@ -1396,5 +1396,5 @@ + // ask the IRM to use this channel + if (get1394Service().allocateFixedIsoChannelGeneric(reg_isoch,p->getMaxPacketSize()) < 0) { +- debugError("Cannot allocate iso channel (0x%08"PRIX32") for ATX %d\n", reg_isoch, n); ++ debugError("Cannot allocate iso channel (0x%08" PRIX32 ") for ATX %d\n", reg_isoch, n); + } + #endif +@@ -1424,5 +1424,5 @@ + } + if(reg_isoch != isochannel) { +- debugError("ISO_CHANNEL register != 0x%08"PRIX32" (=0x%08"PRIX32") for A%s %d\n", isochannel, reg_isoch, dir, n); ++ debugError("ISO_CHANNEL register != 0x%08" PRIX32 " (=0x%08" PRIX32 ") for A%s %d\n", isochannel, reg_isoch, dir, n); + return false; + } +@@ -1738,8 +1738,8 @@ + bool + Device::readReg(fb_nodeaddr_t offset, fb_quadlet_t *result) { +- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Reading base register offset 0x%08"PRIX64"\n", offset); ++ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Reading base register offset 0x%08" PRIX64 "\n", offset); + + if(offset >= DICE_INVALID_OFFSET) { +- debugError("invalid offset: 0x%016"PRIX64"\n", offset); ++ debugError("invalid offset: 0x%016" PRIX64 "\n", offset); + return false; + } +@@ -1749,5 +1749,5 @@ + + if(!get1394Service().read_quadlet( nodeId, addr, result ) ) { +- debugError("Could not read from node 0x%04X addr 0x%12"PRIX64"\n", nodeId, addr); ++ debugError("Could not read from node 0x%04X addr 0x%12" PRIX64 "\n", nodeId, addr); + return false; + } +@@ -1755,5 +1755,5 @@ + *result = CondSwapFromBus32(*result); + +- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Read result: 0x%08"PRIX32"\n", *result); ++ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Read result: 0x%08" PRIX32 "\n", *result); + + return true; +@@ -1762,9 +1762,9 @@ + bool + Device::writeReg(fb_nodeaddr_t offset, fb_quadlet_t data) { +- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing base register offset 0x%08"PRIX64", data: 0x%08"PRIX32"\n", ++ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing base register offset 0x%08" PRIX64 ", data: 0x%08" PRIX32 "\n", + offset, data); + + if(offset >= DICE_INVALID_OFFSET) { +- debugError("invalid offset: 0x%012"PRIX64"\n", offset); ++ debugError("invalid offset: 0x%012" PRIX64 "\n", offset); + return false; + } +@@ -1774,5 +1774,5 @@ + + if(!get1394Service().write_quadlet( nodeId, addr, CondSwapToBus32(data) ) ) { +- debugError("Could not write to node 0x%04X addr 0x%12"PRIX64"\n", nodeId, addr); ++ debugError("Could not write to node 0x%04X addr 0x%12" PRIX64 "\n", nodeId, addr); + return false; + } +@@ -1783,10 +1783,10 @@ + Device::readRegBlock(fb_nodeaddr_t offset, fb_quadlet_t *data, size_t length) { + debugOutput(DEBUG_LEVEL_VERBOSE, +- "Reading base register offset 0x%08"PRIX64", length %zd, to %p\n", ++ "Reading base register offset 0x%08" PRIX64 ", length %zd, to %p\n", + offset, length, data); + const int blocksize_quads = 512/4; + + if(offset >= DICE_INVALID_OFFSET) { +- debugError("invalid offset: 0x%012"PRIX64"\n", offset); ++ debugError("invalid offset: 0x%012" PRIX64 "\n", offset); + return false; + } +@@ -1801,5 +1801,5 @@ + fb_quadlet_t *curr_data = data + quads_done; + int quads_todo = length_quads - quads_done; +- debugOutput(DEBUG_LEVEL_VERBOSE, "reading addr: 0x%012"PRIX64", %d quads to %p\n", curr_addr, quads_todo, curr_data); ++ debugOutput(DEBUG_LEVEL_VERBOSE, "reading addr: 0x%012" PRIX64 ", %d quads to %p\n", curr_addr, quads_todo, curr_data); + + if (quads_todo > blocksize_quads) { +@@ -1814,5 +1814,5 @@ + + if(!get1394Service().read( nodeId, curr_addr, quads_todo, curr_data ) ) { +- debugError("Could not read %d quadlets from node 0x%04X addr 0x%012"PRIX64"\n", quads_todo, nodeId, curr_addr); ++ debugError("Could not read %d quadlets from node 0x%04X addr 0x%012" PRIX64 "\n", quads_todo, nodeId, curr_addr); + return false; + } +@@ -1826,10 +1826,10 @@ + bool + Device::writeRegBlock(fb_nodeaddr_t offset, fb_quadlet_t *data, size_t length) { +- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing base register offset 0x%08"PRIX64", length: %zd\n", ++ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing base register offset 0x%08" PRIX64 ", length: %zd\n", + offset, length); + const int blocksize_quads = 512/4; + + if(offset >= DICE_INVALID_OFFSET) { +- debugError("invalid offset: 0x%012"PRIX64"\n", offset); ++ debugError("invalid offset: 0x%012" PRIX64 "\n", offset); + return false; + } +@@ -1858,5 +1858,5 @@ + + if(!get1394Service().write( nodeId, addr, quads_todo, curr_data ) ) { +- debugError("Could not write %d quadlets to node 0x%04X addr 0x%012"PRIX64"\n", quads_todo, nodeId, curr_addr); ++ debugError("Could not write %d quadlets to node 0x%04X addr 0x%012" PRIX64 "\n", quads_todo, nodeId, curr_addr); + return false; + } +@@ -1869,5 +1869,5 @@ + bool + Device::readGlobalReg(fb_nodeaddr_t offset, fb_quadlet_t *result) { +- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Reading global register offset 0x%04"PRIX64"\n", offset); ++ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Reading global register offset 0x%04" PRIX64 "\n", offset); + + fb_nodeaddr_t offset_gl = globalOffsetGen(offset, sizeof(fb_quadlet_t)); +@@ -1877,5 +1877,5 @@ + bool + Device::writeGlobalReg(fb_nodeaddr_t offset, fb_quadlet_t data) { +- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing global register offset 0x%08"PRIX64", data: 0x%08"PRIX32"\n", ++ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing global register offset 0x%08" PRIX64 ", data: 0x%08" PRIX32 "\n", + offset, data); + +@@ -1886,5 +1886,5 @@ + bool + Device::readGlobalRegBlock(fb_nodeaddr_t offset, fb_quadlet_t *data, size_t length) { +- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Reading global register block offset 0x%04"PRIX64", length %zd bytes\n", ++ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Reading global register block offset 0x%04" PRIX64 ", length %zd bytes\n", + offset, length); + +@@ -1895,5 +1895,5 @@ + bool + Device::writeGlobalRegBlock(fb_nodeaddr_t offset, fb_quadlet_t *data, size_t length) { +- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing global register block offset 0x%04"PRIX64", length: %zd bytes\n", ++ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing global register block offset 0x%04" PRIX64 ", length: %zd bytes\n", + offset, length); + +@@ -1913,5 +1913,5 @@ + // out-of-range check + if(offset+length > m_global_reg_offset+m_global_reg_size) { +- debugError("register offset+length too large: 0x%04"PRIX64"\n", offset + length); ++ debugError("register offset+length too large: 0x%04" PRIX64 "\n", offset + length); + return DICE_INVALID_OFFSET; + } +@@ -1922,5 +1922,5 @@ + bool + Device::readTxReg(unsigned int i, fb_nodeaddr_t offset, fb_quadlet_t *result) { +- debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "Reading tx %d register offset 0x%04"PRIX64"\n", i, offset); ++ debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "Reading tx %d register offset 0x%04" PRIX64 "\n", i, offset); + + fb_nodeaddr_t offset_tx = txOffsetGen(i, offset, sizeof(fb_quadlet_t)); +@@ -1930,5 +1930,5 @@ + bool + Device::writeTxReg(unsigned int i, fb_nodeaddr_t offset, fb_quadlet_t data) { +- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing tx %d register offset 0x%08"PRIX64", data: 0x%08"PRIX32"\n", ++ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing tx %d register offset 0x%08" PRIX64 ", data: 0x%08" PRIX32 "\n", + i, offset, data); + +@@ -1939,5 +1939,5 @@ + bool + Device::readTxRegBlock(unsigned int i, fb_nodeaddr_t offset, fb_quadlet_t *data, size_t length) { +- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Reading rx register block offset 0x%04"PRIX64", length: %zd bytes\n", ++ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Reading rx register block offset 0x%04" PRIX64 ", length: %zd bytes\n", + offset, length); + +@@ -1948,5 +1948,5 @@ + bool + Device::writeTxRegBlock(unsigned int i, fb_nodeaddr_t offset, fb_quadlet_t *data, size_t length) { +- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing rx register block offset 0x%04"PRIX64", length: %zd bytes\n", ++ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing rx register block offset 0x%04" PRIX64 ", length: %zd bytes\n", + offset, length); + +@@ -1980,5 +1980,5 @@ + // out-of-range check + if(offset_tx + length > m_tx_reg_offset+4+m_tx_reg_size*m_nb_tx) { +- debugError("register offset+length too large: 0x%04"PRIX64"\n", offset_tx + length); ++ debugError("register offset+length too large: 0x%04" PRIX64 "\n", offset_tx + length); + return DICE_INVALID_OFFSET; + } +@@ -1989,5 +1989,5 @@ + bool + Device::readRxReg(unsigned int i, fb_nodeaddr_t offset, fb_quadlet_t *result) { +- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Reading rx %d register offset 0x%04"PRIX64"\n", i, offset); ++ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Reading rx %d register offset 0x%04" PRIX64 "\n", i, offset); + + fb_nodeaddr_t offset_rx=rxOffsetGen(i, offset, sizeof(fb_quadlet_t)); +@@ -1997,5 +1997,5 @@ + bool + Device::writeRxReg(unsigned int i, fb_nodeaddr_t offset, fb_quadlet_t data) { +- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing rx register offset 0x%08"PRIX64", data: 0x%08"PRIX32"\n", ++ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing rx register offset 0x%08" PRIX64 ", data: 0x%08" PRIX32 "\n", + offset, data); + +@@ -2006,5 +2006,5 @@ + bool + Device::readRxRegBlock(unsigned int i, fb_nodeaddr_t offset, fb_quadlet_t *data, size_t length) { +- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Reading rx register block offset 0x%04"PRIX64", length: %zd bytes\n", ++ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Reading rx register block offset 0x%04" PRIX64 ", length: %zd bytes\n", + offset, length); + +@@ -2015,5 +2015,5 @@ + bool + Device::writeRxRegBlock(unsigned int i, fb_nodeaddr_t offset, fb_quadlet_t *data, size_t length) { +- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing rx register block offset 0x%04"PRIX64", length: %zd bytes\n", ++ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing rx register block offset 0x%04" PRIX64 ", length: %zd bytes\n", + offset, length); + +@@ -2047,5 +2047,5 @@ + // out-of-range check + if(offset_rx + length > m_rx_reg_offset+4+m_rx_reg_size*m_nb_rx) { +- debugError("register offset+length too large: 0x%04"PRIX64"\n", offset_rx + length); ++ debugError("register offset+length too large: 0x%04" PRIX64 "\n", offset_rx + length); + return DICE_INVALID_OFFSET; + } +Index: trunk/libffado/src/libutil/StreamStatistics.cpp +=================================================================== +--- trunk/libffado/src/libutil/StreamStatistics.cpp (revision 1763) ++++ trunk/libffado/src/libutil/StreamStatistics.cpp (revision 2651) +@@ -55,5 +55,5 @@ + void StreamStatistics::dumpInfo() { + debugOutputShort( DEBUG_LEVEL_VERBOSE, +- "--- Stats for %s: min=%"PRId64" avg=%f max=%"PRId64" cnt=%"PRId64" sum=%"PRId64"\n", ++ "--- Stats for %s: min=%" PRId64 " avg=%f max=%" PRId64 " cnt=%" PRId64 " sum=%" PRId64 "\n", + m_name.c_str(), m_min, m_average, m_max, m_count, m_sum); + debugOutputShort( DEBUG_LEVEL_VERBOSE, " Signal stats\n"); +Index: trunk/libffado/src/libutil/SystemTimeSource.cpp +=================================================================== +--- trunk/libffado/src/libutil/SystemTimeSource.cpp (revision 2186) ++++ trunk/libffado/src/libutil/SystemTimeSource.cpp (revision 2651) +@@ -97,5 +97,5 @@ + ts.tv_nsec = (wake_at_usec % (1000000LL)) * 1000LL; + debugOutputExtreme(DEBUG_LEVEL_VERBOSE, +- "clock_nanosleep until %"PRId64" sec, %"PRId64" nanosec\n", ++ "clock_nanosleep until %" PRId64 " sec, %" PRId64 " nanosec\n", + (int64_t)ts.tv_sec, (int64_t)ts.tv_nsec); + int err = clock_nanosleep(clock_id, TIMER_ABSTIME, &ts, NULL); +Index: trunk/libffado/src/libutil/TimestampedBuffer.cpp +=================================================================== +--- trunk/libffado/src/libutil/TimestampedBuffer.cpp (revision 2629) ++++ trunk/libffado/src/libutil/TimestampedBuffer.cpp (revision 2651) +@@ -212,5 +212,5 @@ + debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, + "for (%p) " +- "NTS="TIMESTAMP_FORMAT_SPEC", DLL2=%f, RATE=%f\n", ++ "NTS=" TIMESTAMP_FORMAT_SPEC ", DLL2=%f, RATE=%f\n", + this, m_buffer_next_tail_timestamp, m_dll_e2, getRate()); + } +@@ -247,5 +247,5 @@ + if (fabsf(m_nominal_rate - rate)>(m_nominal_rate*0.1)) { + debugWarning("(%p) rate (%10.5f) more that 10%% off nominal " +- "(rate=%10.5f, diff="TIMESTAMP_FORMAT_SPEC", update_period=%d)\n", ++ "(rate=%10.5f, diff=" TIMESTAMP_FORMAT_SPEC ", update_period=%d)\n", + this, rate,m_nominal_rate,diff, m_update_period); + +@@ -373,5 +373,5 @@ + m_nominal_rate); + +- debugOutput(DEBUG_LEVEL_VERBOSE," wrapping at "TIMESTAMP_FORMAT_SPEC"\n",m_wrap_at); ++ debugOutput(DEBUG_LEVEL_VERBOSE," wrapping at " TIMESTAMP_FORMAT_SPEC "\n",m_wrap_at); + + assert(m_buffer_size); +@@ -619,5 +619,5 @@ + bool TimestampedBuffer::blockProcessWriteFrames(unsigned int nbframes, ffado_timestamp_t ts) { + debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, +- "(%p) Writing %u frames for ts "TIMESTAMP_FORMAT_SPEC"\n", ++ "(%p) Writing %u frames for ts " TIMESTAMP_FORMAT_SPEC "\n", + this, nbframes, ts); + int xrun; +@@ -845,8 +845,8 @@ + #ifdef DEBUG + if (new_timestamp >= m_wrap_at) { +- debugWarning("timestamp not wrapped: "TIMESTAMP_FORMAT_SPEC"\n",new_timestamp); ++ debugWarning("timestamp not wrapped: " TIMESTAMP_FORMAT_SPEC "\n",new_timestamp); + } + if ((ts >= m_wrap_at) || (ts < 0 )) { +- debugWarning("ts not wrapped correctly: "TIMESTAMP_FORMAT_SPEC"\n",ts); ++ debugWarning("ts not wrapped correctly: " TIMESTAMP_FORMAT_SPEC "\n",ts); + } + #endif +@@ -862,6 +862,6 @@ + + debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, +- "for (%p) to "TIMESTAMP_FORMAT_SPEC" => "TIMESTAMP_FORMAT_SPEC", " +- "NTS="TIMESTAMP_FORMAT_SPEC", DLL2=%f, RATE=%f\n", ++ "for (%p) to " TIMESTAMP_FORMAT_SPEC " => " TIMESTAMP_FORMAT_SPEC ", " ++ "NTS=" TIMESTAMP_FORMAT_SPEC ", DLL2=%f, RATE=%f\n", + this, new_timestamp, ts, m_buffer_next_tail_timestamp, m_dll_e2, getRate()); + } +@@ -883,5 +883,5 @@ + #ifdef DEBUG + if (new_timestamp >= m_wrap_at) { +- debugWarning("timestamp not wrapped: "TIMESTAMP_FORMAT_SPEC"\n", new_timestamp); ++ debugWarning("timestamp not wrapped: " TIMESTAMP_FORMAT_SPEC "\n", new_timestamp); + } + #endif +@@ -908,6 +908,6 @@ + + debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, +- "for (%p) to "TIMESTAMP_FORMAT_SPEC" => "TIMESTAMP_FORMAT_SPEC", " +- "NTS="TIMESTAMP_FORMAT_SPEC", DLL2=%f, RATE=%f\n", ++ "for (%p) to " TIMESTAMP_FORMAT_SPEC " => " TIMESTAMP_FORMAT_SPEC ", " ++ "NTS=" TIMESTAMP_FORMAT_SPEC ", DLL2=%f, RATE=%f\n", + this, new_timestamp, ts, m_buffer_next_tail_timestamp, m_dll_e2, getRate()); + } +@@ -1052,22 +1052,22 @@ + nbframes, m_update_period); + debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, +- " tail TS: "TIMESTAMP_FORMAT_SPEC", next tail TS: "TIMESTAMP_FORMAT_SPEC"\n", ++ " tail TS: " TIMESTAMP_FORMAT_SPEC ", next tail TS: " TIMESTAMP_FORMAT_SPEC "\n", + m_buffer_tail_timestamp, m_buffer_next_tail_timestamp); + debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, +- " new TS: "TIMESTAMP_FORMAT_SPEC", diff: "TIMESTAMP_FORMAT_SPEC"\n", ++ " new TS: " TIMESTAMP_FORMAT_SPEC ", diff: " TIMESTAMP_FORMAT_SPEC "\n", + new_timestamp, diff); + + if (diff > max_abs_diff) { + //debugShowBackLogLines(100); +- debugWarning("(%p) difference rather large (+): diff="TIMESTAMP_FORMAT_SPEC", max="TIMESTAMP_FORMAT_SPEC", "TIMESTAMP_FORMAT_SPEC", "TIMESTAMP_FORMAT_SPEC"\n", ++ debugWarning("(%p) difference rather large (+): diff=" TIMESTAMP_FORMAT_SPEC ", max=" TIMESTAMP_FORMAT_SPEC ", " TIMESTAMP_FORMAT_SPEC ", " TIMESTAMP_FORMAT_SPEC "\n", + this, diff, max_abs_diff, new_timestamp, m_buffer_next_tail_timestamp); + } else if (diff < -max_abs_diff) { + //debugShowBackLogLines(100); +- debugWarning("(%p) difference rather large (-): diff="TIMESTAMP_FORMAT_SPEC", max="TIMESTAMP_FORMAT_SPEC", "TIMESTAMP_FORMAT_SPEC", "TIMESTAMP_FORMAT_SPEC"\n", ++ debugWarning("(%p) difference rather large (-): diff=" TIMESTAMP_FORMAT_SPEC ", max=" TIMESTAMP_FORMAT_SPEC ", " TIMESTAMP_FORMAT_SPEC ", " TIMESTAMP_FORMAT_SPEC "\n", + this, diff, -max_abs_diff, new_timestamp, m_buffer_next_tail_timestamp); + } + + debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, +- "(%p): diff="TIMESTAMP_FORMAT_SPEC" ", ++ "(%p): diff=" TIMESTAMP_FORMAT_SPEC " ", + this, diff); + #endif +@@ -1075,8 +1075,8 @@ + double err = diff; + debugOutputShortExtreme(DEBUG_LEVEL_VERY_VERBOSE, +- "diff2="TIMESTAMP_FORMAT_SPEC" err=%f\n", ++ "diff2=" TIMESTAMP_FORMAT_SPEC " err=%f\n", + diff, err); + debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, +- "B: FC=%10u, TS="TIMESTAMP_FORMAT_SPEC", NTS="TIMESTAMP_FORMAT_SPEC"\n", ++ "B: FC=%10u, TS=" TIMESTAMP_FORMAT_SPEC ", NTS=" TIMESTAMP_FORMAT_SPEC "\n", + m_framecounter, m_buffer_tail_timestamp, m_buffer_next_tail_timestamp); + +@@ -1089,5 +1089,5 @@ + if (m_buffer_next_tail_timestamp >= m_wrap_at) { + debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, +- "Unwrapping next tail timestamp: "TIMESTAMP_FORMAT_SPEC"", ++ "Unwrapping next tail timestamp: " TIMESTAMP_FORMAT_SPEC "", + m_buffer_next_tail_timestamp); + +@@ -1095,5 +1095,5 @@ + + debugOutputShortExtreme(DEBUG_LEVEL_VERY_VERBOSE, +- " => "TIMESTAMP_FORMAT_SPEC"\n", ++ " => " TIMESTAMP_FORMAT_SPEC "\n", + m_buffer_next_tail_timestamp); + +@@ -1103,22 +1103,22 @@ + + debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, +- "A: TS="TIMESTAMP_FORMAT_SPEC", NTS="TIMESTAMP_FORMAT_SPEC", DLLe2=%f, RATE=%f\n", ++ "A: TS=" TIMESTAMP_FORMAT_SPEC ", NTS=" TIMESTAMP_FORMAT_SPEC ", DLLe2=%f, RATE=%f\n", + m_buffer_tail_timestamp, m_buffer_next_tail_timestamp, m_dll_e2, m_current_rate); + + + if(m_buffer_tail_timestamp>=m_wrap_at) { +- debugError("Wrapping failed for m_buffer_tail_timestamp! "TIMESTAMP_FORMAT_SPEC"\n",m_buffer_tail_timestamp); +- debugOutput(DEBUG_LEVEL_VERY_VERBOSE, " IN="TIMESTAMP_FORMAT_SPEC", TS="TIMESTAMP_FORMAT_SPEC", NTS="TIMESTAMP_FORMAT_SPEC"\n", ++ debugError("Wrapping failed for m_buffer_tail_timestamp! " TIMESTAMP_FORMAT_SPEC "\n",m_buffer_tail_timestamp); ++ debugOutput(DEBUG_LEVEL_VERY_VERBOSE, " IN=" TIMESTAMP_FORMAT_SPEC ", TS=" TIMESTAMP_FORMAT_SPEC ", NTS=" TIMESTAMP_FORMAT_SPEC "\n", + new_timestamp, m_buffer_tail_timestamp, m_buffer_next_tail_timestamp); + + } + if(m_buffer_next_tail_timestamp>=m_wrap_at) { +- debugError("Wrapping failed for m_buffer_next_tail_timestamp! "TIMESTAMP_FORMAT_SPEC"\n",m_buffer_next_tail_timestamp); +- debugOutput(DEBUG_LEVEL_VERY_VERBOSE, " IN="TIMESTAMP_FORMAT_SPEC", TS="TIMESTAMP_FORMAT_SPEC", NTS="TIMESTAMP_FORMAT_SPEC"\n", ++ debugError("Wrapping failed for m_buffer_next_tail_timestamp! " TIMESTAMP_FORMAT_SPEC "\n",m_buffer_next_tail_timestamp); ++ debugOutput(DEBUG_LEVEL_VERY_VERBOSE, " IN=" TIMESTAMP_FORMAT_SPEC ", TS=" TIMESTAMP_FORMAT_SPEC ", NTS=" TIMESTAMP_FORMAT_SPEC "\n", + new_timestamp, m_buffer_tail_timestamp, m_buffer_next_tail_timestamp); + } + + if(m_buffer_tail_timestamp==m_buffer_next_tail_timestamp) { +- debugError("Current and next timestamps are equal: "TIMESTAMP_FORMAT_SPEC" "TIMESTAMP_FORMAT_SPEC"\n", ++ debugError("Current and next timestamps are equal: " TIMESTAMP_FORMAT_SPEC " " TIMESTAMP_FORMAT_SPEC "\n", + m_buffer_tail_timestamp,m_buffer_next_tail_timestamp); + } +@@ -1146,8 +1146,8 @@ + debugOutputShort( DEBUG_LEVEL_NORMAL, " TimestampedBuffer (%p): %04d frames, %04d events\n", + this, m_framecounter, getBufferFill()); +- debugOutputShort( DEBUG_LEVEL_NORMAL, " Timestamps : head: "TIMESTAMP_FORMAT_SPEC", Tail: "TIMESTAMP_FORMAT_SPEC", Next tail: "TIMESTAMP_FORMAT_SPEC"\n", ++ debugOutputShort( DEBUG_LEVEL_NORMAL, " Timestamps : head: " TIMESTAMP_FORMAT_SPEC ", Tail: " TIMESTAMP_FORMAT_SPEC ", Next tail: " TIMESTAMP_FORMAT_SPEC "\n", + ts_head, m_buffer_tail_timestamp, m_buffer_next_tail_timestamp); + #ifdef DEBUG +- debugOutputShort( DEBUG_LEVEL_NORMAL, " Head - Tail : "TIMESTAMP_FORMAT_SPEC" (%f frames)\n", diff, diff/m_dll_e2*m_update_period); ++ debugOutputShort( DEBUG_LEVEL_NORMAL, " Head - Tail : " TIMESTAMP_FORMAT_SPEC " (%f frames)\n", diff, diff/m_dll_e2*m_update_period); + #endif + debugOutputShort( DEBUG_LEVEL_NORMAL, " DLL Rate : %f (%f)\n", m_dll_e2, m_dll_e2/m_update_period); +Index: trunk/libffado/src/libutil/Configuration.cpp +=================================================================== +--- trunk/libffado/src/libutil/Configuration.cpp (revision 2450) ++++ trunk/libffado/src/libutil/Configuration.cpp (revision 2651) +@@ -190,5 +190,5 @@ + int64_t i = s; + debugOutput(DEBUG_LEVEL_NORMAL, +- " %s%s = %"PRId64" (0x%016"PRIX64")\n", ++ " %s%s = %" PRId64 " (0x%016" PRIX64 ")\n", + prefix.c_str(), s.getName(), i, i); + } +@@ -259,5 +259,5 @@ + if(t == Setting::TypeInt64) { + ref = *s; +- debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "path '%s' has value %"PRId64"\n", path.c_str(), ref); ++ debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "path '%s' has value %" PRId64 "\n", path.c_str(), ref); + return true; + } else { +Index: trunk/libffado/src/genericavc/stanton/scs.cpp +=================================================================== +--- trunk/libffado/src/genericavc/stanton/scs.cpp (revision 2163) ++++ trunk/libffado/src/genericavc/stanton/scs.cpp (revision 2651) +@@ -72,5 +72,5 @@ + // read the current value present in the register, i.e. read-ping + if(!readRegBlock(addr, (quadlet_t *)cmdBuffer, 1) ) { +- debugError("Could not read from addr 0x%012"PRIX64"\n", addr); ++ debugError("Could not read from addr 0x%012" PRIX64 "\n", addr); + } else { + int version = cmdBuffer[0] & 0xFFFF; +@@ -87,5 +87,5 @@ + // execute the command + if(!writeRegBlock(addr, (quadlet_t *)cmdBuffer, 1)) { +- debugError("Could not write to addr 0x%012"PRIX64"\n", addr); ++ debugError("Could not write to addr 0x%012" PRIX64 "\n", addr); + } else { + debugOutput(DEBUG_LEVEL_VERBOSE, "Write Ping succeeded\n"); +@@ -129,5 +129,5 @@ + // execute the command + if(!writeRegBlock(addr, (quadlet_t *)cmdBuffer, 2)) { +- debugError("Could not write to addr 0x%012"PRIX64"\n", addr); ++ debugError("Could not write to addr 0x%012" PRIX64 "\n", addr); + return false; + } +@@ -143,5 +143,5 @@ + // execute the command + if(!writeRegBlock(addr, (quadlet_t *)cmdBuffer, 2)) { +- debugError("Could not write to addr 0x%012"PRIX64"\n", addr); ++ debugError("Could not write to addr 0x%012" PRIX64 "\n", addr); + return false; + } +@@ -173,5 +173,5 @@ + // execute the command + if(!writeRegBlock(addr, (quadlet_t *)cmdBuffer, len_quadlets)) { +- debugError("Could not write to addr 0x%012"PRIX64"\n", addr); ++ debugError("Could not write to addr 0x%012" PRIX64 "\n", addr); + return false; + } +@@ -181,5 +181,5 @@ + bool + ScsDevice::readRegBlock(fb_nodeaddr_t addr, fb_quadlet_t *data, size_t length_quads, size_t blocksize_quads) { +- debugOutput(DEBUG_LEVEL_VERBOSE,"Reading register 0x%016"PRIX64", length %zd quadlets, to %p\n", ++ debugOutput(DEBUG_LEVEL_VERBOSE,"Reading register 0x%016" PRIX64 ", length %zd quadlets, to %p\n", + addr, length_quads, data); + +@@ -200,7 +200,7 @@ + #endif + +- debugOutput(DEBUG_LEVEL_VERBOSE, "reading addr: 0x%016"PRIX64", %d quads to %p\n", curr_addr, quads_todo, curr_data); ++ debugOutput(DEBUG_LEVEL_VERBOSE, "reading addr: 0x%016" PRIX64 ", %d quads to %p\n", curr_addr, quads_todo, curr_data); + if(!get1394Service().read( nodeId, curr_addr, quads_todo, curr_data ) ) { +- debugError("Could not read %d quadlets from node 0x%04X addr 0x%012"PRIX64"\n", quads_todo, nodeId, curr_addr); ++ debugError("Could not read %d quadlets from node 0x%04X addr 0x%012" PRIX64 "\n", quads_todo, nodeId, curr_addr); + return false; + } +@@ -215,5 +215,5 @@ + ScsDevice::writeRegBlock(fb_nodeaddr_t addr, fb_quadlet_t *data, size_t length_quads, size_t blocksize_quads) { + debugOutput(DEBUG_LEVEL_VERY_VERBOSE, +- "Writing register 0x%016"PRIX64", length: %zd quadlets, from %p\n", ++ "Writing register 0x%016" PRIX64 ", length: %zd quadlets, from %p\n", + addr, length_quads, data); + +@@ -238,7 +238,7 @@ + #endif + +- debugOutput(DEBUG_LEVEL_VERBOSE, "writing addr: 0x%016"PRIX64", %d quads from %p\n", curr_addr, quads_todo, curr_data); ++ debugOutput(DEBUG_LEVEL_VERBOSE, "writing addr: 0x%016" PRIX64 ", %d quads from %p\n", curr_addr, quads_todo, curr_data); + if(!get1394Service().write( nodeId, addr, quads_todo, curr_data ) ) { +- debugError("Could not write %d quadlets to node 0x%04X addr 0x%012"PRIX64"\n", quads_todo, nodeId, curr_addr); ++ debugError("Could not write %d quadlets to node 0x%04X addr 0x%012" PRIX64 "\n", quads_todo, nodeId, curr_addr); + return false; + } +Index: trunk/libffado/src/bebob/bebob_avdevice.cpp +=================================================================== +--- trunk/libffado/src/bebob/bebob_avdevice.cpp (revision 2491) ++++ trunk/libffado/src/bebob/bebob_avdevice.cpp (revision 2651) +@@ -836,5 +836,5 @@ + + char* configId; +- asprintf(&configId, "%016"PRIx64"", getConfigurationId() ); ++ asprintf(&configId, "%016" PRIx64 "", getConfigurationId() ); + if ( !configId ) { + debugError( "could not create id string\n" ); +@@ -912,5 +912,5 @@ + // come up with an unique file name for the current settings + char* configId; +- asprintf(&configId, "%016"PRIx64"", BeBoB::Device::getConfigurationId() ); ++ asprintf(&configId, "%016" PRIx64 "", BeBoB::Device::getConfigurationId() ); + if ( !configId ) { + debugError( "Could not create id string\n" ); +Index: trunk/libffado/src/bebob/focusrite/focusrite_generic.cpp +=================================================================== +--- trunk/libffado/src/bebob/focusrite/focusrite_generic.cpp (revision 1763) ++++ trunk/libffado/src/bebob/focusrite/focusrite_generic.cpp (revision 2651) +@@ -69,5 +69,5 @@ + if(m_cmd_time_interval && (m_earliest_next_cmd_time > now)) { + ffado_microsecs_t wait = m_earliest_next_cmd_time - now; +- debugOutput( DEBUG_LEVEL_VERBOSE, "Rate control... %"PRIu64"\n", wait ); ++ debugOutput( DEBUG_LEVEL_VERBOSE, "Rate control... %" PRIu64 "\n", wait ); + Util::SystemTimeSource::SleepUsecRelative(wait); + } +@@ -94,5 +94,5 @@ + if(m_cmd_time_interval && (m_earliest_next_cmd_time > now)) { + ffado_microsecs_t wait = m_earliest_next_cmd_time - now; +- debugOutput( DEBUG_LEVEL_VERBOSE, "Rate control... %"PRIu64"\n", wait ); ++ debugOutput( DEBUG_LEVEL_VERBOSE, "Rate control... %" PRIu64 "\n", wait ); + Util::SystemTimeSource::SleepUsecRelative(wait); + } +@@ -169,5 +169,5 @@ + + if(!get1394Service().write_quadlet( nodeId, addr, CondSwapToBus32(data) ) ) { +- debugError("Could not write to node 0x%04X addr 0x%012"PRIX64"\n", nodeId, addr); ++ debugError("Could not write to node 0x%04X addr 0x%012" PRIX64 "\n", nodeId, addr); + return false; + } +@@ -185,5 +185,5 @@ + + if(!get1394Service().read_quadlet( nodeId, addr, &result ) ) { +- debugError("Could not read from node 0x%04X addr 0x%012"PRIX64"\n", nodeId, addr); ++ debugError("Could not read from node 0x%04X addr 0x%012" PRIX64 "\n", nodeId, addr); + return false; + } +@@ -385,5 +385,5 @@ + RegisterControl::setValue(uint64_t addr, uint64_t v) + { +- debugOutput(DEBUG_LEVEL_VERBOSE, "setValue for addr %"PRIu64" to %"PRIu64"\n", ++ debugOutput(DEBUG_LEVEL_VERBOSE, "setValue for addr %" PRIu64 " to %" PRIu64 "\n", + addr, v); + +@@ -403,5 +403,5 @@ + return 0; + } else { +- debugOutput(DEBUG_LEVEL_VERBOSE, "getValue for %"PRIu64" = %u\n", ++ debugOutput(DEBUG_LEVEL_VERBOSE, "getValue for %" PRIu64 " = %u\n", + addr, val); + return val; +Index: trunk/libffado/src/bebob/focusrite/focusrite_saffire.cpp +=================================================================== +--- trunk/libffado/src/bebob/focusrite/focusrite_saffire.cpp (revision 1763) ++++ trunk/libffado/src/bebob/focusrite/focusrite_saffire.cpp (revision 2651) +@@ -48,9 +48,9 @@ + if(config.getValueForDeviceSetting(getConfigRom().getNodeVendorId(), getConfigRom().getModelId(), "cmd_interval_time", delaytime)) { + m_cmd_time_interval = delaytime; +- debugOutput( DEBUG_LEVEL_VERBOSE, "Setting command interval time to %"PRIu64"\n", ++ debugOutput( DEBUG_LEVEL_VERBOSE, "Setting command interval time to %" PRIu64 "\n", + m_cmd_time_interval ); + } else { + m_cmd_time_interval = 10000; +- debugOutput( DEBUG_LEVEL_VERBOSE, "No command interval time setting found, defaulting to %"PRIu64"\n", ++ debugOutput( DEBUG_LEVEL_VERBOSE, "No command interval time setting found, defaulting to %" PRIu64 "\n", + m_cmd_time_interval ); + } +Index: trunk/libffado/src/fireworks/efc/efc_cmds_hardware.cpp +=================================================================== +--- trunk/libffado/src/fireworks/efc/efc_cmds_hardware.cpp (revision 2514) ++++ trunk/libffado/src/fireworks/efc/efc_cmds_hardware.cpp (revision 2651) +@@ -127,5 +127,5 @@ + debugOutput(DEBUG_LEVEL_NORMAL, "EFC HW CAPS info:\n"); + debugOutput(DEBUG_LEVEL_NORMAL, " Flags : 0x%08X\n", m_flags); +- debugOutput(DEBUG_LEVEL_NORMAL, " GUID : %016"PRIX64"\n", m_guid); ++ debugOutput(DEBUG_LEVEL_NORMAL, " GUID : %016" PRIX64 "\n", m_guid); + debugOutput(DEBUG_LEVEL_NORMAL, " HwType : 0x%08X\n", m_type); + debugOutput(DEBUG_LEVEL_NORMAL, " Version : %u\n", m_version); +Index: trunk/libffado/tests/test-bufferops.cpp +=================================================================== +--- trunk/libffado/tests/test-bufferops.cpp (revision 1763) ++++ trunk/libffado/tests/test-bufferops.cpp (revision 2651) +@@ -88,5 +88,5 @@ + byteSwapToBus(buffer_1, nb_quadlets); + elapsed = Util::SystemTimeSource::getCurrentTimeAsUsecs() - start; +- printMessage( " took %"PRI_FFADO_MICROSECS_T"usec...\n", elapsed); ++ printMessage( " took %" PRI_FFADO_MICROSECS_T "usec...\n", elapsed); + + } +@@ -156,5 +156,5 @@ + convertFromInt24AndLabelAsMBLA(buffer_1, nb_quadlets); + elapsed = Util::SystemTimeSource::getCurrentTimeAsUsecs() - start; +- printMessage( " took %"PRI_FFADO_MICROSECS_T"usec...\n", elapsed); ++ printMessage( " took %" PRI_FFADO_MICROSECS_T "usec...\n", elapsed); + } + +@@ -238,5 +238,5 @@ + convertFromFloatAndLabelAsMBLA(buffer_1, nb_quadlets); + elapsed = Util::SystemTimeSource::getCurrentTimeAsUsecs() - start; +- printMessage( " took %"PRI_FFADO_MICROSECS_T"usec...\n", elapsed); ++ printMessage( " took %" PRI_FFADO_MICROSECS_T "usec...\n", elapsed); + } + +Index: trunk/libffado/tests/test-timestampedbuffer.cpp +=================================================================== +--- trunk/libffado/tests/test-timestampedbuffer.cpp (revision 1763) ++++ trunk/libffado/tests/test-timestampedbuffer.cpp (revision 2651) +@@ -346,5 +346,5 @@ + + if (timestamp != ts_head) { +- debugError(" cycle %4u error: %011"PRIu64" != %011"PRIu64"\n", ++ debugError(" cycle %4u error: %011" PRIu64 " != %011" PRIu64 "\n", + cycle, timestamp, ts_head); + pass=false; +@@ -419,5 +419,5 @@ + + debugOutput(DEBUG_LEVEL_NORMAL, +- "Simulating cycle %d @ time=%011"PRIu64", diff=%"PRId64"\n", ++ "Simulating cycle %d @ time=%011" PRIu64 ", diff=%" PRId64 "\n", + cycle, time, diff); + +@@ -436,8 +436,8 @@ + ts_tail=(uint64_t)ts_tail_tmp; + debugOutput(DEBUG_LEVEL_NORMAL, +- " TS after write: HEAD: %011"PRIu64", FC=%04u\n", ++ " TS after write: HEAD: %011" PRIu64 ", FC=%04u\n", + ts_head,fc_head); + debugOutput(DEBUG_LEVEL_NORMAL, +- " TAIL: %011"PRIu64", FC=%04u\n", ++ " TAIL: %011" PRIu64 ", FC=%04u\n", + ts_tail,fc_tail); + +@@ -451,8 +451,8 @@ + ts_tail=(uint64_t)ts_tail_tmp; + debugOutput(DEBUG_LEVEL_NORMAL, +- " TS after write: HEAD: %011"PRIu64", FC=%04u\n", ++ " TS after write: HEAD: %011" PRIu64 ", FC=%04u\n", + ts_head,fc_head); + debugOutput(DEBUG_LEVEL_NORMAL, +- " TAIL: %011"PRIu64", FC=%04u\n", ++ " TAIL: %011" PRIu64 ", FC=%04u\n", + ts_tail,fc_tail); + +@@ -526,5 +526,5 @@ + + debugOutput(DEBUG_LEVEL_NORMAL, +- "Simulating cycle %d @ time=%011"PRIu64", diff=%"PRId64"\n", ++ "Simulating cycle %d @ time=%011" PRIu64 ", diff=%" PRId64 "\n", + cycle, time, diff); + +@@ -543,8 +543,8 @@ + ts_tail=(uint64_t)ts_tail_tmp; + debugOutput(DEBUG_LEVEL_NORMAL, +- " TS after write: HEAD: %011"PRIu64", FC=%04u\n", ++ " TS after write: HEAD: %011" PRIu64 ", FC=%04u\n", + ts_head,fc_head); + debugOutput(DEBUG_LEVEL_NORMAL, +- " TAIL: %011"PRIu64", FC=%04u\n", ++ " TAIL: %011" PRIu64 ", FC=%04u\n", + ts_tail,fc_tail); + +@@ -561,8 +561,8 @@ + ts_tail=(uint64_t)ts_tail_tmp; + debugOutput(DEBUG_LEVEL_NORMAL, +- " TS after read: HEAD: %011"PRIu64", FC=%04u\n", ++ " TS after read: HEAD: %011" PRIu64 ", FC=%04u\n", + ts_head,fc_head); + debugOutput(DEBUG_LEVEL_NORMAL, +- " TAIL: %011"PRIu64", FC=%04u\n", ++ " TAIL: %011" PRIu64 ", FC=%04u\n", + ts_tail,fc_tail); + } +Index: trunk/libffado/tests/test-ieee1394service.cpp +=================================================================== +--- trunk/libffado/tests/test-ieee1394service.cpp (revision 2587) ++++ trunk/libffado/tests/test-ieee1394service.cpp (revision 2651) +@@ -164,5 +164,5 @@ + } + debugOutput ( DEBUG_LEVEL_VERY_VERBOSE, +- "(%p) Cycle timer: %011"PRIu64" (%03us %04ucy %04uticks)\n", ++ "(%p) Cycle timer: %011" PRIu64 " (%03us %04ucy %04uticks)\n", + this, ctr, + (unsigned int)TICKS_TO_SECS( ctr ), +@@ -170,5 +170,5 @@ + (unsigned int)TICKS_TO_OFFSET( ctr ) ); + debugOutput ( DEBUG_LEVEL_VERY_VERBOSE, +- "(%p) from DLL: %011"PRIu64" (%03us %04ucy %04uticks)\n", ++ "(%p) from DLL: %011" PRIu64 " (%03us %04ucy %04uticks)\n", + this, ctr_dll, + (unsigned int)TICKS_TO_SECS( ctr_dll ), +@@ -199,11 +199,11 @@ + } + debugOutput ( DEBUG_LEVEL_VERY_VERBOSE, +- "(%p) diff: %s%011"PRIu64" (%03us %04ucy %04uticks)\n", this, ++ "(%p) diff: %s%011" PRIu64 " (%03us %04ucy %04uticks)\n", this, + ((int64_t)abs_diff==diff?" ":"-"), abs_diff, (unsigned int)TICKS_TO_SECS( abs_diff ), + (unsigned int)TICKS_TO_CYCLES( abs_diff ), (unsigned int)TICKS_TO_OFFSET( abs_diff ) ); + if (abs_diff > DIFF_CONSIDERED_LARGE) { +- debugWarning("(%p) Alert, large diff: %"PRId64"\n", this, diff); +- debugOutput ( DEBUG_LEVEL_NORMAL, +- "(%p) Cycle timer: %011"PRIu64" (%03us %04ucy %04uticks)\n", ++ debugWarning("(%p) Alert, large diff: %" PRId64 "\n", this, diff); ++ debugOutput ( DEBUG_LEVEL_NORMAL, ++ "(%p) Cycle timer: %011" PRIu64 " (%03us %04ucy %04uticks)\n", + this, ctr, + (unsigned int)TICKS_TO_SECS( ctr ), +@@ -211,5 +211,5 @@ + (unsigned int)TICKS_TO_OFFSET( ctr ) ); + debugOutput ( DEBUG_LEVEL_NORMAL, +- "(%p) from DLL: %011"PRIu64" (%03us %04ucy %04uticks)\n", ++ "(%p) from DLL: %011" PRIu64 " (%03us %04ucy %04uticks)\n", + this, ctr_dll, + (unsigned int)TICKS_TO_SECS( ctr_dll ), +@@ -220,8 +220,8 @@ + diff = diffTicks(ctr, ctr_prev); + if (diff < 0) { +- debugWarning("(%p) Alert, non-monotonic ctr (direct): %"PRId64" - %"PRId64" = %"PRId64"\n", ++ debugWarning("(%p) Alert, non-monotonic ctr (direct): %" PRId64 " - %" PRId64 " = %" PRId64 "\n", + this, ctr, ctr_prev, diff); + debugOutput ( DEBUG_LEVEL_NORMAL, +- "(%p) Cycle timer now : %011"PRIu64" (%03us %04ucy %04uticks)\n", ++ "(%p) Cycle timer now : %011" PRIu64 " (%03us %04ucy %04uticks)\n", + this, ctr, + (unsigned int)TICKS_TO_SECS( ctr ), +@@ -229,5 +229,5 @@ + (unsigned int)TICKS_TO_OFFSET( ctr ) ); + debugOutput ( DEBUG_LEVEL_NORMAL, +- "(%p) Cycle timer prev: %011"PRIu64" (%03us %04ucy %04uticks)\n", ++ "(%p) Cycle timer prev: %011" PRIu64 " (%03us %04ucy %04uticks)\n", + this, ctr_prev, + (unsigned int)TICKS_TO_SECS( ctr_prev ), +@@ -237,8 +237,8 @@ + diff = diffTicks(ctr_dll, ctr_dll_prev); + if (diff < 0) { +- debugWarning("(%p) Alert, non-monotonic ctr (dll): %"PRId64" - %"PRId64" = %"PRId64"\n", ++ debugWarning("(%p) Alert, non-monotonic ctr (dll): %" PRId64 " - %" PRId64 " = %" PRId64 "\n", + this, ctr_dll, ctr_dll_prev, diff); + debugOutput ( DEBUG_LEVEL_NORMAL, +- "(%p) Cycle timer now : %011"PRIu64" (%03us %04ucy %04uticks)\n", ++ "(%p) Cycle timer now : %011" PRIu64 " (%03us %04ucy %04uticks)\n", + this, ctr_dll, + (unsigned int)TICKS_TO_SECS( ctr_dll ), +@@ -246,5 +246,5 @@ + (unsigned int)TICKS_TO_OFFSET( ctr_dll ) ); + debugOutput ( DEBUG_LEVEL_NORMAL, +- "(%p) Cycle timer prev: %011"PRIu64" (%03us %04ucy %04uticks)\n", ++ "(%p) Cycle timer prev: %011" PRIu64 " (%03us %04ucy %04uticks)\n", + this, ctr_dll_prev, + (unsigned int)TICKS_TO_SECS( ctr_dll_prev ), +@@ -267,5 +267,5 @@ + (unsigned int)CYCLE_TIMER_GET_OFFSET( tmp_orig ) ); + debugOutput ( DEBUG_LEVEL_VERY_VERBOSE, +- "(%p) TICKS: %011"PRIu32" (%03us %04ucy %04uticks)\n", ++ "(%p) TICKS: %011" PRIu32 " (%03us %04ucy %04uticks)\n", + this, tmp_ticks, + (unsigned int)TICKS_TO_SECS( tmp_ticks ), +Index: trunk/libffado/tests/test-ffado.cpp +=================================================================== +--- trunk/libffado/tests/test-ffado.cpp (revision 2587) ++++ trunk/libffado/tests/test-ffado.cpp (revision 2651) +@@ -510,5 +510,5 @@ + uint64_t result_rcv = sytRecvToFullTicks(syt_timestamp, rcv_cycle, ctr_now); + uint64_t result_xmt = sytXmitToFullTicks(syt_timestamp, rcv_cycle, ctr_now); +- printf("RCV: 0x%010"PRIX64" %010"PRIu64" XMT: 0x%010"PRIX64" %010"PRIu64" CTR: %010"PRIu64"\n", ++ printf("RCV: 0x%010" PRIX64 " %010" PRIu64 " XMT: 0x%010" PRIX64 " %010" PRIu64 " CTR: %010" PRIu64 "\n", + result_rcv, result_rcv, result_xmt, result_xmt, CYCLE_TIMER_TO_TICKS(ctr_now)); + +Index: trunk/libffado/tests/test-focusrite.cpp +=================================================================== +--- trunk/libffado/tests/test-focusrite.cpp (revision 2587) ++++ trunk/libffado/tests/test-focusrite.cpp (revision 2651) +@@ -185,5 +185,5 @@ + } + if (!retval) { +- debugError( " read from %16"PRIX64" failed (id: %d)\n", addr, id); ++ debugError( " read from %16" PRIX64 " failed (id: %d)\n", addr, id); + } else { + value = CondSwapFromBus32(value); +Index: trunk/libffado/tests/systemtests/gen-loadpulses.cpp +=================================================================== +--- trunk/libffado/tests/systemtests/gen-loadpulses.cpp (revision 1763) ++++ trunk/libffado/tests/systemtests/gen-loadpulses.cpp (revision 2651) +@@ -188,10 +188,10 @@ + int64_t usecs_late = toc - sleep_time; + if(usecs_late > 1000) { +- debugWarning("late wakeup: %"PRId64" usecs\n", usecs_late); ++ debugWarning("late wakeup: %" PRId64 " usecs\n", usecs_late); + } + + // try and detect lockup () + if(usecs_late > 100000) { +- debugWarning("very late wakeup: %"PRId64" usecs\n", usecs_late); ++ debugWarning("very late wakeup: %" PRId64 " usecs\n", usecs_late); + // force exit, since this is a loop out of control + run=0; +Index: trunk/libffado/tests/systemtests/test-sysload.cpp +=================================================================== +--- trunk/libffado/tests/systemtests/test-sysload.cpp (revision 1763) ++++ trunk/libffado/tests/systemtests/test-sysload.cpp (revision 2651) +@@ -190,10 +190,10 @@ + int64_t usecs_late = toc - sleep_time; + if(usecs_late > 1000) { +- debugWarning("late wakeup: %"PRId64" usecs\n", usecs_late); ++ debugWarning("late wakeup: %" PRId64 " usecs\n", usecs_late); + } + + // try and detect lockup () + if(usecs_late > 100000) { +- debugWarning("very late wakeup: %"PRId64" usecs\n", usecs_late); ++ debugWarning("very late wakeup: %" PRId64 " usecs\n", usecs_late); + // force exit, since this is a loop out of control + run=0; +Index: trunk/libffado/tests/systemtests/test-clock_nanosleep.cpp +=================================================================== +--- trunk/libffado/tests/systemtests/test-clock_nanosleep.cpp (revision 1763) ++++ trunk/libffado/tests/systemtests/test-clock_nanosleep.cpp (revision 2651) +@@ -70,5 +70,5 @@ + ts.tv_nsec = (wake_at_usec % (1000000LL)) * 1000LL; + debugOutput(DEBUG_LEVEL_VERBOSE, +- "clock_nanosleep until %"PRId64" sec, %"PRId64" nanosec\n", ++ "clock_nanosleep until %" PRId64 " sec, %" PRId64 " nanosec\n", + (int64_t)ts.tv_sec, (int64_t)ts.tv_nsec); + int err = clock_nanosleep(CLOCK_REALTIME, TIMER_ABSTIME, &ts, NULL); +@@ -107,5 +107,5 @@ + + debugOutput(DEBUG_LEVEL_VERBOSE, +- "cuckoo from %p at %012"PRI_FFADO_MICROSECS_T"\n", ++ "cuckoo from %p at %012" PRI_FFADO_MICROSECS_T "\n", + obj, getCurrentTimeAsUsecs()); + +Index: trunk/libffado/support/firmware/fireworks-downloader.cpp +=================================================================== +--- trunk/libffado/support/firmware/fireworks-downloader.cpp (revision 2413) ++++ trunk/libffado/support/firmware/fireworks-downloader.cpp (revision 2651) +@@ -215,5 +215,5 @@ + + if (node_id < 0) { +- printMessage("Could not find device with GUID 0x%016"PRIX64"\n", guid); ++ printMessage("Could not find device with GUID 0x%016" PRIX64 "\n", guid); + return -1; + } +Index: trunk/libffado/support/dbus/controlserver.cpp +=================================================================== +--- trunk/libffado/support/dbus/controlserver.cpp (revision 2574) ++++ trunk/libffado/support/dbus/controlserver.cpp (revision 2651) +@@ -626,5 +626,5 @@ + { + uint64_t val = m_Slave.getValue(addr); +- debugOutput( DEBUG_LEVEL_VERBOSE, "getValue(%"PRId64") => %"PRId64"\n", addr, val ); ++ debugOutput( DEBUG_LEVEL_VERBOSE, "getValue(%" PRId64 ") => %" PRId64 "\n", addr, val ); + return val; + } diff --git a/libffado-diff-trunk-from-r2690-to-r2691.diff b/libffado-diff-trunk-from-r2690-to-r2691.diff new file mode 100644 index 0000000..3c1ff26 --- /dev/null +++ b/libffado-diff-trunk-from-r2690-to-r2691.diff @@ -0,0 +1,1137 @@ +Index: trunk/libffado/src/ffadodevice.cpp +=================================================================== +--- trunk/libffado/src/ffadodevice.cpp (revision 2019) ++++ trunk/libffado/src/ffadodevice.cpp (revision 2691) +@@ -41,5 +41,5 @@ + IMPL_DEBUG_MODULE( FFADODevice, FFADODevice, DEBUG_LEVEL_NORMAL ); + +-FFADODevice::FFADODevice( DeviceManager& d, std::auto_ptr( configRom ) ) ++FFADODevice::FFADODevice( DeviceManager& d, ffado_smartptr( configRom ) ) + : Control::Container(&d) + , m_pConfigRom( configRom ) +@@ -100,5 +100,5 @@ + + FFADODevice * +-FFADODevice::createDevice(std::auto_ptr( x )) ++FFADODevice::createDevice(ffado_smartptr( x )) + { + // re-implement this!! +Index: trunk/libffado/src/devicemanager.h +=================================================================== +--- trunk/libffado/src/devicemanager.h (revision 2078) ++++ trunk/libffado/src/devicemanager.h (revision 2691) +@@ -149,5 +149,5 @@ + FFADODevice* getDriverForDevice( ConfigRom *configRom, + int id ); +- FFADODevice* getSlaveDriver( std::auto_ptr( configRom ) ); ++ FFADODevice* getSlaveDriver( ffado_smartptr( configRom ) ); + + void busresetHandler(Ieee1394Service &); +Index: trunk/libffado/src/rme/rme_avdevice.h +=================================================================== +--- trunk/libffado/src/rme/rme_avdevice.h (revision 2663) ++++ trunk/libffado/src/rme/rme_avdevice.h (revision 2691) +@@ -79,5 +79,5 @@ + + Device( DeviceManager& d, +- std::auto_ptr( configRom )); ++ ffado_smartptr( configRom )); + virtual ~Device(); + +@@ -87,5 +87,5 @@ + static bool probe( Util::Configuration& c, ConfigRom& configRom, bool generic = false ); + static FFADODevice * createDevice( DeviceManager& d, +- std::auto_ptr( configRom )); ++ ffado_smartptr( configRom )); + static int getConfigurationId( ); + virtual bool discover(); +Index: trunk/libffado/src/rme/rme_avdevice.cpp +=================================================================== +--- trunk/libffado/src/rme/rme_avdevice.cpp (revision 2663) ++++ trunk/libffado/src/rme/rme_avdevice.cpp (revision 2691) +@@ -59,5 +59,5 @@ + + Device::Device( DeviceManager& d, +- std::auto_ptr( configRom )) ++ ffado_smartptr( configRom )) + : FFADODevice( d, configRom ) + , m_rme_model( RME_MODEL_NONE ) +@@ -372,5 +372,5 @@ + + FFADODevice * +-Device::createDevice(DeviceManager& d, std::auto_ptr( configRom )) ++Device::createDevice(DeviceManager& d, ffado_smartptr( configRom )) + { + return new Device(d, configRom ); +Index: trunk/libffado/src/motu/motu_avdevice.h +=================================================================== +--- trunk/libffado/src/motu/motu_avdevice.h (revision 2502) ++++ trunk/libffado/src/motu/motu_avdevice.h (revision 2691) +@@ -381,5 +381,5 @@ + public: + +- MotuDevice( DeviceManager& d, std::auto_ptr( configRom ) ); ++ MotuDevice( DeviceManager& d, ffado_smartptr( configRom ) ); + virtual ~MotuDevice(); + +@@ -388,5 +388,5 @@ + + static bool probe( Util::Configuration&, ConfigRom& configRom, bool generic = false ); +- static FFADODevice * createDevice( DeviceManager& d, std::auto_ptr( configRom )); ++ static FFADODevice * createDevice( DeviceManager& d, ffado_smartptr( configRom )); + static int getConfigurationId( ); + virtual bool discover(); +Index: trunk/libffado/src/motu/motu_avdevice.cpp +=================================================================== +--- trunk/libffado/src/motu/motu_avdevice.cpp (revision 2651) ++++ trunk/libffado/src/motu/motu_avdevice.cpp (revision 2691) +@@ -316,5 +316,5 @@ + }; + +-MotuDevice::MotuDevice( DeviceManager& d, std::auto_ptr( configRom )) ++MotuDevice::MotuDevice( DeviceManager& d, ffado_smartptr( configRom )) + : FFADODevice( d, configRom ) + , m_motu_model( MOTU_MODEL_NONE ) +@@ -383,5 +383,5 @@ + + FFADODevice * +-MotuDevice::createDevice(DeviceManager& d, std::auto_ptr( configRom )) ++MotuDevice::createDevice(DeviceManager& d, ffado_smartptr( configRom )) + { + return new MotuDevice(d, configRom); +Index: trunk/libffado/src/ffadodevice.h +=================================================================== +--- trunk/libffado/src/ffadodevice.h (revision 2587) ++++ trunk/libffado/src/ffadodevice.h (revision 2691) +@@ -36,4 +36,11 @@ + #include + #include ++ ++// Prefer shared_ptr over auto_ptr if it is available ++#if __cplusplus >= 201103L ++#define ffado_smartptr std::shared_ptr ++#else ++#define ffado_smartptr std::auto_ptr ++#endif + + class DeviceManager; +@@ -61,5 +68,5 @@ + { + public: +- FFADODevice( DeviceManager&, std::auto_ptr< ConfigRom >( configRom ) ); ++ FFADODevice( DeviceManager&, ffado_smartptr< ConfigRom >( configRom ) ); + + virtual ~FFADODevice(); +@@ -129,5 +136,5 @@ + * @return a new instance of the AvDevice type, NULL when unsuccessful + */ +- static FFADODevice * createDevice( std::auto_ptr( x )); ++ static FFADODevice * createDevice( ffado_smartptr( x )); + + /** +@@ -481,5 +488,5 @@ + {return m_pDeviceManager;}; + private: +- std::auto_ptr( m_pConfigRom ); ++ ffado_smartptr( m_pConfigRom ); + DeviceManager& m_pDeviceManager; + Control::Container* m_genericContainer; +Index: trunk/libffado/src/metrichalo/mh_avdevice.h +=================================================================== +--- trunk/libffado/src/metrichalo/mh_avdevice.h (revision 1543) ++++ trunk/libffado/src/metrichalo/mh_avdevice.h (revision 2691) +@@ -41,10 +41,10 @@ + public: + Device( DeviceManager& d, +- std::auto_ptr( configRom )); ++ ffado_smartptr( configRom )); + virtual ~Device(); + + static bool probe( Util::Configuration& c, ConfigRom& configRom, bool generic = false ); + static FFADODevice * createDevice( DeviceManager& d, +- std::auto_ptr( configRom )); ++ ffado_smartptr( configRom )); + static int getConfigurationId(); + virtual bool discover(); +Index: trunk/libffado/src/metrichalo/mh_avdevice.cpp +=================================================================== +--- trunk/libffado/src/metrichalo/mh_avdevice.cpp (revision 1543) ++++ trunk/libffado/src/metrichalo/mh_avdevice.cpp (revision 2691) +@@ -47,5 +47,5 @@ + + Device::Device( DeviceManager& d, +- std::auto_ptr( configRom )) ++ ffado_smartptr( configRom )) + : FFADODevice( d, configRom ) + { +@@ -76,5 +76,5 @@ + FFADODevice * + Device::createDevice( DeviceManager& d, +- std::auto_ptr( configRom )) ++ ffado_smartptr( configRom )) + { + return new Device(d, configRom ); +Index: trunk/libffado/src/oxford/oxford_device.cpp +=================================================================== +--- trunk/libffado/src/oxford/oxford_device.cpp (revision 1543) ++++ trunk/libffado/src/oxford/oxford_device.cpp (revision 2691) +@@ -45,5 +45,5 @@ + namespace Oxford { + +-Device::Device(DeviceManager& d, std::auto_ptr( configRom )) ++Device::Device(DeviceManager& d, ffado_smartptr( configRom )) + : GenericAVC::Device( d, configRom) + { +@@ -121,5 +121,5 @@ + + FFADODevice * +-Device::createDevice(DeviceManager& d, std::auto_ptr( configRom )) ++Device::createDevice(DeviceManager& d, ffado_smartptr( configRom )) + { + unsigned int vendorId = configRom->getNodeVendorId(); +Index: trunk/libffado/src/oxford/oxford_device.h +=================================================================== +--- trunk/libffado/src/oxford/oxford_device.h (revision 1543) ++++ trunk/libffado/src/oxford/oxford_device.h (revision 2691) +@@ -40,9 +40,9 @@ + + public: +- Device( DeviceManager& d, std::auto_ptr( configRom ) ); ++ Device( DeviceManager& d, ffado_smartptr( configRom ) ); + virtual ~Device(); + + static bool probe( Util::Configuration&, ConfigRom& configRom, bool generic = false ); +- static FFADODevice * createDevice( DeviceManager& d, std::auto_ptr( configRom )); ++ static FFADODevice * createDevice( DeviceManager& d, ffado_smartptr( configRom )); + virtual bool discover(); + +Index: trunk/libffado/src/dice/dice_avdevice.h +=================================================================== +--- trunk/libffado/src/dice/dice_avdevice.h (revision 2430) ++++ trunk/libffado/src/dice/dice_avdevice.h (revision 2691) +@@ -69,10 +69,10 @@ + public: + /// constructor +- Device( DeviceManager& d, std::auto_ptr( configRom )); ++ Device( DeviceManager& d, ffado_smartptr( configRom )); + /// destructor + ~Device(); + + static bool probe( Util::Configuration& c, ConfigRom& configRom, bool generic = false ); +- static FFADODevice * createDevice( DeviceManager& d, std::auto_ptr( configRom )); ++ static FFADODevice * createDevice( DeviceManager& d, ffado_smartptr( configRom )); + virtual bool discover(); + +Index: trunk/libffado/src/dice/focusrite/saffire_56.h +=================================================================== +--- trunk/libffado/src/dice/focusrite/saffire_56.h (revision 2580) ++++ trunk/libffado/src/dice/focusrite/saffire_56.h (revision 2691) +@@ -90,5 +90,5 @@ + public: + Saffire56( DeviceManager& d, +- std::auto_ptr( configRom )); ++ ffado_smartptr( configRom )); + virtual ~Saffire56(); + +Index: trunk/libffado/src/dice/focusrite/saffire_pro40.cpp +=================================================================== +--- trunk/libffado/src/dice/focusrite/saffire_pro40.cpp (revision 2547) ++++ trunk/libffado/src/dice/focusrite/saffire_pro40.cpp (revision 2691) +@@ -479,5 +479,5 @@ + */ + SaffirePro40::SaffirePro40( DeviceManager& d, +- std::auto_ptr( configRom )) ++ ffado_smartptr( configRom )) + : Dice::Device( d , configRom) + { +Index: trunk/libffado/src/dice/focusrite/saffire_pro14.cpp +=================================================================== +--- trunk/libffado/src/dice/focusrite/saffire_pro14.cpp (revision 2431) ++++ trunk/libffado/src/dice/focusrite/saffire_pro14.cpp (revision 2691) +@@ -356,5 +356,5 @@ + */ + SaffirePro14::SaffirePro14( DeviceManager& d, +- std::auto_ptr( configRom )) ++ ffado_smartptr( configRom )) + : Dice::Device( d , configRom) + { +Index: trunk/libffado/src/dice/focusrite/saffire_pro24.cpp +=================================================================== +--- trunk/libffado/src/dice/focusrite/saffire_pro24.cpp (revision 2598) ++++ trunk/libffado/src/dice/focusrite/saffire_pro24.cpp (revision 2691) +@@ -408,5 +408,5 @@ + + SaffirePro24::SaffirePro24( DeviceManager& d, +- std::auto_ptr( configRom )) ++ ffado_smartptr( configRom )) + : Dice::Device(d , configRom) + { +Index: trunk/libffado/src/dice/focusrite/saffire_pro26.cpp +=================================================================== +--- trunk/libffado/src/dice/focusrite/saffire_pro26.cpp (revision 2606) ++++ trunk/libffado/src/dice/focusrite/saffire_pro26.cpp (revision 2691) +@@ -358,5 +358,5 @@ + + SaffirePro26::SaffirePro26( DeviceManager& d, +- std::auto_ptr( configRom )) ++ ffado_smartptr( configRom )) + : Dice::Device(d , configRom) + { +Index: trunk/libffado/src/dice/focusrite/saffire_pro40.h +=================================================================== +--- trunk/libffado/src/dice/focusrite/saffire_pro40.h (revision 2547) ++++ trunk/libffado/src/dice/focusrite/saffire_pro40.h (revision 2691) +@@ -85,5 +85,5 @@ + public: + SaffirePro40( DeviceManager& d, +- std::auto_ptr( configRom )); ++ ffado_smartptr( configRom )); + virtual ~SaffirePro40(); + +Index: trunk/libffado/src/dice/focusrite/saffire_56.cpp +=================================================================== +--- trunk/libffado/src/dice/focusrite/saffire_56.cpp (revision 2580) ++++ trunk/libffado/src/dice/focusrite/saffire_56.cpp (revision 2691) +@@ -502,5 +502,5 @@ + */ + Saffire56::Saffire56( DeviceManager& d, +- std::auto_ptr( configRom )) ++ ffado_smartptr( configRom )) + : Dice::Device( d , configRom) + { +Index: trunk/libffado/src/dice/focusrite/saffire_pro14.h +=================================================================== +--- trunk/libffado/src/dice/focusrite/saffire_pro14.h (revision 2431) ++++ trunk/libffado/src/dice/focusrite/saffire_pro14.h (revision 2691) +@@ -93,5 +93,5 @@ + public: + SaffirePro14( DeviceManager& d, +- std::auto_ptr( configRom )); ++ ffado_smartptr( configRom )); + virtual ~SaffirePro14(); + +Index: trunk/libffado/src/dice/focusrite/saffire_pro24.h +=================================================================== +--- trunk/libffado/src/dice/focusrite/saffire_pro24.h (revision 2431) ++++ trunk/libffado/src/dice/focusrite/saffire_pro24.h (revision 2691) +@@ -92,5 +92,5 @@ + public: + SaffirePro24( DeviceManager& d, +- std::auto_ptr( configRom )); ++ ffado_smartptr( configRom )); + ~SaffirePro24(); + +Index: trunk/libffado/src/dice/focusrite/saffire_pro26.h +=================================================================== +--- trunk/libffado/src/dice/focusrite/saffire_pro26.h (revision 2590) ++++ trunk/libffado/src/dice/focusrite/saffire_pro26.h (revision 2691) +@@ -80,5 +80,5 @@ + public: + SaffirePro26( DeviceManager& d, +- std::auto_ptr( configRom )); ++ ffado_smartptr( configRom )); + ~SaffirePro26(); + +Index: trunk/libffado/src/dice/dice_avdevice.cpp +=================================================================== +--- trunk/libffado/src/dice/dice_avdevice.cpp (revision 2651) ++++ trunk/libffado/src/dice/dice_avdevice.cpp (revision 2691) +@@ -61,5 +61,5 @@ + namespace Dice { + +-Device::Device( DeviceManager& d, std::auto_ptr( configRom )) ++Device::Device( DeviceManager& d, ffado_smartptr( configRom )) + : FFADODevice( d, configRom ) + , m_eap( NULL ) +@@ -126,5 +126,5 @@ + + FFADODevice * +-Device::createDevice( DeviceManager& d, std::auto_ptr( configRom )) ++Device::createDevice( DeviceManager& d, ffado_smartptr( configRom )) + { + unsigned int vendorId = configRom->getNodeVendorId(); +Index: trunk/libffado/src/dice/maudio/profire_2626.cpp +=================================================================== +--- trunk/libffado/src/dice/maudio/profire_2626.cpp (revision 2433) ++++ trunk/libffado/src/dice/maudio/profire_2626.cpp (revision 2691) +@@ -363,5 +363,5 @@ + Device + */ +-Profire2626::Profire2626( DeviceManager& d, std::auto_ptr(configRom)) ++Profire2626::Profire2626( DeviceManager& d, ffado_smartptr(configRom)) + : Dice::Device( d, configRom) + { +Index: trunk/libffado/src/dice/maudio/profire_2626.h +=================================================================== +--- trunk/libffado/src/dice/maudio/profire_2626.h (revision 2433) ++++ trunk/libffado/src/dice/maudio/profire_2626.h (revision 2691) +@@ -44,5 +44,5 @@ + public: + Profire2626( DeviceManager& d, +- std::auto_ptr( configRom )); ++ ffado_smartptr( configRom )); + virtual ~Profire2626(); + +Index: trunk/libffado/src/dice/presonus/firestudio_tube.h +=================================================================== +--- trunk/libffado/src/dice/presonus/firestudio_tube.h (revision 2251) ++++ trunk/libffado/src/dice/presonus/firestudio_tube.h (revision 2691) +@@ -37,5 +37,5 @@ + public: + FirestudioTube( DeviceManager& d, +- std::auto_ptr( configRom )); ++ ffado_smartptr( configRom )); + virtual ~FirestudioTube(); + +Index: trunk/libffado/src/dice/presonus/firestudio_project.cpp +=================================================================== +--- trunk/libffado/src/dice/presonus/firestudio_project.cpp (revision 2257) ++++ trunk/libffado/src/dice/presonus/firestudio_project.cpp (revision 2691) +@@ -155,5 +155,5 @@ + */ + FirestudioProject::FirestudioProject( DeviceManager& d, +- std::auto_ptr( configRom )) ++ ffado_smartptr( configRom )) + : Dice::Device( d , configRom) + { +Index: trunk/libffado/src/dice/presonus/firestudio_mobile.cpp +=================================================================== +--- trunk/libffado/src/dice/presonus/firestudio_mobile.cpp (revision 2578) ++++ trunk/libffado/src/dice/presonus/firestudio_mobile.cpp (revision 2691) +@@ -154,5 +154,5 @@ + */ + FirestudioMobile::FirestudioMobile( DeviceManager& d, +- std::auto_ptr( configRom )) ++ ffado_smartptr( configRom )) + : Dice::Device( d , configRom) + { +Index: trunk/libffado/src/dice/presonus/firestudio_project.h +=================================================================== +--- trunk/libffado/src/dice/presonus/firestudio_project.h (revision 2257) ++++ trunk/libffado/src/dice/presonus/firestudio_project.h (revision 2691) +@@ -37,5 +37,5 @@ + public: + FirestudioProject( DeviceManager& d, +- std::auto_ptr( configRom )); ++ ffado_smartptr( configRom )); + virtual ~FirestudioProject(); + +Index: trunk/libffado/src/dice/presonus/firestudio_mobile.h +=================================================================== +--- trunk/libffado/src/dice/presonus/firestudio_mobile.h (revision 2578) ++++ trunk/libffado/src/dice/presonus/firestudio_mobile.h (revision 2691) +@@ -38,5 +38,5 @@ + public: + FirestudioMobile( DeviceManager& d, +- std::auto_ptr( configRom )); ++ ffado_smartptr( configRom )); + virtual ~FirestudioMobile(); + +Index: trunk/libffado/src/dice/presonus/firestudio_tube.cpp +=================================================================== +--- trunk/libffado/src/dice/presonus/firestudio_tube.cpp (revision 2251) ++++ trunk/libffado/src/dice/presonus/firestudio_tube.cpp (revision 2691) +@@ -143,5 +143,5 @@ + */ + FirestudioTube::FirestudioTube( DeviceManager& d, +- std::auto_ptr( configRom )) ++ ffado_smartptr( configRom )) + : Dice::Device( d , configRom) + { +Index: trunk/libffado/src/digidesign/digidesign_avdevice.h +=================================================================== +--- trunk/libffado/src/digidesign/digidesign_avdevice.h (revision 1964) ++++ trunk/libffado/src/digidesign/digidesign_avdevice.h (revision 2691) +@@ -51,5 +51,5 @@ + + Device( DeviceManager& d, +- std::auto_ptr( configRom )); ++ ffado_smartptr( configRom )); + virtual ~Device(); + +@@ -59,5 +59,5 @@ + static bool probe( Util::Configuration& c, ConfigRom& configRom, bool generic = false ); + static FFADODevice * createDevice( DeviceManager& d, +- std::auto_ptr( configRom )); ++ ffado_smartptr( configRom )); + static int getConfigurationId( ); + virtual bool discover(); +Index: trunk/libffado/src/digidesign/digidesign_avdevice.cpp +=================================================================== +--- trunk/libffado/src/digidesign/digidesign_avdevice.cpp (revision 1964) ++++ trunk/libffado/src/digidesign/digidesign_avdevice.cpp (revision 2691) +@@ -52,5 +52,5 @@ + + Device::Device( DeviceManager& d, +- std::auto_ptr( configRom )) ++ ffado_smartptr( configRom )) + : FFADODevice( d, configRom ) + , m_digidesign_model( DIGIDESIGN_MODEL_NONE ) +@@ -125,5 +125,5 @@ + + FFADODevice * +-Device::createDevice(DeviceManager& d, std::auto_ptr( configRom )) ++Device::createDevice(DeviceManager& d, ffado_smartptr( configRom )) + { + return new Device(d, configRom ); +Index: trunk/libffado/src/genericavc/avc_avdevice.cpp +=================================================================== +--- trunk/libffado/src/genericavc/avc_avdevice.cpp (revision 1791) ++++ trunk/libffado/src/genericavc/avc_avdevice.cpp (revision 2691) +@@ -52,5 +52,5 @@ + IMPL_DEBUG_MODULE( Device, Device, DEBUG_LEVEL_NORMAL ); + +-Device::Device( DeviceManager& d, std::auto_ptr( configRom )) ++Device::Device( DeviceManager& d, ffado_smartptr( configRom )) + : FFADODevice( d, configRom ) + { +@@ -109,5 +109,5 @@ + + FFADODevice * +-Device::createDevice(DeviceManager& d, std::auto_ptr( configRom )) ++Device::createDevice(DeviceManager& d, ffado_smartptr( configRom )) + { + unsigned int vendorId = configRom->getNodeVendorId(); +Index: trunk/libffado/src/genericavc/avc_avdevice.h +=================================================================== +--- trunk/libffado/src/genericavc/avc_avdevice.h (revision 1543) ++++ trunk/libffado/src/genericavc/avc_avdevice.h (revision 2691) +@@ -48,10 +48,10 @@ + class Device : public FFADODevice, public AVC::Unit { + public: +- Device( DeviceManager& d, std::auto_ptr( configRom )); ++ Device( DeviceManager& d, ffado_smartptr( configRom )); + virtual ~Device(); + + static bool probe( Util::Configuration&, ConfigRom& configRom, bool generic = false ); + virtual bool discover(); +- static FFADODevice * createDevice( DeviceManager& d, std::auto_ptr( configRom )); ++ static FFADODevice * createDevice( DeviceManager& d, ffado_smartptr( configRom )); + + virtual bool serialize( std::string basePath, Util::IOSerialize& ser ) const; +Index: trunk/libffado/src/genericavc/stanton/scs.cpp +=================================================================== +--- trunk/libffado/src/genericavc/stanton/scs.cpp (revision 2651) ++++ trunk/libffado/src/genericavc/stanton/scs.cpp (revision 2691) +@@ -34,5 +34,5 @@ + + ScsDevice::ScsDevice( DeviceManager& d, +- std::auto_ptr( configRom )) ++ ffado_smartptr( configRom )) + : GenericAVC::Device( d , configRom) + , m_hss1394handler( NULL ) +Index: trunk/libffado/src/genericavc/stanton/scs.h +=================================================================== +--- trunk/libffado/src/genericavc/stanton/scs.h (revision 1550) ++++ trunk/libffado/src/genericavc/stanton/scs.h (revision 2691) +@@ -71,5 +71,5 @@ + public: + ScsDevice( DeviceManager& d, +- std::auto_ptr( configRom )); ++ ffado_smartptr( configRom )); + virtual ~ScsDevice(); + +Index: trunk/libffado/src/bebob/esi/quatafire610.cpp +=================================================================== +--- trunk/libffado/src/bebob/esi/quatafire610.cpp (revision 1543) ++++ trunk/libffado/src/bebob/esi/quatafire610.cpp (revision 2691) +@@ -29,5 +29,5 @@ + namespace ESI { + +-QuataFireDevice::QuataFireDevice( DeviceManager& d, std::auto_ptr( configRom )) ++QuataFireDevice::QuataFireDevice( DeviceManager& d, ffado_smartptr( configRom )) + : BeBoB::Device( d, configRom) + { +Index: trunk/libffado/src/bebob/esi/quatafire610.h +=================================================================== +--- trunk/libffado/src/bebob/esi/quatafire610.h (revision 1543) ++++ trunk/libffado/src/bebob/esi/quatafire610.h (revision 2691) +@@ -34,5 +34,5 @@ + + public: +- QuataFireDevice( DeviceManager& d, std::auto_ptr( configRom )); ++ QuataFireDevice( DeviceManager& d, ffado_smartptr( configRom )); + virtual ~QuataFireDevice(); + +Index: trunk/libffado/src/bebob/mackie/onyxmixer.cpp +=================================================================== +--- trunk/libffado/src/bebob/mackie/onyxmixer.cpp (revision 1543) ++++ trunk/libffado/src/bebob/mackie/onyxmixer.cpp (revision 2691) +@@ -29,5 +29,5 @@ + namespace Mackie { + +-OnyxMixerDevice::OnyxMixerDevice( DeviceManager& d, std::auto_ptr( configRom )) ++OnyxMixerDevice::OnyxMixerDevice( DeviceManager& d, ffado_smartptr( configRom )) + : BeBoB::Device( d, configRom) + { +Index: trunk/libffado/src/bebob/mackie/onyxmixer.h +=================================================================== +--- trunk/libffado/src/bebob/mackie/onyxmixer.h (revision 1543) ++++ trunk/libffado/src/bebob/mackie/onyxmixer.h (revision 2691) +@@ -34,5 +34,5 @@ + + public: +- OnyxMixerDevice( DeviceManager& d, std::auto_ptr( configRom )); ++ OnyxMixerDevice( DeviceManager& d, ffado_smartptr( configRom )); + virtual ~OnyxMixerDevice(); + +Index: trunk/libffado/src/bebob/bebob_avdevice.cpp +=================================================================== +--- trunk/libffado/src/bebob/bebob_avdevice.cpp (revision 2671) ++++ trunk/libffado/src/bebob/bebob_avdevice.cpp (revision 2691) +@@ -65,5 +65,5 @@ + namespace BeBoB { + +-Device::Device( DeviceManager& d, std::auto_ptr< ConfigRom >( configRom ) ) ++Device::Device( DeviceManager& d, ffado_smartptr< ConfigRom >( configRom ) ) + : GenericAVC::Device( d, configRom ) + , m_last_discovery_config_id ( 0xFFFFFFFFFFFFFFFFLLU ) +@@ -131,5 +131,5 @@ + + FFADODevice * +-Device::createDevice(DeviceManager& d, std::auto_ptr( configRom )) ++Device::createDevice(DeviceManager& d, ffado_smartptr( configRom )) + { + unsigned int vendorId = configRom->getNodeVendorId(); +Index: trunk/libffado/src/bebob/yamaha/yamaha_avdevice.cpp +=================================================================== +--- trunk/libffado/src/bebob/yamaha/yamaha_avdevice.cpp (revision 2439) ++++ trunk/libffado/src/bebob/yamaha/yamaha_avdevice.cpp (revision 2691) +@@ -29,5 +29,5 @@ + namespace Yamaha { + +-GoDevice::GoDevice(DeviceManager& d, std::auto_ptr( configRom )) ++GoDevice::GoDevice(DeviceManager& d, ffado_smartptr( configRom )) + : BeBoB::Device( d, configRom) + { +Index: trunk/libffado/src/bebob/yamaha/yamaha_avdevice.h +=================================================================== +--- trunk/libffado/src/bebob/yamaha/yamaha_avdevice.h (revision 2439) ++++ trunk/libffado/src/bebob/yamaha/yamaha_avdevice.h (revision 2691) +@@ -35,5 +35,5 @@ + class GoDevice : public BeBoB::Device { + public: +- GoDevice( DeviceManager& d, std::auto_ptr( configRom )); ++ GoDevice( DeviceManager& d, ffado_smartptr( configRom )); + virtual ~GoDevice(); + +Index: trunk/libffado/src/bebob/focusrite/focusrite_generic.cpp +=================================================================== +--- trunk/libffado/src/bebob/focusrite/focusrite_generic.cpp (revision 2651) ++++ trunk/libffado/src/bebob/focusrite/focusrite_generic.cpp (revision 2691) +@@ -30,5 +30,5 @@ + namespace Focusrite { + +-FocusriteDevice::FocusriteDevice( DeviceManager& d, std::auto_ptr( configRom )) ++FocusriteDevice::FocusriteDevice( DeviceManager& d, ffado_smartptr( configRom )) + : BeBoB::Device( d, configRom) + , m_cmd_time_interval( 0 ) +Index: trunk/libffado/src/bebob/focusrite/focusrite_saffire.cpp +=================================================================== +--- trunk/libffado/src/bebob/focusrite/focusrite_saffire.cpp (revision 2651) ++++ trunk/libffado/src/bebob/focusrite/focusrite_saffire.cpp (revision 2691) +@@ -30,5 +30,5 @@ + namespace Focusrite { + +-SaffireDevice::SaffireDevice( DeviceManager& d, std::auto_ptr( configRom )) ++SaffireDevice::SaffireDevice( DeviceManager& d, ffado_smartptr( configRom )) + : FocusriteDevice( d, configRom) + , m_MixerContainer( NULL ) +Index: trunk/libffado/src/bebob/focusrite/focusrite_saffirepro.cpp +=================================================================== +--- trunk/libffado/src/bebob/focusrite/focusrite_saffirepro.cpp (revision 2413) ++++ trunk/libffado/src/bebob/focusrite/focusrite_saffirepro.cpp (revision 2691) +@@ -34,5 +34,5 @@ + namespace Focusrite { + +-SaffireProDevice::SaffireProDevice( DeviceManager& d, std::auto_ptr( configRom )) ++SaffireProDevice::SaffireProDevice( DeviceManager& d, ffado_smartptr( configRom )) + : FocusriteDevice( d, configRom ) + , m_MixerContainer( NULL ) +Index: trunk/libffado/src/bebob/focusrite/focusrite_generic.h +=================================================================== +--- trunk/libffado/src/bebob/focusrite/focusrite_generic.h (revision 1742) ++++ trunk/libffado/src/bebob/focusrite/focusrite_generic.h (revision 2691) +@@ -227,5 +227,5 @@ + class FocusriteDevice : public BeBoB::Device { + public: +- FocusriteDevice(DeviceManager& d, std::auto_ptr( configRom )); ++ FocusriteDevice(DeviceManager& d, ffado_smartptr( configRom )); + virtual ~FocusriteDevice() {}; + +Index: trunk/libffado/src/bebob/focusrite/focusrite_saffire.h +=================================================================== +--- trunk/libffado/src/bebob/focusrite/focusrite_saffire.h (revision 1498) ++++ trunk/libffado/src/bebob/focusrite/focusrite_saffire.h (revision 2691) +@@ -270,5 +270,5 @@ + class SaffireDevice : public FocusriteDevice { + public: +- SaffireDevice(DeviceManager& d, std::auto_ptr( configRom )); ++ SaffireDevice(DeviceManager& d, ffado_smartptr( configRom )); + virtual ~SaffireDevice() {}; + +Index: trunk/libffado/src/bebob/focusrite/focusrite_saffirepro.h +=================================================================== +--- trunk/libffado/src/bebob/focusrite/focusrite_saffirepro.h (revision 1498) ++++ trunk/libffado/src/bebob/focusrite/focusrite_saffirepro.h (revision 2691) +@@ -357,5 +357,5 @@ + + public: +- SaffireProDevice( DeviceManager& d, std::auto_ptr( configRom )); ++ SaffireProDevice( DeviceManager& d, ffado_smartptr( configRom )); + virtual ~SaffireProDevice(); + +Index: trunk/libffado/src/bebob/bebob_avdevice.h +=================================================================== +--- trunk/libffado/src/bebob/bebob_avdevice.h (revision 2443) ++++ trunk/libffado/src/bebob/bebob_avdevice.h (revision 2691) +@@ -61,5 +61,5 @@ + class Device : public GenericAVC::Device { + public: +- Device( DeviceManager& d, std::auto_ptr( configRom )); ++ Device( DeviceManager& d, ffado_smartptr( configRom )); + virtual ~Device(); + +@@ -69,5 +69,5 @@ + virtual bool discover(); + +- static FFADODevice * createDevice( DeviceManager& d, std::auto_ptr( configRom )); ++ static FFADODevice * createDevice( DeviceManager& d, ffado_smartptr( configRom )); + + virtual AVC::Subunit* createSubunit(AVC::Unit& unit, +Index: trunk/libffado/src/bebob/terratec/terratec_device.cpp +=================================================================== +--- trunk/libffado/src/bebob/terratec/terratec_device.cpp (revision 1763) ++++ trunk/libffado/src/bebob/terratec/terratec_device.cpp (revision 2691) +@@ -29,5 +29,5 @@ + namespace Terratec { + +-Phase88Device::Phase88Device(DeviceManager& d, std::auto_ptr( configRom )) ++Phase88Device::Phase88Device(DeviceManager& d, ffado_smartptr( configRom )) + : BeBoB::Device( d, configRom) + { +Index: trunk/libffado/src/bebob/terratec/terratec_device.h +=================================================================== +--- trunk/libffado/src/bebob/terratec/terratec_device.h (revision 1763) ++++ trunk/libffado/src/bebob/terratec/terratec_device.h (revision 2691) +@@ -34,5 +34,5 @@ + class Phase88Device : public BeBoB::Device { + public: +- Phase88Device( DeviceManager& d, std::auto_ptr( configRom )); ++ Phase88Device( DeviceManager& d, ffado_smartptr( configRom )); + virtual ~Phase88Device(); + +Index: trunk/libffado/src/bebob/template/vendor_device.h +=================================================================== +--- trunk/libffado/src/bebob/template/vendor_device.h (revision 1543) ++++ trunk/libffado/src/bebob/template/vendor_device.h (revision 2691) +@@ -35,5 +35,5 @@ + public: + VendorDevice( Ieee1394Service& ieee1394Service, +- std::auto_ptr( configRom )); ++ ffado_smartptr( configRom )); + virtual ~VendorDevice(); + +Index: trunk/libffado/src/bebob/template/vendor_device.cpp +=================================================================== +--- trunk/libffado/src/bebob/template/vendor_device.cpp (revision 1543) ++++ trunk/libffado/src/bebob/template/vendor_device.cpp (revision 2691) +@@ -28,5 +28,5 @@ + + VendorDevice::VendorDevice( Ieee1394Service& ieee1394Service, +- std::auto_ptr( configRom )) ++ ffado_smartptr( configRom )) + : BeBoB::Device( ieee1394Service, configRom) + { +Index: trunk/libffado/src/bebob/bebob_dl_mgr.cpp +=================================================================== +--- trunk/libffado/src/bebob/bebob_dl_mgr.cpp (revision 2587) ++++ trunk/libffado/src/bebob/bebob_dl_mgr.cpp (revision 2691) +@@ -242,5 +242,5 @@ + + printf( "parse BCD file\n" ); +- std::auto_ptr bcd = std::auto_ptr( new BCD( filename ) ); ++ ffado_smartptr bcd = ffado_smartptr( new BCD( filename ) ); + if ( !bcd.get() ) { + debugError( "downloadFirmware: Could not open or parse BCD '%s'\n", +@@ -305,5 +305,5 @@ + + printf( "parse BCD file\n" ); +- std::auto_ptr bcd = std::auto_ptr( new BCD( filename ) ); ++ ffado_smartptr bcd = ffado_smartptr( new BCD( filename ) ); + if ( !bcd.get() ) { + debugError( "downloadCnE: Could not open or parse BCD '%s'\n", +Index: trunk/libffado/src/bebob/edirol/edirol_fa66.cpp +=================================================================== +--- trunk/libffado/src/bebob/edirol/edirol_fa66.cpp (revision 1543) ++++ trunk/libffado/src/bebob/edirol/edirol_fa66.cpp (revision 2691) +@@ -28,5 +28,5 @@ + + EdirolFa66Device::EdirolFa66Device( DeviceManager& d, +- std::auto_ptr( configRom )) ++ ffado_smartptr( configRom )) + : BeBoB::Device( d , configRom) + { +Index: trunk/libffado/src/bebob/edirol/edirol_fa66.h +=================================================================== +--- trunk/libffado/src/bebob/edirol/edirol_fa66.h (revision 1543) ++++ trunk/libffado/src/bebob/edirol/edirol_fa66.h (revision 2691) +@@ -33,5 +33,5 @@ + public: + EdirolFa66Device( DeviceManager& d, +- std::auto_ptr( configRom )); ++ ffado_smartptr( configRom )); + virtual ~EdirolFa66Device(); + +Index: trunk/libffado/src/bebob/edirol/edirol_fa101.cpp +=================================================================== +--- trunk/libffado/src/bebob/edirol/edirol_fa101.cpp (revision 1543) ++++ trunk/libffado/src/bebob/edirol/edirol_fa101.cpp (revision 2691) +@@ -28,5 +28,5 @@ + + EdirolFa101Device::EdirolFa101Device( DeviceManager& d, +- std::auto_ptr( configRom )) ++ ffado_smartptr( configRom )) + : BeBoB::Device( d , configRom) + { +Index: trunk/libffado/src/bebob/edirol/edirol_fa101.h +=================================================================== +--- trunk/libffado/src/bebob/edirol/edirol_fa101.h (revision 1543) ++++ trunk/libffado/src/bebob/edirol/edirol_fa101.h (revision 2691) +@@ -33,5 +33,5 @@ + public: + EdirolFa101Device( DeviceManager& d, +- std::auto_ptr( configRom )); ++ ffado_smartptr( configRom )); + virtual ~EdirolFa101Device(); + +Index: trunk/libffado/src/bebob/maudio/normal_avdevice.cpp +=================================================================== +--- trunk/libffado/src/bebob/maudio/normal_avdevice.cpp (revision 2490) ++++ trunk/libffado/src/bebob/maudio/normal_avdevice.cpp (revision 2691) +@@ -29,5 +29,5 @@ + namespace Normal { + +-Device::Device(DeviceManager& d, std::auto_ptr( configRom ), ++Device::Device(DeviceManager& d, ffado_smartptr( configRom ), + unsigned int modelId) + : BeBoB::Device( d, configRom) +Index: trunk/libffado/src/bebob/maudio/normal_avdevice.h +=================================================================== +--- trunk/libffado/src/bebob/maudio/normal_avdevice.h (revision 2490) ++++ trunk/libffado/src/bebob/maudio/normal_avdevice.h (revision 2691) +@@ -43,5 +43,5 @@ + class Device : public BeBoB::Device { + public: +- Device( DeviceManager& d, std::auto_ptr( configRom ), ++ Device( DeviceManager& d, ffado_smartptr( configRom ), + unsigned int modelId); + virtual ~Device(); +Index: trunk/libffado/src/bebob/maudio/special_avdevice.cpp +=================================================================== +--- trunk/libffado/src/bebob/maudio/special_avdevice.cpp (revision 2529) ++++ trunk/libffado/src/bebob/maudio/special_avdevice.cpp (revision 2691) +@@ -36,5 +36,5 @@ + namespace Special { + +-Device::Device(DeviceManager& d, std::auto_ptr(configRom)) ++Device::Device(DeviceManager& d, ffado_smartptr(configRom)) + : BeBoB::Device(d, configRom) + { +Index: trunk/libffado/src/bebob/maudio/special_avdevice.h +=================================================================== +--- trunk/libffado/src/bebob/maudio/special_avdevice.h (revision 2491) ++++ trunk/libffado/src/bebob/maudio/special_avdevice.h (revision 2691) +@@ -141,5 +141,5 @@ + { + public: +- Device(DeviceManager& d, std::auto_ptr(configRom)); ++ Device(DeviceManager& d, ffado_smartptr(configRom)); + virtual ~Device() {}; + virtual void showDevice(); +Index: trunk/libffado/src/bebob/presonus/inspire1394_avdevice.cpp +=================================================================== +--- trunk/libffado/src/bebob/presonus/inspire1394_avdevice.cpp (revision 2489) ++++ trunk/libffado/src/bebob/presonus/inspire1394_avdevice.cpp (revision 2691) +@@ -105,5 +105,5 @@ + } + +-Device::Device(DeviceManager& d, std::auto_ptr(configRom)) ++Device::Device(DeviceManager& d, ffado_smartptr(configRom)) + : BeBoB::Device( d, configRom ) + { +Index: trunk/libffado/src/bebob/presonus/firebox_avdevice.cpp +=================================================================== +--- trunk/libffado/src/bebob/presonus/firebox_avdevice.cpp (revision 2489) ++++ trunk/libffado/src/bebob/presonus/firebox_avdevice.cpp (revision 2691) +@@ -29,5 +29,5 @@ + namespace Firebox { + +-Device::Device(DeviceManager& d, std::auto_ptr(configRom)) ++Device::Device(DeviceManager& d, ffado_smartptr(configRom)) + : BeBoB::Device( d, configRom) + { +Index: trunk/libffado/src/bebob/presonus/inspire1394_avdevice.h +=================================================================== +--- trunk/libffado/src/bebob/presonus/inspire1394_avdevice.h (revision 2489) ++++ trunk/libffado/src/bebob/presonus/inspire1394_avdevice.h (revision 2691) +@@ -45,5 +45,5 @@ + class Device : public BeBoB::Device { + public: +- Device( DeviceManager& d, std::auto_ptr( configRom )); ++ Device( DeviceManager& d, ffado_smartptr( configRom )); + virtual ~Device(); + +Index: trunk/libffado/src/bebob/presonus/firebox_avdevice.h +=================================================================== +--- trunk/libffado/src/bebob/presonus/firebox_avdevice.h (revision 2489) ++++ trunk/libffado/src/bebob/presonus/firebox_avdevice.h (revision 2691) +@@ -36,5 +36,5 @@ + class Device : public BeBoB::Device { + public: +- Device( DeviceManager& d, std::auto_ptr( configRom )); ++ Device( DeviceManager& d, ffado_smartptr( configRom )); + virtual ~Device(); + +Index: trunk/libffado/src/devicemanager.cpp +=================================================================== +--- trunk/libffado/src/devicemanager.cpp (revision 2450) ++++ trunk/libffado/src/devicemanager.cpp (revision 2691) +@@ -710,6 +710,6 @@ + debugOutput( DEBUG_LEVEL_VERBOSE, "Starting in slave mode on node %d...\n", nodeId ); + +- std::auto_ptr configRom = +- std::auto_ptr( new ConfigRom( *portService, ++ ffado_smartptr configRom = ++ ffado_smartptr( new ConfigRom( *portService, + nodeId ) ); + if ( !configRom->initialize() ) { +@@ -1032,5 +1032,5 @@ + debugOutput( DEBUG_LEVEL_VERBOSE, "Trying BeBoB...\n" ); + if ( BeBoB::Device::probe( getConfiguration(), *configRom, generic ) ) { +- return BeBoB::Device::createDevice( *this, std::auto_ptr( configRom ) ); ++ return BeBoB::Device::createDevice( *this, ffado_smartptr( configRom ) ); + } + #endif +@@ -1039,5 +1039,5 @@ + debugOutput( DEBUG_LEVEL_VERBOSE, "Trying ECHO Audio FireWorks...\n" ); + if ( FireWorks::Device::probe( getConfiguration(), *configRom, generic ) ) { +- return FireWorks::Device::createDevice( *this, std::auto_ptr( configRom ) ); ++ return FireWorks::Device::createDevice( *this, ffado_smartptr( configRom ) ); + } + #endif +@@ -1046,5 +1046,5 @@ + debugOutput( DEBUG_LEVEL_VERBOSE, "Trying Oxford FW90x...\n" ); + if ( Oxford::Device::probe( getConfiguration(), *configRom, generic ) ) { +- return Oxford::Device::createDevice( *this, std::auto_ptr( configRom ) ); ++ return Oxford::Device::createDevice( *this, ffado_smartptr( configRom ) ); + } + #endif +@@ -1054,5 +1054,5 @@ + debugOutput( DEBUG_LEVEL_VERBOSE, "Trying Generic AV/C...\n" ); + if ( GenericAVC::Device::probe( getConfiguration(), *configRom, generic ) ) { +- return GenericAVC::Device::createDevice( *this, std::auto_ptr( configRom ) ); ++ return GenericAVC::Device::createDevice( *this, ffado_smartptr( configRom ) ); + } + #endif +@@ -1061,5 +1061,5 @@ + debugOutput( DEBUG_LEVEL_VERBOSE, "Trying Motu...\n" ); + if ( Motu::MotuDevice::probe( getConfiguration(), *configRom, generic ) ) { +- return Motu::MotuDevice::createDevice( *this, std::auto_ptr( configRom ) ); ++ return Motu::MotuDevice::createDevice( *this, ffado_smartptr( configRom ) ); + } + #endif +@@ -1068,5 +1068,5 @@ + debugOutput( DEBUG_LEVEL_VERBOSE, "Trying Dice...\n" ); + if ( Dice::Device::probe( getConfiguration(), *configRom, generic ) ) { +- return Dice::Device::createDevice( *this, std::auto_ptr( configRom ) ); ++ return Dice::Device::createDevice( *this, ffado_smartptr( configRom ) ); + } + #endif +@@ -1075,5 +1075,5 @@ + debugOutput( DEBUG_LEVEL_VERBOSE, "Trying Metric Halo...\n" ); + if ( MetricHalo::Device::probe( getConfiguration(), *configRom, generic ) ) { +- return MetricHalo::Device::createDevice( *this, std::auto_ptr( configRom ) ); ++ return MetricHalo::Device::createDevice( *this, ffado_smartptr( configRom ) ); + } + #endif +@@ -1082,5 +1082,5 @@ + debugOutput( DEBUG_LEVEL_VERBOSE, "Trying RME...\n" ); + if ( Rme::Device::probe( getConfiguration(), *configRom, generic ) ) { +- return Rme::Device::createDevice( *this, std::auto_ptr( configRom ) ); ++ return Rme::Device::createDevice( *this, ffado_smartptr( configRom ) ); + } + #endif +@@ -1089,5 +1089,5 @@ + debugOutput( DEBUG_LEVEL_VERBOSE, "Trying Bounce...\n" ); + if ( Bounce::Device::probe( getConfiguration(), *configRom, generic ) ) { +- return Bounce::Device::createDevice( *this, std::auto_ptr( configRom ) ); ++ return Bounce::Device::createDevice( *this, ffado_smartptr( configRom ) ); + } + #endif +@@ -1120,9 +1120,9 @@ + + FFADODevice* +-DeviceManager::getSlaveDriver( std::auto_ptr( configRom ) ) ++DeviceManager::getSlaveDriver( ffado_smartptr( configRom ) ) + { + #ifdef ENABLE_BOUNCE + if ( Bounce::SlaveDevice::probe( getConfiguration(), *configRom, false ) ) { +- return Bounce::SlaveDevice::createDevice( *this, std::auto_ptr( configRom ) ); ++ return Bounce::SlaveDevice::createDevice( *this, ffado_smartptr( configRom ) ); + } + #endif +Index: trunk/libffado/src/bounce/bounce_slave_avdevice.h +=================================================================== +--- trunk/libffado/src/bounce/bounce_slave_avdevice.h (revision 1550) ++++ trunk/libffado/src/bounce/bounce_slave_avdevice.h (revision 2691) +@@ -45,9 +45,9 @@ + public: + +- SlaveDevice( DeviceManager& d, std::auto_ptr( configRom ) ); ++ SlaveDevice( DeviceManager& d, ffado_smartptr( configRom ) ); + virtual ~SlaveDevice(); + + static bool probe( Util::Configuration&, ConfigRom& configRom, bool generic = false ); +- static FFADODevice * createDevice( DeviceManager& d, std::auto_ptr( configRom )); ++ static FFADODevice * createDevice( DeviceManager& d, ffado_smartptr( configRom )); + + bool discover(); +Index: trunk/libffado/src/bounce/bounce_avdevice.cpp +=================================================================== +--- trunk/libffado/src/bounce/bounce_avdevice.cpp (revision 1805) ++++ trunk/libffado/src/bounce/bounce_avdevice.cpp (revision 2691) +@@ -43,5 +43,5 @@ + namespace Bounce { + +-Device::Device( DeviceManager& d, std::auto_ptr< ConfigRom >( configRom ) ) ++Device::Device( DeviceManager& d, ffado_smartptr< ConfigRom >( configRom ) ) + : FFADODevice( d, configRom ) + , m_samplerate (44100) +@@ -75,5 +75,5 @@ + + FFADODevice * +-Device::createDevice(DeviceManager& d, std::auto_ptr( configRom )) ++Device::createDevice(DeviceManager& d, ffado_smartptr( configRom )) + { + return new Device(d, configRom ); +Index: trunk/libffado/src/bounce/bounce_avdevice.h +=================================================================== +--- trunk/libffado/src/bounce/bounce_avdevice.h (revision 1550) ++++ trunk/libffado/src/bounce/bounce_avdevice.h (revision 2691) +@@ -65,9 +65,9 @@ + class BounceNotifier; + public: +- Device( DeviceManager& d, std::auto_ptr( configRom )); ++ Device( DeviceManager& d, ffado_smartptr( configRom )); + virtual ~Device(); + + static bool probe( Util::Configuration&, ConfigRom& configRom, bool generic = false ); +- static FFADODevice * createDevice( DeviceManager& d, std::auto_ptr( configRom )); ++ static FFADODevice * createDevice( DeviceManager& d, ffado_smartptr( configRom )); + virtual bool discover(); + +Index: trunk/libffado/src/bounce/bounce_slave_avdevice.cpp +=================================================================== +--- trunk/libffado/src/bounce/bounce_slave_avdevice.cpp (revision 1805) ++++ trunk/libffado/src/bounce/bounce_slave_avdevice.cpp (revision 2691) +@@ -38,5 +38,5 @@ + namespace Bounce { + +-SlaveDevice::SlaveDevice( DeviceManager& d, std::auto_ptr< ConfigRom >( configRom ) ) ++SlaveDevice::SlaveDevice( DeviceManager& d, ffado_smartptr< ConfigRom >( configRom ) ) + : Device( d, configRom ) + { +@@ -56,5 +56,5 @@ + + FFADODevice * +-SlaveDevice::createDevice(DeviceManager& d, std::auto_ptr( configRom )) ++SlaveDevice::createDevice(DeviceManager& d, ffado_smartptr( configRom )) + { + return new SlaveDevice(d, configRom ); +Index: trunk/libffado/src/fireworks/fireworks_device.h +=================================================================== +--- trunk/libffado/src/fireworks/fireworks_device.h (revision 2519) ++++ trunk/libffado/src/fireworks/fireworks_device.h (revision 2691) +@@ -50,9 +50,9 @@ + + public: +- Device( DeviceManager& d, std::auto_ptr( configRom ) ); ++ Device( DeviceManager& d, ffado_smartptr( configRom ) ); + virtual ~Device(); + + static bool probe( Util::Configuration&, ConfigRom& configRom, bool generic = false ); +- static FFADODevice * createDevice( DeviceManager& d, std::auto_ptr( configRom )); ++ static FFADODevice * createDevice( DeviceManager& d, ffado_smartptr( configRom )); + virtual bool discover(); + +Index: trunk/libffado/src/fireworks/audiofire/audiofire_device.cpp +=================================================================== +--- trunk/libffado/src/fireworks/audiofire/audiofire_device.cpp (revision 864) ++++ trunk/libffado/src/fireworks/audiofire/audiofire_device.cpp (revision 2691) +@@ -30,5 +30,5 @@ + namespace ECHO { + +-AudioFire::AudioFire( DeviceManager& d, std::auto_ptr( configRom )) ++AudioFire::AudioFire( DeviceManager& d, ffado_smartptr( configRom )) + : FireWorks::Device( d, configRom) + { +Index: trunk/libffado/src/fireworks/audiofire/audiofire_device.h +=================================================================== +--- trunk/libffado/src/fireworks/audiofire/audiofire_device.h (revision 864) ++++ trunk/libffado/src/fireworks/audiofire/audiofire_device.h (revision 2691) +@@ -35,5 +35,5 @@ + + public: +- AudioFire( DeviceManager& d, std::auto_ptr( configRom )); ++ AudioFire( DeviceManager& d, ffado_smartptr( configRom )); + virtual ~AudioFire(); + +Index: trunk/libffado/src/fireworks/fireworks_device.cpp +=================================================================== +--- trunk/libffado/src/fireworks/fireworks_device.cpp (revision 2599) ++++ trunk/libffado/src/fireworks/fireworks_device.cpp (revision 2691) +@@ -50,5 +50,5 @@ + namespace FireWorks { + +-Device::Device(DeviceManager& d, std::auto_ptr( configRom )) ++Device::Device(DeviceManager& d, ffado_smartptr( configRom )) + : GenericAVC::Device( d, configRom) + , m_poll_lock( new Util::PosixMutex("DEVPOLL") ) +@@ -183,5 +183,5 @@ + + FFADODevice * +-Device::createDevice(DeviceManager& d, std::auto_ptr( configRom )) ++Device::createDevice(DeviceManager& d, ffado_smartptr( configRom )) + { + unsigned int vendorId = configRom->getNodeVendorId(); +Index: trunk/libffado/tests/scan-devreg.cpp +=================================================================== +--- trunk/libffado/tests/scan-devreg.cpp (revision 2587) ++++ trunk/libffado/tests/scan-devreg.cpp (revision 2691) +@@ -29,4 +29,5 @@ + + #include "debugmodule/debugmodule.h" ++#include "ffadodevice.h" // Needed for ffado_smartptr + + #include "libieee1394/configrom.h" +@@ -231,6 +232,6 @@ + } + for (fb_nodeid_t node = n1; node < n2; node++) { +- std::auto_ptr configRom = +- std::auto_ptr( new ConfigRom(*tmp1394, node)); ++ ffado_smartptr configRom = ++ ffado_smartptr( new ConfigRom(*tmp1394, node)); + if (!configRom->initialize()) { + continue; +Index: trunk/libffado/support/firmware/fireworks-downloader.cpp +=================================================================== +--- trunk/libffado/support/firmware/fireworks-downloader.cpp (revision 2651) ++++ trunk/libffado/support/firmware/fireworks-downloader.cpp (revision 2691) +@@ -245,5 +245,5 @@ + + DeviceManager d = DeviceManager(); +- Device *dev = new Device(d, std::auto_ptr(configRom) ); ++ Device *dev = new Device(d, ffado_smartptr(configRom) ); + if (dev == NULL) { + printMessage("Could not create FireWorks::Device\n"); diff --git a/libffado-diff-trunk-from-r2705-to-r2706.diff b/libffado-diff-trunk-from-r2705-to-r2706.diff new file mode 100644 index 0000000..cc182c6 --- /dev/null +++ b/libffado-diff-trunk-from-r2705-to-r2706.diff @@ -0,0 +1,10 @@ +Index: trunk/libffado/src/libutil/PosixMessageQueue.cpp +=================================================================== +--- trunk/libffado/src/libutil/PosixMessageQueue.cpp (revision 2171) ++++ trunk/libffado/src/libutil/PosixMessageQueue.cpp (revision 2706) +@@ -31,4 +31,5 @@ + #include + #include ++#include + + #define MQ_INVALID_ID ((mqd_t) -1) diff --git a/libffado-diff-trunk-from-r2706-to-r2707.diff b/libffado-diff-trunk-from-r2706-to-r2707.diff new file mode 100644 index 0000000..b1ffa0b --- /dev/null +++ b/libffado-diff-trunk-from-r2706-to-r2707.diff @@ -0,0 +1,11 @@ +Index: trunk/libffado/src/bebob/bebob_dl_mgr.cpp +=================================================================== +--- trunk/libffado/src/bebob/bebob_dl_mgr.cpp (revision 2691) ++++ trunk/libffado/src/bebob/bebob_dl_mgr.cpp (revision 2707) +@@ -33,4 +33,6 @@ + + #include "libutil/ByteSwap.h" ++ ++#include "ffadodevice.h" + + #include diff --git a/libffado.spec b/libffado.spec index 48aff5e..1d0c6f4 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.3.0 -Release: 5%{?dist} +Release: 6%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -15,9 +15,23 @@ Source9: libffado-snapshot.sh # We want the documentation for the library API only, not for the entire source: # http://subversion.ffado.org/ticket/293 Patch0: libffado-api-doc-only.patch -Patch2: libffado-gcc6.patch +Patch1: libffado-gcc6.patch # http://subversion.ffado.org/changeset/2673 -Patch3: libffado-derefptr.patch +Patch2: libffado-derefptr.patch +# Various backports from the trunk to fix compilation warnings/errors +# C++11 missing space between literal and string macro +# http://subversion.ffado.org/changeset/2651 +Patch3: libffado-diff-trunk-from-r2650-to-r2651.diff +# std::auto_ptr deprecated +# http://subversion.ffado.org/changeset/2691 +# http://subversion.ffado.org/changeset/2707 +Patch4: libffado-diff-trunk-from-r2690-to-r2691.diff +Patch5: libffado-diff-trunk-from-r2706-to-r2707.diff +# SIGEV_THREAD not declared +# http://subversion.ffado.org/changeset/2706 +Patch6: libffado-diff-trunk-from-r2705-to-r2706.diff +# MIPS support. RHBZ#1366701 +Patch7: libffado-MIPS.patch BuildRequires: alsa-lib-devel BuildRequires: dbus-c++-devel @@ -72,8 +86,13 @@ Applications and utilities for use with libffado. %prep %setup -q %patch0 -p1 -b .api.doc.only -%patch2 -p1 -b .gcc6 -%patch3 -p1 -b .derefptr +%patch1 -p1 -b .gcc6 +%patch2 -p1 -b .derefptr +%patch3 -p2 -b .string +%patch4 -p2 -b .auto_ptr +%patch5 -p2 -b .auto_ptr2 +%patch6 -p2 -b .signal_h +%patch7 -p1 -b .MIPS # We don't want to install all tests sed -i '/Install/d' tests/{,*/}SConscript @@ -144,6 +163,11 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Thu Aug 10 2017 Orcan Ogetbil - 2.3.0-6 +- Fix FTBFS on F27 +- Backported fixes from trunk for various compilation warnings +- MIPS support RHBZ#1366701 + * Thu Aug 03 2017 Fedora Release Engineering - 2.3.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild From 17a374b93e8be270581d7224789644e415f47b06 Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Mon, 6 Nov 2017 23:38:43 -0500 Subject: [PATCH 038/113] Build against scons3 Build against newer gcc/glibc --- libffado-SConstruct-py3.patch | 593 ++++++++++++++++++++++++++++++++++ libffado-ppc64-bitness.patch | 21 ++ libffado-signal_h.patch | 11 + libffado.spec | 32 +- 4 files changed, 654 insertions(+), 3 deletions(-) create mode 100644 libffado-SConstruct-py3.patch create mode 100644 libffado-ppc64-bitness.patch create mode 100644 libffado-signal_h.patch diff --git a/libffado-SConstruct-py3.patch b/libffado-SConstruct-py3.patch new file mode 100644 index 0000000..24146ab --- /dev/null +++ b/libffado-SConstruct-py3.patch @@ -0,0 +1,593 @@ +diff -rupN libffado-2.3.0.org/admin/doxygen.py libffado-2.3.0/admin/doxygen.py +--- libffado-2.3.0.org/admin/doxygen.py 2008-01-20 05:29:17.000000000 -0500 ++++ libffado-2.3.0/admin/doxygen.py 2017-11-05 17:37:03.698855773 -0500 +@@ -43,6 +43,7 @@ import os + import os.path + import glob + from fnmatch import fnmatch ++from functools import reduce + + def DoxyfileParse(file_contents): + """ +@@ -52,7 +53,7 @@ def DoxyfileParse(file_contents): + data = {} + + import shlex +- lex = shlex.shlex(instream = file_contents, posix = True) ++ lex = shlex.shlex(instream = file_contents.decode(), posix = True) + lex.wordchars += "*+./-:" + lex.whitespace = lex.whitespace.replace("\n", "") + lex.escape = "" +@@ -98,9 +99,11 @@ def DoxyfileParse(file_contents): + append_data( data, key, new_data, '\\' ) + + # compress lists of len 1 into single strings ++ to_pop = [] + for (k, v) in data.items(): + if len(v) == 0: +- data.pop(k) ++ #data.pop(k) # Can't modify dict while looping ++ to_pop.append(k) + + # items in the following list will be kept as lists and not converted to strings + if k in ["INPUT", "FILE_PATTERNS", "EXCLUDE_PATTERNS"]: +@@ -109,6 +112,9 @@ def DoxyfileParse(file_contents): + if len(v) == 1: + data[k] = v[0] + ++ for k in to_pop: ++ data.pop(k) ++ + return data + + def DoxySourceScan(node, env, path): +@@ -228,4 +234,4 @@ def exists(env): + """ + Make sure doxygen exists. + """ +- return env.Detect("doxygen") +\ No newline at end of file ++ return env.Detect("doxygen") +diff -rupN libffado-2.3.0.org/SConstruct libffado-2.3.0/SConstruct +--- libffado-2.3.0.org/SConstruct 2017-08-10 21:56:15.358412952 -0400 ++++ libffado-2.3.0/SConstruct 2017-11-05 17:50:04.675089737 -0500 +@@ -92,8 +92,8 @@ env = Environment( tools=['default','sca + + custom_flags = False + +-if env.has_key('COMPILE_FLAGS') and len(env['COMPILE_FLAGS']) > 0: +- print "The COMPILE_FLAGS option is deprecated. Use CFLAGS and CXXFLAGS with CUSTOM_ENV=True instead" ++if 'COMPILE_FLAGS' in env and len(env['COMPILE_FLAGS']) > 0: ++ print("The COMPILE_FLAGS option is deprecated. Use CFLAGS and CXXFLAGS with CUSTOM_ENV=True instead") + custom_flags = True + env.MergeFlags(env['COMPILE_FLAGS']) + +@@ -101,21 +101,21 @@ if env['CUSTOM_ENV']: + custom_flags = True + + # Honour the user choice of compiler (if any). +- if os.environ.has_key('CC') and len(os.environ['CC']) > 0: ++ if 'CC' in os.environ and len(os.environ['CC']) > 0: + env['CC'] = os.environ['CC'] +- if os.environ.has_key('CXX') and len(os.environ['CXX']) > 0: ++ if 'CXX' in os.environ and len(os.environ['CXX']) > 0: + env['CXX'] = os.environ['CXX'] + + # Honour the user supplied flags (if any), but notify the user that this is not supported. +- if os.environ.has_key('CFLAGS') and len(os.environ['CFLAGS']) > 0: ++ if 'CFLAGS' in os.environ and len(os.environ['CFLAGS']) > 0: + env.Append(CFLAGS = str(os.environ['CFLAGS'].replace('\"', ''))) +- if os.environ.has_key('CXXFLAGS') and len(os.environ['CXXFLAGS']) > 0: ++ if 'CXXFLAGS' in os.environ and len(os.environ['CXXFLAGS']) > 0: + env.Append(CXXFLAGS = str(os.environ['CXXFLAGS'].replace('\"', ''))) +- if os.environ.has_key('LDFLAGS') and len(os.environ['LDFLAGS']) > 0: ++ if 'LDFLAGS' in os.environ and len(os.environ['LDFLAGS']) > 0: + env.Append(LINKFLAGS = str(os.environ['LDFLAGS'].replace('\"', ''))) + + if custom_flags: +- print ''' ++ print(''' + * Usage of additional flags is not supported by the ffado-devs. + * Use at own risk! + * +@@ -125,7 +125,7 @@ if custom_flags: + * CFLAGS = %s + * CXXFLAGS = %s + * LDFLAGS = %s +-''' % (env['CC'], env['CXX'], env['CFLAGS'], env['CXXFLAGS'], env['LINKFLAGS']) ++''' % (env['CC'], env['CXX'], env['CFLAGS'], env['CXXFLAGS'], env['LINKFLAGS'])) + + Help( """ + For building ffado you can set different options as listed below. You have to +@@ -169,6 +169,7 @@ def CheckForPyModule( context, module ): + return ret[0] + + def CompilerCheck( context ): ++ return True # FIXME: The following TryRun fails on Python3 + context.Message( "Checking for a working C-compiler " ) + ret = context.TryRun( """ + #include +@@ -225,13 +226,13 @@ def VersionInt(vers): + return (int(maj) << 24) | (int(min) << 8) | int(patch) + + def CheckJackdVer(): +- print 'Checking jackd version...', +- ret = Popen("which jackd >/dev/null 2>&1 && jackd --version | tail -n 1 | cut -d ' ' -f 3", shell=True, stdout=PIPE).stdout.read()[:-1] ++ print('Checking jackd version...', end=' ') ++ ret = Popen("which jackd >/dev/null 2>&1 && jackd --version | tail -n 1 | cut -d ' ' -f 3", shell=True, stdout=PIPE).stdout.read()[:-1].decode() + if (ret == ""): +- print "not installed" ++ print("not installed") + return -1 + else: +- print ret ++ print(ret) + return VersionInt(ret) + + if env['SERIALIZE_USE_EXPAT']: +@@ -249,12 +250,12 @@ if not env.GetOption('clean'): + # Check for working gcc and g++ compilers and their environment. + # + if not conf.CompilerCheck(): +- print "\nIt seems as if your system isn't even able to compile any C-/C++-programs. Probably you don't have gcc and g++ installed. Compiling a package from source without a working compiler is very hard to do, please install the needed packages.\nHint: on *ubuntu you need both gcc- and g++-packages installed, easiest solution is to install build-essential which depends on gcc and g++." ++ print("\nIt seems as if your system isn't even able to compile any C-/C++-programs. Probably you don't have gcc and g++ installed. Compiling a package from source without a working compiler is very hard to do, please install the needed packages.\nHint: on *ubuntu you need both gcc- and g++-packages installed, easiest solution is to install build-essential which depends on gcc and g++.") + Exit( 1 ) + + # Check for pkg-config before using pkg-config to check for other dependencies. + if not conf.CheckForPKGConfig(): +- print "\nThe program 'pkg-config' could not be found.\nEither you have to install the corresponding package first or make sure that PATH points to the right directions." ++ print("\nThe program 'pkg-config' could not be found.\nEither you have to install the corresponding package first or make sure that PATH points to the right directions.") + Exit( 1 ) + + # +@@ -298,41 +299,41 @@ if not env.GetOption('clean'): + + if env['ENABLE_SETBUFFERSIZE_API_VER'] == 'auto': + if not(have_jack): +- print """ ++ print(""" + No Jack Audio Connection Kit (JACK) installed: assuming a FFADO + setbuffersize-compatible version will be used. +-""" ++""") + elif not(good_jack1 or good_jack2): + FFADO_API_VERSION="8" +- print """ ++ print(""" + Installed Jack Audio Connection Kit (JACK) jack does not support FFADO + setbuffersize API: will report earlier API version at runtime. Consider + upgrading to jack1 >=0.122.0 or jack2 >=1.9.9 at some point, and then + recompile ffado to gain access to this added feature. +-""" ++""") + else: +- print "Installed Jack Audio Connection Kit (JACK) supports FFADO setbuffersize API" ++ print("Installed Jack Audio Connection Kit (JACK) supports FFADO setbuffersize API") + elif env['ENABLE_SETBUFFERSIZE_API_VER'] == 'true': + if (have_jack and not(good_jack1) and not(good_jack2)): +- print """ ++ print(""" + SetBufferSize API version is enabled but no suitable version of Jack Audio + Connection Kit (JACK) has been found. The resulting FFADO would cause your + jackd to abort with "incompatible FFADO version". Please upgrade to + jack1 >=0.122.0 or jack2 >=1.9.9, or set ENABLE_SETBUFFERSIZE_API_VER to "auto" + or "false". +-""" ++""") + # Although it's not strictly an error, in almost every case that + # this occurs the user will want to know about it and fix the + # problem, so we exit so they're guaranteed of seeing the above + # message. + Exit( 1 ) + else: +- print "Will report SetBufferSize API version at runtime" ++ print("Will report SetBufferSize API version at runtime") + elif env['ENABLE_SETBUFFERSIZE_API_VER'] == 'force': +- print "Will report SetBufferSize API version at runtime" ++ print("Will report SetBufferSize API version at runtime") + else: + FFADO_API_VERSION="8" +- print "Will not report SetBufferSize API version at runtime" ++ print("Will not report SetBufferSize API version at runtime") + + for pkg in pkgs: + name2 = pkg.replace("+","").replace(".","").replace("-","").upper() +@@ -342,14 +343,14 @@ or "false". + allpresent &= 0 + + if not allpresent: +- print """ ++ print(""" + (At least) One of the dependencies is missing. I can't go on without it, please + install the needed packages for each of the lines saying "no". + (Remember to also install the *-devel packages!) + + And remember to remove the cache with "rm -Rf .sconsign.dblite cache" so the + results above get rechecked. +-""" ++""") + Exit( 1 ) + + # libxml++-2.6 requires a c++11 compiler as of version 2.39.1. The +@@ -365,16 +366,18 @@ results above get rechecked. + # might not be the best way of testing for these but it's the only + # way which seems to work properly. CheckFunc() fails due to + # argument count problems. +- if env.has_key( 'CFLAGS' ): ++ if 'CFLAGS' in env: + oldcf = env['CFLAGS'] + else: + oldcf = "" + env.Append(CFLAGS = '-std=c99') +- if conf.CheckLibWithHeader( "m", "math.h", "c", "lrint(3.2);" ): ++ # FIXME: the following check fails on Python3 ++ if 1:#conf.CheckLibWithHeader( "m", "math.h", "c", "lrint(3.2);" ): + HAVE_LRINT = 1 + else: + HAVE_LRINT = 0 +- if conf.CheckLibWithHeader( "m", "math.h", "c", "lrintf(3.2);" ): ++ # FIXME: the following check fails on Python3 ++ if 1:#conf.CheckLibWithHeader( "m", "math.h", "c", "lrintf(3.2);" ): + HAVE_LRINTF = 1 + else: + HAVE_LRINTF = 0 +@@ -388,20 +391,21 @@ results above get rechecked. + + # PyQT checks + if env['BUILD_MIXER'] != 'false': +- if conf.CheckForApp( 'which pyuic4' ) and conf.CheckForPyModule( 'dbus' ) and conf.CheckForPyModule( 'PyQt4' ) and conf.CheckForPyModule( 'dbus.mainloop.qt' ): ++ # FIXME: the following dbus check fails on Python3 ++ if 1:#conf.CheckForApp( 'which pyuic4' ) and conf.CheckForPyModule( 'dbus' ) and conf.CheckForPyModule( 'PyQt4' ) and conf.CheckForPyModule( 'dbus.mainloop.qt' ): + env['BUILD_MIXER'] = 'true' + elif not env.GetOption('clean'): + if env['BUILD_MIXER'] == 'auto': + env['BUILD_MIXER'] = 'false' +- print """ ++ print(""" + The prerequisites ('pyuic4' and the python-modules 'dbus' and 'PyQt4', the + packages could be named like dbus-python and PyQt) to build the mixer were not +-found. Therefore the qt4 mixer will not be installed.""" ++found. Therefore the qt4 mixer will not be installed.""") + else: # env['BUILD_MIXER'] == 'true' +- print """ ++ print(""" + The prerequisites ('pyuic4' and the python-modules 'dbus' and 'PyQt4', the + packages could be named like dbus-python and PyQt) to build the mixer were not +-found, but BUILD_MIXER was requested.""" ++found, but BUILD_MIXER was requested.""") + Exit( 1 ) + + env['XDG_TOOLS'] = False +@@ -409,10 +413,10 @@ if env['BUILD_MIXER'] == 'true': + if conf.CheckForApp( 'xdg-desktop-menu --help' ) and conf.CheckForApp( 'xdg-icon-resource --help' ): + env['XDG_TOOLS'] = True + else: +- print """ ++ print(""" + I couldn't find the 'xdg-desktop-menu' and 'xdg-icon-resource' programs. These + are needed to add the fancy entry for the mixer to your menu, but you can still +-start it by executing "ffado-mixer".""" ++start it by executing "ffado-mixer".""") + + # + # Optional pkg-config +@@ -427,13 +431,13 @@ for pkg in pkgs: + env['%s_FLAGS' % name2] = conf.GetPKGFlags( pkg, pkgs[pkg] ) + + if not env['DBUS1_FLAGS'] or not env['DBUSC1_FLAGS'] or not conf.CheckForApp('which dbusxx-xml2cpp'): +- env['DBUS1_FLAGS'] = "" +- env['DBUSC1_FLAGS'] = "" +- print """ ++ env['DBUS1_FLAGS'] = b"" ++ env['DBUSC1_FLAGS'] = b"" ++ print(""" + One of the dbus-headers, the dbus-c++-headers and/or the application + 'dbusxx-xml2cpp' where not found. The dbus-server for ffado will therefore not + be built. +-""" ++""") + else: + # Get the directory where dbus stores the service-files + env['dbus_service_dir'] = conf.GetPKGVariable( 'dbus-1', 'session_bus_services_dir' ).strip() +@@ -441,21 +445,21 @@ else: + # for platform dependent threading init functions + # this is true for DBUS >= 0.96 or so. Since we require >= 1.0 it is + # always true +- env['DBUS1_FLAGS'] += " -DDBUS_HAS_THREADS_INIT_DEFAULT" ++ env['DBUS1_FLAGS'] += b" -DDBUS_HAS_THREADS_INIT_DEFAULT" + + # The controlserver-glue.h file generated by dbusxx-xml2cpp generates + # a large number of instances where call.reader()'s return value is + # stored (in ri) but not used. This generates a compiler warning which + # we can do nothing about. Therefore when compiling dbus-related + # code, suppress the "set but not used" warning. +- env['DBUS1_FLAGS'] += " -Wno-unused-but-set-variable" ++ env['DBUS1_FLAGS'] += b" -Wno-unused-but-set-variable" + + config_guess = conf.ConfigGuess() + + env = conf.Finish() + + if env['DEBUG']: +- print "Doing a debug build" ++ print("Doing a debug build") + env.MergeFlags( "-Wall -g -DDEBUG" ) + env['DEBUG_MESSAGES'] = True + elif not custom_flags: +@@ -466,7 +470,7 @@ if env['DEBUG_MESSAGES']: + env.MergeFlags( "-DDEBUG_MESSAGES" ) + + if env['PROFILE']: +- print "Doing a PROFILE build" ++ print("Doing a PROFILE build") + env.MergeFlags( "-Wall -g" ) + + if env['PEDANTIC']: +@@ -487,7 +491,7 @@ if env['ENABLE_ALL']: + + env['BUILD_STATIC_LIB'] = False + if env['BUILD_STATIC_TOOLS']: +- print "Building static versions of the tools..." ++ print("Building static versions of the tools...") + env['BUILD_STATIC_LIB'] = True + + env['build_base']="#/" +@@ -698,14 +702,14 @@ def is_userspace_32bit(cpuinfo): + # /bin/mount: file format elf64-x86-64 + # or like this: + # /bin/mount: file format elf32-powerpc +- for line in x.split('\n'): +- line = line.strip() ++ for line in x.split(b'\n'): ++ line = line.strip().decode() + if line.startswith(real_exe): + x, fmt = line.rsplit(None, 1) + answer = 'elf32' in fmt + break + else: +- print '!!! Not found %s' % exe ++ print('!!! Not found %s' % exe) + return answer + + +@@ -780,7 +784,7 @@ if env['DIST_TARGET'] == 'auto': + env['DIST_TARGET'] = 'powerpc' + else: + env['DIST_TARGET'] = config[config_cpu] +- print "Detected DIST_TARGET = " + env['DIST_TARGET'] ++ print("Detected DIST_TARGET = " + env['DIST_TARGET']) + + #=== Begin Revised CXXFLAGS ========================================= + # comment on DIST_TARGET up top implies it can be used for cross-compiling +@@ -799,37 +803,38 @@ if '-msse2' in opt_flags: + + if env['DETECT_USERSPACE_ENV']: + m32 = is_userspace_32bit(cpuinfo) +- print 'User space is %s' % (m32 and '32-bit' or '64-bit') ++ print('User space is %s' % (m32 and '32-bit' or '64-bit')) + if cpuinfo.is_powerpc: + if m32: +- print "Doing a 32-bit PowerPC build for %s CPU" % cpuinfo.ppc_type ++ print("Doing a 32-bit PowerPC build for %s CPU" % cpuinfo.ppc_type) + machineflags = { 'CXXFLAGS' : ['-m32'] } + else: +- print "Doing a 64-bit PowerPC build for %s CPU" % cpuinfo.ppc_type ++ print("Doing a 64-bit PowerPC build for %s CPU" % cpuinfo.ppc_type) + machineflags = { 'CXXFLAGS' : ['-m64'] } + env.MergeFlags( machineflags ) + elif cpuinfo.is_x86: + if m32: +- print "Doing a 32-bit %s build for %s" % (cpuinfo.machine, cpuinfo.model_name) ++ print("Doing a 32-bit %s build for %s" % (cpuinfo.machine, cpuinfo.model_name)) + machineflags = { 'CXXFLAGS' : ['-m32'] } + else: +- print "Doing a 64-bit %s build for %s" % (cpuinfo.machine, cpuinfo.model_name) ++ print("Doing a 64-bit %s build for %s" % (cpuinfo.machine, cpuinfo.model_name)) + machineflags = { 'CXXFLAGS' : ['-m64'] } + needs_fPIC = True + env.MergeFlags( machineflags ) + #=== End Revised CXXFLAGS ========================================= + + +-if needs_fPIC or ( env.has_key('COMPILE_FLAGS') and '-fPIC' in env['COMPILE_FLAGS'] ): ++if needs_fPIC or ( 'COMPILE_FLAGS' in env and '-fPIC' in env['COMPILE_FLAGS'] ): + env.MergeFlags( "-fPIC" ) + + # end of processor-specific section + if env['ENABLE_OPTIMIZATIONS']: + opt_flags.extend (["-fomit-frame-pointer","-ffast-math","-funroll-loops"]) + env.MergeFlags( opt_flags ) +- print "Doing an optimized build..." ++ print("Doing an optimized build...") + + env['REVISION'] = os.popen('svnversion .').read()[:-1] ++ + # This may be as simple as '89' or as complex as '4123:4184M'. + # We'll just use the last bit. + env['REVISION'] = env['REVISION'].split(':')[-1] +@@ -875,8 +880,8 @@ env.Depends( "config.h", "SConstruct" ) + env.Depends( "config.h", 'cache/options.cache' ) + + # update version.h whenever the version or SVN revision changes +-env.Depends( "version.h", env.Value(env['REVISION'])) +-env.Depends( "version.h", env.Value(env['VERSION'])) ++#env.Depends( "version.h", env.Value(env['REVISION'])) # FIXME ++#env.Depends( "version.h", env.Value(env['VERSION'])) # FIXME + + env.Depends( "libffado.pc", "SConstruct" ) + pkgconfig = env.ScanReplace( "libffado.pc.in" ) +@@ -907,7 +912,7 @@ if not env.GetOption('clean'): + # + if len(env.destdir) > 0: + if not len( ARGUMENTS.get( "WILL_DEAL_WITH_XDG_MYSELF", "" ) ) > 0: +- print """ ++ print(""" + WARNING! + You are using the (packagers) option DESTDIR to install this package to a + different place than the real prefix. As the xdg-tools can't cope with +@@ -915,7 +920,7 @@ that, the .desktop-files are not install + deal with them your own. + (And you have to look into the SConstruct to learn how to disable this + message.) +-""" ++""") + else: + + def CleanAction( action ): +diff -rupN libffado-2.3.0.org/src/SConscript libffado-2.3.0/src/SConscript +--- libffado-2.3.0.org/src/SConscript 2015-05-05 08:36:47.000000000 -0400 ++++ libffado-2.3.0/src/SConscript 2017-11-05 14:57:05.923090933 -0500 +@@ -284,16 +284,16 @@ if env['ENABLE_GENERICAVC']: + + if not env.GetOption( "clean" ): + libenv.MergeFlags( "-lrt -lpthread" ) +- libenv.MergeFlags( env['LIBRAW1394_FLAGS'] ) +- libenv.MergeFlags( env['LIBIEC61883_FLAGS'] ) +- libenv.MergeFlags( env['LIBCONFIG_FLAGS'] ) ++ libenv.MergeFlags( env['LIBRAW1394_FLAGS'].decode() ) ++ libenv.MergeFlags( env['LIBIEC61883_FLAGS'].decode() ) ++ libenv.MergeFlags( env['LIBCONFIG_FLAGS'].decode() ) + if not env['SERIALIZE_USE_EXPAT']: +- libenv.MergeFlags( env['LIBXML26_FLAGS'] ) ++ libenv.MergeFlags( env['LIBXML26_FLAGS'].decode() ) + else: + libenv.PrependUnique( LIBS=["expat"] ) + libenv.MergeFlags( "-DSERIALIZE_USE_EXPAT" ) + if env['REQUIRE_LIBAVC']: +- libenv.MergeFlags( env['LIBAVC1394_FLAGS'] ) ++ libenv.MergeFlags( env['LIBAVC1394_FLAGS'].decode() ) + + libname_versioned = "libffado.so.%s" % libenv['VERSION'] + libname_versioned_short = "libffado.so.%s" % libenv['VERSION'].split('.')[0] +diff -rupN libffado-2.3.0.org/support/alsa/SConscript libffado-2.3.0/support/alsa/SConscript +--- libffado-2.3.0.org/support/alsa/SConscript 2009-11-02 16:48:55.000000000 -0500 ++++ libffado-2.3.0/support/alsa/SConscript 2017-11-05 14:59:30.427577301 -0500 +@@ -37,6 +37,6 @@ env.PrependUnique( LIBS=["ffado"] ) + sources = ["alsa_plugin.cpp"] + + if env.has_key("ALSA_FLAGS") and env['ALSA_FLAGS']: +- env.MergeFlags( env["ALSA_FLAGS"] ) ++ env.MergeFlags( env["ALSA_FLAGS"].decode() ) + env.MergeFlags( "-DPIC" ) + alsaplugin = env.SharedLibrary( "asound_module_pcm_ffado", sources ) +diff -rupN libffado-2.3.0.org/support/dbus/SConscript libffado-2.3.0/support/dbus/SConscript +--- libffado-2.3.0.org/support/dbus/SConscript 2012-06-12 21:39:07.000000000 -0400 ++++ libffado-2.3.0/support/dbus/SConscript 2017-11-05 16:34:43.019156579 -0500 +@@ -37,11 +37,11 @@ env.PrependUnique( LIBPATH=[env['build_b + env.PrependUnique( LIBS=["ffado", "pthread"] ) + + if not env.GetOption( "clean" ): +- env.MergeFlags( env["DBUS1_FLAGS"] ) +- env.MergeFlags( env["DBUSC1_FLAGS"] ) +- env.MergeFlags( env['LIBRAW1394_FLAGS'] ) ++ env.MergeFlags( env["DBUS1_FLAGS"].decode() ) ++ env.MergeFlags( env["DBUSC1_FLAGS"].decode() ) ++ env.MergeFlags( env['LIBRAW1394_FLAGS'].decode() ) + if not env['SERIALIZE_USE_EXPAT']: +- env.MergeFlags( env['LIBXML26_FLAGS'] ) ++ env.MergeFlags( env['LIBXML26_FLAGS'].decode() ) + else: + env.PrependUnique( LIBS=["expat"] ) + +@@ -79,16 +79,16 @@ for manpage in manpages: + + servicefile = env.ScanReplace('org.ffado.Control.service.in') + if env['dbus_service_dir'] and ( env.destdir or os.access( env['dbus_service_dir'], os.W_OK ) ): +- print "Will install the service-file" +- targetdir = env.destdir + env['dbus_service_dir'] +- env.Alias( "install", env.Install( env.destdir + env['dbus_service_dir'], servicefile ) ) ++ print ("Will install the service-file") ++ targetdir = env.destdir + env['dbus_service_dir'].decode() ++ env.Alias( "install", env.Install( env.destdir + env['dbus_service_dir'].decode(), servicefile ) ) + else: + if not env['dbus_service_dir']: +- print 'Can\'t install the system-wide dbus service file as the concerned variable is not defined.' ++ print ('Can\'t install the system-wide dbus service file as the concerned variable is not defined.') + else: + if not os.access( env['dbus_service_dir'], os.W_OK ): +- print 'Insufficient rights to install the system-wide dbus service file.' +- print 'Please run the "scons install" command with higher authority.' ++ print ('Insufficient rights to install the system-wide dbus service file.') ++ print ('Please run the "scons install" command with higher authority.') + + # static versions + if static_env['BUILD_STATIC_TOOLS']: +diff -rupN libffado-2.3.0.org/support/firmware/SConscript libffado-2.3.0/support/firmware/SConscript +--- libffado-2.3.0.org/support/firmware/SConscript 2012-03-27 10:06:15.000000000 -0400 ++++ libffado-2.3.0/support/firmware/SConscript 2017-11-05 14:58:12.187855399 -0500 +@@ -30,10 +30,10 @@ env.AppendUnique( CPPPATH=["#/", "#/src" + + if not env.GetOption( "clean" ): + env.MergeFlags( "-lrt -lpthread" ) +- env.MergeFlags( env['LIBRAW1394_FLAGS'] ) +- env.MergeFlags( env['LIBIEC61883_FLAGS'] ) ++ env.MergeFlags( env['LIBRAW1394_FLAGS'].decode() ) ++ env.MergeFlags( env['LIBIEC61883_FLAGS'].decode() ) + if not env['SERIALIZE_USE_EXPAT']: +- env.MergeFlags( env['LIBXML26_FLAGS'] ) ++ env.MergeFlags( env['LIBXML26_FLAGS'].decode() ) + else: + env.PrependUnique( LIBS=["expat"] ) + +diff -rupN libffado-2.3.0.org/support/mixer-qt4/SConscript libffado-2.3.0/support/mixer-qt4/SConscript +--- libffado-2.3.0.org/support/mixer-qt4/SConscript 2015-04-12 07:18:15.000000000 -0400 ++++ libffado-2.3.0/support/mixer-qt4/SConscript 2017-11-05 15:32:50.862308199 -0500 +@@ -38,7 +38,7 @@ if env['BUILD_MIXER'] == 'true': + arg.append( os.path.join( dirname, name ) ) + + pythonfiles = [ 'ffado/config.py' ] +- os.path.walk( "ffado", findfiles, pythonfiles ) ++ os.walk( "ffado", findfiles, pythonfiles ) + + e.ScanReplace( "ffado/config.py.in" ) + e.Depends( "ffado/config.py", "#/SConstruct" ) +diff -rupN libffado-2.3.0.org/support/tools/SConscript libffado-2.3.0/support/tools/SConscript +--- libffado-2.3.0.org/support/tools/SConscript 2013-05-17 08:37:50.000000000 -0400 ++++ libffado-2.3.0/support/tools/SConscript 2017-11-05 14:58:45.691736311 -0500 +@@ -33,7 +33,7 @@ e = env.Clone() + e.MergeFlags( "-I#/ -I#/src -L%ssrc -lffado" % env['build_base'] ) + if not e.GetOption( "clean" ): + if not env['SERIALIZE_USE_EXPAT']: +- e.MergeFlags( env['LIBXML26_FLAGS'] ) ++ e.MergeFlags( env['LIBXML26_FLAGS'].decode() ) + else: + e.PrependUnique( LIBS=["expat"] ) + +diff -rupN libffado-2.3.0.org/tests/SConscript libffado-2.3.0/tests/SConscript +--- libffado-2.3.0.org/tests/SConscript 2012-05-01 20:38:14.000000000 -0400 ++++ libffado-2.3.0/tests/SConscript 2017-11-05 15:15:57.721041067 -0500 +@@ -29,10 +29,10 @@ env.MergeFlags( "-I#/ -I#/src -L%ssrc -l + + if not env.GetOption( "clean" ): + env.MergeFlags( "-lpthread" ) +- env.MergeFlags( env['LIBIEC61883_FLAGS'] ) +- env.MergeFlags( env['LIBRAW1394_FLAGS'] ) ++ env.MergeFlags( env['LIBIEC61883_FLAGS'].decode() ) ++ env.MergeFlags( env['LIBRAW1394_FLAGS'].decode() ) + if not env['SERIALIZE_USE_EXPAT']: +- env.MergeFlags( env['LIBXML26_FLAGS'] ) ++ env.MergeFlags( env['LIBXML26_FLAGS'].decode() ) + else: + env.PrependUnique( LIBS=["expat"] ) + +@@ -65,7 +65,7 @@ if env['ENABLE_BEBOB']: + apps.update( { "test-focusrite" : "test-focusrite.cpp" } ) + if env['ENABLE_GENERICAVC']: + if env.has_key("ALSA_FLAGS") and env["ALSA_FLAGS"]: +- env.MergeFlags( env["ALSA_FLAGS"] ) ++ env.MergeFlags( env["ALSA_FLAGS"].decode() ) + apps.update( { "test-scs" : "test-scs.cpp" } ) + apps.update( { "test-volume" : "test-volume.cpp" } ) + apps.update( { "test-enhanced-mixer" : "test-enhanced-mixer.cpp" } ) +diff -rupN libffado-2.3.0.org/tests/systemtests/SConscript libffado-2.3.0/tests/systemtests/SConscript +--- libffado-2.3.0.org/tests/systemtests/SConscript 2010-01-04 11:09:43.000000000 -0500 ++++ libffado-2.3.0/tests/systemtests/SConscript 2017-11-05 15:16:38.976893207 -0500 +@@ -30,7 +30,7 @@ env.PrependUnique( LIBPATH=[env['build_b + env.PrependUnique( LIBS=["ffado"] ) + + if not env.GetOption( "clean" ): +- env.MergeFlags( env['LIBRAW1394_FLAGS'] ) ++ env.MergeFlags( env['LIBRAW1394_FLAGS'].decode() ) + env.MergeFlags( "-lrt -lpthread" ) + + static_env = env.Clone() diff --git a/libffado-ppc64-bitness.patch b/libffado-ppc64-bitness.patch new file mode 100644 index 0000000..e2af886 --- /dev/null +++ b/libffado-ppc64-bitness.patch @@ -0,0 +1,21 @@ +diff -rupN libffado-2.3.0.org/SConstruct libffado-2.3.0/SConstruct +--- libffado-2.3.0.org/SConstruct 2017-11-06 22:48:46.072463247 -0500 ++++ libffado-2.3.0/SConstruct 2017-11-06 22:50:28.751129313 -0500 +@@ -575,7 +575,7 @@ class CpuInfo (object): + # general CPU architecture + self.is_x86 = self.machine in ('i686', 'x86_64') or \ + re.match("i[3-5]86", self.machine) or False +- self.is_powerpc = self.machine in ('ppc64', 'ppc', 'powerpc', 'powerpc64') ++ self.is_powerpc = self.machine in ('ppc64', 'ppc', 'powerpc', 'powerpc64', 'ppc64le') + #!!! probably not comprehensive + self.is_mips = self.machine == 'mips' + #!!! not a comprehensive list. uname -m on one android phone reports 'armv71' +@@ -593,7 +593,7 @@ class CpuInfo (object): + # 64-bit (x86_64/AMD64/Intel64) + # Long Mode (x86-64: amd64, also known as Intel 64, i.e. 64-bit capable) + self.is_64bit = (self.is_x86 and 'lm' in self.x86_flags) or \ +- (self.is_powerpc and '970' in self.ppc_type) ++ (self.is_powerpc and ('970' in self.ppc_type or 'power8' in self.ppc_type.lower())) + + # Hardware virtualization capable: vmx (Intel), svm (AMD) + self.has_hwvirt = self.is_x86 and ( diff --git a/libffado-signal_h.patch b/libffado-signal_h.patch new file mode 100644 index 0000000..2884421 --- /dev/null +++ b/libffado-signal_h.patch @@ -0,0 +1,11 @@ +diff -rupN libffado-2.3.0.org/src/libutil/PosixMessageQueue.h libffado-2.3.0/src/libutil/PosixMessageQueue.h +--- libffado-2.3.0.org/src/libutil/PosixMessageQueue.h 2009-12-19 11:26:20.000000000 -0500 ++++ libffado-2.3.0/src/libutil/PosixMessageQueue.h 2017-11-05 16:01:06.730315493 -0500 +@@ -35,6 +35,7 @@ + #include + #include + #include ++#include + + namespace Util + { diff --git a/libffado.spec b/libffado.spec index 1d0c6f4..6c2e73f 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.3.0 -Release: 6%{?dist} +Release: 7%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -32,6 +32,17 @@ Patch5: libffado-diff-trunk-from-r2706-to-r2707.diff Patch6: libffado-diff-trunk-from-r2705-to-r2706.diff # MIPS support. RHBZ#1366701 Patch7: libffado-MIPS.patch +# Make SConstruct Python3 compatible. This patch has workarounds +# that need a real fix. Sent upstream. RHBZ#1509478 +# Partially accepted until upstream switches to scons3 for good +# Upstream revisions 2711-2716 +Patch8: libffado-SConstruct-py3.patch +# Compilation fix. Accepted upstream +# http://subversion.ffado.org/changeset/2710 +Patch9: libffado-signal_h.patch +# Fix bitness related flags on ppc64, ppc64le +# Sent upstream +Patch10: libffado-ppc64-bitness.patch BuildRequires: alsa-lib-devel BuildRequires: dbus-c++-devel @@ -93,21 +104,32 @@ Applications and utilities for use with libffado. %patch5 -p2 -b .auto_ptr2 %patch6 -p2 -b .signal_h %patch7 -p1 -b .MIPS +%patch8 -p1 -b .py3 +%patch9 -p1 -b .signal_h +%patch10 -p1 -b .ppc64 # We don't want to install all tests sed -i '/Install/d' tests/{,*/}SConscript %build +export CFLAGS="%{optflags} -ffast-math" +export CXXFLAGS="%{optflags} -ffast-math --std=gnu++11" scons %{?_smp_mflags} \ - COMPILE_FLAGS="%{optflags} -ffast-math --std=gnu++11" \ + ENABLE_OPTIMIZATIONS=True \ + CUSTOM_ENV=True \ PREFIX=%{_prefix} \ LIBDIR=%{_libdir} \ MANDIR=%{_mandir} \ UDEVDIR=%{_prefix}/lib/udev/rules.d/ \ + PYPKGDIR=%{python_sitelib}/ffado/ \ BUILD_TESTS=1 %install -scons DESTDIR=%{buildroot} install +# Exporting flags so that the install does not trigger another build +export CFLAGS="%{optflags} -ffast-math" +export CXXFLAGS="%{optflags} -ffast-math --std=gnu++11" +scons DESTDIR=%{buildroot} \ + install # We need to install the xdg stuff manually mkdir -p %{buildroot}%{_datadir}/applications @@ -163,6 +185,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Mon Nov 06 2017 Orcan Ogetbil - 2.3.0-7 +- Build against scons3 +- Build against newer gcc/glibc + * Thu Aug 10 2017 Orcan Ogetbil - 2.3.0-6 - Fix FTBFS on F27 - Backported fixes from trunk for various compilation warnings From 4d8ba64f99c7b06310e1b9dc787a6e388e220444 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 6 Jan 2018 00:37:23 +0100 Subject: [PATCH 039/113] Remove obsolete scriptlets Signed-off-by: Igor Gnatenko --- libffado.spec | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/libffado.spec b/libffado.spec index 6c2e73f..af426d7 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.3.0 -Release: 7%{?dist} +Release: 8%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -147,18 +147,6 @@ install -m 755 tests/ffado-test %{buildroot}%{_bindir} %postun -p /sbin/ldconfig -%post -n ffado -touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : - -%postun -n ffado -if [ $1 -eq 0 ] ; then - touch --no-create %{_datadir}/icons/hicolor &>/dev/null - gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : -fi - -%posttrans -n ffado -gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : - %files %doc AUTHORS ChangeLog LICENSE.* README %{_libdir}/libffado.so.* @@ -185,6 +173,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Fri Jan 05 2018 Igor Gnatenko - 2.3.0-8 +- Remove obsolete scriptlets + * Mon Nov 06 2017 Orcan Ogetbil - 2.3.0-7 - Build against scons3 - Build against newer gcc/glibc From b28eb72a46a9430b058bb8779aecb1803cd7525a Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Fri, 5 Jan 2018 21:28:55 -0500 Subject: [PATCH 040/113] Update to 2.4.0 Drop upstreamed patches --- libffado-MIPS.patch | 12 - libffado-SConstruct-py3.patch | 593 ----- libffado-byteswap.patch | 22 + libffado-derefptr.patch | 20 - libffado-diff-trunk-from-r2650-to-r2651.diff | 2208 ------------------ libffado-diff-trunk-from-r2690-to-r2691.diff | 1137 --------- libffado-diff-trunk-from-r2705-to-r2706.diff | 10 - libffado-diff-trunk-from-r2706-to-r2707.diff | 11 - libffado-gcc6.patch | 19 - libffado-ppc64-bitness.patch | 21 - libffado-pyqt4and5compat.patch | 172 ++ libffado-sconstruct.patch | 19 + libffado-signal_h.patch | 11 - libffado.spec | 72 +- 14 files changed, 240 insertions(+), 4087 deletions(-) delete mode 100644 libffado-MIPS.patch delete mode 100644 libffado-SConstruct-py3.patch create mode 100644 libffado-byteswap.patch delete mode 100644 libffado-derefptr.patch delete mode 100644 libffado-diff-trunk-from-r2650-to-r2651.diff delete mode 100644 libffado-diff-trunk-from-r2690-to-r2691.diff delete mode 100644 libffado-diff-trunk-from-r2705-to-r2706.diff delete mode 100644 libffado-diff-trunk-from-r2706-to-r2707.diff delete mode 100644 libffado-gcc6.patch delete mode 100644 libffado-ppc64-bitness.patch create mode 100644 libffado-pyqt4and5compat.patch create mode 100644 libffado-sconstruct.patch delete mode 100644 libffado-signal_h.patch diff --git a/libffado-MIPS.patch b/libffado-MIPS.patch deleted file mode 100644 index 4d5d2f5..0000000 --- a/libffado-MIPS.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -rupN libffado-2.3.0.org/SConstruct libffado-2.3.0/SConstruct ---- libffado-2.3.0.org/SConstruct 2016-08-08 06:31:03.000000000 -0400 -+++ libffado-2.3.0/SConstruct 2017-08-10 21:56:15.358412952 -0400 -@@ -558,7 +558,7 @@ def cpuinfo_kv(): - for line in f: - line = line.strip() - if line: -- k,v = line.split(':') -+ k,v = line.split(':', 1) - yield (k.strip(), v.strip()) - f.close() - diff --git a/libffado-SConstruct-py3.patch b/libffado-SConstruct-py3.patch deleted file mode 100644 index 24146ab..0000000 --- a/libffado-SConstruct-py3.patch +++ /dev/null @@ -1,593 +0,0 @@ -diff -rupN libffado-2.3.0.org/admin/doxygen.py libffado-2.3.0/admin/doxygen.py ---- libffado-2.3.0.org/admin/doxygen.py 2008-01-20 05:29:17.000000000 -0500 -+++ libffado-2.3.0/admin/doxygen.py 2017-11-05 17:37:03.698855773 -0500 -@@ -43,6 +43,7 @@ import os - import os.path - import glob - from fnmatch import fnmatch -+from functools import reduce - - def DoxyfileParse(file_contents): - """ -@@ -52,7 +53,7 @@ def DoxyfileParse(file_contents): - data = {} - - import shlex -- lex = shlex.shlex(instream = file_contents, posix = True) -+ lex = shlex.shlex(instream = file_contents.decode(), posix = True) - lex.wordchars += "*+./-:" - lex.whitespace = lex.whitespace.replace("\n", "") - lex.escape = "" -@@ -98,9 +99,11 @@ def DoxyfileParse(file_contents): - append_data( data, key, new_data, '\\' ) - - # compress lists of len 1 into single strings -+ to_pop = [] - for (k, v) in data.items(): - if len(v) == 0: -- data.pop(k) -+ #data.pop(k) # Can't modify dict while looping -+ to_pop.append(k) - - # items in the following list will be kept as lists and not converted to strings - if k in ["INPUT", "FILE_PATTERNS", "EXCLUDE_PATTERNS"]: -@@ -109,6 +112,9 @@ def DoxyfileParse(file_contents): - if len(v) == 1: - data[k] = v[0] - -+ for k in to_pop: -+ data.pop(k) -+ - return data - - def DoxySourceScan(node, env, path): -@@ -228,4 +234,4 @@ def exists(env): - """ - Make sure doxygen exists. - """ -- return env.Detect("doxygen") -\ No newline at end of file -+ return env.Detect("doxygen") -diff -rupN libffado-2.3.0.org/SConstruct libffado-2.3.0/SConstruct ---- libffado-2.3.0.org/SConstruct 2017-08-10 21:56:15.358412952 -0400 -+++ libffado-2.3.0/SConstruct 2017-11-05 17:50:04.675089737 -0500 -@@ -92,8 +92,8 @@ env = Environment( tools=['default','sca - - custom_flags = False - --if env.has_key('COMPILE_FLAGS') and len(env['COMPILE_FLAGS']) > 0: -- print "The COMPILE_FLAGS option is deprecated. Use CFLAGS and CXXFLAGS with CUSTOM_ENV=True instead" -+if 'COMPILE_FLAGS' in env and len(env['COMPILE_FLAGS']) > 0: -+ print("The COMPILE_FLAGS option is deprecated. Use CFLAGS and CXXFLAGS with CUSTOM_ENV=True instead") - custom_flags = True - env.MergeFlags(env['COMPILE_FLAGS']) - -@@ -101,21 +101,21 @@ if env['CUSTOM_ENV']: - custom_flags = True - - # Honour the user choice of compiler (if any). -- if os.environ.has_key('CC') and len(os.environ['CC']) > 0: -+ if 'CC' in os.environ and len(os.environ['CC']) > 0: - env['CC'] = os.environ['CC'] -- if os.environ.has_key('CXX') and len(os.environ['CXX']) > 0: -+ if 'CXX' in os.environ and len(os.environ['CXX']) > 0: - env['CXX'] = os.environ['CXX'] - - # Honour the user supplied flags (if any), but notify the user that this is not supported. -- if os.environ.has_key('CFLAGS') and len(os.environ['CFLAGS']) > 0: -+ if 'CFLAGS' in os.environ and len(os.environ['CFLAGS']) > 0: - env.Append(CFLAGS = str(os.environ['CFLAGS'].replace('\"', ''))) -- if os.environ.has_key('CXXFLAGS') and len(os.environ['CXXFLAGS']) > 0: -+ if 'CXXFLAGS' in os.environ and len(os.environ['CXXFLAGS']) > 0: - env.Append(CXXFLAGS = str(os.environ['CXXFLAGS'].replace('\"', ''))) -- if os.environ.has_key('LDFLAGS') and len(os.environ['LDFLAGS']) > 0: -+ if 'LDFLAGS' in os.environ and len(os.environ['LDFLAGS']) > 0: - env.Append(LINKFLAGS = str(os.environ['LDFLAGS'].replace('\"', ''))) - - if custom_flags: -- print ''' -+ print(''' - * Usage of additional flags is not supported by the ffado-devs. - * Use at own risk! - * -@@ -125,7 +125,7 @@ if custom_flags: - * CFLAGS = %s - * CXXFLAGS = %s - * LDFLAGS = %s --''' % (env['CC'], env['CXX'], env['CFLAGS'], env['CXXFLAGS'], env['LINKFLAGS']) -+''' % (env['CC'], env['CXX'], env['CFLAGS'], env['CXXFLAGS'], env['LINKFLAGS'])) - - Help( """ - For building ffado you can set different options as listed below. You have to -@@ -169,6 +169,7 @@ def CheckForPyModule( context, module ): - return ret[0] - - def CompilerCheck( context ): -+ return True # FIXME: The following TryRun fails on Python3 - context.Message( "Checking for a working C-compiler " ) - ret = context.TryRun( """ - #include -@@ -225,13 +226,13 @@ def VersionInt(vers): - return (int(maj) << 24) | (int(min) << 8) | int(patch) - - def CheckJackdVer(): -- print 'Checking jackd version...', -- ret = Popen("which jackd >/dev/null 2>&1 && jackd --version | tail -n 1 | cut -d ' ' -f 3", shell=True, stdout=PIPE).stdout.read()[:-1] -+ print('Checking jackd version...', end=' ') -+ ret = Popen("which jackd >/dev/null 2>&1 && jackd --version | tail -n 1 | cut -d ' ' -f 3", shell=True, stdout=PIPE).stdout.read()[:-1].decode() - if (ret == ""): -- print "not installed" -+ print("not installed") - return -1 - else: -- print ret -+ print(ret) - return VersionInt(ret) - - if env['SERIALIZE_USE_EXPAT']: -@@ -249,12 +250,12 @@ if not env.GetOption('clean'): - # Check for working gcc and g++ compilers and their environment. - # - if not conf.CompilerCheck(): -- print "\nIt seems as if your system isn't even able to compile any C-/C++-programs. Probably you don't have gcc and g++ installed. Compiling a package from source without a working compiler is very hard to do, please install the needed packages.\nHint: on *ubuntu you need both gcc- and g++-packages installed, easiest solution is to install build-essential which depends on gcc and g++." -+ print("\nIt seems as if your system isn't even able to compile any C-/C++-programs. Probably you don't have gcc and g++ installed. Compiling a package from source without a working compiler is very hard to do, please install the needed packages.\nHint: on *ubuntu you need both gcc- and g++-packages installed, easiest solution is to install build-essential which depends on gcc and g++.") - Exit( 1 ) - - # Check for pkg-config before using pkg-config to check for other dependencies. - if not conf.CheckForPKGConfig(): -- print "\nThe program 'pkg-config' could not be found.\nEither you have to install the corresponding package first or make sure that PATH points to the right directions." -+ print("\nThe program 'pkg-config' could not be found.\nEither you have to install the corresponding package first or make sure that PATH points to the right directions.") - Exit( 1 ) - - # -@@ -298,41 +299,41 @@ if not env.GetOption('clean'): - - if env['ENABLE_SETBUFFERSIZE_API_VER'] == 'auto': - if not(have_jack): -- print """ -+ print(""" - No Jack Audio Connection Kit (JACK) installed: assuming a FFADO - setbuffersize-compatible version will be used. --""" -+""") - elif not(good_jack1 or good_jack2): - FFADO_API_VERSION="8" -- print """ -+ print(""" - Installed Jack Audio Connection Kit (JACK) jack does not support FFADO - setbuffersize API: will report earlier API version at runtime. Consider - upgrading to jack1 >=0.122.0 or jack2 >=1.9.9 at some point, and then - recompile ffado to gain access to this added feature. --""" -+""") - else: -- print "Installed Jack Audio Connection Kit (JACK) supports FFADO setbuffersize API" -+ print("Installed Jack Audio Connection Kit (JACK) supports FFADO setbuffersize API") - elif env['ENABLE_SETBUFFERSIZE_API_VER'] == 'true': - if (have_jack and not(good_jack1) and not(good_jack2)): -- print """ -+ print(""" - SetBufferSize API version is enabled but no suitable version of Jack Audio - Connection Kit (JACK) has been found. The resulting FFADO would cause your - jackd to abort with "incompatible FFADO version". Please upgrade to - jack1 >=0.122.0 or jack2 >=1.9.9, or set ENABLE_SETBUFFERSIZE_API_VER to "auto" - or "false". --""" -+""") - # Although it's not strictly an error, in almost every case that - # this occurs the user will want to know about it and fix the - # problem, so we exit so they're guaranteed of seeing the above - # message. - Exit( 1 ) - else: -- print "Will report SetBufferSize API version at runtime" -+ print("Will report SetBufferSize API version at runtime") - elif env['ENABLE_SETBUFFERSIZE_API_VER'] == 'force': -- print "Will report SetBufferSize API version at runtime" -+ print("Will report SetBufferSize API version at runtime") - else: - FFADO_API_VERSION="8" -- print "Will not report SetBufferSize API version at runtime" -+ print("Will not report SetBufferSize API version at runtime") - - for pkg in pkgs: - name2 = pkg.replace("+","").replace(".","").replace("-","").upper() -@@ -342,14 +343,14 @@ or "false". - allpresent &= 0 - - if not allpresent: -- print """ -+ print(""" - (At least) One of the dependencies is missing. I can't go on without it, please - install the needed packages for each of the lines saying "no". - (Remember to also install the *-devel packages!) - - And remember to remove the cache with "rm -Rf .sconsign.dblite cache" so the - results above get rechecked. --""" -+""") - Exit( 1 ) - - # libxml++-2.6 requires a c++11 compiler as of version 2.39.1. The -@@ -365,16 +366,18 @@ results above get rechecked. - # might not be the best way of testing for these but it's the only - # way which seems to work properly. CheckFunc() fails due to - # argument count problems. -- if env.has_key( 'CFLAGS' ): -+ if 'CFLAGS' in env: - oldcf = env['CFLAGS'] - else: - oldcf = "" - env.Append(CFLAGS = '-std=c99') -- if conf.CheckLibWithHeader( "m", "math.h", "c", "lrint(3.2);" ): -+ # FIXME: the following check fails on Python3 -+ if 1:#conf.CheckLibWithHeader( "m", "math.h", "c", "lrint(3.2);" ): - HAVE_LRINT = 1 - else: - HAVE_LRINT = 0 -- if conf.CheckLibWithHeader( "m", "math.h", "c", "lrintf(3.2);" ): -+ # FIXME: the following check fails on Python3 -+ if 1:#conf.CheckLibWithHeader( "m", "math.h", "c", "lrintf(3.2);" ): - HAVE_LRINTF = 1 - else: - HAVE_LRINTF = 0 -@@ -388,20 +391,21 @@ results above get rechecked. - - # PyQT checks - if env['BUILD_MIXER'] != 'false': -- if conf.CheckForApp( 'which pyuic4' ) and conf.CheckForPyModule( 'dbus' ) and conf.CheckForPyModule( 'PyQt4' ) and conf.CheckForPyModule( 'dbus.mainloop.qt' ): -+ # FIXME: the following dbus check fails on Python3 -+ if 1:#conf.CheckForApp( 'which pyuic4' ) and conf.CheckForPyModule( 'dbus' ) and conf.CheckForPyModule( 'PyQt4' ) and conf.CheckForPyModule( 'dbus.mainloop.qt' ): - env['BUILD_MIXER'] = 'true' - elif not env.GetOption('clean'): - if env['BUILD_MIXER'] == 'auto': - env['BUILD_MIXER'] = 'false' -- print """ -+ print(""" - The prerequisites ('pyuic4' and the python-modules 'dbus' and 'PyQt4', the - packages could be named like dbus-python and PyQt) to build the mixer were not --found. Therefore the qt4 mixer will not be installed.""" -+found. Therefore the qt4 mixer will not be installed.""") - else: # env['BUILD_MIXER'] == 'true' -- print """ -+ print(""" - The prerequisites ('pyuic4' and the python-modules 'dbus' and 'PyQt4', the - packages could be named like dbus-python and PyQt) to build the mixer were not --found, but BUILD_MIXER was requested.""" -+found, but BUILD_MIXER was requested.""") - Exit( 1 ) - - env['XDG_TOOLS'] = False -@@ -409,10 +413,10 @@ if env['BUILD_MIXER'] == 'true': - if conf.CheckForApp( 'xdg-desktop-menu --help' ) and conf.CheckForApp( 'xdg-icon-resource --help' ): - env['XDG_TOOLS'] = True - else: -- print """ -+ print(""" - I couldn't find the 'xdg-desktop-menu' and 'xdg-icon-resource' programs. These - are needed to add the fancy entry for the mixer to your menu, but you can still --start it by executing "ffado-mixer".""" -+start it by executing "ffado-mixer".""") - - # - # Optional pkg-config -@@ -427,13 +431,13 @@ for pkg in pkgs: - env['%s_FLAGS' % name2] = conf.GetPKGFlags( pkg, pkgs[pkg] ) - - if not env['DBUS1_FLAGS'] or not env['DBUSC1_FLAGS'] or not conf.CheckForApp('which dbusxx-xml2cpp'): -- env['DBUS1_FLAGS'] = "" -- env['DBUSC1_FLAGS'] = "" -- print """ -+ env['DBUS1_FLAGS'] = b"" -+ env['DBUSC1_FLAGS'] = b"" -+ print(""" - One of the dbus-headers, the dbus-c++-headers and/or the application - 'dbusxx-xml2cpp' where not found. The dbus-server for ffado will therefore not - be built. --""" -+""") - else: - # Get the directory where dbus stores the service-files - env['dbus_service_dir'] = conf.GetPKGVariable( 'dbus-1', 'session_bus_services_dir' ).strip() -@@ -441,21 +445,21 @@ else: - # for platform dependent threading init functions - # this is true for DBUS >= 0.96 or so. Since we require >= 1.0 it is - # always true -- env['DBUS1_FLAGS'] += " -DDBUS_HAS_THREADS_INIT_DEFAULT" -+ env['DBUS1_FLAGS'] += b" -DDBUS_HAS_THREADS_INIT_DEFAULT" - - # The controlserver-glue.h file generated by dbusxx-xml2cpp generates - # a large number of instances where call.reader()'s return value is - # stored (in ri) but not used. This generates a compiler warning which - # we can do nothing about. Therefore when compiling dbus-related - # code, suppress the "set but not used" warning. -- env['DBUS1_FLAGS'] += " -Wno-unused-but-set-variable" -+ env['DBUS1_FLAGS'] += b" -Wno-unused-but-set-variable" - - config_guess = conf.ConfigGuess() - - env = conf.Finish() - - if env['DEBUG']: -- print "Doing a debug build" -+ print("Doing a debug build") - env.MergeFlags( "-Wall -g -DDEBUG" ) - env['DEBUG_MESSAGES'] = True - elif not custom_flags: -@@ -466,7 +470,7 @@ if env['DEBUG_MESSAGES']: - env.MergeFlags( "-DDEBUG_MESSAGES" ) - - if env['PROFILE']: -- print "Doing a PROFILE build" -+ print("Doing a PROFILE build") - env.MergeFlags( "-Wall -g" ) - - if env['PEDANTIC']: -@@ -487,7 +491,7 @@ if env['ENABLE_ALL']: - - env['BUILD_STATIC_LIB'] = False - if env['BUILD_STATIC_TOOLS']: -- print "Building static versions of the tools..." -+ print("Building static versions of the tools...") - env['BUILD_STATIC_LIB'] = True - - env['build_base']="#/" -@@ -698,14 +702,14 @@ def is_userspace_32bit(cpuinfo): - # /bin/mount: file format elf64-x86-64 - # or like this: - # /bin/mount: file format elf32-powerpc -- for line in x.split('\n'): -- line = line.strip() -+ for line in x.split(b'\n'): -+ line = line.strip().decode() - if line.startswith(real_exe): - x, fmt = line.rsplit(None, 1) - answer = 'elf32' in fmt - break - else: -- print '!!! Not found %s' % exe -+ print('!!! Not found %s' % exe) - return answer - - -@@ -780,7 +784,7 @@ if env['DIST_TARGET'] == 'auto': - env['DIST_TARGET'] = 'powerpc' - else: - env['DIST_TARGET'] = config[config_cpu] -- print "Detected DIST_TARGET = " + env['DIST_TARGET'] -+ print("Detected DIST_TARGET = " + env['DIST_TARGET']) - - #=== Begin Revised CXXFLAGS ========================================= - # comment on DIST_TARGET up top implies it can be used for cross-compiling -@@ -799,37 +803,38 @@ if '-msse2' in opt_flags: - - if env['DETECT_USERSPACE_ENV']: - m32 = is_userspace_32bit(cpuinfo) -- print 'User space is %s' % (m32 and '32-bit' or '64-bit') -+ print('User space is %s' % (m32 and '32-bit' or '64-bit')) - if cpuinfo.is_powerpc: - if m32: -- print "Doing a 32-bit PowerPC build for %s CPU" % cpuinfo.ppc_type -+ print("Doing a 32-bit PowerPC build for %s CPU" % cpuinfo.ppc_type) - machineflags = { 'CXXFLAGS' : ['-m32'] } - else: -- print "Doing a 64-bit PowerPC build for %s CPU" % cpuinfo.ppc_type -+ print("Doing a 64-bit PowerPC build for %s CPU" % cpuinfo.ppc_type) - machineflags = { 'CXXFLAGS' : ['-m64'] } - env.MergeFlags( machineflags ) - elif cpuinfo.is_x86: - if m32: -- print "Doing a 32-bit %s build for %s" % (cpuinfo.machine, cpuinfo.model_name) -+ print("Doing a 32-bit %s build for %s" % (cpuinfo.machine, cpuinfo.model_name)) - machineflags = { 'CXXFLAGS' : ['-m32'] } - else: -- print "Doing a 64-bit %s build for %s" % (cpuinfo.machine, cpuinfo.model_name) -+ print("Doing a 64-bit %s build for %s" % (cpuinfo.machine, cpuinfo.model_name)) - machineflags = { 'CXXFLAGS' : ['-m64'] } - needs_fPIC = True - env.MergeFlags( machineflags ) - #=== End Revised CXXFLAGS ========================================= - - --if needs_fPIC or ( env.has_key('COMPILE_FLAGS') and '-fPIC' in env['COMPILE_FLAGS'] ): -+if needs_fPIC or ( 'COMPILE_FLAGS' in env and '-fPIC' in env['COMPILE_FLAGS'] ): - env.MergeFlags( "-fPIC" ) - - # end of processor-specific section - if env['ENABLE_OPTIMIZATIONS']: - opt_flags.extend (["-fomit-frame-pointer","-ffast-math","-funroll-loops"]) - env.MergeFlags( opt_flags ) -- print "Doing an optimized build..." -+ print("Doing an optimized build...") - - env['REVISION'] = os.popen('svnversion .').read()[:-1] -+ - # This may be as simple as '89' or as complex as '4123:4184M'. - # We'll just use the last bit. - env['REVISION'] = env['REVISION'].split(':')[-1] -@@ -875,8 +880,8 @@ env.Depends( "config.h", "SConstruct" ) - env.Depends( "config.h", 'cache/options.cache' ) - - # update version.h whenever the version or SVN revision changes --env.Depends( "version.h", env.Value(env['REVISION'])) --env.Depends( "version.h", env.Value(env['VERSION'])) -+#env.Depends( "version.h", env.Value(env['REVISION'])) # FIXME -+#env.Depends( "version.h", env.Value(env['VERSION'])) # FIXME - - env.Depends( "libffado.pc", "SConstruct" ) - pkgconfig = env.ScanReplace( "libffado.pc.in" ) -@@ -907,7 +912,7 @@ if not env.GetOption('clean'): - # - if len(env.destdir) > 0: - if not len( ARGUMENTS.get( "WILL_DEAL_WITH_XDG_MYSELF", "" ) ) > 0: -- print """ -+ print(""" - WARNING! - You are using the (packagers) option DESTDIR to install this package to a - different place than the real prefix. As the xdg-tools can't cope with -@@ -915,7 +920,7 @@ that, the .desktop-files are not install - deal with them your own. - (And you have to look into the SConstruct to learn how to disable this - message.) --""" -+""") - else: - - def CleanAction( action ): -diff -rupN libffado-2.3.0.org/src/SConscript libffado-2.3.0/src/SConscript ---- libffado-2.3.0.org/src/SConscript 2015-05-05 08:36:47.000000000 -0400 -+++ libffado-2.3.0/src/SConscript 2017-11-05 14:57:05.923090933 -0500 -@@ -284,16 +284,16 @@ if env['ENABLE_GENERICAVC']: - - if not env.GetOption( "clean" ): - libenv.MergeFlags( "-lrt -lpthread" ) -- libenv.MergeFlags( env['LIBRAW1394_FLAGS'] ) -- libenv.MergeFlags( env['LIBIEC61883_FLAGS'] ) -- libenv.MergeFlags( env['LIBCONFIG_FLAGS'] ) -+ libenv.MergeFlags( env['LIBRAW1394_FLAGS'].decode() ) -+ libenv.MergeFlags( env['LIBIEC61883_FLAGS'].decode() ) -+ libenv.MergeFlags( env['LIBCONFIG_FLAGS'].decode() ) - if not env['SERIALIZE_USE_EXPAT']: -- libenv.MergeFlags( env['LIBXML26_FLAGS'] ) -+ libenv.MergeFlags( env['LIBXML26_FLAGS'].decode() ) - else: - libenv.PrependUnique( LIBS=["expat"] ) - libenv.MergeFlags( "-DSERIALIZE_USE_EXPAT" ) - if env['REQUIRE_LIBAVC']: -- libenv.MergeFlags( env['LIBAVC1394_FLAGS'] ) -+ libenv.MergeFlags( env['LIBAVC1394_FLAGS'].decode() ) - - libname_versioned = "libffado.so.%s" % libenv['VERSION'] - libname_versioned_short = "libffado.so.%s" % libenv['VERSION'].split('.')[0] -diff -rupN libffado-2.3.0.org/support/alsa/SConscript libffado-2.3.0/support/alsa/SConscript ---- libffado-2.3.0.org/support/alsa/SConscript 2009-11-02 16:48:55.000000000 -0500 -+++ libffado-2.3.0/support/alsa/SConscript 2017-11-05 14:59:30.427577301 -0500 -@@ -37,6 +37,6 @@ env.PrependUnique( LIBS=["ffado"] ) - sources = ["alsa_plugin.cpp"] - - if env.has_key("ALSA_FLAGS") and env['ALSA_FLAGS']: -- env.MergeFlags( env["ALSA_FLAGS"] ) -+ env.MergeFlags( env["ALSA_FLAGS"].decode() ) - env.MergeFlags( "-DPIC" ) - alsaplugin = env.SharedLibrary( "asound_module_pcm_ffado", sources ) -diff -rupN libffado-2.3.0.org/support/dbus/SConscript libffado-2.3.0/support/dbus/SConscript ---- libffado-2.3.0.org/support/dbus/SConscript 2012-06-12 21:39:07.000000000 -0400 -+++ libffado-2.3.0/support/dbus/SConscript 2017-11-05 16:34:43.019156579 -0500 -@@ -37,11 +37,11 @@ env.PrependUnique( LIBPATH=[env['build_b - env.PrependUnique( LIBS=["ffado", "pthread"] ) - - if not env.GetOption( "clean" ): -- env.MergeFlags( env["DBUS1_FLAGS"] ) -- env.MergeFlags( env["DBUSC1_FLAGS"] ) -- env.MergeFlags( env['LIBRAW1394_FLAGS'] ) -+ env.MergeFlags( env["DBUS1_FLAGS"].decode() ) -+ env.MergeFlags( env["DBUSC1_FLAGS"].decode() ) -+ env.MergeFlags( env['LIBRAW1394_FLAGS'].decode() ) - if not env['SERIALIZE_USE_EXPAT']: -- env.MergeFlags( env['LIBXML26_FLAGS'] ) -+ env.MergeFlags( env['LIBXML26_FLAGS'].decode() ) - else: - env.PrependUnique( LIBS=["expat"] ) - -@@ -79,16 +79,16 @@ for manpage in manpages: - - servicefile = env.ScanReplace('org.ffado.Control.service.in') - if env['dbus_service_dir'] and ( env.destdir or os.access( env['dbus_service_dir'], os.W_OK ) ): -- print "Will install the service-file" -- targetdir = env.destdir + env['dbus_service_dir'] -- env.Alias( "install", env.Install( env.destdir + env['dbus_service_dir'], servicefile ) ) -+ print ("Will install the service-file") -+ targetdir = env.destdir + env['dbus_service_dir'].decode() -+ env.Alias( "install", env.Install( env.destdir + env['dbus_service_dir'].decode(), servicefile ) ) - else: - if not env['dbus_service_dir']: -- print 'Can\'t install the system-wide dbus service file as the concerned variable is not defined.' -+ print ('Can\'t install the system-wide dbus service file as the concerned variable is not defined.') - else: - if not os.access( env['dbus_service_dir'], os.W_OK ): -- print 'Insufficient rights to install the system-wide dbus service file.' -- print 'Please run the "scons install" command with higher authority.' -+ print ('Insufficient rights to install the system-wide dbus service file.') -+ print ('Please run the "scons install" command with higher authority.') - - # static versions - if static_env['BUILD_STATIC_TOOLS']: -diff -rupN libffado-2.3.0.org/support/firmware/SConscript libffado-2.3.0/support/firmware/SConscript ---- libffado-2.3.0.org/support/firmware/SConscript 2012-03-27 10:06:15.000000000 -0400 -+++ libffado-2.3.0/support/firmware/SConscript 2017-11-05 14:58:12.187855399 -0500 -@@ -30,10 +30,10 @@ env.AppendUnique( CPPPATH=["#/", "#/src" - - if not env.GetOption( "clean" ): - env.MergeFlags( "-lrt -lpthread" ) -- env.MergeFlags( env['LIBRAW1394_FLAGS'] ) -- env.MergeFlags( env['LIBIEC61883_FLAGS'] ) -+ env.MergeFlags( env['LIBRAW1394_FLAGS'].decode() ) -+ env.MergeFlags( env['LIBIEC61883_FLAGS'].decode() ) - if not env['SERIALIZE_USE_EXPAT']: -- env.MergeFlags( env['LIBXML26_FLAGS'] ) -+ env.MergeFlags( env['LIBXML26_FLAGS'].decode() ) - else: - env.PrependUnique( LIBS=["expat"] ) - -diff -rupN libffado-2.3.0.org/support/mixer-qt4/SConscript libffado-2.3.0/support/mixer-qt4/SConscript ---- libffado-2.3.0.org/support/mixer-qt4/SConscript 2015-04-12 07:18:15.000000000 -0400 -+++ libffado-2.3.0/support/mixer-qt4/SConscript 2017-11-05 15:32:50.862308199 -0500 -@@ -38,7 +38,7 @@ if env['BUILD_MIXER'] == 'true': - arg.append( os.path.join( dirname, name ) ) - - pythonfiles = [ 'ffado/config.py' ] -- os.path.walk( "ffado", findfiles, pythonfiles ) -+ os.walk( "ffado", findfiles, pythonfiles ) - - e.ScanReplace( "ffado/config.py.in" ) - e.Depends( "ffado/config.py", "#/SConstruct" ) -diff -rupN libffado-2.3.0.org/support/tools/SConscript libffado-2.3.0/support/tools/SConscript ---- libffado-2.3.0.org/support/tools/SConscript 2013-05-17 08:37:50.000000000 -0400 -+++ libffado-2.3.0/support/tools/SConscript 2017-11-05 14:58:45.691736311 -0500 -@@ -33,7 +33,7 @@ e = env.Clone() - e.MergeFlags( "-I#/ -I#/src -L%ssrc -lffado" % env['build_base'] ) - if not e.GetOption( "clean" ): - if not env['SERIALIZE_USE_EXPAT']: -- e.MergeFlags( env['LIBXML26_FLAGS'] ) -+ e.MergeFlags( env['LIBXML26_FLAGS'].decode() ) - else: - e.PrependUnique( LIBS=["expat"] ) - -diff -rupN libffado-2.3.0.org/tests/SConscript libffado-2.3.0/tests/SConscript ---- libffado-2.3.0.org/tests/SConscript 2012-05-01 20:38:14.000000000 -0400 -+++ libffado-2.3.0/tests/SConscript 2017-11-05 15:15:57.721041067 -0500 -@@ -29,10 +29,10 @@ env.MergeFlags( "-I#/ -I#/src -L%ssrc -l - - if not env.GetOption( "clean" ): - env.MergeFlags( "-lpthread" ) -- env.MergeFlags( env['LIBIEC61883_FLAGS'] ) -- env.MergeFlags( env['LIBRAW1394_FLAGS'] ) -+ env.MergeFlags( env['LIBIEC61883_FLAGS'].decode() ) -+ env.MergeFlags( env['LIBRAW1394_FLAGS'].decode() ) - if not env['SERIALIZE_USE_EXPAT']: -- env.MergeFlags( env['LIBXML26_FLAGS'] ) -+ env.MergeFlags( env['LIBXML26_FLAGS'].decode() ) - else: - env.PrependUnique( LIBS=["expat"] ) - -@@ -65,7 +65,7 @@ if env['ENABLE_BEBOB']: - apps.update( { "test-focusrite" : "test-focusrite.cpp" } ) - if env['ENABLE_GENERICAVC']: - if env.has_key("ALSA_FLAGS") and env["ALSA_FLAGS"]: -- env.MergeFlags( env["ALSA_FLAGS"] ) -+ env.MergeFlags( env["ALSA_FLAGS"].decode() ) - apps.update( { "test-scs" : "test-scs.cpp" } ) - apps.update( { "test-volume" : "test-volume.cpp" } ) - apps.update( { "test-enhanced-mixer" : "test-enhanced-mixer.cpp" } ) -diff -rupN libffado-2.3.0.org/tests/systemtests/SConscript libffado-2.3.0/tests/systemtests/SConscript ---- libffado-2.3.0.org/tests/systemtests/SConscript 2010-01-04 11:09:43.000000000 -0500 -+++ libffado-2.3.0/tests/systemtests/SConscript 2017-11-05 15:16:38.976893207 -0500 -@@ -30,7 +30,7 @@ env.PrependUnique( LIBPATH=[env['build_b - env.PrependUnique( LIBS=["ffado"] ) - - if not env.GetOption( "clean" ): -- env.MergeFlags( env['LIBRAW1394_FLAGS'] ) -+ env.MergeFlags( env['LIBRAW1394_FLAGS'].decode() ) - env.MergeFlags( "-lrt -lpthread" ) - - static_env = env.Clone() diff --git a/libffado-byteswap.patch b/libffado-byteswap.patch new file mode 100644 index 0000000..716fb2d --- /dev/null +++ b/libffado-byteswap.patch @@ -0,0 +1,22 @@ +diff -rupN libffado-2.4.0.org/src/rme/rme_avdevice.cpp libffado-2.4.0/src/rme/rme_avdevice.cpp +--- libffado-2.4.0.org/src/rme/rme_avdevice.cpp 2017-06-03 04:08:05.000000000 -0400 ++++ libffado-2.4.0/src/rme/rme_avdevice.cpp 2018-01-02 21:38:01.507348351 -0500 +@@ -42,7 +42,6 @@ + #include + #include + #include +-#include "libutil/ByteSwap.h" + + #include + #include +diff -rupN libffado-2.4.0.org/src/rme/rme_avdevice.h libffado-2.4.0/src/rme/rme_avdevice.h +--- libffado-2.4.0.org/src/rme/rme_avdevice.h 2017-05-09 08:55:47.000000000 -0400 ++++ libffado-2.4.0/src/rme/rme_avdevice.h 2018-01-02 21:38:12.755286977 -0500 +@@ -31,6 +31,7 @@ + #include "libavc/avc_definitions.h" + + #include "libutil/Configuration.h" ++#include "libutil/ByteSwap.h" + + #include "fireface_def.h" + #include "libstreaming/rme/RmeReceiveStreamProcessor.h" diff --git a/libffado-derefptr.patch b/libffado-derefptr.patch deleted file mode 100644 index 74f5456..0000000 --- a/libffado-derefptr.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- libffado-2.3.0/src/libieee1394/configrom.cpp.derefptr 2017-02-16 12:03:33.894937836 +0000 -+++ libffado-2.3.0/src/libieee1394/configrom.cpp 2017-02-16 12:03:44.000947451 +0000 -@@ -176,7 +176,7 @@ - ( void* )CSR1212_TEXTUAL_DESCRIPTOR_LEAF_DATA( m_vendorNameKv ), - len ); - -- while ((buf + len - 1) == '\0') { -+ while (*(buf + len - 1) == '\0') { - len--; - } - // \todo XXX seems a bit strage to do this but the nodemgr.c code does -@@ -195,7 +195,7 @@ - memcpy( buf, - ( void* )CSR1212_TEXTUAL_DESCRIPTOR_LEAF_DATA( m_modelNameKv ), - len ); -- while ((buf + len - 1) == '\0') { -+ while (*(buf + len - 1) == '\0') { - len--; - } - // \todo XXX for edirol fa-66 it seems somehow broken. see above diff --git a/libffado-diff-trunk-from-r2650-to-r2651.diff b/libffado-diff-trunk-from-r2650-to-r2651.diff deleted file mode 100644 index a2540a0..0000000 --- a/libffado-diff-trunk-from-r2650-to-r2651.diff +++ /dev/null @@ -1,2208 +0,0 @@ -Index: trunk/libffado/src/libieee1394/test-cyclecalc.cpp -=================================================================== ---- trunk/libffado/src/libieee1394/test-cyclecalc.cpp (revision 2540) -+++ trunk/libffado/src/libieee1394/test-cyclecalc.cpp (revision 2651) -@@ -51,5 +51,5 @@ - (unsigned int)CYCLE_TIMER_GET_OFFSET(now_ctr)); - -- debugOutput(DEBUG_LEVEL_VERBOSE,"NOW : %011"PRIu64" (%03us %04uc %04ut)\n", -+ debugOutput(DEBUG_LEVEL_VERBOSE,"NOW : %011" PRIu64 " (%03us %04uc %04ut)\n", - now, - (unsigned int)TICKS_TO_SECS(now), -@@ -65,5 +65,5 @@ - uint64_t calc_ts = sytRecvToFullTicks(syt, cycle, now_ctr); - -- debugOutput(DEBUG_LEVEL_VERBOSE,"CALC_TS : %011"PRIu64" (%03us %04uc %04ut)\n", -+ debugOutput(DEBUG_LEVEL_VERBOSE,"CALC_TS : %011" PRIu64 " (%03us %04uc %04ut)\n", - calc_ts, - (unsigned int)TICKS_TO_SECS(calc_ts), -Index: trunk/libffado/src/libieee1394/CycleTimerHelper.cpp -=================================================================== ---- trunk/libffado/src/libieee1394/CycleTimerHelper.cpp (revision 2523) -+++ trunk/libffado/src/libieee1394/CycleTimerHelper.cpp (revision 2651) -@@ -164,8 +164,8 @@ - m_cycle_timer_prev, maxtries2); - } -- debugOutput( DEBUG_LEVEL_VERBOSE, " read : CTR: %11u, local: %17"PRIu64"\n", -+ debugOutput( DEBUG_LEVEL_VERBOSE, " read : CTR: %11u, local: %17" PRIu64 "\n", - m_cycle_timer_prev, local_time); - debugOutput(DEBUG_LEVEL_VERBOSE, -- " ctr : 0x%08X %11"PRIu64" (%03us %04ucy %04uticks)\n", -+ " ctr : 0x%08X %11" PRIu64 " (%03us %04ucy %04uticks)\n", - (uint32_t)m_cycle_timer_prev, (uint64_t)CYCLE_TIMER_TO_TICKS(m_cycle_timer_prev), - (unsigned int)CYCLE_TIMER_GET_SECS( m_cycle_timer_prev ), -@@ -292,8 +292,8 @@ - #endif - -- debugOutputExtreme( DEBUG_LEVEL_VERY_VERBOSE, " read : CTR: %11u, local: %17"PRIu64"\n", -+ debugOutputExtreme( DEBUG_LEVEL_VERY_VERBOSE, " read : CTR: %11u, local: %17" PRIu64 "\n", - cycle_timer, local_time); - debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, -- " ctr : 0x%08X %11"PRIu64" (%03us %04ucy %04uticks)\n", -+ " ctr : 0x%08X %11" PRIu64 " (%03us %04ucy %04uticks)\n", - (uint32_t)cycle_timer, (uint64_t)cycle_timer_ticks, - (unsigned int)TICKS_TO_SECS( (uint64_t)cycle_timer_ticks ), -@@ -352,5 +352,5 @@ - ffado_microsecs_t now = Util::SystemTimeSource::getCurrentTimeAsUsecs(); - int sleep_time = m_sleep_until - now; -- debugOutput( DEBUG_LEVEL_ULTRA_VERBOSE, "(%p) Sleep until %"PRId64"/%f (now: %"PRId64", diff=%d) ...\n", -+ debugOutput( DEBUG_LEVEL_ULTRA_VERBOSE, "(%p) Sleep until %" PRId64 "/%f (now: %" PRId64 ", diff=%d) ...\n", - this, m_sleep_until, m_next_time_usecs, now, sleep_time); - #endif -@@ -403,5 +403,5 @@ - if(not_good) { - debugOutput(DEBUG_LEVEL_VERBOSE, -- "(%p) have to retry CTR read, diff unrealistic: diff: %"PRId64", max: +/- %u (try: %d) %"PRId64"\n", -+ "(%p) have to retry CTR read, diff unrealistic: diff: %" PRId64 ", max: +/- %u (try: %d) %" PRId64 "\n", - this, err_ticks, 1*TICKS_PER_CYCLE, ntries, expected_ticks); - // sleep half a cycle to make sure the hardware moved on -@@ -432,8 +432,8 @@ - } - -- debugOutputExtreme( DEBUG_LEVEL_ULTRA_VERBOSE, " read : CTR: %11u, local: %17"PRIu64"\n", -+ debugOutputExtreme( DEBUG_LEVEL_ULTRA_VERBOSE, " read : CTR: %11u, local: %17" PRIu64 "\n", - cycle_timer, local_time); - debugOutputExtreme(DEBUG_LEVEL_ULTRA_VERBOSE, -- " ctr : 0x%08X %11"PRIu64" (%03us %04ucy %04uticks)\n", -+ " ctr : 0x%08X %11" PRIu64 " (%03us %04ucy %04uticks)\n", - (uint32_t)cycle_timer, (uint64_t)cycle_timer_ticks, - (unsigned int)TICKS_TO_SECS( (uint64_t)cycle_timer_ticks ), -@@ -449,5 +449,5 @@ - } else if (diff_ticks > m_ticks_per_update * 20) { - debugOutput(DEBUG_LEVEL_VERBOSE, -- "re-init dll due to too large tick diff: %"PRId64" >> %f\n", -+ "re-init dll due to too large tick diff: %" PRId64 " >> %f\n", - diff_ticks, (float)(m_ticks_per_update * 20)); - if(!initDLL()) { -@@ -475,5 +475,5 @@ - diff_ticks_corr = diff_ticks - ticks_late; - debugOutputExtreme(DEBUG_LEVEL_ULTRA_VERBOSE, -- "diff_ticks_corr=%"PRId64", diff_ticks = %"PRId64", ticks_late = %"PRId64"\n", -+ "diff_ticks_corr=%" PRId64 ", diff_ticks = %" PRId64 ", ticks_late = %" PRId64 "\n", - diff_ticks_corr, diff_ticks, ticks_late); - } else { -@@ -486,5 +486,5 @@ - // makes no sense if not running realtime - if(m_realtime && usecs_late > 1000) { -- debugOutput(DEBUG_LEVEL_VERBOSE, "Rather late wakeup: %"PRId64" usecs\n", usecs_late); -+ debugOutput(DEBUG_LEVEL_VERBOSE, "Rather late wakeup: %" PRId64 " usecs\n", usecs_late); - } - #endif -@@ -539,11 +539,11 @@ - - debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, -- " usecs: current: %f next: %f usecs_late=%"PRId64" ticks_late=%"PRId64"\n", -+ " usecs: current: %f next: %f usecs_late=%" PRId64 " ticks_late=%" PRId64 "\n", - m_current_time_usecs, m_next_time_usecs, usecs_late, ticks_late); - debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, -- " ticks: current: %f next: %f diff=%"PRId64"\n", -+ " ticks: current: %f next: %f diff=%" PRId64 "\n", - m_current_time_ticks, m_next_time_ticks, diff_ticks); - debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, -- " ticks: current: %011"PRIu64" (%03us %04ucy %04uticks)\n", -+ " ticks: current: %011" PRIu64 " (%03us %04ucy %04uticks)\n", - (uint64_t)m_current_time_ticks, - (unsigned int)TICKS_TO_SECS( (uint64_t)m_current_time_ticks ), -@@ -551,5 +551,5 @@ - (unsigned int)TICKS_TO_OFFSET( (uint64_t)m_current_time_ticks ) ); - debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, -- " ticks: next : %011"PRIu64" (%03us %04ucy %04uticks)\n", -+ " ticks: next : %011" PRIu64 " (%03us %04ucy %04uticks)\n", - (uint64_t)m_next_time_ticks, - (unsigned int)TICKS_TO_SECS( (uint64_t)m_next_time_ticks ), -@@ -558,5 +558,5 @@ - - debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, -- " state: local: %11"PRIu64", dll_e2: %f, rate: %f\n", -+ " state: local: %11" PRIu64 ", dll_e2: %f, rate: %f\n", - local_time, m_dll_e2, getRate()); - } -@@ -602,5 +602,5 @@ - } - int32_t ctr_diff = cycle_timer_ticks-dll_time; -- debugOutput(DEBUG_LEVEL_ULTRA_VERBOSE, "(%p) CTR DIFF: HW %010"PRIu64" - DLL %010u = %010d (%s)\n", -+ debugOutput(DEBUG_LEVEL_ULTRA_VERBOSE, "(%p) CTR DIFF: HW %010" PRIu64 " - DLL %010u = %010d (%s)\n", - this, cycle_timer_ticks, dll_time, ctr_diff, (ctr_diff>0?"lag":"lead")); - #endif -@@ -805,5 +805,5 @@ - if (diffTicks(cycle_timer_ticks, m_cycle_timer_ticks_prev) < 0) { - debugOutput( DEBUG_LEVEL_VERY_VERBOSE, -- "non-monotonic CTR (try %02d): %"PRIu64" -> %"PRIu64"\n", -+ "non-monotonic CTR (try %02d): %" PRIu64 " -> %" PRIu64 "\n", - maxtries, m_cycle_timer_ticks_prev, cycle_timer_ticks); - debugOutput( DEBUG_LEVEL_VERY_VERBOSE, -@@ -811,5 +811,5 @@ - m_cycle_timer_prev, *cycle_timer); - debugOutput( DEBUG_LEVEL_VERY_VERBOSE, -- " current: %011"PRIu64" (%03us %04ucy %04uticks)\n", -+ " current: %011" PRIu64 " (%03us %04ucy %04uticks)\n", - cycle_timer_ticks, - (unsigned int)TICKS_TO_SECS( cycle_timer_ticks ), -@@ -817,5 +817,5 @@ - (unsigned int)TICKS_TO_OFFSET( cycle_timer_ticks ) ); - debugOutput( DEBUG_LEVEL_VERY_VERBOSE, -- " prev : %011"PRIu64" (%03us %04ucy %04uticks)\n", -+ " prev : %011" PRIu64 " (%03us %04ucy %04uticks)\n", - m_cycle_timer_ticks_prev, - (unsigned int)TICKS_TO_SECS( m_cycle_timer_ticks_prev ), -Index: trunk/libffado/src/libieee1394/cycletimer.h -=================================================================== ---- trunk/libffado/src/libieee1394/cycletimer.h (revision 1763) -+++ trunk/libffado/src/libieee1394/cycletimer.h (revision 2651) -@@ -95,5 +95,5 @@ - #ifdef DEBUG - if (x >= TICKS_PER_SECOND * 128L) { -- debugWarning("insufficient wrapping: %"PRIu64"\n",x); -+ debugWarning("insufficient wrapping: %" PRIu64 "\n",x); - } - #endif -@@ -118,5 +118,5 @@ - #ifdef DEBUG - if (x < 0) { -- debugWarning("insufficient wrapping: %"PRId64"\n",x); -+ debugWarning("insufficient wrapping: %" PRId64 "\n",x); - } - #endif -@@ -145,8 +145,8 @@ - #ifdef DEBUG - if (x >= (int64_t)(TICKS_PER_SECOND * 128L)) { -- debugWarning("insufficient wrapping (max): %"PRIu64"\n",x); -+ debugWarning("insufficient wrapping (max): %" PRIu64 "\n",x); - } - if (x < 0) { -- debugWarning("insufficient wrapping (min): %"PRId64"\n",x); -+ debugWarning("insufficient wrapping (min): %" PRId64 "\n",x); - } - #endif -@@ -249,5 +249,5 @@ - if(diff > max || diff < -max) { - debugWarning("difference does not make any sense\n"); -- debugWarning("diff=%"PRId64" max=%"PRId64"\n", diff, max); -+ debugWarning("diff=%" PRId64 " max=%" PRId64 "\n", diff, max); - - } -@@ -302,5 +302,5 @@ - uint64_t timestamp; - -- debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, "SYT=%"PRIX64" CY=%u CTR=%08"PRIX64"\n", -+ debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, "SYT=%" PRIX64 " CY=%u CTR=%08" PRIX64 "\n", - syt_timestamp, rcv_cycle, ctr_now); - -@@ -313,5 +313,5 @@ - int diff_cycles = diffCycles(cc_cycles, rcv_cycle); - if (diff_cycles<0) { -- debugWarning("current cycle timer not ahead of receive cycle: rcv: %u / cc: %"PRIu64" (%d)\n", -+ debugWarning("current cycle timer not ahead of receive cycle: rcv: %u / cc: %" PRIu64 " (%d)\n", - rcv_cycle, cc_cycles, diff_cycles); - } -@@ -351,5 +351,5 @@ - } else { - debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, -- "Detected wraparound: %u + %"PRId64" = %"PRId64"\n", -+ "Detected wraparound: %u + %" PRId64 " = %" PRId64 "\n", - rcv_cycle, delta_cycles, new_cycles); - -@@ -372,5 +372,5 @@ - if(( TICKS_TO_CYCLE_TIMER(timestamp) & 0xFFFF) != syt_timestamp) { - debugWarning("back-converted timestamp not equal to SYT\n"); -- debugWarning("TS=%011"PRIu64" TSC=%08"PRIX64" SYT=%04"PRIX64"\n", -+ debugWarning("TS=%011" PRIu64 " TSC=%08" PRIX64 " SYT=%04" PRIX64 "\n", - timestamp, TICKS_TO_CYCLE_TIMER(timestamp), syt_timestamp); - } -@@ -391,5 +391,5 @@ - uint64_t timestamp; - -- debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, "SYT=%04"PRIX64" RCV_CTR=%08X\n", -+ debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, "SYT=%04" PRIX64 " RCV_CTR=%08X\n", - syt_timestamp, rcv_ctr); - -@@ -433,5 +433,5 @@ - if(( TICKS_TO_CYCLE_TIMER(timestamp) & 0xFFFF) != syt_timestamp) { - debugWarning("back-converted timestamp not equal to SYT\n"); -- debugWarning("TS=%011"PRIu64" TSC=%08"PRIX64" SYT=%04"PRIX64"\n", -+ debugWarning("TS=%011" PRIu64 " TSC=%08" PRIX64 " SYT=%04" PRIX64 "\n", - timestamp, TICKS_TO_CYCLE_TIMER(timestamp), syt_timestamp); - } -@@ -457,5 +457,5 @@ - uint64_t timestamp; - -- debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, "SYT=%08"PRIX64" CY=%04X CTR=%08"PRIX64"\n", -+ debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, "SYT=%08" PRIX64 " CY=%04X CTR=%08" PRIX64 "\n", - syt_timestamp, xmt_cycle, ctr_now); - -@@ -467,5 +467,5 @@ - int diff_cycles = diffCycles(xmt_cycle, cc_cycles); - if (diff_cycles<0) { -- debugWarning("xmit cycle not ahead of current cycle: xmt: %u / cc: %"PRIu64" (%d)\n", -+ debugWarning("xmit cycle not ahead of current cycle: xmt: %u / cc: %" PRIu64 " (%d)\n", - xmt_cycle, cc_cycles, diff_cycles); - } -@@ -505,5 +505,5 @@ - } else { - debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, -- "Detected wraparound: %u + %"PRId64" = %"PRId64"\n", -+ "Detected wraparound: %u + %" PRId64 " = %" PRId64 "\n", - xmt_cycle, delta_cycles, new_cycles); - -@@ -526,5 +526,5 @@ - if(( TICKS_TO_CYCLE_TIMER(timestamp) & 0xFFFF) != syt_timestamp) { - debugWarning("back-converted timestamp not equal to SYT\n"); -- debugWarning("TS=%011"PRIu64" TSC=%08"PRIX64" SYT=%04"PRIX64"\n", -+ debugWarning("TS=%011" PRIu64 " TSC=%08" PRIX64 " SYT=%04" PRIX64 "\n", - timestamp, TICKS_TO_CYCLE_TIMER(timestamp), syt_timestamp); - } -Index: trunk/libffado/src/libieee1394/ieee1394service.cpp -=================================================================== ---- trunk/libffado/src/libieee1394/ieee1394service.cpp (revision 2419) -+++ trunk/libffado/src/libieee1394/ieee1394service.cpp (revision 2651) -@@ -137,9 +137,9 @@ - ++it ) - { -- debugOutput(DEBUG_LEVEL_VERBOSE, "Unregistering ARM handler for 0x%016"PRIX64"\n", (*it)->getStart()); -+ debugOutput(DEBUG_LEVEL_VERBOSE, "Unregistering ARM handler for 0x%016" PRIX64 "\n", (*it)->getStart()); - if(m_armHelperNormal) { - int err = raw1394_arm_unregister(m_armHelperNormal->get1394Handle(), (*it)->getStart()); - if (err) { -- debugError(" Failed to unregister ARM handler for 0x%016"PRIX64"\n", (*it)->getStart()); -+ debugError(" Failed to unregister ARM handler for 0x%016" PRIX64 "\n", (*it)->getStart()); - debugError(" Error: %s\n", strerror(errno)); - } -@@ -604,5 +604,5 @@ - #ifdef DEBUG - debugOutput(DEBUG_LEVEL_VERY_VERBOSE, -- "read: node 0x%hX, addr = 0x%016"PRIX64", length = %zd\n", -+ "read: node 0x%hX, addr = 0x%016" PRIX64 ", length = %zd\n", - nodeId, addr, length); - printBuffer( DEBUG_LEVEL_VERY_VERBOSE, length, buffer ); -@@ -613,5 +613,5 @@ - #ifdef DEBUG - debugOutput(DEBUG_LEVEL_VERBOSE, -- "raw1394_read failed: node 0x%hX, addr = 0x%016"PRIX64", length = %zd\n", -+ "raw1394_read failed: node 0x%hX, addr = 0x%016" PRIX64 ", length = %zd\n", - nodeId, addr, length); - #endif -@@ -659,5 +659,5 @@ - - #ifdef DEBUG -- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"write: node 0x%hX, addr = 0x%016"PRIX64", length = %zd\n", -+ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"write: node 0x%hX, addr = 0x%016" PRIX64 ", length = %zd\n", - nodeId, addr, length); - printBuffer( DEBUG_LEVEL_VERY_VERBOSE, length, data ); -@@ -696,7 +696,7 @@ - } - #ifdef DEBUG -- debugOutput(DEBUG_LEVEL_VERBOSE,"lockCompareSwap64: node 0x%X, addr = 0x%016"PRIX64"\n", -+ debugOutput(DEBUG_LEVEL_VERBOSE,"lockCompareSwap64: node 0x%X, addr = 0x%016" PRIX64 "\n", - nodeId, addr); -- debugOutput(DEBUG_LEVEL_VERBOSE," if (*(addr)==0x%016"PRIX64") *(addr)=0x%016"PRIX64"\n", -+ debugOutput(DEBUG_LEVEL_VERBOSE," if (*(addr)==0x%016" PRIX64 ") *(addr)=0x%016" PRIX64 "\n", - compare_value, swap_value); - fb_octlet_t buffer; -@@ -704,5 +704,5 @@ - debugWarning("Could not read register\n"); - } else { -- debugOutput(DEBUG_LEVEL_VERBOSE,"before = 0x%016"PRIX64"\n", buffer); -+ debugOutput(DEBUG_LEVEL_VERBOSE,"before = 0x%016" PRIX64 "\n", buffer); - } - #endif -@@ -728,5 +728,5 @@ - debugWarning("Could not read register\n"); - } else { -- debugOutput(DEBUG_LEVEL_VERBOSE,"after = 0x%016"PRIX64"\n", buffer); -+ debugOutput(DEBUG_LEVEL_VERBOSE,"after = 0x%016" PRIX64 "\n", buffer); - } - #endif -@@ -1122,5 +1122,5 @@ - bool Ieee1394Service::registerARMHandler(ARMHandler *h) { - debugOutput(DEBUG_LEVEL_VERBOSE, -- "Registering ARM handler (%p) for 0x%016"PRIX64", length %zu\n", -+ "Registering ARM handler (%p) for 0x%016" PRIX64 ", length %zu\n", - h, h->getStart(), h->getLength()); - -@@ -1132,5 +1132,5 @@ - h->getClientTransactions()); - if (err) { -- debugError("Failed to register ARM handler for 0x%016"PRIX64"\n", h->getStart()); -+ debugError("Failed to register ARM handler for 0x%016" PRIX64 "\n", h->getStart()); - debugError(" Error: %s\n", strerror(errno)); - return false; -@@ -1141,5 +1141,5 @@ - - bool Ieee1394Service::unregisterARMHandler( ARMHandler *h ) { -- debugOutput(DEBUG_LEVEL_VERBOSE, "Unregistering ARM handler (%p) for 0x%016"PRIX64"\n", -+ debugOutput(DEBUG_LEVEL_VERBOSE, "Unregistering ARM handler (%p) for 0x%016" PRIX64 "\n", - h, h->getStart()); - -@@ -1173,5 +1173,5 @@ - nodeaddr_t Ieee1394Service::findFreeARMBlock( nodeaddr_t start, size_t length, size_t step ) { - debugOutput(DEBUG_LEVEL_VERBOSE, -- "Finding free ARM block of %zd bytes, from 0x%016"PRIX64" in steps of %zd bytes\n", -+ "Finding free ARM block of %zd bytes, from 0x%016" PRIX64 " in steps of %zd bytes\n", - length, start, step); - -@@ -1185,9 +1185,9 @@ - - if (err) { -- debugOutput(DEBUG_LEVEL_VERBOSE, " -> cannot use 0x%016"PRIX64"\n", start); -+ debugOutput(DEBUG_LEVEL_VERBOSE, " -> cannot use 0x%016" PRIX64 "\n", start); - debugError(" Error: %s\n", strerror(errno)); - start += step; - } else { -- debugOutput(DEBUG_LEVEL_VERBOSE, " -> use 0x%016"PRIX64"\n", start); -+ debugOutput(DEBUG_LEVEL_VERBOSE, " -> use 0x%016" PRIX64 "\n", start); - err = raw1394_arm_unregister(m_handle, start); - if (err) { -@@ -1238,5 +1238,5 @@ - raw1394_arm_response_t arm_resp = arm_req_resp->response; - -- debugOutput(DEBUG_LEVEL_VERBOSE,"ARM handler for address 0x%016"PRIX64" called\n", -+ debugOutput(DEBUG_LEVEL_VERBOSE,"ARM handler for address 0x%016" PRIX64 " called\n", - (*it)->getStart()); - debugOutput(DEBUG_LEVEL_VERBOSE," request type : 0x%02X\n", request_type); -@@ -1634,5 +1634,5 @@ - debugOutput( DEBUG_LEVEL_VERBOSE, " CycleTimerHelper: %p, IsoManager: %p, WatchDog: %p\n", - m_pCTRHelper, m_pIsoManager, m_pWatchdog ); -- debugOutput( DEBUG_LEVEL_VERBOSE, " Time: %011"PRIu64" (%03us %04ucy %04uticks)\n", -+ debugOutput( DEBUG_LEVEL_VERBOSE, " Time: %011" PRIu64 " (%03us %04ucy %04uticks)\n", - ctr, - (unsigned int)TICKS_TO_SECS( ctr ), -Index: trunk/libffado/src/libieee1394/configrom.cpp -=================================================================== ---- trunk/libffado/src/libieee1394/configrom.cpp (revision 2194) -+++ trunk/libffado/src/libieee1394/configrom.cpp (revision 2651) -@@ -528,5 +528,5 @@ - { - debugOutput( DEBUG_LEVEL_VERBOSE, -- "Checking for updated node id for device with GUID 0x%016"PRIX64"...\n", -+ "Checking for updated node id for device with GUID 0x%016" PRIX64 "...\n", - getGuid()); - -@@ -559,5 +559,5 @@ - - debugOutput( DEBUG_LEVEL_VERBOSE, -- " Node has GUID 0x%016"PRIX64"\n", -+ " Node has GUID 0x%016" PRIX64 "\n", - guid); - -@@ -566,5 +566,5 @@ - if ( nodeId != getNodeId() ) { - debugOutput( DEBUG_LEVEL_VERBOSE, -- "Device with GUID 0x%016"PRIX64" changed node id " -+ "Device with GUID 0x%016" PRIX64 " changed node id " - "from %d to %d\n", - getGuid(), -@@ -574,5 +574,5 @@ - } else { - debugOutput( DEBUG_LEVEL_VERBOSE, -- "Device with GUID 0x%016"PRIX64" kept node id %d\n", -+ "Device with GUID 0x%016" PRIX64 " kept node id %d\n", - getGuid(), - getNodeId()); -@@ -591,5 +591,5 @@ - - debugOutput( DEBUG_LEVEL_VERBOSE, -- "Device with GUID 0x%016"PRIX64" could not be found on " -+ "Device with GUID 0x%016" PRIX64 " could not be found on " - "the bus anymore (removed?)\n", - getGuid() ); -@@ -604,5 +604,5 @@ - debugOutput(DEBUG_LEVEL_NORMAL, "Config ROM\n" ); - debugOutput(DEBUG_LEVEL_NORMAL, "\tCurrent Node Id:\t%d\n", getNodeId() ); -- debugOutput(DEBUG_LEVEL_NORMAL, "\tGUID:\t\t\t0x%016"PRIX64"\n", getGuid()); -+ debugOutput(DEBUG_LEVEL_NORMAL, "\tGUID:\t\t\t0x%016" PRIX64 "\n", getGuid()); - debugOutput(DEBUG_LEVEL_NORMAL, "\tVendor Name:\t\t%s\n", getVendorName().c_str() ); - debugOutput(DEBUG_LEVEL_NORMAL, "\tModel Name:\t\t%s\n", getModelName().c_str() ); -@@ -625,5 +625,5 @@ - printMessage("Config ROM\n" ); - printMessage("\tCurrent Node Id:\t%d\n", getNodeId() ); -- printMessage("\tGUID:\t\t\t0x%016"PRIX64"\n", getGuid()); -+ printMessage("\tGUID:\t\t\t0x%016" PRIX64 "\n", getGuid()); - printMessage("\tVendor Name:\t\t%s\n", getVendorName().c_str() ); - printMessage("\tModel Name:\t\t%s\n", getModelName().c_str() ); -Index: trunk/libffado/src/libieee1394/IsoHandlerManager.cpp -=================================================================== ---- trunk/libffado/src/libieee1394/IsoHandlerManager.cpp (revision 2593) -+++ trunk/libffado/src/libieee1394/IsoHandlerManager.cpp (revision 2651) -@@ -346,9 +346,9 @@ - - debugOutputExtreme(DEBUG_LEVEL_VERBOSE, -- "(%p, %s) check handler %d: diff = %"PRId64", max = %"PRId64", now: %08X, last: %08X\n", -+ "(%p, %s) check handler %d: diff = %" PRId64 ", max = %" PRId64 ", now: %08X, last: %08X\n", - this, (m_handlerType == IsoHandler::eHT_Transmit? "Transmit": "Receive"), - i, measured_diff_ticks, max_diff_ticks, ctr_at_poll_return, last_packet_seen); - if(measured_diff_ticks > max_diff_ticks) { -- debugWarning("(%p, %s) Handler died: now: %08X, last: %08X, diff: %"PRId64" (max: %"PRId64")\n", -+ debugWarning("(%p, %s) Handler died: now: %08X, last: %08X, diff: %" PRId64 " (max: %" PRId64 ")\n", - this, (m_handlerType == IsoHandler::eHT_Transmit? "Transmit": "Receive"), - ctr_at_poll_return, last_packet_seen, measured_diff_ticks, max_diff_ticks); -@@ -439,5 +439,5 @@ - debugError("(%p) sem_timedwait error (result=%d errno=EINVAL)\n", - this, result); -- debugError("(%p) timeout_nsec=%lld ts.sec=%"PRId64" ts.nsec=%"PRId64"\n", -+ debugError("(%p) timeout_nsec=%lld ts.sec=%" PRId64 " ts.nsec=%" PRId64 "\n", - this, m_activity_wait_timeout_nsec, - (int64_t)ts.tv_sec, (int64_t)ts.tv_nsec); -@@ -446,5 +446,5 @@ - debugError("(%p) sem_timedwait error (result=%d errno=%d)\n", - this, result, errno); -- debugError("(%p) timeout_nsec=%lld ts.sec=%"PRId64" ts.nsec=%"PRId64"\n", -+ debugError("(%p) timeout_nsec=%lld ts.sec=%" PRId64 " ts.nsec=%" PRId64 "\n", - this, m_activity_wait_timeout_nsec, - (int64_t)ts.tv_sec, (int64_t)ts.tv_nsec); -@@ -1593,5 +1593,5 @@ - if((pkt_ctr & ~0x0FFFL) != pkt_ctr_ref) { - debugWarning("reconstructed CTR counter discrepancy\n"); -- debugWarning(" ingredients: %X, %X, %X, %X, %X, %d, %ld, %ld, %"PRId64"\n", -+ debugWarning(" ingredients: %X, %X, %X, %X, %X, %d, %ld, %ld, %" PRId64 "\n", - cycle, pkt_ctr_ref, pkt_ctr, - now, m_last_now, now_secs_ref, -@@ -1599,5 +1599,5 @@ - (long int)CYCLE_TIMER_GET_SECS(m_last_now), - tmp); -- debugWarning(" diffcy = %"PRId64" \n", diff_cycles); -+ debugWarning(" diffcy = %" PRId64 " \n", diff_cycles); - } - #endif -@@ -1678,5 +1678,5 @@ - if(((pkt_ctr & ~0x0FFFL) != pkt_ctr_ref) && (m_packets > m_buf_packets)) { - debugWarning("reconstructed CTR counter discrepancy\n"); -- debugWarning(" ingredients: %X, %X, %X, %X, %X, %d, %ld, %ld, %"PRId64"\n", -+ debugWarning(" ingredients: %X, %X, %X, %X, %X, %d, %ld, %ld, %" PRId64 "\n", - cycle, pkt_ctr_ref, pkt_ctr, - now, m_last_now, now_secs_ref, -@@ -1684,5 +1684,5 @@ - (long int)CYCLE_TIMER_GET_SECS(m_last_now), - tmp); -- debugWarning(" diffcy = %"PRId64" \n", diff_cycles); -+ debugWarning(" diffcy = %" PRId64 " \n", diff_cycles); - } - #endif -Index: trunk/libffado/src/libstreaming/rme/RmeTransmitStreamProcessor.cpp -=================================================================== ---- trunk/libffado/src/libstreaming/rme/RmeTransmitStreamProcessor.cpp (revision 2574) -+++ trunk/libffado/src/libstreaming/rme/RmeTransmitStreamProcessor.cpp (revision 2651) -@@ -228,5 +228,5 @@ - // we are too late - debugOutput(DEBUG_LEVEL_VERBOSE, -- "Too late: CY=%04u, TC=%04u, CUT=%04d, TSP=%011"PRIu64" (%04u)\n", -+ "Too late: CY=%04u, TC=%04u, CUT=%04d, TSP=%011" PRIu64 " (%04u)\n", - cycle, - transmit_at_cycle, cycles_until_transmit, -@@ -266,5 +266,5 @@ - { - debugOutput ( DEBUG_LEVEL_VERY_VERBOSE, -- "Too early: CY=%04u, TC=%04u, CUT=%04d, TST=%011"PRIu64" (%04u), TSP=%011"PRIu64" (%04u)\n", -+ "Too early: CY=%04u, TC=%04u, CUT=%04d, TST=%011" PRIu64 " (%04u), TSP=%011" PRIu64 " (%04u)\n", - cycle, - transmit_at_cycle, cycles_until_transmit, -@@ -275,5 +275,5 @@ - { - debugOutput ( DEBUG_LEVEL_VERY_VERBOSE, -- "Way too early: CY=%04u, TC=%04u, CUT=%04d, TST=%011"PRIu64" (%04u), TSP=%011"PRIu64" (%04u)\n", -+ "Way too early: CY=%04u, TC=%04u, CUT=%04d, TST=%011" PRIu64 " (%04u), TSP=%011" PRIu64 " (%04u)\n", - cycle, - transmit_at_cycle, cycles_until_transmit, -@@ -342,5 +342,5 @@ - uint32_t pkt_ctr ) - { -- debugOutput ( DEBUG_LEVEL_VERY_VERBOSE, "XMIT EMPTY: CY=%04lu, TSP=%011"PRIu64" (%04u)\n", -+ debugOutput ( DEBUG_LEVEL_VERY_VERBOSE, "XMIT EMPTY: CY=%04lu, TSP=%011" PRIu64 " (%04u)\n", - CYCLE_TIMER_GET_CYCLES(pkt_ctr), m_last_timestamp, - ( unsigned int ) TICKS_TO_CYCLES ( m_last_timestamp ) ); -@@ -427,5 +427,5 @@ - unsigned int cycle = CYCLE_TIMER_GET_CYCLES(pkt_ctr); - -- debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "XMIT SILENT: CY=%04u, TSP=%011"PRIu64" (%04u)\n", -+ debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "XMIT SILENT: CY=%04u, TSP=%011" PRIu64 " (%04u)\n", - cycle, m_last_timestamp, - ( unsigned int ) TICKS_TO_CYCLES ( m_last_timestamp ) ); -Index: trunk/libffado/src/libstreaming/rme/RmeReceiveStreamProcessor.cpp -=================================================================== ---- trunk/libffado/src/libstreaming/rme/RmeReceiveStreamProcessor.cpp (revision 2574) -+++ trunk/libffado/src/libstreaming/rme/RmeReceiveStreamProcessor.cpp (revision 2651) -@@ -232,5 +232,5 @@ - #ifdef DEBUG - if(isRunning()) { -- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"STMP: %"PRIu64"ticks | tpf=%f\n", -+ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"STMP: %" PRIu64 "ticks | tpf=%f\n", - m_last_timestamp, getTicksPerFrame()); - } -Index: trunk/libffado/src/libstreaming/amdtp-oxford/AmdtpOxfordReceiveStreamProcessor.cpp -=================================================================== ---- trunk/libffado/src/libstreaming/amdtp-oxford/AmdtpOxfordReceiveStreamProcessor.cpp (revision 1945) -+++ trunk/libffado/src/libstreaming/amdtp-oxford/AmdtpOxfordReceiveStreamProcessor.cpp (revision 2651) -@@ -194,5 +194,5 @@ - - debugOutput(DEBUG_LEVEL_VERY_VERBOSE, -- "Generated TSP: %16"PRIu64" %"PRId64" %d %d\n", -+ "Generated TSP: %16" PRIu64 " %" PRId64 " %d %d\n", - m_next_packet_timestamp, - m_next_packet_timestamp-m_last_timestamp, -Index: trunk/libffado/src/libstreaming/motu/MotuTransmitStreamProcessor.cpp -=================================================================== ---- trunk/libffado/src/libstreaming/motu/MotuTransmitStreamProcessor.cpp (revision 2532) -+++ trunk/libffado/src/libstreaming/motu/MotuTransmitStreamProcessor.cpp (revision 2651) -@@ -229,5 +229,5 @@ - // we are too late - debugOutput(DEBUG_LEVEL_VERBOSE, -- "Too late: CY=%04u, TC=%04u, CUT=%04d, TSP=%011"PRIu64" (%04u)\n", -+ "Too late: CY=%04u, TC=%04u, CUT=%04d, TSP=%011" PRIu64 " (%04u)\n", - cycle, - transmit_at_cycle, cycles_until_transmit, -@@ -260,5 +260,5 @@ - { - debugOutput ( DEBUG_LEVEL_VERY_VERBOSE, -- "Too early: CY=%04u, TC=%04u, CUT=%04d, TST=%011"PRIu64" (%04u), TSP=%011"PRIu64" (%04u)\n", -+ "Too early: CY=%04u, TC=%04u, CUT=%04d, TST=%011" PRIu64 " (%04u), TSP=%011" PRIu64 " (%04u)\n", - cycle, - transmit_at_cycle, cycles_until_transmit, -@@ -269,5 +269,5 @@ - { - debugOutput ( DEBUG_LEVEL_VERY_VERBOSE, -- "Way too early: CY=%04u, TC=%04u, CUT=%04d, TST=%011"PRIu64" (%04u), TSP=%011"PRIu64" (%04u)\n", -+ "Way too early: CY=%04u, TC=%04u, CUT=%04d, TST=%011" PRIu64 " (%04u), TSP=%011" PRIu64 " (%04u)\n", - cycle, - transmit_at_cycle, cycles_until_transmit, -@@ -378,5 +378,5 @@ - uint32_t pkt_ctr ) - { -- debugOutput ( DEBUG_LEVEL_VERY_VERBOSE, "XMIT EMPTY: CY=%04d, TSP=%011"PRIu64" (%04u)\n", -+ debugOutput ( DEBUG_LEVEL_VERY_VERBOSE, "XMIT EMPTY: CY=%04d, TSP=%011" PRIu64 " (%04u)\n", - (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), m_last_timestamp, - ( unsigned int ) TICKS_TO_CYCLES ( m_last_timestamp ) ); -@@ -408,5 +408,5 @@ - unsigned int cycle = CYCLE_TIMER_GET_CYCLES(pkt_ctr); - -- debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "XMIT SILENT: CY=%04u, TSP=%011"PRIu64" (%04u)\n", -+ debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "XMIT SILENT: CY=%04u, TSP=%011" PRIu64 " (%04u)\n", - cycle, m_last_timestamp, - ( unsigned int ) TICKS_TO_CYCLES ( m_last_timestamp ) ); -Index: trunk/libffado/src/libstreaming/motu/MotuReceiveStreamProcessor.cpp -=================================================================== ---- trunk/libffado/src/libstreaming/motu/MotuReceiveStreamProcessor.cpp (revision 2532) -+++ trunk/libffado/src/libstreaming/motu/MotuReceiveStreamProcessor.cpp (revision 2651) -@@ -237,5 +237,5 @@ - #ifdef DEBUG - if(isRunning()) { -- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"STMP: %"PRIu64"ticks | tpf=%f\n", -+ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"STMP: %" PRIu64 "ticks | tpf=%f\n", - m_last_timestamp, getTicksPerFrame()); - } -Index: trunk/libffado/src/libstreaming/amdtp/AmdtpTransmitStreamProcessor.cpp -=================================================================== ---- trunk/libffado/src/libstreaming/amdtp/AmdtpTransmitStreamProcessor.cpp (revision 2574) -+++ trunk/libffado/src/libstreaming/amdtp/AmdtpTransmitStreamProcessor.cpp (revision 2651) -@@ -202,5 +202,5 @@ - // we are too late - debugOutput(DEBUG_LEVEL_VERBOSE, -- "Too late: CY=%04d, TC=%04u, CUT=%04d, TSP=%011"PRIu64" (%04u)\n", -+ "Too late: CY=%04d, TC=%04u, CUT=%04d, TSP=%011" PRIu64 " (%04u)\n", - (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), - transmit_at_cycle, cycles_until_transmit, -@@ -231,5 +231,5 @@ - // for timestamp tracing - debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, -- "XMIT PKT: TSP= %011"PRIu64" (%04u) (%04u) (%04u)\n", -+ "XMIT PKT: TSP= %011" PRIu64 " (%04u) (%04u) (%04u)\n", - presentation_time, - (unsigned int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), -@@ -241,5 +241,5 @@ - { - debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, -- "Too early: CY=%04u, TC=%04u, CUT=%04d, TST=%011"PRIu64" (%04u), TSP=%011"PRId64" (%04u)\n", -+ "Too early: CY=%04u, TC=%04u, CUT=%04d, TST=%011" PRIu64 " (%04u), TSP=%011" PRId64 " (%04u)\n", - (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), - transmit_at_cycle, cycles_until_transmit, -@@ -250,5 +250,5 @@ - { - debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, -- "Way too early: CY=%04u, TC=%04u, CUT=%04d, TST=%011"PRIu64" (%04u), TSP=%011"PRId64"(%04u)\n", -+ "Way too early: CY=%04u, TC=%04u, CUT=%04d, TST=%011" PRIu64 " (%04u), TSP=%011" PRId64 "(%04u)\n", - (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), - transmit_at_cycle, cycles_until_transmit, -@@ -271,5 +271,5 @@ - { - debugOutputExtreme(DEBUG_LEVEL_VERBOSE, -- "XMIT DATA: TSP= %011"PRIu64" (%04u)\n", -+ "XMIT DATA: TSP= %011" PRIu64 " (%04u)\n", - m_last_timestamp, - (unsigned int)TICKS_TO_CYCLES(m_last_timestamp)); -@@ -303,5 +303,5 @@ - struct iec61883_packet *packet = ( struct iec61883_packet * ) data; - debugOutputExtreme(DEBUG_LEVEL_ULTRA_VERBOSE, -- "XMIT SILENT (cy %04d): TSP=%011"PRIu64" (%04u)\n", -+ "XMIT SILENT (cy %04d): TSP=%011" PRIu64 " (%04u)\n", - (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), m_last_timestamp, - (unsigned int)TICKS_TO_CYCLES(m_last_timestamp)); -@@ -341,5 +341,5 @@ - struct iec61883_packet *packet = ( struct iec61883_packet * ) data; - debugOutputExtreme(DEBUG_LEVEL_ULTRA_VERBOSE, -- "XMIT EMPTY (cy %04d): TSP=%011"PRIu64" (%04u)\n", -+ "XMIT EMPTY (cy %04d): TSP=%011" PRIu64 " (%04u)\n", - (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), m_last_timestamp, - (unsigned int)TICKS_TO_CYCLES(m_last_timestamp) ); -Index: trunk/libffado/src/libstreaming/StreamProcessorManager.cpp -=================================================================== ---- trunk/libffado/src/libstreaming/StreamProcessorManager.cpp (revision 2524) -+++ trunk/libffado/src/libstreaming/StreamProcessorManager.cpp (revision 2651) -@@ -199,5 +199,5 @@ - debugError("(%p) sem_[timed]wait error (result=%d errno=EINVAL)\n", - this, result); -- debugError("(%p) timeout_nsec=%"PRId64" ts.sec=%"PRId64" ts.nsec=%"PRId64"\n", -+ debugError("(%p) timeout_nsec=%" PRId64 " ts.sec=%" PRId64 " ts.nsec=%" PRId64 "\n", - this, m_activity_wait_timeout_nsec, - (int64_t)ts.tv_sec, (int64_t)ts.tv_nsec); -@@ -206,5 +206,5 @@ - debugError("(%p) sem_[timed]wait error (result=%d errno=%d)\n", - this, result, errno); -- debugError("(%p) timeout_nsec=%"PRId64" ts.sec=%"PRId64" ts.nsec=%"PRId64"\n", -+ debugError("(%p) timeout_nsec=%" PRId64 " ts.sec=%" PRId64 " ts.nsec=%" PRId64 "\n", - this, m_activity_wait_timeout_nsec, - (int64_t)ts.tv_sec, (int64_t)ts.tv_nsec); -@@ -636,6 +636,6 @@ - #if DEBUG_EXTREME_ENABLE - int64_t now = Util::SystemTimeSource::getCurrentTime(); -- debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "CTR pred: %"PRId64", syncdelay: %"PRId64", diff: %"PRId64"\n", ticks_at_period, ticks_at_period_margin, ticks_at_period_margin-ticks_at_period ); -- debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "PREWAIT pred: %"PRId64", now: %"PRId64", wait: %"PRId64"\n", pred_system_time_at_xfer, now, pred_system_time_at_xfer-now ); -+ debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "CTR pred: %" PRId64 ", syncdelay: %" PRId64 ", diff: %" PRId64 "\n", ticks_at_period, ticks_at_period_margin, ticks_at_period_margin-ticks_at_period ); -+ debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "PREWAIT pred: %" PRId64 ", now: %" PRId64 ", wait: %" PRId64 "\n", pred_system_time_at_xfer, now, pred_system_time_at_xfer-now ); - #endif - -@@ -645,5 +645,5 @@ - #if DEBUG_EXTREME_ENABLE - now = Util::SystemTimeSource::getCurrentTime(); -- debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "POSTWAIT pred: %"PRId64", now: %"PRId64", excess: %"PRId64"\n", pred_system_time_at_xfer, now, now-pred_system_time_at_xfer ); -+ debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "POSTWAIT pred: %" PRId64 ", now: %" PRId64 ", excess: %" PRId64 "\n", pred_system_time_at_xfer, now, now-pred_system_time_at_xfer ); - #endif - } -@@ -666,5 +666,5 @@ - // figure out where we are now - uint64_t time_of_first_sample = m_SyncSource->getTimeAtPeriod(); -- debugOutput( DEBUG_LEVEL_VERBOSE, " sync at TS=%011"PRIu64" (%03us %04uc %04ut)...\n", -+ debugOutput( DEBUG_LEVEL_VERBOSE, " sync at TS=%011" PRIu64 " (%03us %04uc %04ut)...\n", - time_of_first_sample, - (unsigned int)TICKS_TO_SECS(time_of_first_sample), -@@ -683,8 +683,8 @@ - time_of_first_sample = addTicks(time_of_first_sample, - time_for_startup_ticks); -- debugOutput( DEBUG_LEVEL_VERBOSE, " add %d frames (%011"PRIu64" ticks)...\n", -+ debugOutput( DEBUG_LEVEL_VERBOSE, " add %d frames (%011" PRIu64 " ticks)...\n", - time_for_startup_frames, time_for_startup_ticks); - -- debugOutput( DEBUG_LEVEL_VERBOSE, " => first sample at TS=%011"PRIu64" (%03us %04uc %04ut)...\n", -+ debugOutput( DEBUG_LEVEL_VERBOSE, " => first sample at TS=%011" PRIu64 " (%03us %04uc %04ut)...\n", - time_of_first_sample, - (unsigned int)TICKS_TO_SECS(time_of_first_sample), -@@ -699,10 +699,10 @@ - uint64_t time_to_start_recv = substractTicks(time_of_first_sample, - prestart_cycles_for_recv * TICKS_PER_CYCLE); -- debugOutput( DEBUG_LEVEL_VERBOSE, " => xmit starts at TS=%011"PRIu64" (%03us %04uc %04ut)...\n", -+ debugOutput( DEBUG_LEVEL_VERBOSE, " => xmit starts at TS=%011" PRIu64 " (%03us %04uc %04ut)...\n", - time_to_start_xmit, - (unsigned int)TICKS_TO_SECS(time_to_start_xmit), - (unsigned int)TICKS_TO_CYCLES(time_to_start_xmit), - (unsigned int)TICKS_TO_OFFSET(time_to_start_xmit)); -- debugOutput( DEBUG_LEVEL_VERBOSE, " => recv starts at TS=%011"PRIu64" (%03us %04uc %04ut)...\n", -+ debugOutput( DEBUG_LEVEL_VERBOSE, " => recv starts at TS=%011" PRIu64 " (%03us %04uc %04ut)...\n", - time_to_start_recv, - (unsigned int)TICKS_TO_SECS(time_to_start_recv), -@@ -756,5 +756,5 @@ - signed int fc; - (*it)->getBufferHeadTimestamp ( &ts, &fc ); -- debugOutput( DEBUG_LEVEL_VERBOSE, " transmit buffer tail %010"PRId64" => head TS %010"PRIu64", fc=%d...\n", -+ debugOutput( DEBUG_LEVEL_VERBOSE, " transmit buffer tail %010" PRId64 " => head TS %010" PRIu64 ", fc=%d...\n", - time_of_first_sample, (uint64_t)ts, fc); - } -@@ -786,5 +786,5 @@ - } - if(!m_SyncSource->scheduleStartRunning(time_to_start_sync)) { -- debugError("m_SyncSource->scheduleStartRunning(%11"PRIu64") failed\n", time_to_start_sync); -+ debugError("m_SyncSource->scheduleStartRunning(%11" PRIu64 ") failed\n", time_to_start_sync); - return false; - } -@@ -796,5 +796,5 @@ - if(*it != m_SyncSource) { - if(!(*it)->scheduleStartRunning(time_to_start_recv)) { -- debugError("%p->scheduleStartRunning(%11"PRIu64") failed\n", *it, time_to_start_recv); -+ debugError("%p->scheduleStartRunning(%11" PRIu64 ") failed\n", *it, time_to_start_recv); - return false; - } -@@ -806,5 +806,5 @@ - if(*it != m_SyncSource) { - if(!(*it)->scheduleStartRunning(time_to_start_xmit)) { -- debugError("%p->scheduleStartRunning(%11"PRIu64") failed\n", *it, time_to_start_xmit); -+ debugError("%p->scheduleStartRunning(%11" PRIu64 ") failed\n", *it, time_to_start_xmit); - return false; - } -@@ -839,5 +839,5 @@ - #endif - -- debugOutput( DEBUG_LEVEL_VERBOSE, " initial time of transfer %010"PRId64", rate %f...\n", -+ debugOutput( DEBUG_LEVEL_VERBOSE, " initial time of transfer %010" PRId64 ", rate %f...\n", - m_time_of_transfer, rate); - -@@ -858,5 +858,5 @@ - - int64_t transmit_tail_timestamp = addTicks(m_time_of_transfer, delay_in_ticks); -- debugOutput( DEBUG_LEVEL_VERBOSE, " preset transmit tail TS %010"PRId64", rate %f...\n", -+ debugOutput( DEBUG_LEVEL_VERBOSE, " preset transmit tail TS %010" PRId64 ", rate %f...\n", - transmit_tail_timestamp, rate); - -@@ -869,5 +869,5 @@ - signed int fc; - (*it)->getBufferHeadTimestamp ( &ts, &fc ); -- debugOutput( DEBUG_LEVEL_VERBOSE, " => transmit head TS %010"PRId64", fc=%d...\n", -+ debugOutput( DEBUG_LEVEL_VERBOSE, " => transmit head TS %010" PRId64 ", fc=%d...\n", - (uint64_t)ts, fc); - } -@@ -926,5 +926,5 @@ - StreamProcessor *s = m_ReceiveProcessors.at(i); - diff = diffTicks(m_SyncSource->getTimeAtPeriod(), s->getTimeAtPeriod()); -- debugOutput( DEBUG_LEVEL_VERY_VERBOSE, " offset between SyncSP %p and SP %p is %"PRId64" ticks...\n", -+ debugOutput( DEBUG_LEVEL_VERY_VERBOSE, " offset between SyncSP %p and SP %p is %" PRId64 " ticks...\n", - m_SyncSource, s, diff); - if ( nb_sync_runs == periods_per_align_try ) { -@@ -948,5 +948,5 @@ - diff_between_streams[i] /= periods_per_align_try; - diff_between_streams_frames[i] = (int)roundf(diff_between_streams[i] / s->getTicksPerFrame()); -- debugOutput( DEBUG_LEVEL_VERBOSE, " avg offset between SyncSP %p and SP %p is %"PRId64" ticks, %d frames...\n", -+ debugOutput( DEBUG_LEVEL_VERBOSE, " avg offset between SyncSP %p and SP %p is %" PRId64 " ticks, %d frames...\n", - m_SyncSource, s, diff_between_streams[i], diff_between_streams_frames[i]); - -@@ -1230,6 +1230,6 @@ - #if DEBUG_EXTREME_ENABLE - int64_t now = Util::SystemTimeSource::getCurrentTime(); -- debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "CTR pred: %"PRId64", syncdelay: %"PRId64", diff: %"PRId64"\n", ticks_at_period, ticks_at_period_margin, ticks_at_period_margin-ticks_at_period ); -- debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "PREWAIT pred: %"PRId64", now: %"PRId64", wait: %"PRId64"\n", pred_system_time_at_xfer, now, pred_system_time_at_xfer-now ); -+ debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "CTR pred: %" PRId64 ", syncdelay: %" PRId64 ", diff: %" PRId64 "\n", ticks_at_period, ticks_at_period_margin, ticks_at_period_margin-ticks_at_period ); -+ debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "PREWAIT pred: %" PRId64 ", now: %" PRId64 ", wait: %" PRId64 "\n", pred_system_time_at_xfer, now, pred_system_time_at_xfer-now ); - #endif - -@@ -1239,5 +1239,5 @@ - #if DEBUG_EXTREME_ENABLE - now = Util::SystemTimeSource::getCurrentTime(); -- debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "POSTWAIT pred: %"PRId64", now: %"PRId64", excess: %"PRId64"\n", pred_system_time_at_xfer, now, now-pred_system_time_at_xfer ); -+ debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "POSTWAIT pred: %" PRId64 ", now: %" PRId64 ", excess: %" PRId64 "\n", pred_system_time_at_xfer, now, now-pred_system_time_at_xfer ); - #endif - -@@ -1369,5 +1369,5 @@ - // so 50 ticks = 10%, which is a rather large jitter value. - if(diff-ticks_per_period > m_max_diff_ticks || diff-ticks_per_period < -m_max_diff_ticks) { -- debugOutput(DEBUG_LEVEL_VERBOSE, "rather large TSP difference TS=%011"PRIu64" => TS=%011"PRIu64" (%d, nom %d)\n", -+ debugOutput(DEBUG_LEVEL_VERBOSE, "rather large TSP difference TS=%011" PRIu64 " => TS=%011" PRIu64 " (%d, nom %d)\n", - m_time_of_transfer2, m_time_of_transfer, diff, ticks_per_period); - } -@@ -1376,5 +1376,5 @@ - - debugOutputExtreme(DEBUG_LEVEL_VERBOSE, -- "transfer period %d at %"PRIu64" ticks...\n", -+ "transfer period %d at %" PRIu64 " ticks...\n", - m_nbperiods, m_time_of_transfer); - -@@ -1392,5 +1392,5 @@ - } - debugOutputExtreme( DEBUG_LEVEL_VERY_VERBOSE, -- "XF at %011"PRIu64" ticks, RBF=%d, XBF=%d, SUM=%d...\n", -+ "XF at %011" PRIu64 " ticks, RBF=%d, XBF=%d, SUM=%d...\n", - m_time_of_transfer, rcv_bf, xmt_bf, rcv_bf+xmt_bf); - #endif -@@ -1467,5 +1467,5 @@ - if(m_SyncSource == NULL) return false; - debugOutputExtreme( DEBUG_LEVEL_VERY_VERBOSE, -- "transfer(%d) at TS=%011"PRIu64" (%03us %04uc %04ut)...\n", -+ "transfer(%d) at TS=%011" PRIu64 " (%03us %04uc %04ut)...\n", - t, m_time_of_transfer, - (unsigned int)TICKS_TO_SECS(m_time_of_transfer), -@@ -1481,5 +1481,5 @@ - ++it ) { - if(!(*it)->getFrames(m_period, m_time_of_transfer)) { -- debugWarning("could not getFrames(%u, %11"PRIu64") from stream processor (%p)\n", -+ debugWarning("could not getFrames(%u, %11" PRIu64 ") from stream processor (%p)\n", - m_period, m_time_of_transfer,*it); - retval &= false; // buffer underrun -@@ -1504,5 +1504,5 @@ - - if(!(*it)->putFrames(m_period, transmit_timestamp)) { -- debugWarning("could not putFrames(%u,%"PRIu64") to stream processor (%p)\n", -+ debugWarning("could not putFrames(%u,%" PRIu64 ") to stream processor (%p)\n", - m_period, transmit_timestamp, *it); - retval &= false; // buffer underrun -@@ -1545,5 +1545,5 @@ - if(m_SyncSource == NULL) return false; - debugOutput( DEBUG_LEVEL_VERY_VERBOSE, -- "transferSilence(%d) at TS=%011"PRIu64" (%03us %04uc %04ut)...\n", -+ "transferSilence(%d) at TS=%011" PRIu64 " (%03us %04uc %04ut)...\n", - t, m_time_of_transfer, - (unsigned int)TICKS_TO_SECS(m_time_of_transfer), -@@ -1559,5 +1559,5 @@ - ++it ) { - if(!(*it)->dropFrames(m_period, m_time_of_transfer)) { -- debugWarning("could not dropFrames(%u, %11"PRIu64") from stream processor (%p)\n", -+ debugWarning("could not dropFrames(%u, %11" PRIu64 ") from stream processor (%p)\n", - m_period, m_time_of_transfer,*it); - retval &= false; // buffer underrun -@@ -1582,5 +1582,5 @@ - - if(!(*it)->putSilenceFrames(m_period, transmit_timestamp)) { -- debugWarning("could not putSilenceFrames(%u,%"PRIu64") to stream processor (%p)\n", -+ debugWarning("could not putSilenceFrames(%u,%" PRIu64 ") to stream processor (%p)\n", - m_period, transmit_timestamp, *it); - retval &= false; // buffer underrun -Index: trunk/libffado/src/libstreaming/generic/StreamProcessor.cpp -=================================================================== ---- trunk/libffado/src/libstreaming/generic/StreamProcessor.cpp (revision 2593) -+++ trunk/libffado/src/libstreaming/generic/StreamProcessor.cpp (revision 2651) -@@ -304,5 +304,5 @@ - m_data_buffer->getBufferTailTimestamp(&ts,&fc); - -- debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "=> NPD="TIMESTAMP_FORMAT_SPEC", LTS="TIMESTAMP_FORMAT_SPEC", FC=%5u, TPF=%f\n", -+ debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "=> NPD=" TIMESTAMP_FORMAT_SPEC ", LTS=" TIMESTAMP_FORMAT_SPEC ", FC=%5u, TPF=%f\n", - next_period_boundary, ts, fc, getTicksPerFrame() - ); -@@ -317,5 +317,5 @@ - m_data_buffer->getBufferTailTimestamp(&ts,&fc); - -- debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "=> NPD="TIMESTAMP_FORMAT_SPEC", LTS="TIMESTAMP_FORMAT_SPEC", FC=%5u, TPF=%f\n", -+ debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "=> NPD=" TIMESTAMP_FORMAT_SPEC ", LTS=" TIMESTAMP_FORMAT_SPEC ", FC=%5u, TPF=%f\n", - next_period_boundary, ts, fc, getTicksPerFrame() - ); -@@ -465,5 +465,5 @@ - if (m_last_timestamp > 0 && m_last_timestamp2 > 0) { - int64_t tsp_diff = diffTicks(m_last_timestamp, m_last_timestamp2); -- debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "TSP diff: %"PRId64"\n", tsp_diff); -+ debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "TSP diff: %" PRId64 "\n", tsp_diff); - double tsp_diff_d = tsp_diff; - double fs_syt = 1.0/tsp_diff_d; -@@ -487,5 +487,5 @@ - if(diff-ticks_per_packet > m_max_diff_ticks || diff-ticks_per_packet < -m_max_diff_ticks) { - debugOutput(DEBUG_LEVEL_VERBOSE, -- "cy %04d rather large TSP difference TS=%011"PRIu64" => TS=%011"PRIu64" (%d, nom %d)\n", -+ "cy %04d rather large TSP difference TS=%011" PRIu64 " => TS=%011" PRIu64 " (%d, nom %d)\n", - (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), m_last_timestamp2, - m_last_timestamp, diff, ticks_per_packet); -@@ -498,5 +498,5 @@ - diff = diffTicks(last_timestamp_fixed, m_last_timestamp2); - if(diff-ticks_per_packet < 50 && diff-ticks_per_packet > -50) { -- debugWarning("cy %04d rather large TSP difference TS=%011"PRIu64" => TS=%011"PRIu64" (%d, nom %d)\n", -+ debugWarning("cy %04d rather large TSP difference TS=%011" PRIu64 " => TS=%011" PRIu64 " (%d, nom %d)\n", - (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), m_last_timestamp2, - m_last_timestamp, diff, ticks_per_packet); -@@ -508,5 +508,5 @@ - diff = diffTicks(last_timestamp_fixed, m_last_timestamp2); - if(diff-ticks_per_packet < 50 && diff-ticks_per_packet > -50) { -- debugWarning("cy %04d rather large TSP difference TS=%011"PRIu64" => TS=%011"PRIu64" (%d, nom %d)\n", -+ debugWarning("cy %04d rather large TSP difference TS=%011" PRIu64 " => TS=%011" PRIu64 " (%d, nom %d)\n", - (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), m_last_timestamp2, - m_last_timestamp, diff, ticks_per_packet); -@@ -517,5 +517,5 @@ - } - debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, -- "%04u %011"PRIu64" %011"PRIu64" %d %d\n", -+ "%04u %011" PRIu64 " %011" PRIu64 " %d %d\n", - (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), - m_last_timestamp2, m_last_timestamp, -@@ -525,5 +525,5 @@ - - debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, -- "RECV: CY=%04u TS=%011"PRIu64"\n", -+ "RECV: CY=%04u TS=%011" PRIu64 "\n", - (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), - m_last_timestamp); -@@ -694,5 +694,5 @@ - if (result == eCRV_Packet) { - debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, -- "XMIT SILENT: CY=%04u TS=%011"PRIu64"\n", -+ "XMIT SILENT: CY=%04u TS=%011" PRIu64 "\n", - (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), m_last_timestamp); - -@@ -745,5 +745,5 @@ - if (result == eCRV_Packet || result == eCRV_Defer) { - debugOutputExtreme(DEBUG_LEVEL_VERBOSE, -- "XMIT: CY=%04u TS=%011"PRIu64"\n", -+ "XMIT: CY=%04u TS=%011" PRIu64 "\n", - (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), m_last_timestamp); - -@@ -782,5 +782,5 @@ - if (m_last_timestamp > 0 && m_last_timestamp2 > 0) { - int64_t tsp_diff = diffTicks(m_last_timestamp, m_last_timestamp2); -- debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "TSP diff: %"PRId64"\n", tsp_diff); -+ debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "TSP diff: %" PRId64 "\n", tsp_diff); - double tsp_diff_d = tsp_diff; - double fs_syt = 1.0/tsp_diff_d; -@@ -791,5 +791,5 @@ - debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "Nom fs: %12f, Instantanous fs: %12f, diff: %12f (%12f)\n", - fs_nom, fs_syt, fs_diff, fs_diff_norm); --// debugOutput(DEBUG_LEVEL_VERBOSE, "Diff fs: %12f, m_last_timestamp: %011"PRIu64", m_last_timestamp2: %011"PRIu64"\n", -+// debugOutput(DEBUG_LEVEL_VERBOSE, "Diff fs: %12f, m_last_timestamp: %011" PRIu64 ", m_last_timestamp2: %011" PRIu64 "\n", - // fs_diff, m_last_timestamp, m_last_timestamp2); - if (fs_diff_norm > m_max_fs_diff_norm || fs_diff_norm < -m_max_fs_diff_norm) { -@@ -805,10 +805,10 @@ - if(diff-ticks_per_packet > m_max_diff_ticks || diff-ticks_per_packet < -m_max_diff_ticks) { - debugOutput(DEBUG_LEVEL_VERBOSE, -- "cy %04d, rather large TSP difference TS=%011"PRIu64" => TS=%011"PRIu64" (%d, nom %d)\n", -+ "cy %04d, rather large TSP difference TS=%011" PRIu64 " => TS=%011" PRIu64 " (%d, nom %d)\n", - (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), m_last_timestamp2, - m_last_timestamp, diff, ticks_per_packet); - } - debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, -- "%04d %011"PRIu64" %011"PRIu64" %d %d\n", -+ "%04d %011" PRIu64 " %011" PRIu64 " %d %d\n", - (int)CYCLE_TIMER_GET_CYCLES(pkt_ctr), m_last_timestamp2, - m_last_timestamp, diff, ticks_per_packet); -@@ -903,5 +903,5 @@ - bool result; - debugOutputExtreme( DEBUG_LEVEL_VERBOSE, -- "(%p, %s) getFrames(%d, %11"PRIu64")\n", -+ "(%p, %s) getFrames(%d, %11" PRIu64 ")\n", - this, getTypeString(), nbframes, ts); - assert( getType() == ePT_Receive ); -@@ -934,13 +934,13 @@ - lag_frames = (((float)lag_ticks) / srate); - debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, -- "stream (%p): drifts %6d ticks = %10.5f frames (rate=%10.5f), %"PRId64", %"PRIu64", %d\n", -+ "stream (%p): drifts %6d ticks = %10.5f frames (rate=%10.5f), %" PRId64 ", %" PRIu64 ", %d\n", - this, lag_ticks, lag_frames, srate, ts, ts_expected, fc); - if (lag_frames >= 1.0) { - // the stream lags -- debugOutput(DEBUG_LEVEL_VERBOSE, "stream (%p): lags with %6d ticks = %10.5f frames (rate=%10.5f), %"PRId64", %"PRIu64", %d\n", -+ debugOutput(DEBUG_LEVEL_VERBOSE, "stream (%p): lags with %6d ticks = %10.5f frames (rate=%10.5f), %" PRId64 ", %" PRIu64 ", %d\n", - this, lag_ticks, lag_frames, srate, ts, ts_expected, fc); - } else if (lag_frames <= -1.0) { - // the stream leads -- debugOutput(DEBUG_LEVEL_VERBOSE, "stream (%p): leads with %6d ticks = %10.5f frames (rate=%10.5f), %"PRId64", %"PRIu64", %d\n", -+ debugOutput(DEBUG_LEVEL_VERBOSE, "stream (%p): leads with %6d ticks = %10.5f frames (rate=%10.5f), %" PRId64 ", %" PRIu64 ", %d\n", - this, lag_ticks, lag_frames, srate, ts, ts_expected, fc); - } -@@ -956,5 +956,5 @@ - { - debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, -- "stream (%p): dry run %d frames (@ ts=%"PRId64")\n", -+ "stream (%p): dry run %d frames (@ ts=%" PRId64 ")\n", - this, nbframes, ts); - // dry run on this side means that we put silence in all enabled ports -@@ -967,5 +967,5 @@ - { - bool result; -- debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "StreamProcessor::dropFrames(%d, %"PRId64")\n", nbframes, ts); -+ debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "StreamProcessor::dropFrames(%d, %" PRId64 ")\n", nbframes, ts); - result = m_data_buffer->dropFrames(nbframes); - SIGNAL_ACTIVITY_ISO_RECV; -@@ -977,5 +977,5 @@ - bool result; - debugOutputExtreme( DEBUG_LEVEL_VERBOSE, -- "(%p, %s) putFrames(%d, %11"PRIu64")\n", -+ "(%p, %s) putFrames(%d, %11" PRIu64 ")\n", - this, getTypeString(), nbframes, ts); - assert( getType() == ePT_Transmit ); -@@ -990,10 +990,10 @@ - { - debugOutputExtreme(DEBUG_LEVEL_ULTRA_VERBOSE, -- "StreamProcessor::putFramesWet(%d, %"PRIu64")\n", -+ "StreamProcessor::putFramesWet(%d, %" PRIu64 ")\n", - nbframes, ts); - // transfer the data - m_data_buffer->blockProcessWriteFrames(nbframes, ts); - debugOutputExtreme(DEBUG_LEVEL_ULTRA_VERBOSE, -- " New timestamp: %"PRIu64"\n", ts); -+ " New timestamp: %" PRIu64 "\n", ts); - return true; // FIXME: what about failure? - } -@@ -1003,5 +1003,5 @@ - { - debugOutputExtreme(DEBUG_LEVEL_ULTRA_VERBOSE, -- "StreamProcessor::putFramesDry(%d, %"PRIu64")\n", -+ "StreamProcessor::putFramesDry(%d, %" PRIu64 ")\n", - nbframes, ts); - // do nothing -@@ -1013,5 +1013,5 @@ - { - debugOutput(DEBUG_LEVEL_VERY_VERBOSE, -- "StreamProcessor::putSilenceFrames(%d, %"PRIu64")\n", -+ "StreamProcessor::putSilenceFrames(%d, %" PRIu64 ")\n", - nbframes, ts); - -@@ -1233,10 +1233,10 @@ - #ifdef DEBUG - uint64_t now = m_1394service.getCycleTimerTicks(); -- debugOutput(DEBUG_LEVEL_VERBOSE," Now : %011"PRIu64" (%03us %04uc %04ut)\n", -+ debugOutput(DEBUG_LEVEL_VERBOSE," Now : %011" PRIu64 " (%03us %04uc %04ut)\n", - now, - (unsigned int)TICKS_TO_SECS(now), - (unsigned int)TICKS_TO_CYCLES(now), - (unsigned int)TICKS_TO_OFFSET(now)); -- debugOutput(DEBUG_LEVEL_VERBOSE," Start at : %011"PRIu64" (%03us %04uc %04ut)\n", -+ debugOutput(DEBUG_LEVEL_VERBOSE," Start at : %011" PRIu64 " (%03us %04uc %04ut)\n", - tx, - (unsigned int)TICKS_TO_SECS(tx), -@@ -1279,10 +1279,10 @@ - #ifdef DEBUG - uint64_t now = m_1394service.getCycleTimerTicks(); -- debugOutput(DEBUG_LEVEL_VERBOSE," Now : %011"PRIu64" (%03us %04uc %04ut)\n", -+ debugOutput(DEBUG_LEVEL_VERBOSE," Now : %011" PRIu64 " (%03us %04uc %04ut)\n", - now, - (unsigned int)TICKS_TO_SECS(now), - (unsigned int)TICKS_TO_CYCLES(now), - (unsigned int)TICKS_TO_OFFSET(now)); -- debugOutput(DEBUG_LEVEL_VERBOSE," Start at : %011"PRIu64" (%03us %04uc %04ut)\n", -+ debugOutput(DEBUG_LEVEL_VERBOSE," Start at : %011" PRIu64 " (%03us %04uc %04ut)\n", - tx, - (unsigned int)TICKS_TO_SECS(tx), -@@ -1303,10 +1303,10 @@ - #ifdef DEBUG - uint64_t now = m_1394service.getCycleTimerTicks(); -- debugOutput(DEBUG_LEVEL_VERBOSE," Now : %011"PRIu64" (%03us %04uc %04ut)\n", -+ debugOutput(DEBUG_LEVEL_VERBOSE," Now : %011" PRIu64 " (%03us %04uc %04ut)\n", - now, - (unsigned int)TICKS_TO_SECS(now), - (unsigned int)TICKS_TO_CYCLES(now), - (unsigned int)TICKS_TO_OFFSET(now)); -- debugOutput(DEBUG_LEVEL_VERBOSE," Stop at : %011"PRIu64" (%03us %04uc %04ut)\n", -+ debugOutput(DEBUG_LEVEL_VERBOSE," Stop at : %011" PRIu64 " (%03us %04uc %04ut)\n", - tx, - (unsigned int)TICKS_TO_SECS(tx), -@@ -1328,10 +1328,10 @@ - #ifdef DEBUG - uint64_t now = m_1394service.getCycleTimerTicks(); -- debugOutput(DEBUG_LEVEL_VERBOSE," Now : %011"PRIu64" (%03us %04uc %04ut)\n", -+ debugOutput(DEBUG_LEVEL_VERBOSE," Now : %011" PRIu64 " (%03us %04uc %04ut)\n", - now, - (unsigned int)TICKS_TO_SECS(now), - (unsigned int)TICKS_TO_CYCLES(now), - (unsigned int)TICKS_TO_OFFSET(now)); -- debugOutput(DEBUG_LEVEL_VERBOSE," Stop at : %011"PRIu64" (%03us %04uc %04ut)\n", -+ debugOutput(DEBUG_LEVEL_VERBOSE," Stop at : %011" PRIu64 " (%03us %04uc %04ut)\n", - tx, - (unsigned int)TICKS_TO_SECS(tx), -@@ -1953,5 +1953,5 @@ - m_IsoHandlerManager.dumpInfoForStream(this); - uint64_t now = m_1394service.getCycleTimerTicks(); -- debugOutputShort( DEBUG_LEVEL_NORMAL, " Now : %011"PRIu64" (%03us %04uc %04ut)\n", -+ debugOutputShort( DEBUG_LEVEL_NORMAL, " Now : %011" PRIu64 " (%03us %04uc %04ut)\n", - now, - (unsigned int)TICKS_TO_SECS(now), -Index: trunk/libffado/src/rme/fireface_flash.cpp -=================================================================== ---- trunk/libffado/src/rme/fireface_flash.cpp (revision 2574) -+++ trunk/libffado/src/rme/fireface_flash.cpp (revision 2651) -@@ -581,13 +581,13 @@ - - i = read_flash(addr, (quadlet_t *)(vbuf), RME_FF_FLASH_MIXER_ARRAY_SIZE/4); -- debugOutput(DEBUG_LEVEL_VERBOSE, "read_flash(%"PRId64") returned %d\n", addr, i); -+ debugOutput(DEBUG_LEVEL_VERBOSE, "read_flash(%" PRId64 ") returned %d\n", addr, i); - - addr += RME_FF_FLASH_MIXER_ARRAY_SIZE; - i = read_flash(addr, (quadlet_t *)(pbuf), RME_FF_FLASH_MIXER_ARRAY_SIZE/4); -- debugOutput(DEBUG_LEVEL_VERBOSE, "read_flash(%"PRId64") returned %d\n", addr, i); -+ debugOutput(DEBUG_LEVEL_VERBOSE, "read_flash(%" PRId64 ") returned %d\n", addr, i); - - addr += RME_FF_FLASH_MIXER_ARRAY_SIZE; - i = read_flash(addr, (quadlet_t *)obuf, RME_FF_FLASH_SECTOR_SIZE_QUADS); -- debugOutput(DEBUG_LEVEL_VERBOSE, "read_flash(%"PRId64") returned %d\n", addr, i); -+ debugOutput(DEBUG_LEVEL_VERBOSE, "read_flash(%" PRId64 ") returned %d\n", addr, i); - - for (out=0; out maxlen) { -- debugError("requested length too large: %zd > %"PRIu64"\n", length, maxlen); -+ debugError("requested length too large: %zd > %" PRIu64 "\n", length, maxlen); - return DICE_INVALID_OFFSET; - } -Index: trunk/libffado/src/dice/dice_avdevice.cpp -=================================================================== ---- trunk/libffado/src/dice/dice_avdevice.cpp (revision 2597) -+++ trunk/libffado/src/dice/dice_avdevice.cpp (revision 2651) -@@ -461,5 +461,5 @@ - readGlobalReg(DICE_REGISTER_GLOBAL_CLOCKCAPABILITIES, &clock_caps); - uint16_t clocks_supported = (clock_caps >> 16) & 0xFFFF; -- debugOutput(DEBUG_LEVEL_VERBOSE," Clock caps: 0x%08"PRIX32", supported=0x%04X\n", -+ debugOutput(DEBUG_LEVEL_VERBOSE," Clock caps: 0x%08" PRIX32 ", supported=0x%04X\n", - clock_caps, clocks_supported); - -@@ -467,5 +467,5 @@ - readGlobalReg(DICE_REGISTER_GLOBAL_CLOCK_SELECT, &clock_select); - byte_t clock_selected = (clock_select) & 0xFF; -- debugOutput(DEBUG_LEVEL_VERBOSE," Clock select: 0x%08"PRIX32", selected=0x%04X\n", -+ debugOutput(DEBUG_LEVEL_VERBOSE," Clock select: 0x%08" PRIX32 ", selected=0x%04X\n", - clock_select, clock_selected); - quadlet_t extended_status; -@@ -474,5 +474,5 @@ - uint16_t clock_status = (extended_status) & 0xFFFF; - uint16_t clock_slipping = (extended_status >> 16) & 0xFFFF; -- debugOutput(DEBUG_LEVEL_VERBOSE," Clock status: 0x%08"PRIX32", status=0x%04X, slip=0x%04X\n", -+ debugOutput(DEBUG_LEVEL_VERBOSE," Clock status: 0x%08" PRIX32 ", status=0x%04X, slip=0x%04X\n", - extended_status, clock_status, clock_slipping); - #endif -@@ -625,5 +625,5 @@ - readGlobalReg(DICE_REGISTER_GLOBAL_CLOCKCAPABILITIES, &clock_caps); - uint16_t clocks_supported = (clock_caps >> 16) & 0xFFFF; -- debugOutput(DEBUG_LEVEL_VERBOSE," Clock caps: 0x%08"PRIX32", supported=0x%04X\n", -+ debugOutput(DEBUG_LEVEL_VERBOSE," Clock caps: 0x%08" PRIX32 ", supported=0x%04X\n", - clock_caps, clocks_supported); - -@@ -631,5 +631,5 @@ - readGlobalReg(DICE_REGISTER_GLOBAL_CLOCK_SELECT, &clock_select); - byte_t id = (clock_select) & 0xFF; -- debugOutput(DEBUG_LEVEL_VERBOSE," Clock select: 0x%08"PRIX32", selected=0x%04X\n", -+ debugOutput(DEBUG_LEVEL_VERBOSE," Clock select: 0x%08" PRIX32 ", selected=0x%04X\n", - clock_select, id); - quadlet_t extended_status; -@@ -638,5 +638,5 @@ - uint16_t clock_status = (extended_status) & 0xFFFF; - uint16_t clock_slipping = (extended_status >> 16) & 0xFFFF; -- debugOutput(DEBUG_LEVEL_VERBOSE," Clock status: 0x%08"PRIX32", status=0x%04X, slip=0x%04X\n", -+ debugOutput(DEBUG_LEVEL_VERBOSE," Clock status: 0x%08" PRIX32 ", status=0x%04X, slip=0x%04X\n", - extended_status, clock_status, clock_slipping); - #endif -@@ -723,8 +723,8 @@ - - readGlobalRegBlock(DICE_REGISTER_GLOBAL_OWNER, reinterpret_cast(&tmp_octlet), sizeof(fb_octlet_t)); -- printMessage(" Owner : 0x%016"PRIX64"\n",tmp_octlet); -+ printMessage(" Owner : 0x%016" PRIX64 "\n",tmp_octlet); - - readGlobalReg(DICE_REGISTER_GLOBAL_NOTIFICATION, &tmp_quadlet); -- printMessage(" Notification : 0x%08"PRIX32"\n",tmp_quadlet); -+ printMessage(" Notification : 0x%08" PRIX32 "\n",tmp_quadlet); - - readGlobalReg(DICE_REGISTER_GLOBAL_NOTIFICATION, &tmp_quadlet); -@@ -744,14 +744,14 @@ - - readGlobalReg(DICE_REGISTER_GLOBAL_EXTENDED_STATUS, &tmp_quadlet); -- printMessage(" Extended Status : 0x%08"PRIX32"\n", tmp_quadlet); -+ printMessage(" Extended Status : 0x%08" PRIX32 "\n", tmp_quadlet); - - readGlobalReg(DICE_REGISTER_GLOBAL_SAMPLE_RATE, &tmp_quadlet); -- printMessage(" Samplerate : 0x%08"PRIX32" (%"PRIu32")\n", tmp_quadlet, tmp_quadlet); -+ printMessage(" Samplerate : 0x%08" PRIX32 " (%" PRIu32 ")\n", tmp_quadlet, tmp_quadlet); - - readGlobalRegBlock(DICE_REGISTER_GLOBAL_VERSION, reinterpret_cast(&tmp_quadlet), sizeof(fb_quadlet_t)); -- printMessage(" Version : 0x%08"PRIX32"\n", tmp_quadlet); -+ printMessage(" Version : 0x%08" PRIX32 "\n", tmp_quadlet); - - readGlobalReg(DICE_REGISTER_GLOBAL_VERSION, &tmp_quadlet); -- printMessage(" Version : 0x%08"PRIX32" (%u.%u.%u.%u)\n", -+ printMessage(" Version : 0x%08" PRIX32 " (%u.%u.%u.%u)\n", - tmp_quadlet, - DICE_DRIVER_SPEC_VERSION_NUMBER_GET_A(tmp_quadlet), -@@ -762,5 +762,5 @@ - - readGlobalReg(DICE_REGISTER_GLOBAL_CLOCKCAPABILITIES, &tmp_quadlet); -- printMessage(" Clock caps : 0x%08"PRIX32"\n", tmp_quadlet); -+ printMessage(" Clock caps : 0x%08" PRIX32 "\n", tmp_quadlet); - - stringlist names=getClockSourceNameString(); -@@ -790,7 +790,7 @@ - - readTxReg(i, DICE_REGISTER_TX_AC3_CAPABILITIES_BASE, &tmp_quadlet); -- printMessage(" AC3 caps : 0x%08"PRIX32"\n", tmp_quadlet); -+ printMessage(" AC3 caps : 0x%08" PRIX32 "\n", tmp_quadlet); - readTxReg(i, DICE_REGISTER_TX_AC3_ENABLE_BASE, &tmp_quadlet); -- printMessage(" AC3 enable : 0x%08"PRIX32"\n", tmp_quadlet); -+ printMessage(" AC3 enable : 0x%08" PRIX32 "\n", tmp_quadlet); - - stringlist channel_names=getTxNameString(i); -@@ -820,7 +820,7 @@ - - readRxReg(i, DICE_REGISTER_RX_AC3_CAPABILITIES_BASE, &tmp_quadlet); -- printMessage(" AC3 caps : 0x%08"PRIX32"\n", tmp_quadlet); -+ printMessage(" AC3 caps : 0x%08" PRIX32 "\n", tmp_quadlet); - readRxReg(i, DICE_REGISTER_RX_AC3_ENABLE_BASE, &tmp_quadlet); -- printMessage(" AC3 enable : 0x%08"PRIX32"\n", tmp_quadlet); -+ printMessage(" AC3 enable : 0x%08" PRIX32 "\n", tmp_quadlet); - - stringlist channel_names = getRxNameString(i); -@@ -1193,5 +1193,5 @@ - - if (result != DICE_OWNER_NO_OWNER && result != swap_value) { -- debugWarning("Unexpected GLOBAL_OWNER register value: 0x%016"PRIX64"\n", result); -+ debugWarning("Unexpected GLOBAL_OWNER register value: 0x%016" PRIX64 "\n", result); - fprintf(stderr, "Could not register ourselves as owner of %s.\n", getNickname().c_str()); - fprintf(stderr, "If the snd-dice kernel driver is present, " -@@ -1379,5 +1379,5 @@ - } - if(reg_isoch != 0xFFFFFFFFUL) { -- debugWarning("ISO_CHANNEL register != 0xFFFFFFFF (=0x%08"PRIX32") for A%s %d\n", reg_isoch, dir, n); -+ debugWarning("ISO_CHANNEL register != 0xFFFFFFFF (=0x%08" PRIX32 ") for A%s %d\n", reg_isoch, dir, n); - /* The ISO channel has already been registered, probably - * because the device was running before and jackd just -@@ -1396,5 +1396,5 @@ - // ask the IRM to use this channel - if (get1394Service().allocateFixedIsoChannelGeneric(reg_isoch,p->getMaxPacketSize()) < 0) { -- debugError("Cannot allocate iso channel (0x%08"PRIX32") for ATX %d\n", reg_isoch, n); -+ debugError("Cannot allocate iso channel (0x%08" PRIX32 ") for ATX %d\n", reg_isoch, n); - } - #endif -@@ -1424,5 +1424,5 @@ - } - if(reg_isoch != isochannel) { -- debugError("ISO_CHANNEL register != 0x%08"PRIX32" (=0x%08"PRIX32") for A%s %d\n", isochannel, reg_isoch, dir, n); -+ debugError("ISO_CHANNEL register != 0x%08" PRIX32 " (=0x%08" PRIX32 ") for A%s %d\n", isochannel, reg_isoch, dir, n); - return false; - } -@@ -1738,8 +1738,8 @@ - bool - Device::readReg(fb_nodeaddr_t offset, fb_quadlet_t *result) { -- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Reading base register offset 0x%08"PRIX64"\n", offset); -+ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Reading base register offset 0x%08" PRIX64 "\n", offset); - - if(offset >= DICE_INVALID_OFFSET) { -- debugError("invalid offset: 0x%016"PRIX64"\n", offset); -+ debugError("invalid offset: 0x%016" PRIX64 "\n", offset); - return false; - } -@@ -1749,5 +1749,5 @@ - - if(!get1394Service().read_quadlet( nodeId, addr, result ) ) { -- debugError("Could not read from node 0x%04X addr 0x%12"PRIX64"\n", nodeId, addr); -+ debugError("Could not read from node 0x%04X addr 0x%12" PRIX64 "\n", nodeId, addr); - return false; - } -@@ -1755,5 +1755,5 @@ - *result = CondSwapFromBus32(*result); - -- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Read result: 0x%08"PRIX32"\n", *result); -+ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Read result: 0x%08" PRIX32 "\n", *result); - - return true; -@@ -1762,9 +1762,9 @@ - bool - Device::writeReg(fb_nodeaddr_t offset, fb_quadlet_t data) { -- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing base register offset 0x%08"PRIX64", data: 0x%08"PRIX32"\n", -+ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing base register offset 0x%08" PRIX64 ", data: 0x%08" PRIX32 "\n", - offset, data); - - if(offset >= DICE_INVALID_OFFSET) { -- debugError("invalid offset: 0x%012"PRIX64"\n", offset); -+ debugError("invalid offset: 0x%012" PRIX64 "\n", offset); - return false; - } -@@ -1774,5 +1774,5 @@ - - if(!get1394Service().write_quadlet( nodeId, addr, CondSwapToBus32(data) ) ) { -- debugError("Could not write to node 0x%04X addr 0x%12"PRIX64"\n", nodeId, addr); -+ debugError("Could not write to node 0x%04X addr 0x%12" PRIX64 "\n", nodeId, addr); - return false; - } -@@ -1783,10 +1783,10 @@ - Device::readRegBlock(fb_nodeaddr_t offset, fb_quadlet_t *data, size_t length) { - debugOutput(DEBUG_LEVEL_VERBOSE, -- "Reading base register offset 0x%08"PRIX64", length %zd, to %p\n", -+ "Reading base register offset 0x%08" PRIX64 ", length %zd, to %p\n", - offset, length, data); - const int blocksize_quads = 512/4; - - if(offset >= DICE_INVALID_OFFSET) { -- debugError("invalid offset: 0x%012"PRIX64"\n", offset); -+ debugError("invalid offset: 0x%012" PRIX64 "\n", offset); - return false; - } -@@ -1801,5 +1801,5 @@ - fb_quadlet_t *curr_data = data + quads_done; - int quads_todo = length_quads - quads_done; -- debugOutput(DEBUG_LEVEL_VERBOSE, "reading addr: 0x%012"PRIX64", %d quads to %p\n", curr_addr, quads_todo, curr_data); -+ debugOutput(DEBUG_LEVEL_VERBOSE, "reading addr: 0x%012" PRIX64 ", %d quads to %p\n", curr_addr, quads_todo, curr_data); - - if (quads_todo > blocksize_quads) { -@@ -1814,5 +1814,5 @@ - - if(!get1394Service().read( nodeId, curr_addr, quads_todo, curr_data ) ) { -- debugError("Could not read %d quadlets from node 0x%04X addr 0x%012"PRIX64"\n", quads_todo, nodeId, curr_addr); -+ debugError("Could not read %d quadlets from node 0x%04X addr 0x%012" PRIX64 "\n", quads_todo, nodeId, curr_addr); - return false; - } -@@ -1826,10 +1826,10 @@ - bool - Device::writeRegBlock(fb_nodeaddr_t offset, fb_quadlet_t *data, size_t length) { -- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing base register offset 0x%08"PRIX64", length: %zd\n", -+ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing base register offset 0x%08" PRIX64 ", length: %zd\n", - offset, length); - const int blocksize_quads = 512/4; - - if(offset >= DICE_INVALID_OFFSET) { -- debugError("invalid offset: 0x%012"PRIX64"\n", offset); -+ debugError("invalid offset: 0x%012" PRIX64 "\n", offset); - return false; - } -@@ -1858,5 +1858,5 @@ - - if(!get1394Service().write( nodeId, addr, quads_todo, curr_data ) ) { -- debugError("Could not write %d quadlets to node 0x%04X addr 0x%012"PRIX64"\n", quads_todo, nodeId, curr_addr); -+ debugError("Could not write %d quadlets to node 0x%04X addr 0x%012" PRIX64 "\n", quads_todo, nodeId, curr_addr); - return false; - } -@@ -1869,5 +1869,5 @@ - bool - Device::readGlobalReg(fb_nodeaddr_t offset, fb_quadlet_t *result) { -- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Reading global register offset 0x%04"PRIX64"\n", offset); -+ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Reading global register offset 0x%04" PRIX64 "\n", offset); - - fb_nodeaddr_t offset_gl = globalOffsetGen(offset, sizeof(fb_quadlet_t)); -@@ -1877,5 +1877,5 @@ - bool - Device::writeGlobalReg(fb_nodeaddr_t offset, fb_quadlet_t data) { -- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing global register offset 0x%08"PRIX64", data: 0x%08"PRIX32"\n", -+ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing global register offset 0x%08" PRIX64 ", data: 0x%08" PRIX32 "\n", - offset, data); - -@@ -1886,5 +1886,5 @@ - bool - Device::readGlobalRegBlock(fb_nodeaddr_t offset, fb_quadlet_t *data, size_t length) { -- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Reading global register block offset 0x%04"PRIX64", length %zd bytes\n", -+ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Reading global register block offset 0x%04" PRIX64 ", length %zd bytes\n", - offset, length); - -@@ -1895,5 +1895,5 @@ - bool - Device::writeGlobalRegBlock(fb_nodeaddr_t offset, fb_quadlet_t *data, size_t length) { -- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing global register block offset 0x%04"PRIX64", length: %zd bytes\n", -+ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing global register block offset 0x%04" PRIX64 ", length: %zd bytes\n", - offset, length); - -@@ -1913,5 +1913,5 @@ - // out-of-range check - if(offset+length > m_global_reg_offset+m_global_reg_size) { -- debugError("register offset+length too large: 0x%04"PRIX64"\n", offset + length); -+ debugError("register offset+length too large: 0x%04" PRIX64 "\n", offset + length); - return DICE_INVALID_OFFSET; - } -@@ -1922,5 +1922,5 @@ - bool - Device::readTxReg(unsigned int i, fb_nodeaddr_t offset, fb_quadlet_t *result) { -- debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "Reading tx %d register offset 0x%04"PRIX64"\n", i, offset); -+ debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "Reading tx %d register offset 0x%04" PRIX64 "\n", i, offset); - - fb_nodeaddr_t offset_tx = txOffsetGen(i, offset, sizeof(fb_quadlet_t)); -@@ -1930,5 +1930,5 @@ - bool - Device::writeTxReg(unsigned int i, fb_nodeaddr_t offset, fb_quadlet_t data) { -- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing tx %d register offset 0x%08"PRIX64", data: 0x%08"PRIX32"\n", -+ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing tx %d register offset 0x%08" PRIX64 ", data: 0x%08" PRIX32 "\n", - i, offset, data); - -@@ -1939,5 +1939,5 @@ - bool - Device::readTxRegBlock(unsigned int i, fb_nodeaddr_t offset, fb_quadlet_t *data, size_t length) { -- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Reading rx register block offset 0x%04"PRIX64", length: %zd bytes\n", -+ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Reading rx register block offset 0x%04" PRIX64 ", length: %zd bytes\n", - offset, length); - -@@ -1948,5 +1948,5 @@ - bool - Device::writeTxRegBlock(unsigned int i, fb_nodeaddr_t offset, fb_quadlet_t *data, size_t length) { -- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing rx register block offset 0x%04"PRIX64", length: %zd bytes\n", -+ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing rx register block offset 0x%04" PRIX64 ", length: %zd bytes\n", - offset, length); - -@@ -1980,5 +1980,5 @@ - // out-of-range check - if(offset_tx + length > m_tx_reg_offset+4+m_tx_reg_size*m_nb_tx) { -- debugError("register offset+length too large: 0x%04"PRIX64"\n", offset_tx + length); -+ debugError("register offset+length too large: 0x%04" PRIX64 "\n", offset_tx + length); - return DICE_INVALID_OFFSET; - } -@@ -1989,5 +1989,5 @@ - bool - Device::readRxReg(unsigned int i, fb_nodeaddr_t offset, fb_quadlet_t *result) { -- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Reading rx %d register offset 0x%04"PRIX64"\n", i, offset); -+ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Reading rx %d register offset 0x%04" PRIX64 "\n", i, offset); - - fb_nodeaddr_t offset_rx=rxOffsetGen(i, offset, sizeof(fb_quadlet_t)); -@@ -1997,5 +1997,5 @@ - bool - Device::writeRxReg(unsigned int i, fb_nodeaddr_t offset, fb_quadlet_t data) { -- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing rx register offset 0x%08"PRIX64", data: 0x%08"PRIX32"\n", -+ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing rx register offset 0x%08" PRIX64 ", data: 0x%08" PRIX32 "\n", - offset, data); - -@@ -2006,5 +2006,5 @@ - bool - Device::readRxRegBlock(unsigned int i, fb_nodeaddr_t offset, fb_quadlet_t *data, size_t length) { -- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Reading rx register block offset 0x%04"PRIX64", length: %zd bytes\n", -+ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Reading rx register block offset 0x%04" PRIX64 ", length: %zd bytes\n", - offset, length); - -@@ -2015,5 +2015,5 @@ - bool - Device::writeRxRegBlock(unsigned int i, fb_nodeaddr_t offset, fb_quadlet_t *data, size_t length) { -- debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing rx register block offset 0x%04"PRIX64", length: %zd bytes\n", -+ debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Writing rx register block offset 0x%04" PRIX64 ", length: %zd bytes\n", - offset, length); - -@@ -2047,5 +2047,5 @@ - // out-of-range check - if(offset_rx + length > m_rx_reg_offset+4+m_rx_reg_size*m_nb_rx) { -- debugError("register offset+length too large: 0x%04"PRIX64"\n", offset_rx + length); -+ debugError("register offset+length too large: 0x%04" PRIX64 "\n", offset_rx + length); - return DICE_INVALID_OFFSET; - } -Index: trunk/libffado/src/libutil/StreamStatistics.cpp -=================================================================== ---- trunk/libffado/src/libutil/StreamStatistics.cpp (revision 1763) -+++ trunk/libffado/src/libutil/StreamStatistics.cpp (revision 2651) -@@ -55,5 +55,5 @@ - void StreamStatistics::dumpInfo() { - debugOutputShort( DEBUG_LEVEL_VERBOSE, -- "--- Stats for %s: min=%"PRId64" avg=%f max=%"PRId64" cnt=%"PRId64" sum=%"PRId64"\n", -+ "--- Stats for %s: min=%" PRId64 " avg=%f max=%" PRId64 " cnt=%" PRId64 " sum=%" PRId64 "\n", - m_name.c_str(), m_min, m_average, m_max, m_count, m_sum); - debugOutputShort( DEBUG_LEVEL_VERBOSE, " Signal stats\n"); -Index: trunk/libffado/src/libutil/SystemTimeSource.cpp -=================================================================== ---- trunk/libffado/src/libutil/SystemTimeSource.cpp (revision 2186) -+++ trunk/libffado/src/libutil/SystemTimeSource.cpp (revision 2651) -@@ -97,5 +97,5 @@ - ts.tv_nsec = (wake_at_usec % (1000000LL)) * 1000LL; - debugOutputExtreme(DEBUG_LEVEL_VERBOSE, -- "clock_nanosleep until %"PRId64" sec, %"PRId64" nanosec\n", -+ "clock_nanosleep until %" PRId64 " sec, %" PRId64 " nanosec\n", - (int64_t)ts.tv_sec, (int64_t)ts.tv_nsec); - int err = clock_nanosleep(clock_id, TIMER_ABSTIME, &ts, NULL); -Index: trunk/libffado/src/libutil/TimestampedBuffer.cpp -=================================================================== ---- trunk/libffado/src/libutil/TimestampedBuffer.cpp (revision 2629) -+++ trunk/libffado/src/libutil/TimestampedBuffer.cpp (revision 2651) -@@ -212,5 +212,5 @@ - debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, - "for (%p) " -- "NTS="TIMESTAMP_FORMAT_SPEC", DLL2=%f, RATE=%f\n", -+ "NTS=" TIMESTAMP_FORMAT_SPEC ", DLL2=%f, RATE=%f\n", - this, m_buffer_next_tail_timestamp, m_dll_e2, getRate()); - } -@@ -247,5 +247,5 @@ - if (fabsf(m_nominal_rate - rate)>(m_nominal_rate*0.1)) { - debugWarning("(%p) rate (%10.5f) more that 10%% off nominal " -- "(rate=%10.5f, diff="TIMESTAMP_FORMAT_SPEC", update_period=%d)\n", -+ "(rate=%10.5f, diff=" TIMESTAMP_FORMAT_SPEC ", update_period=%d)\n", - this, rate,m_nominal_rate,diff, m_update_period); - -@@ -373,5 +373,5 @@ - m_nominal_rate); - -- debugOutput(DEBUG_LEVEL_VERBOSE," wrapping at "TIMESTAMP_FORMAT_SPEC"\n",m_wrap_at); -+ debugOutput(DEBUG_LEVEL_VERBOSE," wrapping at " TIMESTAMP_FORMAT_SPEC "\n",m_wrap_at); - - assert(m_buffer_size); -@@ -619,5 +619,5 @@ - bool TimestampedBuffer::blockProcessWriteFrames(unsigned int nbframes, ffado_timestamp_t ts) { - debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, -- "(%p) Writing %u frames for ts "TIMESTAMP_FORMAT_SPEC"\n", -+ "(%p) Writing %u frames for ts " TIMESTAMP_FORMAT_SPEC "\n", - this, nbframes, ts); - int xrun; -@@ -845,8 +845,8 @@ - #ifdef DEBUG - if (new_timestamp >= m_wrap_at) { -- debugWarning("timestamp not wrapped: "TIMESTAMP_FORMAT_SPEC"\n",new_timestamp); -+ debugWarning("timestamp not wrapped: " TIMESTAMP_FORMAT_SPEC "\n",new_timestamp); - } - if ((ts >= m_wrap_at) || (ts < 0 )) { -- debugWarning("ts not wrapped correctly: "TIMESTAMP_FORMAT_SPEC"\n",ts); -+ debugWarning("ts not wrapped correctly: " TIMESTAMP_FORMAT_SPEC "\n",ts); - } - #endif -@@ -862,6 +862,6 @@ - - debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, -- "for (%p) to "TIMESTAMP_FORMAT_SPEC" => "TIMESTAMP_FORMAT_SPEC", " -- "NTS="TIMESTAMP_FORMAT_SPEC", DLL2=%f, RATE=%f\n", -+ "for (%p) to " TIMESTAMP_FORMAT_SPEC " => " TIMESTAMP_FORMAT_SPEC ", " -+ "NTS=" TIMESTAMP_FORMAT_SPEC ", DLL2=%f, RATE=%f\n", - this, new_timestamp, ts, m_buffer_next_tail_timestamp, m_dll_e2, getRate()); - } -@@ -883,5 +883,5 @@ - #ifdef DEBUG - if (new_timestamp >= m_wrap_at) { -- debugWarning("timestamp not wrapped: "TIMESTAMP_FORMAT_SPEC"\n", new_timestamp); -+ debugWarning("timestamp not wrapped: " TIMESTAMP_FORMAT_SPEC "\n", new_timestamp); - } - #endif -@@ -908,6 +908,6 @@ - - debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, -- "for (%p) to "TIMESTAMP_FORMAT_SPEC" => "TIMESTAMP_FORMAT_SPEC", " -- "NTS="TIMESTAMP_FORMAT_SPEC", DLL2=%f, RATE=%f\n", -+ "for (%p) to " TIMESTAMP_FORMAT_SPEC " => " TIMESTAMP_FORMAT_SPEC ", " -+ "NTS=" TIMESTAMP_FORMAT_SPEC ", DLL2=%f, RATE=%f\n", - this, new_timestamp, ts, m_buffer_next_tail_timestamp, m_dll_e2, getRate()); - } -@@ -1052,22 +1052,22 @@ - nbframes, m_update_period); - debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, -- " tail TS: "TIMESTAMP_FORMAT_SPEC", next tail TS: "TIMESTAMP_FORMAT_SPEC"\n", -+ " tail TS: " TIMESTAMP_FORMAT_SPEC ", next tail TS: " TIMESTAMP_FORMAT_SPEC "\n", - m_buffer_tail_timestamp, m_buffer_next_tail_timestamp); - debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, -- " new TS: "TIMESTAMP_FORMAT_SPEC", diff: "TIMESTAMP_FORMAT_SPEC"\n", -+ " new TS: " TIMESTAMP_FORMAT_SPEC ", diff: " TIMESTAMP_FORMAT_SPEC "\n", - new_timestamp, diff); - - if (diff > max_abs_diff) { - //debugShowBackLogLines(100); -- debugWarning("(%p) difference rather large (+): diff="TIMESTAMP_FORMAT_SPEC", max="TIMESTAMP_FORMAT_SPEC", "TIMESTAMP_FORMAT_SPEC", "TIMESTAMP_FORMAT_SPEC"\n", -+ debugWarning("(%p) difference rather large (+): diff=" TIMESTAMP_FORMAT_SPEC ", max=" TIMESTAMP_FORMAT_SPEC ", " TIMESTAMP_FORMAT_SPEC ", " TIMESTAMP_FORMAT_SPEC "\n", - this, diff, max_abs_diff, new_timestamp, m_buffer_next_tail_timestamp); - } else if (diff < -max_abs_diff) { - //debugShowBackLogLines(100); -- debugWarning("(%p) difference rather large (-): diff="TIMESTAMP_FORMAT_SPEC", max="TIMESTAMP_FORMAT_SPEC", "TIMESTAMP_FORMAT_SPEC", "TIMESTAMP_FORMAT_SPEC"\n", -+ debugWarning("(%p) difference rather large (-): diff=" TIMESTAMP_FORMAT_SPEC ", max=" TIMESTAMP_FORMAT_SPEC ", " TIMESTAMP_FORMAT_SPEC ", " TIMESTAMP_FORMAT_SPEC "\n", - this, diff, -max_abs_diff, new_timestamp, m_buffer_next_tail_timestamp); - } - - debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, -- "(%p): diff="TIMESTAMP_FORMAT_SPEC" ", -+ "(%p): diff=" TIMESTAMP_FORMAT_SPEC " ", - this, diff); - #endif -@@ -1075,8 +1075,8 @@ - double err = diff; - debugOutputShortExtreme(DEBUG_LEVEL_VERY_VERBOSE, -- "diff2="TIMESTAMP_FORMAT_SPEC" err=%f\n", -+ "diff2=" TIMESTAMP_FORMAT_SPEC " err=%f\n", - diff, err); - debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, -- "B: FC=%10u, TS="TIMESTAMP_FORMAT_SPEC", NTS="TIMESTAMP_FORMAT_SPEC"\n", -+ "B: FC=%10u, TS=" TIMESTAMP_FORMAT_SPEC ", NTS=" TIMESTAMP_FORMAT_SPEC "\n", - m_framecounter, m_buffer_tail_timestamp, m_buffer_next_tail_timestamp); - -@@ -1089,5 +1089,5 @@ - if (m_buffer_next_tail_timestamp >= m_wrap_at) { - debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, -- "Unwrapping next tail timestamp: "TIMESTAMP_FORMAT_SPEC"", -+ "Unwrapping next tail timestamp: " TIMESTAMP_FORMAT_SPEC "", - m_buffer_next_tail_timestamp); - -@@ -1095,5 +1095,5 @@ - - debugOutputShortExtreme(DEBUG_LEVEL_VERY_VERBOSE, -- " => "TIMESTAMP_FORMAT_SPEC"\n", -+ " => " TIMESTAMP_FORMAT_SPEC "\n", - m_buffer_next_tail_timestamp); - -@@ -1103,22 +1103,22 @@ - - debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE, -- "A: TS="TIMESTAMP_FORMAT_SPEC", NTS="TIMESTAMP_FORMAT_SPEC", DLLe2=%f, RATE=%f\n", -+ "A: TS=" TIMESTAMP_FORMAT_SPEC ", NTS=" TIMESTAMP_FORMAT_SPEC ", DLLe2=%f, RATE=%f\n", - m_buffer_tail_timestamp, m_buffer_next_tail_timestamp, m_dll_e2, m_current_rate); - - - if(m_buffer_tail_timestamp>=m_wrap_at) { -- debugError("Wrapping failed for m_buffer_tail_timestamp! "TIMESTAMP_FORMAT_SPEC"\n",m_buffer_tail_timestamp); -- debugOutput(DEBUG_LEVEL_VERY_VERBOSE, " IN="TIMESTAMP_FORMAT_SPEC", TS="TIMESTAMP_FORMAT_SPEC", NTS="TIMESTAMP_FORMAT_SPEC"\n", -+ debugError("Wrapping failed for m_buffer_tail_timestamp! " TIMESTAMP_FORMAT_SPEC "\n",m_buffer_tail_timestamp); -+ debugOutput(DEBUG_LEVEL_VERY_VERBOSE, " IN=" TIMESTAMP_FORMAT_SPEC ", TS=" TIMESTAMP_FORMAT_SPEC ", NTS=" TIMESTAMP_FORMAT_SPEC "\n", - new_timestamp, m_buffer_tail_timestamp, m_buffer_next_tail_timestamp); - - } - if(m_buffer_next_tail_timestamp>=m_wrap_at) { -- debugError("Wrapping failed for m_buffer_next_tail_timestamp! "TIMESTAMP_FORMAT_SPEC"\n",m_buffer_next_tail_timestamp); -- debugOutput(DEBUG_LEVEL_VERY_VERBOSE, " IN="TIMESTAMP_FORMAT_SPEC", TS="TIMESTAMP_FORMAT_SPEC", NTS="TIMESTAMP_FORMAT_SPEC"\n", -+ debugError("Wrapping failed for m_buffer_next_tail_timestamp! " TIMESTAMP_FORMAT_SPEC "\n",m_buffer_next_tail_timestamp); -+ debugOutput(DEBUG_LEVEL_VERY_VERBOSE, " IN=" TIMESTAMP_FORMAT_SPEC ", TS=" TIMESTAMP_FORMAT_SPEC ", NTS=" TIMESTAMP_FORMAT_SPEC "\n", - new_timestamp, m_buffer_tail_timestamp, m_buffer_next_tail_timestamp); - } - - if(m_buffer_tail_timestamp==m_buffer_next_tail_timestamp) { -- debugError("Current and next timestamps are equal: "TIMESTAMP_FORMAT_SPEC" "TIMESTAMP_FORMAT_SPEC"\n", -+ debugError("Current and next timestamps are equal: " TIMESTAMP_FORMAT_SPEC " " TIMESTAMP_FORMAT_SPEC "\n", - m_buffer_tail_timestamp,m_buffer_next_tail_timestamp); - } -@@ -1146,8 +1146,8 @@ - debugOutputShort( DEBUG_LEVEL_NORMAL, " TimestampedBuffer (%p): %04d frames, %04d events\n", - this, m_framecounter, getBufferFill()); -- debugOutputShort( DEBUG_LEVEL_NORMAL, " Timestamps : head: "TIMESTAMP_FORMAT_SPEC", Tail: "TIMESTAMP_FORMAT_SPEC", Next tail: "TIMESTAMP_FORMAT_SPEC"\n", -+ debugOutputShort( DEBUG_LEVEL_NORMAL, " Timestamps : head: " TIMESTAMP_FORMAT_SPEC ", Tail: " TIMESTAMP_FORMAT_SPEC ", Next tail: " TIMESTAMP_FORMAT_SPEC "\n", - ts_head, m_buffer_tail_timestamp, m_buffer_next_tail_timestamp); - #ifdef DEBUG -- debugOutputShort( DEBUG_LEVEL_NORMAL, " Head - Tail : "TIMESTAMP_FORMAT_SPEC" (%f frames)\n", diff, diff/m_dll_e2*m_update_period); -+ debugOutputShort( DEBUG_LEVEL_NORMAL, " Head - Tail : " TIMESTAMP_FORMAT_SPEC " (%f frames)\n", diff, diff/m_dll_e2*m_update_period); - #endif - debugOutputShort( DEBUG_LEVEL_NORMAL, " DLL Rate : %f (%f)\n", m_dll_e2, m_dll_e2/m_update_period); -Index: trunk/libffado/src/libutil/Configuration.cpp -=================================================================== ---- trunk/libffado/src/libutil/Configuration.cpp (revision 2450) -+++ trunk/libffado/src/libutil/Configuration.cpp (revision 2651) -@@ -190,5 +190,5 @@ - int64_t i = s; - debugOutput(DEBUG_LEVEL_NORMAL, -- " %s%s = %"PRId64" (0x%016"PRIX64")\n", -+ " %s%s = %" PRId64 " (0x%016" PRIX64 ")\n", - prefix.c_str(), s.getName(), i, i); - } -@@ -259,5 +259,5 @@ - if(t == Setting::TypeInt64) { - ref = *s; -- debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "path '%s' has value %"PRId64"\n", path.c_str(), ref); -+ debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "path '%s' has value %" PRId64 "\n", path.c_str(), ref); - return true; - } else { -Index: trunk/libffado/src/genericavc/stanton/scs.cpp -=================================================================== ---- trunk/libffado/src/genericavc/stanton/scs.cpp (revision 2163) -+++ trunk/libffado/src/genericavc/stanton/scs.cpp (revision 2651) -@@ -72,5 +72,5 @@ - // read the current value present in the register, i.e. read-ping - if(!readRegBlock(addr, (quadlet_t *)cmdBuffer, 1) ) { -- debugError("Could not read from addr 0x%012"PRIX64"\n", addr); -+ debugError("Could not read from addr 0x%012" PRIX64 "\n", addr); - } else { - int version = cmdBuffer[0] & 0xFFFF; -@@ -87,5 +87,5 @@ - // execute the command - if(!writeRegBlock(addr, (quadlet_t *)cmdBuffer, 1)) { -- debugError("Could not write to addr 0x%012"PRIX64"\n", addr); -+ debugError("Could not write to addr 0x%012" PRIX64 "\n", addr); - } else { - debugOutput(DEBUG_LEVEL_VERBOSE, "Write Ping succeeded\n"); -@@ -129,5 +129,5 @@ - // execute the command - if(!writeRegBlock(addr, (quadlet_t *)cmdBuffer, 2)) { -- debugError("Could not write to addr 0x%012"PRIX64"\n", addr); -+ debugError("Could not write to addr 0x%012" PRIX64 "\n", addr); - return false; - } -@@ -143,5 +143,5 @@ - // execute the command - if(!writeRegBlock(addr, (quadlet_t *)cmdBuffer, 2)) { -- debugError("Could not write to addr 0x%012"PRIX64"\n", addr); -+ debugError("Could not write to addr 0x%012" PRIX64 "\n", addr); - return false; - } -@@ -173,5 +173,5 @@ - // execute the command - if(!writeRegBlock(addr, (quadlet_t *)cmdBuffer, len_quadlets)) { -- debugError("Could not write to addr 0x%012"PRIX64"\n", addr); -+ debugError("Could not write to addr 0x%012" PRIX64 "\n", addr); - return false; - } -@@ -181,5 +181,5 @@ - bool - ScsDevice::readRegBlock(fb_nodeaddr_t addr, fb_quadlet_t *data, size_t length_quads, size_t blocksize_quads) { -- debugOutput(DEBUG_LEVEL_VERBOSE,"Reading register 0x%016"PRIX64", length %zd quadlets, to %p\n", -+ debugOutput(DEBUG_LEVEL_VERBOSE,"Reading register 0x%016" PRIX64 ", length %zd quadlets, to %p\n", - addr, length_quads, data); - -@@ -200,7 +200,7 @@ - #endif - -- debugOutput(DEBUG_LEVEL_VERBOSE, "reading addr: 0x%016"PRIX64", %d quads to %p\n", curr_addr, quads_todo, curr_data); -+ debugOutput(DEBUG_LEVEL_VERBOSE, "reading addr: 0x%016" PRIX64 ", %d quads to %p\n", curr_addr, quads_todo, curr_data); - if(!get1394Service().read( nodeId, curr_addr, quads_todo, curr_data ) ) { -- debugError("Could not read %d quadlets from node 0x%04X addr 0x%012"PRIX64"\n", quads_todo, nodeId, curr_addr); -+ debugError("Could not read %d quadlets from node 0x%04X addr 0x%012" PRIX64 "\n", quads_todo, nodeId, curr_addr); - return false; - } -@@ -215,5 +215,5 @@ - ScsDevice::writeRegBlock(fb_nodeaddr_t addr, fb_quadlet_t *data, size_t length_quads, size_t blocksize_quads) { - debugOutput(DEBUG_LEVEL_VERY_VERBOSE, -- "Writing register 0x%016"PRIX64", length: %zd quadlets, from %p\n", -+ "Writing register 0x%016" PRIX64 ", length: %zd quadlets, from %p\n", - addr, length_quads, data); - -@@ -238,7 +238,7 @@ - #endif - -- debugOutput(DEBUG_LEVEL_VERBOSE, "writing addr: 0x%016"PRIX64", %d quads from %p\n", curr_addr, quads_todo, curr_data); -+ debugOutput(DEBUG_LEVEL_VERBOSE, "writing addr: 0x%016" PRIX64 ", %d quads from %p\n", curr_addr, quads_todo, curr_data); - if(!get1394Service().write( nodeId, addr, quads_todo, curr_data ) ) { -- debugError("Could not write %d quadlets to node 0x%04X addr 0x%012"PRIX64"\n", quads_todo, nodeId, curr_addr); -+ debugError("Could not write %d quadlets to node 0x%04X addr 0x%012" PRIX64 "\n", quads_todo, nodeId, curr_addr); - return false; - } -Index: trunk/libffado/src/bebob/bebob_avdevice.cpp -=================================================================== ---- trunk/libffado/src/bebob/bebob_avdevice.cpp (revision 2491) -+++ trunk/libffado/src/bebob/bebob_avdevice.cpp (revision 2651) -@@ -836,5 +836,5 @@ - - char* configId; -- asprintf(&configId, "%016"PRIx64"", getConfigurationId() ); -+ asprintf(&configId, "%016" PRIx64 "", getConfigurationId() ); - if ( !configId ) { - debugError( "could not create id string\n" ); -@@ -912,5 +912,5 @@ - // come up with an unique file name for the current settings - char* configId; -- asprintf(&configId, "%016"PRIx64"", BeBoB::Device::getConfigurationId() ); -+ asprintf(&configId, "%016" PRIx64 "", BeBoB::Device::getConfigurationId() ); - if ( !configId ) { - debugError( "Could not create id string\n" ); -Index: trunk/libffado/src/bebob/focusrite/focusrite_generic.cpp -=================================================================== ---- trunk/libffado/src/bebob/focusrite/focusrite_generic.cpp (revision 1763) -+++ trunk/libffado/src/bebob/focusrite/focusrite_generic.cpp (revision 2651) -@@ -69,5 +69,5 @@ - if(m_cmd_time_interval && (m_earliest_next_cmd_time > now)) { - ffado_microsecs_t wait = m_earliest_next_cmd_time - now; -- debugOutput( DEBUG_LEVEL_VERBOSE, "Rate control... %"PRIu64"\n", wait ); -+ debugOutput( DEBUG_LEVEL_VERBOSE, "Rate control... %" PRIu64 "\n", wait ); - Util::SystemTimeSource::SleepUsecRelative(wait); - } -@@ -94,5 +94,5 @@ - if(m_cmd_time_interval && (m_earliest_next_cmd_time > now)) { - ffado_microsecs_t wait = m_earliest_next_cmd_time - now; -- debugOutput( DEBUG_LEVEL_VERBOSE, "Rate control... %"PRIu64"\n", wait ); -+ debugOutput( DEBUG_LEVEL_VERBOSE, "Rate control... %" PRIu64 "\n", wait ); - Util::SystemTimeSource::SleepUsecRelative(wait); - } -@@ -169,5 +169,5 @@ - - if(!get1394Service().write_quadlet( nodeId, addr, CondSwapToBus32(data) ) ) { -- debugError("Could not write to node 0x%04X addr 0x%012"PRIX64"\n", nodeId, addr); -+ debugError("Could not write to node 0x%04X addr 0x%012" PRIX64 "\n", nodeId, addr); - return false; - } -@@ -185,5 +185,5 @@ - - if(!get1394Service().read_quadlet( nodeId, addr, &result ) ) { -- debugError("Could not read from node 0x%04X addr 0x%012"PRIX64"\n", nodeId, addr); -+ debugError("Could not read from node 0x%04X addr 0x%012" PRIX64 "\n", nodeId, addr); - return false; - } -@@ -385,5 +385,5 @@ - RegisterControl::setValue(uint64_t addr, uint64_t v) - { -- debugOutput(DEBUG_LEVEL_VERBOSE, "setValue for addr %"PRIu64" to %"PRIu64"\n", -+ debugOutput(DEBUG_LEVEL_VERBOSE, "setValue for addr %" PRIu64 " to %" PRIu64 "\n", - addr, v); - -@@ -403,5 +403,5 @@ - return 0; - } else { -- debugOutput(DEBUG_LEVEL_VERBOSE, "getValue for %"PRIu64" = %u\n", -+ debugOutput(DEBUG_LEVEL_VERBOSE, "getValue for %" PRIu64 " = %u\n", - addr, val); - return val; -Index: trunk/libffado/src/bebob/focusrite/focusrite_saffire.cpp -=================================================================== ---- trunk/libffado/src/bebob/focusrite/focusrite_saffire.cpp (revision 1763) -+++ trunk/libffado/src/bebob/focusrite/focusrite_saffire.cpp (revision 2651) -@@ -48,9 +48,9 @@ - if(config.getValueForDeviceSetting(getConfigRom().getNodeVendorId(), getConfigRom().getModelId(), "cmd_interval_time", delaytime)) { - m_cmd_time_interval = delaytime; -- debugOutput( DEBUG_LEVEL_VERBOSE, "Setting command interval time to %"PRIu64"\n", -+ debugOutput( DEBUG_LEVEL_VERBOSE, "Setting command interval time to %" PRIu64 "\n", - m_cmd_time_interval ); - } else { - m_cmd_time_interval = 10000; -- debugOutput( DEBUG_LEVEL_VERBOSE, "No command interval time setting found, defaulting to %"PRIu64"\n", -+ debugOutput( DEBUG_LEVEL_VERBOSE, "No command interval time setting found, defaulting to %" PRIu64 "\n", - m_cmd_time_interval ); - } -Index: trunk/libffado/src/fireworks/efc/efc_cmds_hardware.cpp -=================================================================== ---- trunk/libffado/src/fireworks/efc/efc_cmds_hardware.cpp (revision 2514) -+++ trunk/libffado/src/fireworks/efc/efc_cmds_hardware.cpp (revision 2651) -@@ -127,5 +127,5 @@ - debugOutput(DEBUG_LEVEL_NORMAL, "EFC HW CAPS info:\n"); - debugOutput(DEBUG_LEVEL_NORMAL, " Flags : 0x%08X\n", m_flags); -- debugOutput(DEBUG_LEVEL_NORMAL, " GUID : %016"PRIX64"\n", m_guid); -+ debugOutput(DEBUG_LEVEL_NORMAL, " GUID : %016" PRIX64 "\n", m_guid); - debugOutput(DEBUG_LEVEL_NORMAL, " HwType : 0x%08X\n", m_type); - debugOutput(DEBUG_LEVEL_NORMAL, " Version : %u\n", m_version); -Index: trunk/libffado/tests/test-bufferops.cpp -=================================================================== ---- trunk/libffado/tests/test-bufferops.cpp (revision 1763) -+++ trunk/libffado/tests/test-bufferops.cpp (revision 2651) -@@ -88,5 +88,5 @@ - byteSwapToBus(buffer_1, nb_quadlets); - elapsed = Util::SystemTimeSource::getCurrentTimeAsUsecs() - start; -- printMessage( " took %"PRI_FFADO_MICROSECS_T"usec...\n", elapsed); -+ printMessage( " took %" PRI_FFADO_MICROSECS_T "usec...\n", elapsed); - - } -@@ -156,5 +156,5 @@ - convertFromInt24AndLabelAsMBLA(buffer_1, nb_quadlets); - elapsed = Util::SystemTimeSource::getCurrentTimeAsUsecs() - start; -- printMessage( " took %"PRI_FFADO_MICROSECS_T"usec...\n", elapsed); -+ printMessage( " took %" PRI_FFADO_MICROSECS_T "usec...\n", elapsed); - } - -@@ -238,5 +238,5 @@ - convertFromFloatAndLabelAsMBLA(buffer_1, nb_quadlets); - elapsed = Util::SystemTimeSource::getCurrentTimeAsUsecs() - start; -- printMessage( " took %"PRI_FFADO_MICROSECS_T"usec...\n", elapsed); -+ printMessage( " took %" PRI_FFADO_MICROSECS_T "usec...\n", elapsed); - } - -Index: trunk/libffado/tests/test-timestampedbuffer.cpp -=================================================================== ---- trunk/libffado/tests/test-timestampedbuffer.cpp (revision 1763) -+++ trunk/libffado/tests/test-timestampedbuffer.cpp (revision 2651) -@@ -346,5 +346,5 @@ - - if (timestamp != ts_head) { -- debugError(" cycle %4u error: %011"PRIu64" != %011"PRIu64"\n", -+ debugError(" cycle %4u error: %011" PRIu64 " != %011" PRIu64 "\n", - cycle, timestamp, ts_head); - pass=false; -@@ -419,5 +419,5 @@ - - debugOutput(DEBUG_LEVEL_NORMAL, -- "Simulating cycle %d @ time=%011"PRIu64", diff=%"PRId64"\n", -+ "Simulating cycle %d @ time=%011" PRIu64 ", diff=%" PRId64 "\n", - cycle, time, diff); - -@@ -436,8 +436,8 @@ - ts_tail=(uint64_t)ts_tail_tmp; - debugOutput(DEBUG_LEVEL_NORMAL, -- " TS after write: HEAD: %011"PRIu64", FC=%04u\n", -+ " TS after write: HEAD: %011" PRIu64 ", FC=%04u\n", - ts_head,fc_head); - debugOutput(DEBUG_LEVEL_NORMAL, -- " TAIL: %011"PRIu64", FC=%04u\n", -+ " TAIL: %011" PRIu64 ", FC=%04u\n", - ts_tail,fc_tail); - -@@ -451,8 +451,8 @@ - ts_tail=(uint64_t)ts_tail_tmp; - debugOutput(DEBUG_LEVEL_NORMAL, -- " TS after write: HEAD: %011"PRIu64", FC=%04u\n", -+ " TS after write: HEAD: %011" PRIu64 ", FC=%04u\n", - ts_head,fc_head); - debugOutput(DEBUG_LEVEL_NORMAL, -- " TAIL: %011"PRIu64", FC=%04u\n", -+ " TAIL: %011" PRIu64 ", FC=%04u\n", - ts_tail,fc_tail); - -@@ -526,5 +526,5 @@ - - debugOutput(DEBUG_LEVEL_NORMAL, -- "Simulating cycle %d @ time=%011"PRIu64", diff=%"PRId64"\n", -+ "Simulating cycle %d @ time=%011" PRIu64 ", diff=%" PRId64 "\n", - cycle, time, diff); - -@@ -543,8 +543,8 @@ - ts_tail=(uint64_t)ts_tail_tmp; - debugOutput(DEBUG_LEVEL_NORMAL, -- " TS after write: HEAD: %011"PRIu64", FC=%04u\n", -+ " TS after write: HEAD: %011" PRIu64 ", FC=%04u\n", - ts_head,fc_head); - debugOutput(DEBUG_LEVEL_NORMAL, -- " TAIL: %011"PRIu64", FC=%04u\n", -+ " TAIL: %011" PRIu64 ", FC=%04u\n", - ts_tail,fc_tail); - -@@ -561,8 +561,8 @@ - ts_tail=(uint64_t)ts_tail_tmp; - debugOutput(DEBUG_LEVEL_NORMAL, -- " TS after read: HEAD: %011"PRIu64", FC=%04u\n", -+ " TS after read: HEAD: %011" PRIu64 ", FC=%04u\n", - ts_head,fc_head); - debugOutput(DEBUG_LEVEL_NORMAL, -- " TAIL: %011"PRIu64", FC=%04u\n", -+ " TAIL: %011" PRIu64 ", FC=%04u\n", - ts_tail,fc_tail); - } -Index: trunk/libffado/tests/test-ieee1394service.cpp -=================================================================== ---- trunk/libffado/tests/test-ieee1394service.cpp (revision 2587) -+++ trunk/libffado/tests/test-ieee1394service.cpp (revision 2651) -@@ -164,5 +164,5 @@ - } - debugOutput ( DEBUG_LEVEL_VERY_VERBOSE, -- "(%p) Cycle timer: %011"PRIu64" (%03us %04ucy %04uticks)\n", -+ "(%p) Cycle timer: %011" PRIu64 " (%03us %04ucy %04uticks)\n", - this, ctr, - (unsigned int)TICKS_TO_SECS( ctr ), -@@ -170,5 +170,5 @@ - (unsigned int)TICKS_TO_OFFSET( ctr ) ); - debugOutput ( DEBUG_LEVEL_VERY_VERBOSE, -- "(%p) from DLL: %011"PRIu64" (%03us %04ucy %04uticks)\n", -+ "(%p) from DLL: %011" PRIu64 " (%03us %04ucy %04uticks)\n", - this, ctr_dll, - (unsigned int)TICKS_TO_SECS( ctr_dll ), -@@ -199,11 +199,11 @@ - } - debugOutput ( DEBUG_LEVEL_VERY_VERBOSE, -- "(%p) diff: %s%011"PRIu64" (%03us %04ucy %04uticks)\n", this, -+ "(%p) diff: %s%011" PRIu64 " (%03us %04ucy %04uticks)\n", this, - ((int64_t)abs_diff==diff?" ":"-"), abs_diff, (unsigned int)TICKS_TO_SECS( abs_diff ), - (unsigned int)TICKS_TO_CYCLES( abs_diff ), (unsigned int)TICKS_TO_OFFSET( abs_diff ) ); - if (abs_diff > DIFF_CONSIDERED_LARGE) { -- debugWarning("(%p) Alert, large diff: %"PRId64"\n", this, diff); -- debugOutput ( DEBUG_LEVEL_NORMAL, -- "(%p) Cycle timer: %011"PRIu64" (%03us %04ucy %04uticks)\n", -+ debugWarning("(%p) Alert, large diff: %" PRId64 "\n", this, diff); -+ debugOutput ( DEBUG_LEVEL_NORMAL, -+ "(%p) Cycle timer: %011" PRIu64 " (%03us %04ucy %04uticks)\n", - this, ctr, - (unsigned int)TICKS_TO_SECS( ctr ), -@@ -211,5 +211,5 @@ - (unsigned int)TICKS_TO_OFFSET( ctr ) ); - debugOutput ( DEBUG_LEVEL_NORMAL, -- "(%p) from DLL: %011"PRIu64" (%03us %04ucy %04uticks)\n", -+ "(%p) from DLL: %011" PRIu64 " (%03us %04ucy %04uticks)\n", - this, ctr_dll, - (unsigned int)TICKS_TO_SECS( ctr_dll ), -@@ -220,8 +220,8 @@ - diff = diffTicks(ctr, ctr_prev); - if (diff < 0) { -- debugWarning("(%p) Alert, non-monotonic ctr (direct): %"PRId64" - %"PRId64" = %"PRId64"\n", -+ debugWarning("(%p) Alert, non-monotonic ctr (direct): %" PRId64 " - %" PRId64 " = %" PRId64 "\n", - this, ctr, ctr_prev, diff); - debugOutput ( DEBUG_LEVEL_NORMAL, -- "(%p) Cycle timer now : %011"PRIu64" (%03us %04ucy %04uticks)\n", -+ "(%p) Cycle timer now : %011" PRIu64 " (%03us %04ucy %04uticks)\n", - this, ctr, - (unsigned int)TICKS_TO_SECS( ctr ), -@@ -229,5 +229,5 @@ - (unsigned int)TICKS_TO_OFFSET( ctr ) ); - debugOutput ( DEBUG_LEVEL_NORMAL, -- "(%p) Cycle timer prev: %011"PRIu64" (%03us %04ucy %04uticks)\n", -+ "(%p) Cycle timer prev: %011" PRIu64 " (%03us %04ucy %04uticks)\n", - this, ctr_prev, - (unsigned int)TICKS_TO_SECS( ctr_prev ), -@@ -237,8 +237,8 @@ - diff = diffTicks(ctr_dll, ctr_dll_prev); - if (diff < 0) { -- debugWarning("(%p) Alert, non-monotonic ctr (dll): %"PRId64" - %"PRId64" = %"PRId64"\n", -+ debugWarning("(%p) Alert, non-monotonic ctr (dll): %" PRId64 " - %" PRId64 " = %" PRId64 "\n", - this, ctr_dll, ctr_dll_prev, diff); - debugOutput ( DEBUG_LEVEL_NORMAL, -- "(%p) Cycle timer now : %011"PRIu64" (%03us %04ucy %04uticks)\n", -+ "(%p) Cycle timer now : %011" PRIu64 " (%03us %04ucy %04uticks)\n", - this, ctr_dll, - (unsigned int)TICKS_TO_SECS( ctr_dll ), -@@ -246,5 +246,5 @@ - (unsigned int)TICKS_TO_OFFSET( ctr_dll ) ); - debugOutput ( DEBUG_LEVEL_NORMAL, -- "(%p) Cycle timer prev: %011"PRIu64" (%03us %04ucy %04uticks)\n", -+ "(%p) Cycle timer prev: %011" PRIu64 " (%03us %04ucy %04uticks)\n", - this, ctr_dll_prev, - (unsigned int)TICKS_TO_SECS( ctr_dll_prev ), -@@ -267,5 +267,5 @@ - (unsigned int)CYCLE_TIMER_GET_OFFSET( tmp_orig ) ); - debugOutput ( DEBUG_LEVEL_VERY_VERBOSE, -- "(%p) TICKS: %011"PRIu32" (%03us %04ucy %04uticks)\n", -+ "(%p) TICKS: %011" PRIu32 " (%03us %04ucy %04uticks)\n", - this, tmp_ticks, - (unsigned int)TICKS_TO_SECS( tmp_ticks ), -Index: trunk/libffado/tests/test-ffado.cpp -=================================================================== ---- trunk/libffado/tests/test-ffado.cpp (revision 2587) -+++ trunk/libffado/tests/test-ffado.cpp (revision 2651) -@@ -510,5 +510,5 @@ - uint64_t result_rcv = sytRecvToFullTicks(syt_timestamp, rcv_cycle, ctr_now); - uint64_t result_xmt = sytXmitToFullTicks(syt_timestamp, rcv_cycle, ctr_now); -- printf("RCV: 0x%010"PRIX64" %010"PRIu64" XMT: 0x%010"PRIX64" %010"PRIu64" CTR: %010"PRIu64"\n", -+ printf("RCV: 0x%010" PRIX64 " %010" PRIu64 " XMT: 0x%010" PRIX64 " %010" PRIu64 " CTR: %010" PRIu64 "\n", - result_rcv, result_rcv, result_xmt, result_xmt, CYCLE_TIMER_TO_TICKS(ctr_now)); - -Index: trunk/libffado/tests/test-focusrite.cpp -=================================================================== ---- trunk/libffado/tests/test-focusrite.cpp (revision 2587) -+++ trunk/libffado/tests/test-focusrite.cpp (revision 2651) -@@ -185,5 +185,5 @@ - } - if (!retval) { -- debugError( " read from %16"PRIX64" failed (id: %d)\n", addr, id); -+ debugError( " read from %16" PRIX64 " failed (id: %d)\n", addr, id); - } else { - value = CondSwapFromBus32(value); -Index: trunk/libffado/tests/systemtests/gen-loadpulses.cpp -=================================================================== ---- trunk/libffado/tests/systemtests/gen-loadpulses.cpp (revision 1763) -+++ trunk/libffado/tests/systemtests/gen-loadpulses.cpp (revision 2651) -@@ -188,10 +188,10 @@ - int64_t usecs_late = toc - sleep_time; - if(usecs_late > 1000) { -- debugWarning("late wakeup: %"PRId64" usecs\n", usecs_late); -+ debugWarning("late wakeup: %" PRId64 " usecs\n", usecs_late); - } - - // try and detect lockup () - if(usecs_late > 100000) { -- debugWarning("very late wakeup: %"PRId64" usecs\n", usecs_late); -+ debugWarning("very late wakeup: %" PRId64 " usecs\n", usecs_late); - // force exit, since this is a loop out of control - run=0; -Index: trunk/libffado/tests/systemtests/test-sysload.cpp -=================================================================== ---- trunk/libffado/tests/systemtests/test-sysload.cpp (revision 1763) -+++ trunk/libffado/tests/systemtests/test-sysload.cpp (revision 2651) -@@ -190,10 +190,10 @@ - int64_t usecs_late = toc - sleep_time; - if(usecs_late > 1000) { -- debugWarning("late wakeup: %"PRId64" usecs\n", usecs_late); -+ debugWarning("late wakeup: %" PRId64 " usecs\n", usecs_late); - } - - // try and detect lockup () - if(usecs_late > 100000) { -- debugWarning("very late wakeup: %"PRId64" usecs\n", usecs_late); -+ debugWarning("very late wakeup: %" PRId64 " usecs\n", usecs_late); - // force exit, since this is a loop out of control - run=0; -Index: trunk/libffado/tests/systemtests/test-clock_nanosleep.cpp -=================================================================== ---- trunk/libffado/tests/systemtests/test-clock_nanosleep.cpp (revision 1763) -+++ trunk/libffado/tests/systemtests/test-clock_nanosleep.cpp (revision 2651) -@@ -70,5 +70,5 @@ - ts.tv_nsec = (wake_at_usec % (1000000LL)) * 1000LL; - debugOutput(DEBUG_LEVEL_VERBOSE, -- "clock_nanosleep until %"PRId64" sec, %"PRId64" nanosec\n", -+ "clock_nanosleep until %" PRId64 " sec, %" PRId64 " nanosec\n", - (int64_t)ts.tv_sec, (int64_t)ts.tv_nsec); - int err = clock_nanosleep(CLOCK_REALTIME, TIMER_ABSTIME, &ts, NULL); -@@ -107,5 +107,5 @@ - - debugOutput(DEBUG_LEVEL_VERBOSE, -- "cuckoo from %p at %012"PRI_FFADO_MICROSECS_T"\n", -+ "cuckoo from %p at %012" PRI_FFADO_MICROSECS_T "\n", - obj, getCurrentTimeAsUsecs()); - -Index: trunk/libffado/support/firmware/fireworks-downloader.cpp -=================================================================== ---- trunk/libffado/support/firmware/fireworks-downloader.cpp (revision 2413) -+++ trunk/libffado/support/firmware/fireworks-downloader.cpp (revision 2651) -@@ -215,5 +215,5 @@ - - if (node_id < 0) { -- printMessage("Could not find device with GUID 0x%016"PRIX64"\n", guid); -+ printMessage("Could not find device with GUID 0x%016" PRIX64 "\n", guid); - return -1; - } -Index: trunk/libffado/support/dbus/controlserver.cpp -=================================================================== ---- trunk/libffado/support/dbus/controlserver.cpp (revision 2574) -+++ trunk/libffado/support/dbus/controlserver.cpp (revision 2651) -@@ -626,5 +626,5 @@ - { - uint64_t val = m_Slave.getValue(addr); -- debugOutput( DEBUG_LEVEL_VERBOSE, "getValue(%"PRId64") => %"PRId64"\n", addr, val ); -+ debugOutput( DEBUG_LEVEL_VERBOSE, "getValue(%" PRId64 ") => %" PRId64 "\n", addr, val ); - return val; - } diff --git a/libffado-diff-trunk-from-r2690-to-r2691.diff b/libffado-diff-trunk-from-r2690-to-r2691.diff deleted file mode 100644 index 3c1ff26..0000000 --- a/libffado-diff-trunk-from-r2690-to-r2691.diff +++ /dev/null @@ -1,1137 +0,0 @@ -Index: trunk/libffado/src/ffadodevice.cpp -=================================================================== ---- trunk/libffado/src/ffadodevice.cpp (revision 2019) -+++ trunk/libffado/src/ffadodevice.cpp (revision 2691) -@@ -41,5 +41,5 @@ - IMPL_DEBUG_MODULE( FFADODevice, FFADODevice, DEBUG_LEVEL_NORMAL ); - --FFADODevice::FFADODevice( DeviceManager& d, std::auto_ptr( configRom ) ) -+FFADODevice::FFADODevice( DeviceManager& d, ffado_smartptr( configRom ) ) - : Control::Container(&d) - , m_pConfigRom( configRom ) -@@ -100,5 +100,5 @@ - - FFADODevice * --FFADODevice::createDevice(std::auto_ptr( x )) -+FFADODevice::createDevice(ffado_smartptr( x )) - { - // re-implement this!! -Index: trunk/libffado/src/devicemanager.h -=================================================================== ---- trunk/libffado/src/devicemanager.h (revision 2078) -+++ trunk/libffado/src/devicemanager.h (revision 2691) -@@ -149,5 +149,5 @@ - FFADODevice* getDriverForDevice( ConfigRom *configRom, - int id ); -- FFADODevice* getSlaveDriver( std::auto_ptr( configRom ) ); -+ FFADODevice* getSlaveDriver( ffado_smartptr( configRom ) ); - - void busresetHandler(Ieee1394Service &); -Index: trunk/libffado/src/rme/rme_avdevice.h -=================================================================== ---- trunk/libffado/src/rme/rme_avdevice.h (revision 2663) -+++ trunk/libffado/src/rme/rme_avdevice.h (revision 2691) -@@ -79,5 +79,5 @@ - - Device( DeviceManager& d, -- std::auto_ptr( configRom )); -+ ffado_smartptr( configRom )); - virtual ~Device(); - -@@ -87,5 +87,5 @@ - static bool probe( Util::Configuration& c, ConfigRom& configRom, bool generic = false ); - static FFADODevice * createDevice( DeviceManager& d, -- std::auto_ptr( configRom )); -+ ffado_smartptr( configRom )); - static int getConfigurationId( ); - virtual bool discover(); -Index: trunk/libffado/src/rme/rme_avdevice.cpp -=================================================================== ---- trunk/libffado/src/rme/rme_avdevice.cpp (revision 2663) -+++ trunk/libffado/src/rme/rme_avdevice.cpp (revision 2691) -@@ -59,5 +59,5 @@ - - Device::Device( DeviceManager& d, -- std::auto_ptr( configRom )) -+ ffado_smartptr( configRom )) - : FFADODevice( d, configRom ) - , m_rme_model( RME_MODEL_NONE ) -@@ -372,5 +372,5 @@ - - FFADODevice * --Device::createDevice(DeviceManager& d, std::auto_ptr( configRom )) -+Device::createDevice(DeviceManager& d, ffado_smartptr( configRom )) - { - return new Device(d, configRom ); -Index: trunk/libffado/src/motu/motu_avdevice.h -=================================================================== ---- trunk/libffado/src/motu/motu_avdevice.h (revision 2502) -+++ trunk/libffado/src/motu/motu_avdevice.h (revision 2691) -@@ -381,5 +381,5 @@ - public: - -- MotuDevice( DeviceManager& d, std::auto_ptr( configRom ) ); -+ MotuDevice( DeviceManager& d, ffado_smartptr( configRom ) ); - virtual ~MotuDevice(); - -@@ -388,5 +388,5 @@ - - static bool probe( Util::Configuration&, ConfigRom& configRom, bool generic = false ); -- static FFADODevice * createDevice( DeviceManager& d, std::auto_ptr( configRom )); -+ static FFADODevice * createDevice( DeviceManager& d, ffado_smartptr( configRom )); - static int getConfigurationId( ); - virtual bool discover(); -Index: trunk/libffado/src/motu/motu_avdevice.cpp -=================================================================== ---- trunk/libffado/src/motu/motu_avdevice.cpp (revision 2651) -+++ trunk/libffado/src/motu/motu_avdevice.cpp (revision 2691) -@@ -316,5 +316,5 @@ - }; - --MotuDevice::MotuDevice( DeviceManager& d, std::auto_ptr( configRom )) -+MotuDevice::MotuDevice( DeviceManager& d, ffado_smartptr( configRom )) - : FFADODevice( d, configRom ) - , m_motu_model( MOTU_MODEL_NONE ) -@@ -383,5 +383,5 @@ - - FFADODevice * --MotuDevice::createDevice(DeviceManager& d, std::auto_ptr( configRom )) -+MotuDevice::createDevice(DeviceManager& d, ffado_smartptr( configRom )) - { - return new MotuDevice(d, configRom); -Index: trunk/libffado/src/ffadodevice.h -=================================================================== ---- trunk/libffado/src/ffadodevice.h (revision 2587) -+++ trunk/libffado/src/ffadodevice.h (revision 2691) -@@ -36,4 +36,11 @@ - #include - #include -+ -+// Prefer shared_ptr over auto_ptr if it is available -+#if __cplusplus >= 201103L -+#define ffado_smartptr std::shared_ptr -+#else -+#define ffado_smartptr std::auto_ptr -+#endif - - class DeviceManager; -@@ -61,5 +68,5 @@ - { - public: -- FFADODevice( DeviceManager&, std::auto_ptr< ConfigRom >( configRom ) ); -+ FFADODevice( DeviceManager&, ffado_smartptr< ConfigRom >( configRom ) ); - - virtual ~FFADODevice(); -@@ -129,5 +136,5 @@ - * @return a new instance of the AvDevice type, NULL when unsuccessful - */ -- static FFADODevice * createDevice( std::auto_ptr( x )); -+ static FFADODevice * createDevice( ffado_smartptr( x )); - - /** -@@ -481,5 +488,5 @@ - {return m_pDeviceManager;}; - private: -- std::auto_ptr( m_pConfigRom ); -+ ffado_smartptr( m_pConfigRom ); - DeviceManager& m_pDeviceManager; - Control::Container* m_genericContainer; -Index: trunk/libffado/src/metrichalo/mh_avdevice.h -=================================================================== ---- trunk/libffado/src/metrichalo/mh_avdevice.h (revision 1543) -+++ trunk/libffado/src/metrichalo/mh_avdevice.h (revision 2691) -@@ -41,10 +41,10 @@ - public: - Device( DeviceManager& d, -- std::auto_ptr( configRom )); -+ ffado_smartptr( configRom )); - virtual ~Device(); - - static bool probe( Util::Configuration& c, ConfigRom& configRom, bool generic = false ); - static FFADODevice * createDevice( DeviceManager& d, -- std::auto_ptr( configRom )); -+ ffado_smartptr( configRom )); - static int getConfigurationId(); - virtual bool discover(); -Index: trunk/libffado/src/metrichalo/mh_avdevice.cpp -=================================================================== ---- trunk/libffado/src/metrichalo/mh_avdevice.cpp (revision 1543) -+++ trunk/libffado/src/metrichalo/mh_avdevice.cpp (revision 2691) -@@ -47,5 +47,5 @@ - - Device::Device( DeviceManager& d, -- std::auto_ptr( configRom )) -+ ffado_smartptr( configRom )) - : FFADODevice( d, configRom ) - { -@@ -76,5 +76,5 @@ - FFADODevice * - Device::createDevice( DeviceManager& d, -- std::auto_ptr( configRom )) -+ ffado_smartptr( configRom )) - { - return new Device(d, configRom ); -Index: trunk/libffado/src/oxford/oxford_device.cpp -=================================================================== ---- trunk/libffado/src/oxford/oxford_device.cpp (revision 1543) -+++ trunk/libffado/src/oxford/oxford_device.cpp (revision 2691) -@@ -45,5 +45,5 @@ - namespace Oxford { - --Device::Device(DeviceManager& d, std::auto_ptr( configRom )) -+Device::Device(DeviceManager& d, ffado_smartptr( configRom )) - : GenericAVC::Device( d, configRom) - { -@@ -121,5 +121,5 @@ - - FFADODevice * --Device::createDevice(DeviceManager& d, std::auto_ptr( configRom )) -+Device::createDevice(DeviceManager& d, ffado_smartptr( configRom )) - { - unsigned int vendorId = configRom->getNodeVendorId(); -Index: trunk/libffado/src/oxford/oxford_device.h -=================================================================== ---- trunk/libffado/src/oxford/oxford_device.h (revision 1543) -+++ trunk/libffado/src/oxford/oxford_device.h (revision 2691) -@@ -40,9 +40,9 @@ - - public: -- Device( DeviceManager& d, std::auto_ptr( configRom ) ); -+ Device( DeviceManager& d, ffado_smartptr( configRom ) ); - virtual ~Device(); - - static bool probe( Util::Configuration&, ConfigRom& configRom, bool generic = false ); -- static FFADODevice * createDevice( DeviceManager& d, std::auto_ptr( configRom )); -+ static FFADODevice * createDevice( DeviceManager& d, ffado_smartptr( configRom )); - virtual bool discover(); - -Index: trunk/libffado/src/dice/dice_avdevice.h -=================================================================== ---- trunk/libffado/src/dice/dice_avdevice.h (revision 2430) -+++ trunk/libffado/src/dice/dice_avdevice.h (revision 2691) -@@ -69,10 +69,10 @@ - public: - /// constructor -- Device( DeviceManager& d, std::auto_ptr( configRom )); -+ Device( DeviceManager& d, ffado_smartptr( configRom )); - /// destructor - ~Device(); - - static bool probe( Util::Configuration& c, ConfigRom& configRom, bool generic = false ); -- static FFADODevice * createDevice( DeviceManager& d, std::auto_ptr( configRom )); -+ static FFADODevice * createDevice( DeviceManager& d, ffado_smartptr( configRom )); - virtual bool discover(); - -Index: trunk/libffado/src/dice/focusrite/saffire_56.h -=================================================================== ---- trunk/libffado/src/dice/focusrite/saffire_56.h (revision 2580) -+++ trunk/libffado/src/dice/focusrite/saffire_56.h (revision 2691) -@@ -90,5 +90,5 @@ - public: - Saffire56( DeviceManager& d, -- std::auto_ptr( configRom )); -+ ffado_smartptr( configRom )); - virtual ~Saffire56(); - -Index: trunk/libffado/src/dice/focusrite/saffire_pro40.cpp -=================================================================== ---- trunk/libffado/src/dice/focusrite/saffire_pro40.cpp (revision 2547) -+++ trunk/libffado/src/dice/focusrite/saffire_pro40.cpp (revision 2691) -@@ -479,5 +479,5 @@ - */ - SaffirePro40::SaffirePro40( DeviceManager& d, -- std::auto_ptr( configRom )) -+ ffado_smartptr( configRom )) - : Dice::Device( d , configRom) - { -Index: trunk/libffado/src/dice/focusrite/saffire_pro14.cpp -=================================================================== ---- trunk/libffado/src/dice/focusrite/saffire_pro14.cpp (revision 2431) -+++ trunk/libffado/src/dice/focusrite/saffire_pro14.cpp (revision 2691) -@@ -356,5 +356,5 @@ - */ - SaffirePro14::SaffirePro14( DeviceManager& d, -- std::auto_ptr( configRom )) -+ ffado_smartptr( configRom )) - : Dice::Device( d , configRom) - { -Index: trunk/libffado/src/dice/focusrite/saffire_pro24.cpp -=================================================================== ---- trunk/libffado/src/dice/focusrite/saffire_pro24.cpp (revision 2598) -+++ trunk/libffado/src/dice/focusrite/saffire_pro24.cpp (revision 2691) -@@ -408,5 +408,5 @@ - - SaffirePro24::SaffirePro24( DeviceManager& d, -- std::auto_ptr( configRom )) -+ ffado_smartptr( configRom )) - : Dice::Device(d , configRom) - { -Index: trunk/libffado/src/dice/focusrite/saffire_pro26.cpp -=================================================================== ---- trunk/libffado/src/dice/focusrite/saffire_pro26.cpp (revision 2606) -+++ trunk/libffado/src/dice/focusrite/saffire_pro26.cpp (revision 2691) -@@ -358,5 +358,5 @@ - - SaffirePro26::SaffirePro26( DeviceManager& d, -- std::auto_ptr( configRom )) -+ ffado_smartptr( configRom )) - : Dice::Device(d , configRom) - { -Index: trunk/libffado/src/dice/focusrite/saffire_pro40.h -=================================================================== ---- trunk/libffado/src/dice/focusrite/saffire_pro40.h (revision 2547) -+++ trunk/libffado/src/dice/focusrite/saffire_pro40.h (revision 2691) -@@ -85,5 +85,5 @@ - public: - SaffirePro40( DeviceManager& d, -- std::auto_ptr( configRom )); -+ ffado_smartptr( configRom )); - virtual ~SaffirePro40(); - -Index: trunk/libffado/src/dice/focusrite/saffire_56.cpp -=================================================================== ---- trunk/libffado/src/dice/focusrite/saffire_56.cpp (revision 2580) -+++ trunk/libffado/src/dice/focusrite/saffire_56.cpp (revision 2691) -@@ -502,5 +502,5 @@ - */ - Saffire56::Saffire56( DeviceManager& d, -- std::auto_ptr( configRom )) -+ ffado_smartptr( configRom )) - : Dice::Device( d , configRom) - { -Index: trunk/libffado/src/dice/focusrite/saffire_pro14.h -=================================================================== ---- trunk/libffado/src/dice/focusrite/saffire_pro14.h (revision 2431) -+++ trunk/libffado/src/dice/focusrite/saffire_pro14.h (revision 2691) -@@ -93,5 +93,5 @@ - public: - SaffirePro14( DeviceManager& d, -- std::auto_ptr( configRom )); -+ ffado_smartptr( configRom )); - virtual ~SaffirePro14(); - -Index: trunk/libffado/src/dice/focusrite/saffire_pro24.h -=================================================================== ---- trunk/libffado/src/dice/focusrite/saffire_pro24.h (revision 2431) -+++ trunk/libffado/src/dice/focusrite/saffire_pro24.h (revision 2691) -@@ -92,5 +92,5 @@ - public: - SaffirePro24( DeviceManager& d, -- std::auto_ptr( configRom )); -+ ffado_smartptr( configRom )); - ~SaffirePro24(); - -Index: trunk/libffado/src/dice/focusrite/saffire_pro26.h -=================================================================== ---- trunk/libffado/src/dice/focusrite/saffire_pro26.h (revision 2590) -+++ trunk/libffado/src/dice/focusrite/saffire_pro26.h (revision 2691) -@@ -80,5 +80,5 @@ - public: - SaffirePro26( DeviceManager& d, -- std::auto_ptr( configRom )); -+ ffado_smartptr( configRom )); - ~SaffirePro26(); - -Index: trunk/libffado/src/dice/dice_avdevice.cpp -=================================================================== ---- trunk/libffado/src/dice/dice_avdevice.cpp (revision 2651) -+++ trunk/libffado/src/dice/dice_avdevice.cpp (revision 2691) -@@ -61,5 +61,5 @@ - namespace Dice { - --Device::Device( DeviceManager& d, std::auto_ptr( configRom )) -+Device::Device( DeviceManager& d, ffado_smartptr( configRom )) - : FFADODevice( d, configRom ) - , m_eap( NULL ) -@@ -126,5 +126,5 @@ - - FFADODevice * --Device::createDevice( DeviceManager& d, std::auto_ptr( configRom )) -+Device::createDevice( DeviceManager& d, ffado_smartptr( configRom )) - { - unsigned int vendorId = configRom->getNodeVendorId(); -Index: trunk/libffado/src/dice/maudio/profire_2626.cpp -=================================================================== ---- trunk/libffado/src/dice/maudio/profire_2626.cpp (revision 2433) -+++ trunk/libffado/src/dice/maudio/profire_2626.cpp (revision 2691) -@@ -363,5 +363,5 @@ - Device - */ --Profire2626::Profire2626( DeviceManager& d, std::auto_ptr(configRom)) -+Profire2626::Profire2626( DeviceManager& d, ffado_smartptr(configRom)) - : Dice::Device( d, configRom) - { -Index: trunk/libffado/src/dice/maudio/profire_2626.h -=================================================================== ---- trunk/libffado/src/dice/maudio/profire_2626.h (revision 2433) -+++ trunk/libffado/src/dice/maudio/profire_2626.h (revision 2691) -@@ -44,5 +44,5 @@ - public: - Profire2626( DeviceManager& d, -- std::auto_ptr( configRom )); -+ ffado_smartptr( configRom )); - virtual ~Profire2626(); - -Index: trunk/libffado/src/dice/presonus/firestudio_tube.h -=================================================================== ---- trunk/libffado/src/dice/presonus/firestudio_tube.h (revision 2251) -+++ trunk/libffado/src/dice/presonus/firestudio_tube.h (revision 2691) -@@ -37,5 +37,5 @@ - public: - FirestudioTube( DeviceManager& d, -- std::auto_ptr( configRom )); -+ ffado_smartptr( configRom )); - virtual ~FirestudioTube(); - -Index: trunk/libffado/src/dice/presonus/firestudio_project.cpp -=================================================================== ---- trunk/libffado/src/dice/presonus/firestudio_project.cpp (revision 2257) -+++ trunk/libffado/src/dice/presonus/firestudio_project.cpp (revision 2691) -@@ -155,5 +155,5 @@ - */ - FirestudioProject::FirestudioProject( DeviceManager& d, -- std::auto_ptr( configRom )) -+ ffado_smartptr( configRom )) - : Dice::Device( d , configRom) - { -Index: trunk/libffado/src/dice/presonus/firestudio_mobile.cpp -=================================================================== ---- trunk/libffado/src/dice/presonus/firestudio_mobile.cpp (revision 2578) -+++ trunk/libffado/src/dice/presonus/firestudio_mobile.cpp (revision 2691) -@@ -154,5 +154,5 @@ - */ - FirestudioMobile::FirestudioMobile( DeviceManager& d, -- std::auto_ptr( configRom )) -+ ffado_smartptr( configRom )) - : Dice::Device( d , configRom) - { -Index: trunk/libffado/src/dice/presonus/firestudio_project.h -=================================================================== ---- trunk/libffado/src/dice/presonus/firestudio_project.h (revision 2257) -+++ trunk/libffado/src/dice/presonus/firestudio_project.h (revision 2691) -@@ -37,5 +37,5 @@ - public: - FirestudioProject( DeviceManager& d, -- std::auto_ptr( configRom )); -+ ffado_smartptr( configRom )); - virtual ~FirestudioProject(); - -Index: trunk/libffado/src/dice/presonus/firestudio_mobile.h -=================================================================== ---- trunk/libffado/src/dice/presonus/firestudio_mobile.h (revision 2578) -+++ trunk/libffado/src/dice/presonus/firestudio_mobile.h (revision 2691) -@@ -38,5 +38,5 @@ - public: - FirestudioMobile( DeviceManager& d, -- std::auto_ptr( configRom )); -+ ffado_smartptr( configRom )); - virtual ~FirestudioMobile(); - -Index: trunk/libffado/src/dice/presonus/firestudio_tube.cpp -=================================================================== ---- trunk/libffado/src/dice/presonus/firestudio_tube.cpp (revision 2251) -+++ trunk/libffado/src/dice/presonus/firestudio_tube.cpp (revision 2691) -@@ -143,5 +143,5 @@ - */ - FirestudioTube::FirestudioTube( DeviceManager& d, -- std::auto_ptr( configRom )) -+ ffado_smartptr( configRom )) - : Dice::Device( d , configRom) - { -Index: trunk/libffado/src/digidesign/digidesign_avdevice.h -=================================================================== ---- trunk/libffado/src/digidesign/digidesign_avdevice.h (revision 1964) -+++ trunk/libffado/src/digidesign/digidesign_avdevice.h (revision 2691) -@@ -51,5 +51,5 @@ - - Device( DeviceManager& d, -- std::auto_ptr( configRom )); -+ ffado_smartptr( configRom )); - virtual ~Device(); - -@@ -59,5 +59,5 @@ - static bool probe( Util::Configuration& c, ConfigRom& configRom, bool generic = false ); - static FFADODevice * createDevice( DeviceManager& d, -- std::auto_ptr( configRom )); -+ ffado_smartptr( configRom )); - static int getConfigurationId( ); - virtual bool discover(); -Index: trunk/libffado/src/digidesign/digidesign_avdevice.cpp -=================================================================== ---- trunk/libffado/src/digidesign/digidesign_avdevice.cpp (revision 1964) -+++ trunk/libffado/src/digidesign/digidesign_avdevice.cpp (revision 2691) -@@ -52,5 +52,5 @@ - - Device::Device( DeviceManager& d, -- std::auto_ptr( configRom )) -+ ffado_smartptr( configRom )) - : FFADODevice( d, configRom ) - , m_digidesign_model( DIGIDESIGN_MODEL_NONE ) -@@ -125,5 +125,5 @@ - - FFADODevice * --Device::createDevice(DeviceManager& d, std::auto_ptr( configRom )) -+Device::createDevice(DeviceManager& d, ffado_smartptr( configRom )) - { - return new Device(d, configRom ); -Index: trunk/libffado/src/genericavc/avc_avdevice.cpp -=================================================================== ---- trunk/libffado/src/genericavc/avc_avdevice.cpp (revision 1791) -+++ trunk/libffado/src/genericavc/avc_avdevice.cpp (revision 2691) -@@ -52,5 +52,5 @@ - IMPL_DEBUG_MODULE( Device, Device, DEBUG_LEVEL_NORMAL ); - --Device::Device( DeviceManager& d, std::auto_ptr( configRom )) -+Device::Device( DeviceManager& d, ffado_smartptr( configRom )) - : FFADODevice( d, configRom ) - { -@@ -109,5 +109,5 @@ - - FFADODevice * --Device::createDevice(DeviceManager& d, std::auto_ptr( configRom )) -+Device::createDevice(DeviceManager& d, ffado_smartptr( configRom )) - { - unsigned int vendorId = configRom->getNodeVendorId(); -Index: trunk/libffado/src/genericavc/avc_avdevice.h -=================================================================== ---- trunk/libffado/src/genericavc/avc_avdevice.h (revision 1543) -+++ trunk/libffado/src/genericavc/avc_avdevice.h (revision 2691) -@@ -48,10 +48,10 @@ - class Device : public FFADODevice, public AVC::Unit { - public: -- Device( DeviceManager& d, std::auto_ptr( configRom )); -+ Device( DeviceManager& d, ffado_smartptr( configRom )); - virtual ~Device(); - - static bool probe( Util::Configuration&, ConfigRom& configRom, bool generic = false ); - virtual bool discover(); -- static FFADODevice * createDevice( DeviceManager& d, std::auto_ptr( configRom )); -+ static FFADODevice * createDevice( DeviceManager& d, ffado_smartptr( configRom )); - - virtual bool serialize( std::string basePath, Util::IOSerialize& ser ) const; -Index: trunk/libffado/src/genericavc/stanton/scs.cpp -=================================================================== ---- trunk/libffado/src/genericavc/stanton/scs.cpp (revision 2651) -+++ trunk/libffado/src/genericavc/stanton/scs.cpp (revision 2691) -@@ -34,5 +34,5 @@ - - ScsDevice::ScsDevice( DeviceManager& d, -- std::auto_ptr( configRom )) -+ ffado_smartptr( configRom )) - : GenericAVC::Device( d , configRom) - , m_hss1394handler( NULL ) -Index: trunk/libffado/src/genericavc/stanton/scs.h -=================================================================== ---- trunk/libffado/src/genericavc/stanton/scs.h (revision 1550) -+++ trunk/libffado/src/genericavc/stanton/scs.h (revision 2691) -@@ -71,5 +71,5 @@ - public: - ScsDevice( DeviceManager& d, -- std::auto_ptr( configRom )); -+ ffado_smartptr( configRom )); - virtual ~ScsDevice(); - -Index: trunk/libffado/src/bebob/esi/quatafire610.cpp -=================================================================== ---- trunk/libffado/src/bebob/esi/quatafire610.cpp (revision 1543) -+++ trunk/libffado/src/bebob/esi/quatafire610.cpp (revision 2691) -@@ -29,5 +29,5 @@ - namespace ESI { - --QuataFireDevice::QuataFireDevice( DeviceManager& d, std::auto_ptr( configRom )) -+QuataFireDevice::QuataFireDevice( DeviceManager& d, ffado_smartptr( configRom )) - : BeBoB::Device( d, configRom) - { -Index: trunk/libffado/src/bebob/esi/quatafire610.h -=================================================================== ---- trunk/libffado/src/bebob/esi/quatafire610.h (revision 1543) -+++ trunk/libffado/src/bebob/esi/quatafire610.h (revision 2691) -@@ -34,5 +34,5 @@ - - public: -- QuataFireDevice( DeviceManager& d, std::auto_ptr( configRom )); -+ QuataFireDevice( DeviceManager& d, ffado_smartptr( configRom )); - virtual ~QuataFireDevice(); - -Index: trunk/libffado/src/bebob/mackie/onyxmixer.cpp -=================================================================== ---- trunk/libffado/src/bebob/mackie/onyxmixer.cpp (revision 1543) -+++ trunk/libffado/src/bebob/mackie/onyxmixer.cpp (revision 2691) -@@ -29,5 +29,5 @@ - namespace Mackie { - --OnyxMixerDevice::OnyxMixerDevice( DeviceManager& d, std::auto_ptr( configRom )) -+OnyxMixerDevice::OnyxMixerDevice( DeviceManager& d, ffado_smartptr( configRom )) - : BeBoB::Device( d, configRom) - { -Index: trunk/libffado/src/bebob/mackie/onyxmixer.h -=================================================================== ---- trunk/libffado/src/bebob/mackie/onyxmixer.h (revision 1543) -+++ trunk/libffado/src/bebob/mackie/onyxmixer.h (revision 2691) -@@ -34,5 +34,5 @@ - - public: -- OnyxMixerDevice( DeviceManager& d, std::auto_ptr( configRom )); -+ OnyxMixerDevice( DeviceManager& d, ffado_smartptr( configRom )); - virtual ~OnyxMixerDevice(); - -Index: trunk/libffado/src/bebob/bebob_avdevice.cpp -=================================================================== ---- trunk/libffado/src/bebob/bebob_avdevice.cpp (revision 2671) -+++ trunk/libffado/src/bebob/bebob_avdevice.cpp (revision 2691) -@@ -65,5 +65,5 @@ - namespace BeBoB { - --Device::Device( DeviceManager& d, std::auto_ptr< ConfigRom >( configRom ) ) -+Device::Device( DeviceManager& d, ffado_smartptr< ConfigRom >( configRom ) ) - : GenericAVC::Device( d, configRom ) - , m_last_discovery_config_id ( 0xFFFFFFFFFFFFFFFFLLU ) -@@ -131,5 +131,5 @@ - - FFADODevice * --Device::createDevice(DeviceManager& d, std::auto_ptr( configRom )) -+Device::createDevice(DeviceManager& d, ffado_smartptr( configRom )) - { - unsigned int vendorId = configRom->getNodeVendorId(); -Index: trunk/libffado/src/bebob/yamaha/yamaha_avdevice.cpp -=================================================================== ---- trunk/libffado/src/bebob/yamaha/yamaha_avdevice.cpp (revision 2439) -+++ trunk/libffado/src/bebob/yamaha/yamaha_avdevice.cpp (revision 2691) -@@ -29,5 +29,5 @@ - namespace Yamaha { - --GoDevice::GoDevice(DeviceManager& d, std::auto_ptr( configRom )) -+GoDevice::GoDevice(DeviceManager& d, ffado_smartptr( configRom )) - : BeBoB::Device( d, configRom) - { -Index: trunk/libffado/src/bebob/yamaha/yamaha_avdevice.h -=================================================================== ---- trunk/libffado/src/bebob/yamaha/yamaha_avdevice.h (revision 2439) -+++ trunk/libffado/src/bebob/yamaha/yamaha_avdevice.h (revision 2691) -@@ -35,5 +35,5 @@ - class GoDevice : public BeBoB::Device { - public: -- GoDevice( DeviceManager& d, std::auto_ptr( configRom )); -+ GoDevice( DeviceManager& d, ffado_smartptr( configRom )); - virtual ~GoDevice(); - -Index: trunk/libffado/src/bebob/focusrite/focusrite_generic.cpp -=================================================================== ---- trunk/libffado/src/bebob/focusrite/focusrite_generic.cpp (revision 2651) -+++ trunk/libffado/src/bebob/focusrite/focusrite_generic.cpp (revision 2691) -@@ -30,5 +30,5 @@ - namespace Focusrite { - --FocusriteDevice::FocusriteDevice( DeviceManager& d, std::auto_ptr( configRom )) -+FocusriteDevice::FocusriteDevice( DeviceManager& d, ffado_smartptr( configRom )) - : BeBoB::Device( d, configRom) - , m_cmd_time_interval( 0 ) -Index: trunk/libffado/src/bebob/focusrite/focusrite_saffire.cpp -=================================================================== ---- trunk/libffado/src/bebob/focusrite/focusrite_saffire.cpp (revision 2651) -+++ trunk/libffado/src/bebob/focusrite/focusrite_saffire.cpp (revision 2691) -@@ -30,5 +30,5 @@ - namespace Focusrite { - --SaffireDevice::SaffireDevice( DeviceManager& d, std::auto_ptr( configRom )) -+SaffireDevice::SaffireDevice( DeviceManager& d, ffado_smartptr( configRom )) - : FocusriteDevice( d, configRom) - , m_MixerContainer( NULL ) -Index: trunk/libffado/src/bebob/focusrite/focusrite_saffirepro.cpp -=================================================================== ---- trunk/libffado/src/bebob/focusrite/focusrite_saffirepro.cpp (revision 2413) -+++ trunk/libffado/src/bebob/focusrite/focusrite_saffirepro.cpp (revision 2691) -@@ -34,5 +34,5 @@ - namespace Focusrite { - --SaffireProDevice::SaffireProDevice( DeviceManager& d, std::auto_ptr( configRom )) -+SaffireProDevice::SaffireProDevice( DeviceManager& d, ffado_smartptr( configRom )) - : FocusriteDevice( d, configRom ) - , m_MixerContainer( NULL ) -Index: trunk/libffado/src/bebob/focusrite/focusrite_generic.h -=================================================================== ---- trunk/libffado/src/bebob/focusrite/focusrite_generic.h (revision 1742) -+++ trunk/libffado/src/bebob/focusrite/focusrite_generic.h (revision 2691) -@@ -227,5 +227,5 @@ - class FocusriteDevice : public BeBoB::Device { - public: -- FocusriteDevice(DeviceManager& d, std::auto_ptr( configRom )); -+ FocusriteDevice(DeviceManager& d, ffado_smartptr( configRom )); - virtual ~FocusriteDevice() {}; - -Index: trunk/libffado/src/bebob/focusrite/focusrite_saffire.h -=================================================================== ---- trunk/libffado/src/bebob/focusrite/focusrite_saffire.h (revision 1498) -+++ trunk/libffado/src/bebob/focusrite/focusrite_saffire.h (revision 2691) -@@ -270,5 +270,5 @@ - class SaffireDevice : public FocusriteDevice { - public: -- SaffireDevice(DeviceManager& d, std::auto_ptr( configRom )); -+ SaffireDevice(DeviceManager& d, ffado_smartptr( configRom )); - virtual ~SaffireDevice() {}; - -Index: trunk/libffado/src/bebob/focusrite/focusrite_saffirepro.h -=================================================================== ---- trunk/libffado/src/bebob/focusrite/focusrite_saffirepro.h (revision 1498) -+++ trunk/libffado/src/bebob/focusrite/focusrite_saffirepro.h (revision 2691) -@@ -357,5 +357,5 @@ - - public: -- SaffireProDevice( DeviceManager& d, std::auto_ptr( configRom )); -+ SaffireProDevice( DeviceManager& d, ffado_smartptr( configRom )); - virtual ~SaffireProDevice(); - -Index: trunk/libffado/src/bebob/bebob_avdevice.h -=================================================================== ---- trunk/libffado/src/bebob/bebob_avdevice.h (revision 2443) -+++ trunk/libffado/src/bebob/bebob_avdevice.h (revision 2691) -@@ -61,5 +61,5 @@ - class Device : public GenericAVC::Device { - public: -- Device( DeviceManager& d, std::auto_ptr( configRom )); -+ Device( DeviceManager& d, ffado_smartptr( configRom )); - virtual ~Device(); - -@@ -69,5 +69,5 @@ - virtual bool discover(); - -- static FFADODevice * createDevice( DeviceManager& d, std::auto_ptr( configRom )); -+ static FFADODevice * createDevice( DeviceManager& d, ffado_smartptr( configRom )); - - virtual AVC::Subunit* createSubunit(AVC::Unit& unit, -Index: trunk/libffado/src/bebob/terratec/terratec_device.cpp -=================================================================== ---- trunk/libffado/src/bebob/terratec/terratec_device.cpp (revision 1763) -+++ trunk/libffado/src/bebob/terratec/terratec_device.cpp (revision 2691) -@@ -29,5 +29,5 @@ - namespace Terratec { - --Phase88Device::Phase88Device(DeviceManager& d, std::auto_ptr( configRom )) -+Phase88Device::Phase88Device(DeviceManager& d, ffado_smartptr( configRom )) - : BeBoB::Device( d, configRom) - { -Index: trunk/libffado/src/bebob/terratec/terratec_device.h -=================================================================== ---- trunk/libffado/src/bebob/terratec/terratec_device.h (revision 1763) -+++ trunk/libffado/src/bebob/terratec/terratec_device.h (revision 2691) -@@ -34,5 +34,5 @@ - class Phase88Device : public BeBoB::Device { - public: -- Phase88Device( DeviceManager& d, std::auto_ptr( configRom )); -+ Phase88Device( DeviceManager& d, ffado_smartptr( configRom )); - virtual ~Phase88Device(); - -Index: trunk/libffado/src/bebob/template/vendor_device.h -=================================================================== ---- trunk/libffado/src/bebob/template/vendor_device.h (revision 1543) -+++ trunk/libffado/src/bebob/template/vendor_device.h (revision 2691) -@@ -35,5 +35,5 @@ - public: - VendorDevice( Ieee1394Service& ieee1394Service, -- std::auto_ptr( configRom )); -+ ffado_smartptr( configRom )); - virtual ~VendorDevice(); - -Index: trunk/libffado/src/bebob/template/vendor_device.cpp -=================================================================== ---- trunk/libffado/src/bebob/template/vendor_device.cpp (revision 1543) -+++ trunk/libffado/src/bebob/template/vendor_device.cpp (revision 2691) -@@ -28,5 +28,5 @@ - - VendorDevice::VendorDevice( Ieee1394Service& ieee1394Service, -- std::auto_ptr( configRom )) -+ ffado_smartptr( configRom )) - : BeBoB::Device( ieee1394Service, configRom) - { -Index: trunk/libffado/src/bebob/bebob_dl_mgr.cpp -=================================================================== ---- trunk/libffado/src/bebob/bebob_dl_mgr.cpp (revision 2587) -+++ trunk/libffado/src/bebob/bebob_dl_mgr.cpp (revision 2691) -@@ -242,5 +242,5 @@ - - printf( "parse BCD file\n" ); -- std::auto_ptr bcd = std::auto_ptr( new BCD( filename ) ); -+ ffado_smartptr bcd = ffado_smartptr( new BCD( filename ) ); - if ( !bcd.get() ) { - debugError( "downloadFirmware: Could not open or parse BCD '%s'\n", -@@ -305,5 +305,5 @@ - - printf( "parse BCD file\n" ); -- std::auto_ptr bcd = std::auto_ptr( new BCD( filename ) ); -+ ffado_smartptr bcd = ffado_smartptr( new BCD( filename ) ); - if ( !bcd.get() ) { - debugError( "downloadCnE: Could not open or parse BCD '%s'\n", -Index: trunk/libffado/src/bebob/edirol/edirol_fa66.cpp -=================================================================== ---- trunk/libffado/src/bebob/edirol/edirol_fa66.cpp (revision 1543) -+++ trunk/libffado/src/bebob/edirol/edirol_fa66.cpp (revision 2691) -@@ -28,5 +28,5 @@ - - EdirolFa66Device::EdirolFa66Device( DeviceManager& d, -- std::auto_ptr( configRom )) -+ ffado_smartptr( configRom )) - : BeBoB::Device( d , configRom) - { -Index: trunk/libffado/src/bebob/edirol/edirol_fa66.h -=================================================================== ---- trunk/libffado/src/bebob/edirol/edirol_fa66.h (revision 1543) -+++ trunk/libffado/src/bebob/edirol/edirol_fa66.h (revision 2691) -@@ -33,5 +33,5 @@ - public: - EdirolFa66Device( DeviceManager& d, -- std::auto_ptr( configRom )); -+ ffado_smartptr( configRom )); - virtual ~EdirolFa66Device(); - -Index: trunk/libffado/src/bebob/edirol/edirol_fa101.cpp -=================================================================== ---- trunk/libffado/src/bebob/edirol/edirol_fa101.cpp (revision 1543) -+++ trunk/libffado/src/bebob/edirol/edirol_fa101.cpp (revision 2691) -@@ -28,5 +28,5 @@ - - EdirolFa101Device::EdirolFa101Device( DeviceManager& d, -- std::auto_ptr( configRom )) -+ ffado_smartptr( configRom )) - : BeBoB::Device( d , configRom) - { -Index: trunk/libffado/src/bebob/edirol/edirol_fa101.h -=================================================================== ---- trunk/libffado/src/bebob/edirol/edirol_fa101.h (revision 1543) -+++ trunk/libffado/src/bebob/edirol/edirol_fa101.h (revision 2691) -@@ -33,5 +33,5 @@ - public: - EdirolFa101Device( DeviceManager& d, -- std::auto_ptr( configRom )); -+ ffado_smartptr( configRom )); - virtual ~EdirolFa101Device(); - -Index: trunk/libffado/src/bebob/maudio/normal_avdevice.cpp -=================================================================== ---- trunk/libffado/src/bebob/maudio/normal_avdevice.cpp (revision 2490) -+++ trunk/libffado/src/bebob/maudio/normal_avdevice.cpp (revision 2691) -@@ -29,5 +29,5 @@ - namespace Normal { - --Device::Device(DeviceManager& d, std::auto_ptr( configRom ), -+Device::Device(DeviceManager& d, ffado_smartptr( configRom ), - unsigned int modelId) - : BeBoB::Device( d, configRom) -Index: trunk/libffado/src/bebob/maudio/normal_avdevice.h -=================================================================== ---- trunk/libffado/src/bebob/maudio/normal_avdevice.h (revision 2490) -+++ trunk/libffado/src/bebob/maudio/normal_avdevice.h (revision 2691) -@@ -43,5 +43,5 @@ - class Device : public BeBoB::Device { - public: -- Device( DeviceManager& d, std::auto_ptr( configRom ), -+ Device( DeviceManager& d, ffado_smartptr( configRom ), - unsigned int modelId); - virtual ~Device(); -Index: trunk/libffado/src/bebob/maudio/special_avdevice.cpp -=================================================================== ---- trunk/libffado/src/bebob/maudio/special_avdevice.cpp (revision 2529) -+++ trunk/libffado/src/bebob/maudio/special_avdevice.cpp (revision 2691) -@@ -36,5 +36,5 @@ - namespace Special { - --Device::Device(DeviceManager& d, std::auto_ptr(configRom)) -+Device::Device(DeviceManager& d, ffado_smartptr(configRom)) - : BeBoB::Device(d, configRom) - { -Index: trunk/libffado/src/bebob/maudio/special_avdevice.h -=================================================================== ---- trunk/libffado/src/bebob/maudio/special_avdevice.h (revision 2491) -+++ trunk/libffado/src/bebob/maudio/special_avdevice.h (revision 2691) -@@ -141,5 +141,5 @@ - { - public: -- Device(DeviceManager& d, std::auto_ptr(configRom)); -+ Device(DeviceManager& d, ffado_smartptr(configRom)); - virtual ~Device() {}; - virtual void showDevice(); -Index: trunk/libffado/src/bebob/presonus/inspire1394_avdevice.cpp -=================================================================== ---- trunk/libffado/src/bebob/presonus/inspire1394_avdevice.cpp (revision 2489) -+++ trunk/libffado/src/bebob/presonus/inspire1394_avdevice.cpp (revision 2691) -@@ -105,5 +105,5 @@ - } - --Device::Device(DeviceManager& d, std::auto_ptr(configRom)) -+Device::Device(DeviceManager& d, ffado_smartptr(configRom)) - : BeBoB::Device( d, configRom ) - { -Index: trunk/libffado/src/bebob/presonus/firebox_avdevice.cpp -=================================================================== ---- trunk/libffado/src/bebob/presonus/firebox_avdevice.cpp (revision 2489) -+++ trunk/libffado/src/bebob/presonus/firebox_avdevice.cpp (revision 2691) -@@ -29,5 +29,5 @@ - namespace Firebox { - --Device::Device(DeviceManager& d, std::auto_ptr(configRom)) -+Device::Device(DeviceManager& d, ffado_smartptr(configRom)) - : BeBoB::Device( d, configRom) - { -Index: trunk/libffado/src/bebob/presonus/inspire1394_avdevice.h -=================================================================== ---- trunk/libffado/src/bebob/presonus/inspire1394_avdevice.h (revision 2489) -+++ trunk/libffado/src/bebob/presonus/inspire1394_avdevice.h (revision 2691) -@@ -45,5 +45,5 @@ - class Device : public BeBoB::Device { - public: -- Device( DeviceManager& d, std::auto_ptr( configRom )); -+ Device( DeviceManager& d, ffado_smartptr( configRom )); - virtual ~Device(); - -Index: trunk/libffado/src/bebob/presonus/firebox_avdevice.h -=================================================================== ---- trunk/libffado/src/bebob/presonus/firebox_avdevice.h (revision 2489) -+++ trunk/libffado/src/bebob/presonus/firebox_avdevice.h (revision 2691) -@@ -36,5 +36,5 @@ - class Device : public BeBoB::Device { - public: -- Device( DeviceManager& d, std::auto_ptr( configRom )); -+ Device( DeviceManager& d, ffado_smartptr( configRom )); - virtual ~Device(); - -Index: trunk/libffado/src/devicemanager.cpp -=================================================================== ---- trunk/libffado/src/devicemanager.cpp (revision 2450) -+++ trunk/libffado/src/devicemanager.cpp (revision 2691) -@@ -710,6 +710,6 @@ - debugOutput( DEBUG_LEVEL_VERBOSE, "Starting in slave mode on node %d...\n", nodeId ); - -- std::auto_ptr configRom = -- std::auto_ptr( new ConfigRom( *portService, -+ ffado_smartptr configRom = -+ ffado_smartptr( new ConfigRom( *portService, - nodeId ) ); - if ( !configRom->initialize() ) { -@@ -1032,5 +1032,5 @@ - debugOutput( DEBUG_LEVEL_VERBOSE, "Trying BeBoB...\n" ); - if ( BeBoB::Device::probe( getConfiguration(), *configRom, generic ) ) { -- return BeBoB::Device::createDevice( *this, std::auto_ptr( configRom ) ); -+ return BeBoB::Device::createDevice( *this, ffado_smartptr( configRom ) ); - } - #endif -@@ -1039,5 +1039,5 @@ - debugOutput( DEBUG_LEVEL_VERBOSE, "Trying ECHO Audio FireWorks...\n" ); - if ( FireWorks::Device::probe( getConfiguration(), *configRom, generic ) ) { -- return FireWorks::Device::createDevice( *this, std::auto_ptr( configRom ) ); -+ return FireWorks::Device::createDevice( *this, ffado_smartptr( configRom ) ); - } - #endif -@@ -1046,5 +1046,5 @@ - debugOutput( DEBUG_LEVEL_VERBOSE, "Trying Oxford FW90x...\n" ); - if ( Oxford::Device::probe( getConfiguration(), *configRom, generic ) ) { -- return Oxford::Device::createDevice( *this, std::auto_ptr( configRom ) ); -+ return Oxford::Device::createDevice( *this, ffado_smartptr( configRom ) ); - } - #endif -@@ -1054,5 +1054,5 @@ - debugOutput( DEBUG_LEVEL_VERBOSE, "Trying Generic AV/C...\n" ); - if ( GenericAVC::Device::probe( getConfiguration(), *configRom, generic ) ) { -- return GenericAVC::Device::createDevice( *this, std::auto_ptr( configRom ) ); -+ return GenericAVC::Device::createDevice( *this, ffado_smartptr( configRom ) ); - } - #endif -@@ -1061,5 +1061,5 @@ - debugOutput( DEBUG_LEVEL_VERBOSE, "Trying Motu...\n" ); - if ( Motu::MotuDevice::probe( getConfiguration(), *configRom, generic ) ) { -- return Motu::MotuDevice::createDevice( *this, std::auto_ptr( configRom ) ); -+ return Motu::MotuDevice::createDevice( *this, ffado_smartptr( configRom ) ); - } - #endif -@@ -1068,5 +1068,5 @@ - debugOutput( DEBUG_LEVEL_VERBOSE, "Trying Dice...\n" ); - if ( Dice::Device::probe( getConfiguration(), *configRom, generic ) ) { -- return Dice::Device::createDevice( *this, std::auto_ptr( configRom ) ); -+ return Dice::Device::createDevice( *this, ffado_smartptr( configRom ) ); - } - #endif -@@ -1075,5 +1075,5 @@ - debugOutput( DEBUG_LEVEL_VERBOSE, "Trying Metric Halo...\n" ); - if ( MetricHalo::Device::probe( getConfiguration(), *configRom, generic ) ) { -- return MetricHalo::Device::createDevice( *this, std::auto_ptr( configRom ) ); -+ return MetricHalo::Device::createDevice( *this, ffado_smartptr( configRom ) ); - } - #endif -@@ -1082,5 +1082,5 @@ - debugOutput( DEBUG_LEVEL_VERBOSE, "Trying RME...\n" ); - if ( Rme::Device::probe( getConfiguration(), *configRom, generic ) ) { -- return Rme::Device::createDevice( *this, std::auto_ptr( configRom ) ); -+ return Rme::Device::createDevice( *this, ffado_smartptr( configRom ) ); - } - #endif -@@ -1089,5 +1089,5 @@ - debugOutput( DEBUG_LEVEL_VERBOSE, "Trying Bounce...\n" ); - if ( Bounce::Device::probe( getConfiguration(), *configRom, generic ) ) { -- return Bounce::Device::createDevice( *this, std::auto_ptr( configRom ) ); -+ return Bounce::Device::createDevice( *this, ffado_smartptr( configRom ) ); - } - #endif -@@ -1120,9 +1120,9 @@ - - FFADODevice* --DeviceManager::getSlaveDriver( std::auto_ptr( configRom ) ) -+DeviceManager::getSlaveDriver( ffado_smartptr( configRom ) ) - { - #ifdef ENABLE_BOUNCE - if ( Bounce::SlaveDevice::probe( getConfiguration(), *configRom, false ) ) { -- return Bounce::SlaveDevice::createDevice( *this, std::auto_ptr( configRom ) ); -+ return Bounce::SlaveDevice::createDevice( *this, ffado_smartptr( configRom ) ); - } - #endif -Index: trunk/libffado/src/bounce/bounce_slave_avdevice.h -=================================================================== ---- trunk/libffado/src/bounce/bounce_slave_avdevice.h (revision 1550) -+++ trunk/libffado/src/bounce/bounce_slave_avdevice.h (revision 2691) -@@ -45,9 +45,9 @@ - public: - -- SlaveDevice( DeviceManager& d, std::auto_ptr( configRom ) ); -+ SlaveDevice( DeviceManager& d, ffado_smartptr( configRom ) ); - virtual ~SlaveDevice(); - - static bool probe( Util::Configuration&, ConfigRom& configRom, bool generic = false ); -- static FFADODevice * createDevice( DeviceManager& d, std::auto_ptr( configRom )); -+ static FFADODevice * createDevice( DeviceManager& d, ffado_smartptr( configRom )); - - bool discover(); -Index: trunk/libffado/src/bounce/bounce_avdevice.cpp -=================================================================== ---- trunk/libffado/src/bounce/bounce_avdevice.cpp (revision 1805) -+++ trunk/libffado/src/bounce/bounce_avdevice.cpp (revision 2691) -@@ -43,5 +43,5 @@ - namespace Bounce { - --Device::Device( DeviceManager& d, std::auto_ptr< ConfigRom >( configRom ) ) -+Device::Device( DeviceManager& d, ffado_smartptr< ConfigRom >( configRom ) ) - : FFADODevice( d, configRom ) - , m_samplerate (44100) -@@ -75,5 +75,5 @@ - - FFADODevice * --Device::createDevice(DeviceManager& d, std::auto_ptr( configRom )) -+Device::createDevice(DeviceManager& d, ffado_smartptr( configRom )) - { - return new Device(d, configRom ); -Index: trunk/libffado/src/bounce/bounce_avdevice.h -=================================================================== ---- trunk/libffado/src/bounce/bounce_avdevice.h (revision 1550) -+++ trunk/libffado/src/bounce/bounce_avdevice.h (revision 2691) -@@ -65,9 +65,9 @@ - class BounceNotifier; - public: -- Device( DeviceManager& d, std::auto_ptr( configRom )); -+ Device( DeviceManager& d, ffado_smartptr( configRom )); - virtual ~Device(); - - static bool probe( Util::Configuration&, ConfigRom& configRom, bool generic = false ); -- static FFADODevice * createDevice( DeviceManager& d, std::auto_ptr( configRom )); -+ static FFADODevice * createDevice( DeviceManager& d, ffado_smartptr( configRom )); - virtual bool discover(); - -Index: trunk/libffado/src/bounce/bounce_slave_avdevice.cpp -=================================================================== ---- trunk/libffado/src/bounce/bounce_slave_avdevice.cpp (revision 1805) -+++ trunk/libffado/src/bounce/bounce_slave_avdevice.cpp (revision 2691) -@@ -38,5 +38,5 @@ - namespace Bounce { - --SlaveDevice::SlaveDevice( DeviceManager& d, std::auto_ptr< ConfigRom >( configRom ) ) -+SlaveDevice::SlaveDevice( DeviceManager& d, ffado_smartptr< ConfigRom >( configRom ) ) - : Device( d, configRom ) - { -@@ -56,5 +56,5 @@ - - FFADODevice * --SlaveDevice::createDevice(DeviceManager& d, std::auto_ptr( configRom )) -+SlaveDevice::createDevice(DeviceManager& d, ffado_smartptr( configRom )) - { - return new SlaveDevice(d, configRom ); -Index: trunk/libffado/src/fireworks/fireworks_device.h -=================================================================== ---- trunk/libffado/src/fireworks/fireworks_device.h (revision 2519) -+++ trunk/libffado/src/fireworks/fireworks_device.h (revision 2691) -@@ -50,9 +50,9 @@ - - public: -- Device( DeviceManager& d, std::auto_ptr( configRom ) ); -+ Device( DeviceManager& d, ffado_smartptr( configRom ) ); - virtual ~Device(); - - static bool probe( Util::Configuration&, ConfigRom& configRom, bool generic = false ); -- static FFADODevice * createDevice( DeviceManager& d, std::auto_ptr( configRom )); -+ static FFADODevice * createDevice( DeviceManager& d, ffado_smartptr( configRom )); - virtual bool discover(); - -Index: trunk/libffado/src/fireworks/audiofire/audiofire_device.cpp -=================================================================== ---- trunk/libffado/src/fireworks/audiofire/audiofire_device.cpp (revision 864) -+++ trunk/libffado/src/fireworks/audiofire/audiofire_device.cpp (revision 2691) -@@ -30,5 +30,5 @@ - namespace ECHO { - --AudioFire::AudioFire( DeviceManager& d, std::auto_ptr( configRom )) -+AudioFire::AudioFire( DeviceManager& d, ffado_smartptr( configRom )) - : FireWorks::Device( d, configRom) - { -Index: trunk/libffado/src/fireworks/audiofire/audiofire_device.h -=================================================================== ---- trunk/libffado/src/fireworks/audiofire/audiofire_device.h (revision 864) -+++ trunk/libffado/src/fireworks/audiofire/audiofire_device.h (revision 2691) -@@ -35,5 +35,5 @@ - - public: -- AudioFire( DeviceManager& d, std::auto_ptr( configRom )); -+ AudioFire( DeviceManager& d, ffado_smartptr( configRom )); - virtual ~AudioFire(); - -Index: trunk/libffado/src/fireworks/fireworks_device.cpp -=================================================================== ---- trunk/libffado/src/fireworks/fireworks_device.cpp (revision 2599) -+++ trunk/libffado/src/fireworks/fireworks_device.cpp (revision 2691) -@@ -50,5 +50,5 @@ - namespace FireWorks { - --Device::Device(DeviceManager& d, std::auto_ptr( configRom )) -+Device::Device(DeviceManager& d, ffado_smartptr( configRom )) - : GenericAVC::Device( d, configRom) - , m_poll_lock( new Util::PosixMutex("DEVPOLL") ) -@@ -183,5 +183,5 @@ - - FFADODevice * --Device::createDevice(DeviceManager& d, std::auto_ptr( configRom )) -+Device::createDevice(DeviceManager& d, ffado_smartptr( configRom )) - { - unsigned int vendorId = configRom->getNodeVendorId(); -Index: trunk/libffado/tests/scan-devreg.cpp -=================================================================== ---- trunk/libffado/tests/scan-devreg.cpp (revision 2587) -+++ trunk/libffado/tests/scan-devreg.cpp (revision 2691) -@@ -29,4 +29,5 @@ - - #include "debugmodule/debugmodule.h" -+#include "ffadodevice.h" // Needed for ffado_smartptr - - #include "libieee1394/configrom.h" -@@ -231,6 +232,6 @@ - } - for (fb_nodeid_t node = n1; node < n2; node++) { -- std::auto_ptr configRom = -- std::auto_ptr( new ConfigRom(*tmp1394, node)); -+ ffado_smartptr configRom = -+ ffado_smartptr( new ConfigRom(*tmp1394, node)); - if (!configRom->initialize()) { - continue; -Index: trunk/libffado/support/firmware/fireworks-downloader.cpp -=================================================================== ---- trunk/libffado/support/firmware/fireworks-downloader.cpp (revision 2651) -+++ trunk/libffado/support/firmware/fireworks-downloader.cpp (revision 2691) -@@ -245,5 +245,5 @@ - - DeviceManager d = DeviceManager(); -- Device *dev = new Device(d, std::auto_ptr(configRom) ); -+ Device *dev = new Device(d, ffado_smartptr(configRom) ); - if (dev == NULL) { - printMessage("Could not create FireWorks::Device\n"); diff --git a/libffado-diff-trunk-from-r2705-to-r2706.diff b/libffado-diff-trunk-from-r2705-to-r2706.diff deleted file mode 100644 index cc182c6..0000000 --- a/libffado-diff-trunk-from-r2705-to-r2706.diff +++ /dev/null @@ -1,10 +0,0 @@ -Index: trunk/libffado/src/libutil/PosixMessageQueue.cpp -=================================================================== ---- trunk/libffado/src/libutil/PosixMessageQueue.cpp (revision 2171) -+++ trunk/libffado/src/libutil/PosixMessageQueue.cpp (revision 2706) -@@ -31,4 +31,5 @@ - #include - #include -+#include - - #define MQ_INVALID_ID ((mqd_t) -1) diff --git a/libffado-diff-trunk-from-r2706-to-r2707.diff b/libffado-diff-trunk-from-r2706-to-r2707.diff deleted file mode 100644 index b1ffa0b..0000000 --- a/libffado-diff-trunk-from-r2706-to-r2707.diff +++ /dev/null @@ -1,11 +0,0 @@ -Index: trunk/libffado/src/bebob/bebob_dl_mgr.cpp -=================================================================== ---- trunk/libffado/src/bebob/bebob_dl_mgr.cpp (revision 2691) -+++ trunk/libffado/src/bebob/bebob_dl_mgr.cpp (revision 2707) -@@ -33,4 +33,6 @@ - - #include "libutil/ByteSwap.h" -+ -+#include "ffadodevice.h" - - #include diff --git a/libffado-gcc6.patch b/libffado-gcc6.patch deleted file mode 100644 index 7e98992..0000000 --- a/libffado-gcc6.patch +++ /dev/null @@ -1,19 +0,0 @@ -diff -urp a/src/libutil/TimestampedBuffer.cpp b/src/libutil/TimestampedBuffer.cpp ---- a/src/libutil/TimestampedBuffer.cpp 2014-06-01 19:00:10.000000000 -0500 -+++ b/src/libutil/TimestampedBuffer.cpp 2016-02-29 21:01:56.693239943 -0600 -@@ -32,6 +32,7 @@ - - #include - #include -+#include - - #define DLL_PI (3.141592653589793238) - #define DLL_SQRT2 (1.414213562373095049) -@@ -179,7 +180,6 @@ bool TimestampedBuffer::setWrapValue(ffa - m_wrap_at=w; - return true; - } --#include - - /** - * \brief return the effective rate diff --git a/libffado-ppc64-bitness.patch b/libffado-ppc64-bitness.patch deleted file mode 100644 index e2af886..0000000 --- a/libffado-ppc64-bitness.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -rupN libffado-2.3.0.org/SConstruct libffado-2.3.0/SConstruct ---- libffado-2.3.0.org/SConstruct 2017-11-06 22:48:46.072463247 -0500 -+++ libffado-2.3.0/SConstruct 2017-11-06 22:50:28.751129313 -0500 -@@ -575,7 +575,7 @@ class CpuInfo (object): - # general CPU architecture - self.is_x86 = self.machine in ('i686', 'x86_64') or \ - re.match("i[3-5]86", self.machine) or False -- self.is_powerpc = self.machine in ('ppc64', 'ppc', 'powerpc', 'powerpc64') -+ self.is_powerpc = self.machine in ('ppc64', 'ppc', 'powerpc', 'powerpc64', 'ppc64le') - #!!! probably not comprehensive - self.is_mips = self.machine == 'mips' - #!!! not a comprehensive list. uname -m on one android phone reports 'armv71' -@@ -593,7 +593,7 @@ class CpuInfo (object): - # 64-bit (x86_64/AMD64/Intel64) - # Long Mode (x86-64: amd64, also known as Intel 64, i.e. 64-bit capable) - self.is_64bit = (self.is_x86 and 'lm' in self.x86_flags) or \ -- (self.is_powerpc and '970' in self.ppc_type) -+ (self.is_powerpc and ('970' in self.ppc_type or 'power8' in self.ppc_type.lower())) - - # Hardware virtualization capable: vmx (Intel), svm (AMD) - self.has_hwvirt = self.is_x86 and ( diff --git a/libffado-pyqt4and5compat.patch b/libffado-pyqt4and5compat.patch new file mode 100644 index 0000000..d353a2d --- /dev/null +++ b/libffado-pyqt4and5compat.patch @@ -0,0 +1,172 @@ +diff -rupN libffado-2.4.0.org/support/mixer-qt4/ffado/ffadowindow.py libffado-2.4.0/support/mixer-qt4/ffado/ffadowindow.py +--- libffado-2.4.0.org/support/mixer-qt4/ffado/ffadowindow.py 2017-06-04 03:23:13.000000000 -0400 ++++ libffado-2.4.0/support/mixer-qt4/ffado/ffadowindow.py 2018-01-05 20:27:25.394068104 -0500 +@@ -22,6 +22,8 @@ + # along with this program. If not, see . + # + ++import ctypes ++import datetime + import os + + from ffado.config import * +@@ -92,7 +94,8 @@ class FFADOWindow(QMainWindow): + self.menuTheme[theme].setCheckable(True) + + if (ffado_python3 and (self.style().objectName().lower() == theme.lower()) or +- not(ffado_python3) and (self.style().objectName().toLower() == theme.toLower())): ++ not(ffado_python3) and (self.style().objectName().toLower() == theme.toLower() if ffado_pyqt_version == 4 else ++ self.style().objectName().lower() == theme.lower())): + self.menuTheme[theme].setDisabled(True) + self.menuTheme[theme].setChecked(True) + self.menuTheme[theme].triggered.connect(self.switchTheme ) +@@ -174,9 +177,11 @@ class FFADOWindow(QMainWindow): + QMessageBox.about( self, "About FFADO", """ +

ffado.org

+ ++

{ffado_version}

++ +

FFADO is the new approach to have firewire audio on linux.

+ +-

© 2006-2014 by the FFADO developers
ffado is licensed under the GPLv3, for the full license text see www.gnu.org/licenses or the LICENSE.* files shipped with ffado.

++

© 2006-2018 by the FFADO developers
ffado is licensed under the GPLv3, for the full license text see www.gnu.org/licenses or the LICENSE.* files shipped with ffado.

+ +

FFADO developers are:

    +
  • Pieter Palmers +@@ -191,8 +196,17 @@ with contributions from:
      +
    • Stefan Richter +
    • Jano Svitok +
    +-""" ) ++ """.format(ffado_version=get_ffado_version(), thisyear=datetime.datetime.now().year)) + ++def get_ffado_version(): ++ try: ++ # call the C function ffado_get_version() to figure out the version ++ lib = ctypes.cdll.LoadLibrary('libffado.so') ++ func = ctypes.CFUNCTYPE(ctypes.c_char_p) ++ ffado_get_version = func(('ffado_get_version', lib)) ++ return ffado_get_version() ++ except: ++ return "libffado" + + def get_lock(process_name): + import socket +@@ -252,6 +266,7 @@ def ffadomain(args): + logging.getLogger('global').setLevel(debug_level) + + log = logging.getLogger('main') ++ log.debug("Using %s with Qt: %s PyQt: %s" % (get_ffado_version(), QtCore.QT_VERSION_STR, QtCore.PYQT_VERSION_STR)) + + app = QApplication(args) + app.setWindowIcon( QIcon( SHAREDIR + "/icons/hi64-apps-ffado.png" ) ) +diff -rupN libffado-2.4.0.org/support/mixer-qt4/ffado/logginghandler.py libffado-2.4.0/support/mixer-qt4/ffado/logginghandler.py +--- libffado-2.4.0.org/support/mixer-qt4/ffado/logginghandler.py 2017-06-03 04:25:01.000000000 -0400 ++++ libffado-2.4.0/support/mixer-qt4/ffado/logginghandler.py 2018-01-03 22:01:14.939141810 -0500 +@@ -28,7 +28,7 @@ import logging + log = logging.getLogger('logginghandler') + + class QStatusLogger( QObject, logging.Handler ): +- log = pyqtSignal(QString, int, name='log') ++ log = pyqtSignal(QString if ffado_pyqt_version == 4 else str, int, name='log') + def __init__( self, parent, statusbar, level=logging.NOTSET ): + QObject.__init__( self, parent ) + logging.Handler.__init__( self, level ) +diff -rupN libffado-2.4.0.org/support/mixer-qt4/ffado/panelmanager.py libffado-2.4.0/support/mixer-qt4/ffado/panelmanager.py +--- libffado-2.4.0.org/support/mixer-qt4/ffado/panelmanager.py 2017-06-04 03:40:48.000000000 -0400 ++++ libffado-2.4.0/support/mixer-qt4/ffado/panelmanager.py 2018-01-03 21:18:15.042504716 -0500 +@@ -378,7 +378,7 @@ except ImportError: + action = self.sender() + # Extract the action data and store as a dbus.String type so + # it is usable as a key into self.panels[]. +- panel_key = dbus.String(action.data().toString()) ++ panel_key = dbus.String(action.data().toString() if ffado_pyqt_version == 4 else action.data()) + self.tabs.setCurrentIndex(self.tabs.indexOf(self.panels[panel_key])) + + def displayPanels(self): +@@ -515,6 +515,8 @@ except ImportError: + saveString.append('\n') + # file saving + savefilename = QFileDialog.getSaveFileName(self, 'Save File', os.getenv('HOME')) ++ if isinstance(savefilename, tuple): # newer PyQt5 ++ savefilename = savefilename[0] + try: + f = open(savefilename, 'w') + except IOError: +@@ -526,6 +528,8 @@ except ImportError: + + def readSettings(self): + readfilename = QFileDialog.getOpenFileName(self, 'Open File', os.getenv('HOME')) ++ if isinstance(readfilename, tuple): # newer PyQt5 ++ readfilename = readfilename[0] + try: + f = open(readfilename, 'r') + except IOError: +diff -rupN libffado-2.4.0.org/support/mixer-qt4/ffado/widgets/crossbarrouter.py libffado-2.4.0/support/mixer-qt4/ffado/widgets/crossbarrouter.py +--- libffado-2.4.0.org/support/mixer-qt4/ffado/widgets/crossbarrouter.py 2017-06-03 04:25:01.000000000 -0400 ++++ libffado-2.4.0/support/mixer-qt4/ffado/widgets/crossbarrouter.py 2018-01-03 21:11:01.563420583 -0500 +@@ -168,7 +168,10 @@ class CrossbarRouter(QWidget): + self.timer.setInterval(200) + self.timer.timeout.connect(self.updateLevels) + +- self.vubtn.setChecked(self.settings.value("crossbarrouter/runvu", False).toBool()) ++ if ffado_pyqt_version == 4: ++ self.vubtn.setChecked(self.settings.value("crossbarrouter/runvu", False).toBool()) ++ else: ++ self.vubtn.setChecked(self.settings.value("crossbarrouter/runvu", False) == u'true') + + def __del__(self): + print( "CrossbarRouter.__del__()" ) +diff -rupN libffado-2.4.0.org/support/mixer-qt4/ffado/widgets/matrixmixer.py libffado-2.4.0/support/mixer-qt4/ffado/widgets/matrixmixer.py +--- libffado-2.4.0.org/support/mixer-qt4/ffado/widgets/matrixmixer.py 2017-06-03 07:29:20.000000000 -0400 ++++ libffado-2.4.0/support/mixer-qt4/ffado/widgets/matrixmixer.py 2018-01-03 23:39:38.884080843 -0500 +@@ -200,14 +200,14 @@ class MixerNode(QAbstractSlider): + + def mousePressEvent(self, ev): + if ev.buttons() & Qt.LeftButton: +- self.pos = ev.posF() ++ self.pos = ev.posF() if ffado_pyqt_version == 4 else ev.localPos() + self.tmpvalue = self.value() + ev.accept() + #log.debug("MixerNode.mousePressEvent() %s" % str(self.pos)) + + def mouseMoveEvent(self, ev): + if hasattr(self, "tmpvalue") and self.pos is not QtCore.QPointF(0, 0): +- newpos = ev.posF() ++ newpos = ev.posF() if ffado_pyqt_version == 4 else ev.localPos() + change = newpos.y() - self.pos.y() + #log.debug("MixerNode.mouseReleaseEvent() change %s" % (str(change))) + self.setValue( self.tmpvalue - math.copysign(pow(abs(change), 2), change) ) +@@ -215,7 +215,7 @@ class MixerNode(QAbstractSlider): + + def mouseReleaseEvent(self, ev): + if hasattr(self, "tmpvalue") and self.pos is not QtCore.QPointF(0, 0): +- newpos = ev.posF() ++ newpos = ev.posF() if ffado_pyqt_version == 4 else ev.localPos() + change = newpos.y() - self.pos.y() + #log.debug("MixerNode.mouseReleaseEvent() change %s" % (str(change))) + self.setValue( self.tmpvalue - math.copysign(pow(abs(change), 2), change) ) +@@ -257,19 +257,19 @@ class MixerNode(QAbstractSlider): + if v == 0: + symb_inf = u"\u221E" + text = "-" + symb_inf + " dB" +- if ffado_python3: ++ if ffado_python3 or ffado_pyqt_version == 5: + # Python3 uses native python UTF strings rather than QString. + # This therefore appears to be the correct way to display this + # UTF8 string, but testing may prove otherwise. + p.drawText(rect, Qt.AlignCenter, text) + else: +- p.drawText(rect, Qt.AlignCenter, QtCore.QString.fromUtf8(text)) ++ p.drawText(rect, Qt.AlignCenter, QString.fromUtf8(text)) + if (self.inv_action!=None and self.inv_action.isChecked()): +- if ffado_python3: ++ if ffado_python3 or ffado_pyqt_version == 5: + # Refer to the comment about about Python UTF8 strings. + p.drawText(rect, Qt.AlignLeft|Qt.AlignTop, " ϕ") + else: +- p.drawText(rect, Qt.AlignLeft|Qt.AlignTop, QtCore.QString.fromUtf8(" ϕ")) ++ p.drawText(rect, Qt.AlignLeft|Qt.AlignTop, QString.fromUtf8(" ϕ")) + + def internalValueChanged(self, value): + #log.debug("MixerNode.internalValueChanged( %i )" % value) diff --git a/libffado-sconstruct.patch b/libffado-sconstruct.patch new file mode 100644 index 0000000..cd7c9ec --- /dev/null +++ b/libffado-sconstruct.patch @@ -0,0 +1,19 @@ +--- libffado-2.4.0.org/SConstruct 2017-12-23 05:43:57.000000000 -0500 ++++ libffado-2.4.0/SConstruct 2018-01-02 22:35:01.793115884 -0500 +@@ -29,6 +29,7 @@ FFADO_VERSION="2.4.0" + from subprocess import Popen, PIPE + import os + import re ++import sys + from string import Template + import imp + import distutils.sysconfig +@@ -395,7 +396,7 @@ results above get rechecked. + + # PyQT checks + if env['BUILD_MIXER'] != 'false': +- have_dbus = (conf.CheckForApp( 'which pyuic4' ) and conf.CheckForPyModule( 'dbus.mainloop.qt' )) ++ have_dbus = ((conf.CheckForApp( 'which pyuic4' ) and conf.CheckForPyModule( 'dbus.mainloop.qt' )) or (conf.CheckForApp( 'which pyuic5' ) and conf.CheckForPyModule( 'dbus.mainloop.pyqt5' ))) + have_pyqt4 = (conf.CheckForApp( 'which pyuic4' ) and conf.CheckForPyModule( 'PyQt4' )) + have_pyqt5 = (conf.CheckForApp( 'which pyuic5' ) and conf.CheckForPyModule( 'PyQt5' )) + if ((have_pyqt4 or have_pyqt5) and have_dbus): diff --git a/libffado-signal_h.patch b/libffado-signal_h.patch deleted file mode 100644 index 2884421..0000000 --- a/libffado-signal_h.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -rupN libffado-2.3.0.org/src/libutil/PosixMessageQueue.h libffado-2.3.0/src/libutil/PosixMessageQueue.h ---- libffado-2.3.0.org/src/libutil/PosixMessageQueue.h 2009-12-19 11:26:20.000000000 -0500 -+++ libffado-2.3.0/src/libutil/PosixMessageQueue.h 2017-11-05 16:01:06.730315493 -0500 -@@ -35,6 +35,7 @@ - #include - #include - #include -+#include - - namespace Util - { diff --git a/libffado.spec b/libffado.spec index 6c2e73f..69ce2f4 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado -Version: 2.3.0 -Release: 7%{?dist} +Version: 2.4.0 +Release: 1%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -15,39 +15,18 @@ Source9: libffado-snapshot.sh # We want the documentation for the library API only, not for the entire source: # http://subversion.ffado.org/ticket/293 Patch0: libffado-api-doc-only.patch -Patch1: libffado-gcc6.patch -# http://subversion.ffado.org/changeset/2673 -Patch2: libffado-derefptr.patch -# Various backports from the trunk to fix compilation warnings/errors -# C++11 missing space between literal and string macro -# http://subversion.ffado.org/changeset/2651 -Patch3: libffado-diff-trunk-from-r2650-to-r2651.diff -# std::auto_ptr deprecated -# http://subversion.ffado.org/changeset/2691 -# http://subversion.ffado.org/changeset/2707 -Patch4: libffado-diff-trunk-from-r2690-to-r2691.diff -Patch5: libffado-diff-trunk-from-r2706-to-r2707.diff -# SIGEV_THREAD not declared -# http://subversion.ffado.org/changeset/2706 -Patch6: libffado-diff-trunk-from-r2705-to-r2706.diff -# MIPS support. RHBZ#1366701 -Patch7: libffado-MIPS.patch -# Make SConstruct Python3 compatible. This patch has workarounds -# that need a real fix. Sent upstream. RHBZ#1509478 -# Partially accepted until upstream switches to scons3 for good -# Upstream revisions 2711-2716 -Patch8: libffado-SConstruct-py3.patch -# Compilation fix. Accepted upstream -# http://subversion.ffado.org/changeset/2710 -Patch9: libffado-signal_h.patch -# Fix bitness related flags on ppc64, ppc64le -# Sent upstream -Patch10: libffado-ppc64-bitness.patch +# add missing header. Fixes build on big endian systems. Upstreamed r2724 +Patch1: libffado-byteswap.patch +# add missing import and fix build against PyQt5. Upstreamed r2724 and r2725 +Patch2: libffado-sconstruct.patch +# PyQt4 and 5 compatibility. Upstreamed r2726 +Patch3: libffado-pyqt4and5compat.patch BuildRequires: alsa-lib-devel BuildRequires: dbus-c++-devel BuildRequires: dbus-devel -BuildRequires: dbus-python-devel +# the following got renamed to python2-dbus on F28. We are using the backward-compatible Provides +BuildRequires: dbus-python BuildRequires: desktop-file-utils BuildRequires: doxygen BuildRequires: glibmm24-devel @@ -57,7 +36,7 @@ BuildRequires: libiec61883-devel BuildRequires: libraw1394-devel BuildRequires: libxml++-devel BuildRequires: pkgconfig -BuildRequires: PyQt4-devel +BuildRequires: python2-PyQt5-devel BuildRequires: python2-devel BuildRequires: scons BuildRequires: subversion @@ -87,8 +66,9 @@ Group: Applications/Multimedia License: GPLv3 and GPLv3+ and (GPLv2 or GPLv3) Requires: %{name}%{?_isa} = %{version}-%{release} Requires: dbus +# the following got renamed to python2-dbus on F28. We are using the backward-compatible Provides Requires: dbus-python -Requires: PyQt4 +Requires: python2-PyQt5 %description -n ffado Applications and utilities for use with libffado. @@ -97,24 +77,21 @@ Applications and utilities for use with libffado. %prep %setup -q %patch0 -p1 -b .api.doc.only -%patch1 -p1 -b .gcc6 -%patch2 -p1 -b .derefptr -%patch3 -p2 -b .string -%patch4 -p2 -b .auto_ptr -%patch5 -p2 -b .auto_ptr2 -%patch6 -p2 -b .signal_h -%patch7 -p1 -b .MIPS -%patch8 -p1 -b .py3 -%patch9 -p1 -b .signal_h -%patch10 -p1 -b .ppc64 +%patch1 -p1 -b .byteswap +%patch2 -p1 -b .sconstruct +%patch3 -p1 -b .pyqt4and5 # We don't want to install all tests sed -i '/Install/d' tests/{,*/}SConscript +# Use standard icon name +sed -i 's|hi64-apps-ffado.png|ffado.png|' support/mixer-qt4/ffado/ffadowindow.py + %build export CFLAGS="%{optflags} -ffast-math" export CXXFLAGS="%{optflags} -ffast-math --std=gnu++11" scons %{?_smp_mflags} \ + ENABLE_SETBUFFERSIZE_API_VER=True \ ENABLE_OPTIMIZATIONS=True \ CUSTOM_ENV=True \ PREFIX=%{_prefix} \ @@ -134,8 +111,9 @@ scons DESTDIR=%{buildroot} \ # We need to install the xdg stuff manually mkdir -p %{buildroot}%{_datadir}/applications desktop-file-install --dir %{buildroot}%{_datadir}/applications \ - --add-category="Settings" \ - support/xdg/ffado.org-ffadomixer.desktop + --add-category="Settings" \ + --set-icon=ffado \ + support/xdg/ffado.org-ffadomixer.desktop mkdir -p %{buildroot}%{_datadir}/icons/hicolor/64x64/apps ln -s ../../../../libffado/icons/hi64-apps-ffado.png \ %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/ffado.png @@ -185,6 +163,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Fri Jan 05 2018 Orcan Ogetbil - 2.4.0-1 +- Update to 2.4.0 +- Drop upstreamed patches + * Mon Nov 06 2017 Orcan Ogetbil - 2.3.0-7 - Build against scons3 - Build against newer gcc/glibc From ce0b4e179cd9b9164e9e608e1cc52ce5a91c13b7 Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Fri, 5 Jan 2018 21:35:03 -0500 Subject: [PATCH 041/113] fix mixed tabs and spaces --- libffado.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libffado.spec b/libffado.spec index 0e2e156..5348d70 100644 --- a/libffado.spec +++ b/libffado.spec @@ -111,9 +111,9 @@ scons DESTDIR=%{buildroot} \ # We need to install the xdg stuff manually mkdir -p %{buildroot}%{_datadir}/applications desktop-file-install --dir %{buildroot}%{_datadir}/applications \ - --add-category="Settings" \ - --set-icon=ffado \ - support/xdg/ffado.org-ffadomixer.desktop + --add-category="Settings" \ + --set-icon=ffado \ + support/xdg/ffado.org-ffadomixer.desktop mkdir -p %{buildroot}%{_datadir}/icons/hicolor/64x64/apps ln -s ../../../../libffado/icons/hi64-apps-ffado.png \ %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/ffado.png From 14edeeb7d4aaa0601cae0f0ed77da4366edd15d4 Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Fri, 5 Jan 2018 21:39:49 -0500 Subject: [PATCH 042/113] added missing sources --- .gitignore | 1 + sources | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 52af185..c3ca32a 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ libffado-2.0.1-svn1864.tar.bz2 /libffado-2.1.0.tgz /libffado-2.2.1.tgz /libffado-2.3.0.tgz +/libffado-2.4.0.tgz diff --git a/sources b/sources index f83514a..d98579b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -8f452977267200cfaf9b8e16ba3c92df libffado-2.3.0.tgz +SHA512 (libffado-2.4.0.tgz) = 7df37584925cc908cc284dba344609928d39e006f71ae4ede62e4531b2628271ebd0db00407418e943fb569b5b8b919a76c90aaeed03005cefbd3c1c16ee1627 From 2cf45030c4b74855ced429f3e34770852ef752f1 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 3 Feb 2018 17:54:41 +0100 Subject: [PATCH 043/113] Switch to %ldconfig_scriptlets Signed-off-by: Igor Gnatenko --- libffado.spec | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libffado.spec b/libffado.spec index 5348d70..82b173b 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.0 -Release: 1%{?dist} +Release: 2%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -121,9 +121,7 @@ ln -s ../../../../libffado/icons/hi64-apps-ffado.png \ # Install ffado-test RHBZ#805940 install -m 755 tests/ffado-test %{buildroot}%{_bindir} -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig +%ldconfig_scriptlets %files %doc AUTHORS ChangeLog LICENSE.* README @@ -151,6 +149,9 @@ install -m 755 tests/ffado-test %{buildroot}%{_bindir} %changelog +* Sat Feb 03 2018 Igor Gnatenko - 2.4.0-2 +- Switch to %%ldconfig_scriptlets + * Fri Jan 05 2018 Orcan Ogetbil - 2.4.0-1 - Update to 2.4.0 - Drop upstreamed patches From 4c780298da59b2c57bebbe30037845055d2e6582 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 7 Feb 2018 21:36:54 +0000 Subject: [PATCH 044/113] - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index 82b173b..85db7c2 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.0 -Release: 2%{?dist} +Release: 3%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -149,6 +149,9 @@ install -m 755 tests/ffado-test %{buildroot}%{_bindir} %changelog +* Wed Feb 07 2018 Fedora Release Engineering - 2.4.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Sat Feb 03 2018 Igor Gnatenko - 2.4.0-2 - Switch to %%ldconfig_scriptlets From b23a06a3acee6741e7f49cdae8b483c68874d489 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Fri, 9 Feb 2018 12:22:54 +0100 Subject: [PATCH 045/113] Use LDFLAGS from redhat-rpm-config --- libffado.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index 85db7c2..eeadd6d 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.0 -Release: 3%{?dist} +Release: 4%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -90,6 +90,7 @@ sed -i 's|hi64-apps-ffado.png|ffado.png|' support/mixer-qt4/ffado/ffadowindow.py %build export CFLAGS="%{optflags} -ffast-math" export CXXFLAGS="%{optflags} -ffast-math --std=gnu++11" +export LDFLAGS="%{build_ldflags}" scons %{?_smp_mflags} \ ENABLE_SETBUFFERSIZE_API_VER=True \ ENABLE_OPTIMIZATIONS=True \ @@ -149,6 +150,9 @@ install -m 755 tests/ffado-test %{buildroot}%{_bindir} %changelog +* Fri Feb 9 2018 Florian Weimer - 2.4.0-4 +- Use LDFLAGS from redhat-rpm-config + * Wed Feb 07 2018 Fedora Release Engineering - 2.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild From c16fdf433d7edca7abe390278b37a3331f15d9ed Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Sat, 10 Feb 2018 14:41:54 -0500 Subject: [PATCH 046/113] Build with RPM_LD_FLAGS exported in install section as well --- libffado.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index eeadd6d..064300c 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.0 -Release: 4%{?dist} +Release: 5%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -106,6 +106,7 @@ scons %{?_smp_mflags} \ # Exporting flags so that the install does not trigger another build export CFLAGS="%{optflags} -ffast-math" export CXXFLAGS="%{optflags} -ffast-math --std=gnu++11" +export LDFLAGS="%{build_ldflags}" scons DESTDIR=%{buildroot} \ install @@ -150,6 +151,9 @@ install -m 755 tests/ffado-test %{buildroot}%{_bindir} %changelog +* Sat Feb 10 2018 Orcan Ogetbil - 2.4.0-5 +- Build with RPM_LD_FLAGS exported in install section as well + * Fri Feb 9 2018 Florian Weimer - 2.4.0-4 - Use LDFLAGS from redhat-rpm-config From 755e06919c6af634155ec4847ee54ec961cee575 Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Wed, 28 Feb 2018 20:58:57 -0500 Subject: [PATCH 047/113] added BR: gcc-c++ --- libffado.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/libffado.spec b/libffado.spec index 064300c..3bbcb70 100644 --- a/libffado.spec +++ b/libffado.spec @@ -29,6 +29,7 @@ BuildRequires: dbus-devel BuildRequires: dbus-python BuildRequires: desktop-file-utils BuildRequires: doxygen +BuildRequires: gcc-c++ BuildRequires: glibmm24-devel BuildRequires: graphviz BuildRequires: libconfig-devel From 8f8139837c956a488b624454fa9e5a0da3be7dd4 Mon Sep 17 00:00:00 2001 From: Iryna Shcherbina Date: Thu, 19 Apr 2018 01:40:13 +0200 Subject: [PATCH 048/113] Update Python 2 dependency declarations to new packaging standards --- libffado.spec | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/libffado.spec b/libffado.spec index 3bbcb70..cf2c107 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.0 -Release: 5%{?dist} +Release: 6%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -26,7 +26,7 @@ BuildRequires: alsa-lib-devel BuildRequires: dbus-c++-devel BuildRequires: dbus-devel # the following got renamed to python2-dbus on F28. We are using the backward-compatible Provides -BuildRequires: dbus-python +BuildRequires: python2-dbus BuildRequires: desktop-file-utils BuildRequires: doxygen BuildRequires: gcc-c++ @@ -39,7 +39,7 @@ BuildRequires: libxml++-devel BuildRequires: pkgconfig BuildRequires: python2-PyQt5-devel BuildRequires: python2-devel -BuildRequires: scons +BuildRequires: python2-scons BuildRequires: subversion ExcludeArch: s390 s390x Requires: udev @@ -68,8 +68,8 @@ License: GPLv3 and GPLv3+ and (GPLv2 or GPLv3) Requires: %{name}%{?_isa} = %{version}-%{release} Requires: dbus # the following got renamed to python2-dbus on F28. We are using the backward-compatible Provides -Requires: dbus-python -Requires: python2-PyQt5 +Requires: python2-dbus +Requires: python2-qt5 %description -n ffado Applications and utilities for use with libffado. @@ -152,6 +152,10 @@ install -m 755 tests/ffado-test %{buildroot}%{_bindir} %changelog +* Wed Apr 18 2018 Iryna Shcherbina - 2.4.0-6 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + * Sat Feb 10 2018 Orcan Ogetbil - 2.4.0-5 - Build with RPM_LD_FLAGS exported in install section as well From 993c65bce1d4f9efd9aba6cce171a1d664d8b026 Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Wed, 25 Apr 2018 01:15:43 -0400 Subject: [PATCH 049/113] Update to 2.4.1 Drop upstreamed patches --- .gitignore | 1 + libffado-api-doc-only.patch | 26 ----- libffado-byteswap.patch | 22 ----- libffado-pyqt4and5compat.patch | 172 --------------------------------- libffado-sconstruct.patch | 19 ---- libffado.spec | 32 +++--- sources | 2 +- 7 files changed, 18 insertions(+), 256 deletions(-) delete mode 100644 libffado-api-doc-only.patch delete mode 100644 libffado-byteswap.patch delete mode 100644 libffado-pyqt4and5compat.patch delete mode 100644 libffado-sconstruct.patch diff --git a/.gitignore b/.gitignore index c3ca32a..99cfd3d 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ libffado-2.0.1-svn1864.tar.bz2 /libffado-2.2.1.tgz /libffado-2.3.0.tgz /libffado-2.4.0.tgz +/libffado-2.4.1.tgz diff --git a/libffado-api-doc-only.patch b/libffado-api-doc-only.patch deleted file mode 100644 index 0c2564a..0000000 --- a/libffado-api-doc-only.patch +++ /dev/null @@ -1,26 +0,0 @@ -diff -rupN libffado.old/doc/reference.doxygen.in libffado/doc/reference.doxygen.in ---- libffado.old/doc/reference.doxygen.in 2009-12-18 13:52:13.000000000 -0500 -+++ libffado/doc/reference.doxygen.in 2010-06-05 21:00:54.000000000 -0400 -@@ -568,9 +568,7 @@ WARN_LOGFILE = - # directories like "/usr/src/myproject". Separate the files or directories - # with spaces. - --INPUT = $top_srcdir/src \ -- $top_srcdir/doc \ -- $top_srcdir/libffado -+INPUT = $top_srcdir/libffado - - # This tag can be used to specify the character encoding of the source files - # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is -diff -rupN libffado.old/SConstruct libffado/SConstruct ---- libffado.old/SConstruct 2010-05-10 15:34:07.000000000 -0400 -+++ libffado/SConstruct 2010-06-05 21:29:43.000000000 -0400 -@@ -583,7 +583,7 @@ if not env.GetOption('clean'): - Default( 'support' ) - if env['BUILD_TESTS']: - Default( 'tests' ) -- -+ Default( 'doc' ) - # - # Deal with the DESTDIR vs. xdg-tools conflict (which is basicely that the - # xdg-tools can't deal with DESTDIR, so the packagers have to deal with this diff --git a/libffado-byteswap.patch b/libffado-byteswap.patch deleted file mode 100644 index 716fb2d..0000000 --- a/libffado-byteswap.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff -rupN libffado-2.4.0.org/src/rme/rme_avdevice.cpp libffado-2.4.0/src/rme/rme_avdevice.cpp ---- libffado-2.4.0.org/src/rme/rme_avdevice.cpp 2017-06-03 04:08:05.000000000 -0400 -+++ libffado-2.4.0/src/rme/rme_avdevice.cpp 2018-01-02 21:38:01.507348351 -0500 -@@ -42,7 +42,6 @@ - #include - #include - #include --#include "libutil/ByteSwap.h" - - #include - #include -diff -rupN libffado-2.4.0.org/src/rme/rme_avdevice.h libffado-2.4.0/src/rme/rme_avdevice.h ---- libffado-2.4.0.org/src/rme/rme_avdevice.h 2017-05-09 08:55:47.000000000 -0400 -+++ libffado-2.4.0/src/rme/rme_avdevice.h 2018-01-02 21:38:12.755286977 -0500 -@@ -31,6 +31,7 @@ - #include "libavc/avc_definitions.h" - - #include "libutil/Configuration.h" -+#include "libutil/ByteSwap.h" - - #include "fireface_def.h" - #include "libstreaming/rme/RmeReceiveStreamProcessor.h" diff --git a/libffado-pyqt4and5compat.patch b/libffado-pyqt4and5compat.patch deleted file mode 100644 index d353a2d..0000000 --- a/libffado-pyqt4and5compat.patch +++ /dev/null @@ -1,172 +0,0 @@ -diff -rupN libffado-2.4.0.org/support/mixer-qt4/ffado/ffadowindow.py libffado-2.4.0/support/mixer-qt4/ffado/ffadowindow.py ---- libffado-2.4.0.org/support/mixer-qt4/ffado/ffadowindow.py 2017-06-04 03:23:13.000000000 -0400 -+++ libffado-2.4.0/support/mixer-qt4/ffado/ffadowindow.py 2018-01-05 20:27:25.394068104 -0500 -@@ -22,6 +22,8 @@ - # along with this program. If not, see . - # - -+import ctypes -+import datetime - import os - - from ffado.config import * -@@ -92,7 +94,8 @@ class FFADOWindow(QMainWindow): - self.menuTheme[theme].setCheckable(True) - - if (ffado_python3 and (self.style().objectName().lower() == theme.lower()) or -- not(ffado_python3) and (self.style().objectName().toLower() == theme.toLower())): -+ not(ffado_python3) and (self.style().objectName().toLower() == theme.toLower() if ffado_pyqt_version == 4 else -+ self.style().objectName().lower() == theme.lower())): - self.menuTheme[theme].setDisabled(True) - self.menuTheme[theme].setChecked(True) - self.menuTheme[theme].triggered.connect(self.switchTheme ) -@@ -174,9 +177,11 @@ class FFADOWindow(QMainWindow): - QMessageBox.about( self, "About FFADO", """ -

    ffado.org

    - -+

    {ffado_version}

    -+ -

    FFADO is the new approach to have firewire audio on linux.

    - --

    © 2006-2014 by the FFADO developers
    ffado is licensed under the GPLv3, for the full license text see www.gnu.org/licenses or the LICENSE.* files shipped with ffado.

    -+

    © 2006-2018 by the FFADO developers
    ffado is licensed under the GPLv3, for the full license text see www.gnu.org/licenses or the LICENSE.* files shipped with ffado.

    - -

    FFADO developers are:

      -
    • Pieter Palmers -@@ -191,8 +196,17 @@ with contributions from:
        -
      • Stefan Richter -
      • Jano Svitok -
      --""" ) -+ """.format(ffado_version=get_ffado_version(), thisyear=datetime.datetime.now().year)) - -+def get_ffado_version(): -+ try: -+ # call the C function ffado_get_version() to figure out the version -+ lib = ctypes.cdll.LoadLibrary('libffado.so') -+ func = ctypes.CFUNCTYPE(ctypes.c_char_p) -+ ffado_get_version = func(('ffado_get_version', lib)) -+ return ffado_get_version() -+ except: -+ return "libffado" - - def get_lock(process_name): - import socket -@@ -252,6 +266,7 @@ def ffadomain(args): - logging.getLogger('global').setLevel(debug_level) - - log = logging.getLogger('main') -+ log.debug("Using %s with Qt: %s PyQt: %s" % (get_ffado_version(), QtCore.QT_VERSION_STR, QtCore.PYQT_VERSION_STR)) - - app = QApplication(args) - app.setWindowIcon( QIcon( SHAREDIR + "/icons/hi64-apps-ffado.png" ) ) -diff -rupN libffado-2.4.0.org/support/mixer-qt4/ffado/logginghandler.py libffado-2.4.0/support/mixer-qt4/ffado/logginghandler.py ---- libffado-2.4.0.org/support/mixer-qt4/ffado/logginghandler.py 2017-06-03 04:25:01.000000000 -0400 -+++ libffado-2.4.0/support/mixer-qt4/ffado/logginghandler.py 2018-01-03 22:01:14.939141810 -0500 -@@ -28,7 +28,7 @@ import logging - log = logging.getLogger('logginghandler') - - class QStatusLogger( QObject, logging.Handler ): -- log = pyqtSignal(QString, int, name='log') -+ log = pyqtSignal(QString if ffado_pyqt_version == 4 else str, int, name='log') - def __init__( self, parent, statusbar, level=logging.NOTSET ): - QObject.__init__( self, parent ) - logging.Handler.__init__( self, level ) -diff -rupN libffado-2.4.0.org/support/mixer-qt4/ffado/panelmanager.py libffado-2.4.0/support/mixer-qt4/ffado/panelmanager.py ---- libffado-2.4.0.org/support/mixer-qt4/ffado/panelmanager.py 2017-06-04 03:40:48.000000000 -0400 -+++ libffado-2.4.0/support/mixer-qt4/ffado/panelmanager.py 2018-01-03 21:18:15.042504716 -0500 -@@ -378,7 +378,7 @@ except ImportError: - action = self.sender() - # Extract the action data and store as a dbus.String type so - # it is usable as a key into self.panels[]. -- panel_key = dbus.String(action.data().toString()) -+ panel_key = dbus.String(action.data().toString() if ffado_pyqt_version == 4 else action.data()) - self.tabs.setCurrentIndex(self.tabs.indexOf(self.panels[panel_key])) - - def displayPanels(self): -@@ -515,6 +515,8 @@ except ImportError: - saveString.append('\n') - # file saving - savefilename = QFileDialog.getSaveFileName(self, 'Save File', os.getenv('HOME')) -+ if isinstance(savefilename, tuple): # newer PyQt5 -+ savefilename = savefilename[0] - try: - f = open(savefilename, 'w') - except IOError: -@@ -526,6 +528,8 @@ except ImportError: - - def readSettings(self): - readfilename = QFileDialog.getOpenFileName(self, 'Open File', os.getenv('HOME')) -+ if isinstance(readfilename, tuple): # newer PyQt5 -+ readfilename = readfilename[0] - try: - f = open(readfilename, 'r') - except IOError: -diff -rupN libffado-2.4.0.org/support/mixer-qt4/ffado/widgets/crossbarrouter.py libffado-2.4.0/support/mixer-qt4/ffado/widgets/crossbarrouter.py ---- libffado-2.4.0.org/support/mixer-qt4/ffado/widgets/crossbarrouter.py 2017-06-03 04:25:01.000000000 -0400 -+++ libffado-2.4.0/support/mixer-qt4/ffado/widgets/crossbarrouter.py 2018-01-03 21:11:01.563420583 -0500 -@@ -168,7 +168,10 @@ class CrossbarRouter(QWidget): - self.timer.setInterval(200) - self.timer.timeout.connect(self.updateLevels) - -- self.vubtn.setChecked(self.settings.value("crossbarrouter/runvu", False).toBool()) -+ if ffado_pyqt_version == 4: -+ self.vubtn.setChecked(self.settings.value("crossbarrouter/runvu", False).toBool()) -+ else: -+ self.vubtn.setChecked(self.settings.value("crossbarrouter/runvu", False) == u'true') - - def __del__(self): - print( "CrossbarRouter.__del__()" ) -diff -rupN libffado-2.4.0.org/support/mixer-qt4/ffado/widgets/matrixmixer.py libffado-2.4.0/support/mixer-qt4/ffado/widgets/matrixmixer.py ---- libffado-2.4.0.org/support/mixer-qt4/ffado/widgets/matrixmixer.py 2017-06-03 07:29:20.000000000 -0400 -+++ libffado-2.4.0/support/mixer-qt4/ffado/widgets/matrixmixer.py 2018-01-03 23:39:38.884080843 -0500 -@@ -200,14 +200,14 @@ class MixerNode(QAbstractSlider): - - def mousePressEvent(self, ev): - if ev.buttons() & Qt.LeftButton: -- self.pos = ev.posF() -+ self.pos = ev.posF() if ffado_pyqt_version == 4 else ev.localPos() - self.tmpvalue = self.value() - ev.accept() - #log.debug("MixerNode.mousePressEvent() %s" % str(self.pos)) - - def mouseMoveEvent(self, ev): - if hasattr(self, "tmpvalue") and self.pos is not QtCore.QPointF(0, 0): -- newpos = ev.posF() -+ newpos = ev.posF() if ffado_pyqt_version == 4 else ev.localPos() - change = newpos.y() - self.pos.y() - #log.debug("MixerNode.mouseReleaseEvent() change %s" % (str(change))) - self.setValue( self.tmpvalue - math.copysign(pow(abs(change), 2), change) ) -@@ -215,7 +215,7 @@ class MixerNode(QAbstractSlider): - - def mouseReleaseEvent(self, ev): - if hasattr(self, "tmpvalue") and self.pos is not QtCore.QPointF(0, 0): -- newpos = ev.posF() -+ newpos = ev.posF() if ffado_pyqt_version == 4 else ev.localPos() - change = newpos.y() - self.pos.y() - #log.debug("MixerNode.mouseReleaseEvent() change %s" % (str(change))) - self.setValue( self.tmpvalue - math.copysign(pow(abs(change), 2), change) ) -@@ -257,19 +257,19 @@ class MixerNode(QAbstractSlider): - if v == 0: - symb_inf = u"\u221E" - text = "-" + symb_inf + " dB" -- if ffado_python3: -+ if ffado_python3 or ffado_pyqt_version == 5: - # Python3 uses native python UTF strings rather than QString. - # This therefore appears to be the correct way to display this - # UTF8 string, but testing may prove otherwise. - p.drawText(rect, Qt.AlignCenter, text) - else: -- p.drawText(rect, Qt.AlignCenter, QtCore.QString.fromUtf8(text)) -+ p.drawText(rect, Qt.AlignCenter, QString.fromUtf8(text)) - if (self.inv_action!=None and self.inv_action.isChecked()): -- if ffado_python3: -+ if ffado_python3 or ffado_pyqt_version == 5: - # Refer to the comment about about Python UTF8 strings. - p.drawText(rect, Qt.AlignLeft|Qt.AlignTop, " ϕ") - else: -- p.drawText(rect, Qt.AlignLeft|Qt.AlignTop, QtCore.QString.fromUtf8(" ϕ")) -+ p.drawText(rect, Qt.AlignLeft|Qt.AlignTop, QString.fromUtf8(" ϕ")) - - def internalValueChanged(self, value): - #log.debug("MixerNode.internalValueChanged( %i )" % value) diff --git a/libffado-sconstruct.patch b/libffado-sconstruct.patch deleted file mode 100644 index cd7c9ec..0000000 --- a/libffado-sconstruct.patch +++ /dev/null @@ -1,19 +0,0 @@ ---- libffado-2.4.0.org/SConstruct 2017-12-23 05:43:57.000000000 -0500 -+++ libffado-2.4.0/SConstruct 2018-01-02 22:35:01.793115884 -0500 -@@ -29,6 +29,7 @@ FFADO_VERSION="2.4.0" - from subprocess import Popen, PIPE - import os - import re -+import sys - from string import Template - import imp - import distutils.sysconfig -@@ -395,7 +396,7 @@ results above get rechecked. - - # PyQT checks - if env['BUILD_MIXER'] != 'false': -- have_dbus = (conf.CheckForApp( 'which pyuic4' ) and conf.CheckForPyModule( 'dbus.mainloop.qt' )) -+ have_dbus = ((conf.CheckForApp( 'which pyuic4' ) and conf.CheckForPyModule( 'dbus.mainloop.qt' )) or (conf.CheckForApp( 'which pyuic5' ) and conf.CheckForPyModule( 'dbus.mainloop.pyqt5' ))) - have_pyqt4 = (conf.CheckForApp( 'which pyuic4' ) and conf.CheckForPyModule( 'PyQt4' )) - have_pyqt5 = (conf.CheckForApp( 'which pyuic5' ) and conf.CheckForPyModule( 'PyQt5' )) - if ((have_pyqt4 or have_pyqt5) and have_dbus): diff --git a/libffado.spec b/libffado.spec index cf2c107..7767978 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado -Version: 2.4.0 -Release: 6%{?dist} +Version: 2.4.1 +Release: 1%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -12,15 +12,6 @@ Source0: http://www.ffado.org/files/%{name}-%{version}.tgz # bash libffado-snapshot.sh 2088 # The fetch script Source9: libffado-snapshot.sh -# We want the documentation for the library API only, not for the entire source: -# http://subversion.ffado.org/ticket/293 -Patch0: libffado-api-doc-only.patch -# add missing header. Fixes build on big endian systems. Upstreamed r2724 -Patch1: libffado-byteswap.patch -# add missing import and fix build against PyQt5. Upstreamed r2724 and r2725 -Patch2: libffado-sconstruct.patch -# PyQt4 and 5 compatibility. Upstreamed r2726 -Patch3: libffado-pyqt4and5compat.patch BuildRequires: alsa-lib-devel BuildRequires: dbus-c++-devel @@ -32,6 +23,7 @@ BuildRequires: doxygen BuildRequires: gcc-c++ BuildRequires: glibmm24-devel BuildRequires: graphviz +BuildRequires: libappstream-glib BuildRequires: libconfig-devel BuildRequires: libiec61883-devel BuildRequires: libraw1394-devel @@ -77,10 +69,6 @@ Applications and utilities for use with libffado. %prep %setup -q -%patch0 -p1 -b .api.doc.only -%patch1 -p1 -b .byteswap -%patch2 -p1 -b .sconstruct -%patch3 -p1 -b .pyqt4and5 # We don't want to install all tests sed -i '/Install/d' tests/{,*/}SConscript @@ -96,6 +84,7 @@ scons %{?_smp_mflags} \ ENABLE_SETBUFFERSIZE_API_VER=True \ ENABLE_OPTIMIZATIONS=True \ CUSTOM_ENV=True \ + BUILD_DOC=user \ PREFIX=%{_prefix} \ LIBDIR=%{_libdir} \ MANDIR=%{_mandir} \ @@ -126,12 +115,19 @@ install -m 755 tests/ffado-test %{buildroot}%{_bindir} %ldconfig_scriptlets +%check +desktop-file-validate \ + %{buildroot}%{_datadir}/applications/ffado.org-ffadomixer.desktop +appstream-util validate-relax --nonet \ + %{buildroot}%{_datadir}/metainfo/ffado-mixer.appdata.xml + %files %doc AUTHORS ChangeLog LICENSE.* README %{_libdir}/libffado.so.* %dir %{_datadir}/libffado/ %{_datadir}/libffado/configuration %{_prefix}/lib/udev/rules.d/* +%{_libdir}/libffado/static_info.txt %files devel %doc doc/reference/html/ @@ -143,15 +139,19 @@ install -m 755 tests/ffado-test %{buildroot}%{_bindir} %{_mandir}/man1/ffado-*.1* %{_bindir}/* %{_datadir}/libffado/*.xml -%{_datadir}/libffado/python/ %{_datadir}/libffado/icons/ %{_datadir}/dbus-1/services/org.ffado.Control.service %{_datadir}/applications/ffado.org-ffadomixer.desktop %{_datadir}/icons/hicolor/64x64/apps/ffado.png +%{_datadir}/metainfo/ffado-mixer.appdata.xml %{python_sitelib}/ffado/ %changelog +* Wed Apr 25 2018 Orcan Ogetbil - 2.4.1-1 +- Update to 2.4.1 +- Drop upstreamed patches + * Wed Apr 18 2018 Iryna Shcherbina - 2.4.0-6 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) diff --git a/sources b/sources index d98579b..5ffb408 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libffado-2.4.0.tgz) = 7df37584925cc908cc284dba344609928d39e006f71ae4ede62e4531b2628271ebd0db00407418e943fb569b5b8b919a76c90aaeed03005cefbd3c1c16ee1627 +SHA512 (libffado-2.4.1.tgz) = 0859f17b87c68108bbde726d1cf8ab0b99f6f7f02cbe36acd8b451e112688a4d1edc21134eb4a2edc8c92dcf5f5da52efeabb2ad0dc07804ed1aa664a3b38d74 From 938ef10ec59fe750d4a032c36329ba2bd91c7069 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 13 Jul 2018 08:05:37 +0000 Subject: [PATCH 050/113] - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index 7767978..b79aeec 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.1 -Release: 1%{?dist} +Release: 2%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -148,6 +148,9 @@ appstream-util validate-relax --nonet \ %changelog +* Fri Jul 13 2018 Fedora Release Engineering - 2.4.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Wed Apr 25 2018 Orcan Ogetbil - 2.4.1-1 - Update to 2.4.1 - Drop upstreamed patches From 5e9d372469f7aabbe0300f0f85bc6b593c26eeb9 Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Thu, 19 Jul 2018 22:41:55 -0400 Subject: [PATCH 051/113] Fixed Python shebangs Added BR: python2-enum34 --- libffado.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index b79aeec..179592f 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.1 -Release: 2%{?dist} +Release: 3%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -31,6 +31,7 @@ BuildRequires: libxml++-devel BuildRequires: pkgconfig BuildRequires: python2-PyQt5-devel BuildRequires: python2-devel +BuildRequires: python2-enum34 BuildRequires: python2-scons BuildRequires: subversion ExcludeArch: s390 s390x @@ -76,6 +77,12 @@ sed -i '/Install/d' tests/{,*/}SConscript # Use standard icon name sed -i 's|hi64-apps-ffado.png|ffado.png|' support/mixer-qt4/ffado/ffadowindow.py +# Fix Python shebangs +sed -i 's|/usr/bin/.*python$|/usr/bin/python2|' \ + admin/*.py doc/SConscript tests/python/*.py tests/*.py \ + support/mixer-qt4/ffado-mixer* support/mixer-qt4/SConscript \ + support/tools/*.py support/tools/SConscript + %build export CFLAGS="%{optflags} -ffast-math" export CXXFLAGS="%{optflags} -ffast-math --std=gnu++11" @@ -90,6 +97,7 @@ scons %{?_smp_mflags} \ MANDIR=%{_mandir} \ UDEVDIR=%{_prefix}/lib/udev/rules.d/ \ PYPKGDIR=%{python_sitelib}/ffado/ \ + PYTHON_INTERPRETER=/usr/bin/python2 \ BUILD_TESTS=1 %install @@ -148,6 +156,10 @@ appstream-util validate-relax --nonet \ %changelog +* Thu Jul 19 2018 Orcan Ogetbil - 2.4.1-3 +- Fixed Python shebangs +- Added BR: python2-enum34 + * Fri Jul 13 2018 Fedora Release Engineering - 2.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild From aa1c1a036bffe33d832e2986302a817ae71c3bd3 Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Tue, 24 Jul 2018 15:53:58 -0400 Subject: [PATCH 052/113] rebuild for new libconfig --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index 179592f..6bec459 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.1 -Release: 3%{?dist} +Release: 4%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -156,6 +156,9 @@ appstream-util validate-relax --nonet \ %changelog +* Tue Jul 24 2018 Tom Callaway - 2.4.1-4 +- rebuild for new libconfig + * Thu Jul 19 2018 Orcan Ogetbil - 2.4.1-3 - Fixed Python shebangs - Added BR: python2-enum34 From 5e7a2d9f5f2684ace2db28dddc1311626293c9f2 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 29 Jul 2018 23:12:03 +0200 Subject: [PATCH 053/113] =?UTF-8?q?%{python=5Fsitelib}=20=E2=86=92=20%{pyt?= =?UTF-8?q?hon2=5Fsitelib}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Igor Gnatenko --- libffado.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index 6bec459..3dcb906 100644 --- a/libffado.spec +++ b/libffado.spec @@ -152,7 +152,7 @@ appstream-util validate-relax --nonet \ %{_datadir}/applications/ffado.org-ffadomixer.desktop %{_datadir}/icons/hicolor/64x64/apps/ffado.png %{_datadir}/metainfo/ffado-mixer.appdata.xml -%{python_sitelib}/ffado/ +%{python2_sitelib}/ffado/ %changelog From 8f953bda516bb9bc2e5704301ba32fb40500ac15 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 28 Jan 2019 20:17:51 +0100 Subject: [PATCH 054/113] Remove obsolete Group tag References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag --- libffado.spec | 3 --- 1 file changed, 3 deletions(-) diff --git a/libffado.spec b/libffado.spec index 3dcb906..8558ca4 100644 --- a/libffado.spec +++ b/libffado.spec @@ -5,7 +5,6 @@ Release: 4%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) -Group: System Environment/Libraries URL: http://www.ffado.org/ Source0: http://www.ffado.org/files/%{name}-%{version}.tgz # The trunk is tarballed as follows: @@ -44,7 +43,6 @@ successor of the FreeBoB project. %package devel Summary: Free firewire audio driver library development headers -Group: Development/Libraries License: GPLv2 or GPLv3 Requires: %{name}%{?_isa} = %{version}-%{release} @@ -53,7 +51,6 @@ Development files needed to build applications against libffado. %package -n ffado Summary: Free firewire audio driver library applications and utilities -Group: Applications/Multimedia # support/tools/* is GPLv3 # Some files in support/mixer-qt4/ffado are GPLv3+ # The rest is GPLv2 or GPLv3 From 3d2fc9013bfb81942dde35c6f2304a4372460994 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 1 Feb 2019 07:07:18 +0000 Subject: [PATCH 055/113] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index 8558ca4..089fcbd 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.1 -Release: 4%{?dist} +Release: 5%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -153,6 +153,9 @@ appstream-util validate-relax --nonet \ %changelog +* Fri Feb 01 2019 Fedora Release Engineering - 2.4.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Tue Jul 24 2018 Tom Callaway - 2.4.1-4 - rebuild for new libconfig From ad109209e614a269b99c02119dec7637beeb7dae Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Thu, 7 Feb 2019 21:23:42 -0500 Subject: [PATCH 056/113] Added BR: python2-rpm-macros --- libffado.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libffado.spec b/libffado.spec index 089fcbd..12a9f5a 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.1 -Release: 5%{?dist} +Release: 6%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -17,6 +17,7 @@ BuildRequires: dbus-c++-devel BuildRequires: dbus-devel # the following got renamed to python2-dbus on F28. We are using the backward-compatible Provides BuildRequires: python2-dbus +BuildRequires: python2-rpm-macros BuildRequires: desktop-file-utils BuildRequires: doxygen BuildRequires: gcc-c++ @@ -93,7 +94,7 @@ scons %{?_smp_mflags} \ LIBDIR=%{_libdir} \ MANDIR=%{_mandir} \ UDEVDIR=%{_prefix}/lib/udev/rules.d/ \ - PYPKGDIR=%{python_sitelib}/ffado/ \ + PYPKGDIR=%{python2_sitelib}/ffado/ \ PYTHON_INTERPRETER=/usr/bin/python2 \ BUILD_TESTS=1 @@ -153,6 +154,9 @@ appstream-util validate-relax --nonet \ %changelog +* Thu Feb 07 2019 Orcan Ogetbil - 2.4.1-6 +- Added BR: python2-rpm-macros + * Fri Feb 01 2019 Fedora Release Engineering - 2.4.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild From cc7b47111487a701fb79ce7049ea2271a747c561 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 25 Jul 2019 13:15:05 +0000 Subject: [PATCH 057/113] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index 12a9f5a..3441588 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.1 -Release: 6%{?dist} +Release: 7%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -154,6 +154,9 @@ appstream-util validate-relax --nonet \ %changelog +* Thu Jul 25 2019 Fedora Release Engineering - 2.4.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Thu Feb 07 2019 Orcan Ogetbil - 2.4.1-6 - Added BR: python2-rpm-macros From c0dd923498e3165b2cbe46e5d020659f36afb15a Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Sat, 3 Aug 2019 23:27:34 -0400 Subject: [PATCH 058/113] scons renamed to scons-2 in the recent Fedora package --- libffado.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/libffado.spec b/libffado.spec index 3441588..e0fa4c8 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.1 -Release: 7%{?dist} +Release: 8%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -85,7 +85,7 @@ sed -i 's|/usr/bin/.*python$|/usr/bin/python2|' \ export CFLAGS="%{optflags} -ffast-math" export CXXFLAGS="%{optflags} -ffast-math --std=gnu++11" export LDFLAGS="%{build_ldflags}" -scons %{?_smp_mflags} \ +scons-2 %{?_smp_mflags} \ ENABLE_SETBUFFERSIZE_API_VER=True \ ENABLE_OPTIMIZATIONS=True \ CUSTOM_ENV=True \ @@ -103,7 +103,7 @@ scons %{?_smp_mflags} \ export CFLAGS="%{optflags} -ffast-math" export CXXFLAGS="%{optflags} -ffast-math --std=gnu++11" export LDFLAGS="%{build_ldflags}" -scons DESTDIR=%{buildroot} \ +scons-2 DESTDIR=%{buildroot} \ install # We need to install the xdg stuff manually @@ -128,7 +128,8 @@ appstream-util validate-relax --nonet \ %{buildroot}%{_datadir}/metainfo/ffado-mixer.appdata.xml %files -%doc AUTHORS ChangeLog LICENSE.* README +%license LICENSE.* +%doc AUTHORS ChangeLog README %{_libdir}/libffado.so.* %dir %{_datadir}/libffado/ %{_datadir}/libffado/configuration @@ -154,6 +155,9 @@ appstream-util validate-relax --nonet \ %changelog +* Sat Aug 03 2019 Orcan Ogetbil - 2.4.1-8 +- scons renamed to scons-2 in the recent Fedora package + * Thu Jul 25 2019 Fedora Release Engineering - 2.4.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild From e6cc72e3cb4587b87469c3825636192d0f8d179a Mon Sep 17 00:00:00 2001 From: Gwyn Ciesla Date: Mon, 19 Aug 2019 14:03:58 -0500 Subject: [PATCH 059/113] Un-hardcode path. --- libffado.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libffado.spec b/libffado.spec index e0fa4c8..aae2491 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.1 -Release: 8%{?dist} +Release: 9%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -76,7 +76,7 @@ sed -i '/Install/d' tests/{,*/}SConscript sed -i 's|hi64-apps-ffado.png|ffado.png|' support/mixer-qt4/ffado/ffadowindow.py # Fix Python shebangs -sed -i 's|/usr/bin/.*python$|/usr/bin/python2|' \ +sed -i 's|/usr/bin/.*python$|%{_prefix}/bin/python2|' \ admin/*.py doc/SConscript tests/python/*.py tests/*.py \ support/mixer-qt4/ffado-mixer* support/mixer-qt4/SConscript \ support/tools/*.py support/tools/SConscript @@ -95,7 +95,7 @@ scons-2 %{?_smp_mflags} \ MANDIR=%{_mandir} \ UDEVDIR=%{_prefix}/lib/udev/rules.d/ \ PYPKGDIR=%{python2_sitelib}/ffado/ \ - PYTHON_INTERPRETER=/usr/bin/python2 \ + PYTHON_INTERPRETER=%{_prefix}/bin/python2 \ BUILD_TESTS=1 %install @@ -155,6 +155,9 @@ appstream-util validate-relax --nonet \ %changelog +* Mon Aug 19 2019 Gwyn Ciesla - 2.4.1-9 +- Un-hardcode prefix for flatpak. + * Sat Aug 03 2019 Orcan Ogetbil - 2.4.1-8 - scons renamed to scons-2 in the recent Fedora package From a52a69cce3272644af6dd569a0370eeda665a08e Mon Sep 17 00:00:00 2001 From: Gwyn Ciesla Date: Mon, 19 Aug 2019 15:33:53 -0500 Subject: [PATCH 060/113] Revert "Un-hardcode path." This reverts commit e6cc72e3cb4587b87469c3825636192d0f8d179a. --- libffado.spec | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/libffado.spec b/libffado.spec index aae2491..e0fa4c8 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.1 -Release: 9%{?dist} +Release: 8%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -76,7 +76,7 @@ sed -i '/Install/d' tests/{,*/}SConscript sed -i 's|hi64-apps-ffado.png|ffado.png|' support/mixer-qt4/ffado/ffadowindow.py # Fix Python shebangs -sed -i 's|/usr/bin/.*python$|%{_prefix}/bin/python2|' \ +sed -i 's|/usr/bin/.*python$|/usr/bin/python2|' \ admin/*.py doc/SConscript tests/python/*.py tests/*.py \ support/mixer-qt4/ffado-mixer* support/mixer-qt4/SConscript \ support/tools/*.py support/tools/SConscript @@ -95,7 +95,7 @@ scons-2 %{?_smp_mflags} \ MANDIR=%{_mandir} \ UDEVDIR=%{_prefix}/lib/udev/rules.d/ \ PYPKGDIR=%{python2_sitelib}/ffado/ \ - PYTHON_INTERPRETER=%{_prefix}/bin/python2 \ + PYTHON_INTERPRETER=/usr/bin/python2 \ BUILD_TESTS=1 %install @@ -155,9 +155,6 @@ appstream-util validate-relax --nonet \ %changelog -* Mon Aug 19 2019 Gwyn Ciesla - 2.4.1-9 -- Un-hardcode prefix for flatpak. - * Sat Aug 03 2019 Orcan Ogetbil - 2.4.1-8 - scons renamed to scons-2 in the recent Fedora package From b0ceebd8bff887c323548222ae1e2001ba7fe5b4 Mon Sep 17 00:00:00 2001 From: Gwyn Ciesla Date: Mon, 19 Aug 2019 15:35:39 -0500 Subject: [PATCH 061/113] set prefix. --- libffado.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index e0fa4c8..a5a398a 100644 --- a/libffado.spec +++ b/libffado.spec @@ -103,7 +103,7 @@ scons-2 %{?_smp_mflags} \ export CFLAGS="%{optflags} -ffast-math" export CXXFLAGS="%{optflags} -ffast-math --std=gnu++11" export LDFLAGS="%{build_ldflags}" -scons-2 DESTDIR=%{buildroot} \ +scons-2 DESTDIR=%{buildroot} PREFIX=%{_prefix}\ install # We need to install the xdg stuff manually From 2c8aa1f9242058e20636ecbc7bfdd1f3945d8ff2 Mon Sep 17 00:00:00 2001 From: Gwyn Ciesla Date: Tue, 27 Aug 2019 15:16:11 -0500 Subject: [PATCH 062/113] "Adding package.cfg file" --- package.cfg | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 package.cfg diff --git a/package.cfg b/package.cfg new file mode 100644 index 0000000..66ea79d --- /dev/null +++ b/package.cfg @@ -0,0 +1,2 @@ +[koji] +targets = epel8 epel8-playground \ No newline at end of file From 5f55c81aebf0c1734944c97ed7da974107b1a92f Mon Sep 17 00:00:00 2001 From: Vasiliy Glazov Date: Wed, 18 Sep 2019 16:45:32 +0300 Subject: [PATCH 063/113] Solve ppc64le build problem. --- libffado.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libffado.spec b/libffado.spec index a5a398a..332055f 100644 --- a/libffado.spec +++ b/libffado.spec @@ -81,6 +81,8 @@ sed -i 's|/usr/bin/.*python$|/usr/bin/python2|' \ support/mixer-qt4/ffado-mixer* support/mixer-qt4/SConscript \ support/tools/*.py support/tools/SConscript +sed -i 's|-m32||' SConstruct + %build export CFLAGS="%{optflags} -ffast-math" export CXXFLAGS="%{optflags} -ffast-math --std=gnu++11" From 237bd26e741f40d67b4d578d5d72471912c5dcf2 Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Wed, 18 Sep 2019 20:22:54 -0400 Subject: [PATCH 064/113] Convert the package from Python2 to Python3 --- libffado-mixer-py3.patch | 39 +++++++++++++++++++++++++++++++++++++++ libffado.spec | 36 ++++++++++++++++++++---------------- 2 files changed, 59 insertions(+), 16 deletions(-) create mode 100644 libffado-mixer-py3.patch diff --git a/libffado-mixer-py3.patch b/libffado-mixer-py3.patch new file mode 100644 index 0000000..4b49423 --- /dev/null +++ b/libffado-mixer-py3.patch @@ -0,0 +1,39 @@ +diff -rupN libffado-2.4.1.org/SConstruct libffado-2.4.1/SConstruct +--- libffado-2.4.1.org/SConstruct 2018-03-04 01:13:17.000000000 -0500 ++++ libffado-2.4.1/SConstruct 2019-09-18 19:38:12.105388609 -0400 +@@ -719,8 +719,8 @@ def is_userspace_32bit(cpuinfo): + # /bin/mount: file format elf64-x86-64 + # or like this: + # /bin/mount: file format elf32-powerpc +- for line in x.split(b'\n'): +- line = line.strip().decode() ++ for line in x.split('\n'): ++ line = line.strip() + if line.startswith(real_exe): + x, fmt = line.rsplit(None, 1) + answer = 'elf32' in fmt +diff -rupN libffado-2.4.1.org/support/mixer-qt4/SConscript libffado-2.4.1/support/mixer-qt4/SConscript +--- libffado-2.4.1.org/support/mixer-qt4/SConscript 2015-04-12 07:18:15.000000000 -0400 ++++ libffado-2.4.1/support/mixer-qt4/SConscript 2019-09-18 19:37:50.112436538 -0400 +@@ -29,16 +29,13 @@ Import( 'env' ) + if env['BUILD_MIXER'] == 'true': + e = env.Clone() + +- def findfiles( arg, dirname, names ): +- for name in names: ++ pythonfiles = [ 'ffado/config.py' ] ++ for dirpath, dirnames, files in os.walk( "ffado"): ++ for name in files: + if name.startswith("."): +- names.remove(name) +- for name in names: ++ continue + if '.pyc' not in name and '.in' not in name: +- arg.append( os.path.join( dirname, name ) ) +- +- pythonfiles = [ 'ffado/config.py' ] +- os.path.walk( "ffado", findfiles, pythonfiles ) ++ pythonfiles.append(os.path.join(dirpath, name)) + + e.ScanReplace( "ffado/config.py.in" ) + e.Depends( "ffado/config.py", "#/SConstruct" ) diff --git a/libffado.spec b/libffado.spec index 332055f..576eca9 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,12 +1,14 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.1 -Release: 8%{?dist} +Release: 9%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) URL: http://www.ffado.org/ Source0: http://www.ffado.org/files/%{name}-%{version}.tgz +# Convert the package to Python3. Sent upstream via email. +Patch0: libffado-mixer-py3.patch # The trunk is tarballed as follows: # bash libffado-snapshot.sh 2088 # The fetch script @@ -15,9 +17,8 @@ Source9: libffado-snapshot.sh BuildRequires: alsa-lib-devel BuildRequires: dbus-c++-devel BuildRequires: dbus-devel -# the following got renamed to python2-dbus on F28. We are using the backward-compatible Provides -BuildRequires: python2-dbus -BuildRequires: python2-rpm-macros +BuildRequires: python3-dbus +BuildRequires: python3-rpm-macros BuildRequires: desktop-file-utils BuildRequires: doxygen BuildRequires: gcc-c++ @@ -29,10 +30,9 @@ BuildRequires: libiec61883-devel BuildRequires: libraw1394-devel BuildRequires: libxml++-devel BuildRequires: pkgconfig -BuildRequires: python2-PyQt5-devel -BuildRequires: python2-devel -BuildRequires: python2-enum34 -BuildRequires: python2-scons +BuildRequires: python3-qt5-devel +BuildRequires: python3-devel +BuildRequires: python3-scons BuildRequires: subversion ExcludeArch: s390 s390x Requires: udev @@ -59,8 +59,8 @@ License: GPLv3 and GPLv3+ and (GPLv2 or GPLv3) Requires: %{name}%{?_isa} = %{version}-%{release} Requires: dbus # the following got renamed to python2-dbus on F28. We are using the backward-compatible Provides -Requires: python2-dbus -Requires: python2-qt5 +Requires: python3-dbus +Requires: python3-qt5 %description -n ffado Applications and utilities for use with libffado. @@ -68,6 +68,7 @@ Applications and utilities for use with libffado. %prep %setup -q +%patch0 -p1 -b .py3 # We don't want to install all tests sed -i '/Install/d' tests/{,*/}SConscript @@ -76,7 +77,7 @@ sed -i '/Install/d' tests/{,*/}SConscript sed -i 's|hi64-apps-ffado.png|ffado.png|' support/mixer-qt4/ffado/ffadowindow.py # Fix Python shebangs -sed -i 's|/usr/bin/.*python$|/usr/bin/python2|' \ +sed -i 's|/usr/bin/.*python$|/usr/bin/python3|' \ admin/*.py doc/SConscript tests/python/*.py tests/*.py \ support/mixer-qt4/ffado-mixer* support/mixer-qt4/SConscript \ support/tools/*.py support/tools/SConscript @@ -87,7 +88,7 @@ sed -i 's|-m32||' SConstruct export CFLAGS="%{optflags} -ffast-math" export CXXFLAGS="%{optflags} -ffast-math --std=gnu++11" export LDFLAGS="%{build_ldflags}" -scons-2 %{?_smp_mflags} \ +scons-3 %{?_smp_mflags} \ ENABLE_SETBUFFERSIZE_API_VER=True \ ENABLE_OPTIMIZATIONS=True \ CUSTOM_ENV=True \ @@ -96,8 +97,8 @@ scons-2 %{?_smp_mflags} \ LIBDIR=%{_libdir} \ MANDIR=%{_mandir} \ UDEVDIR=%{_prefix}/lib/udev/rules.d/ \ - PYPKGDIR=%{python2_sitelib}/ffado/ \ - PYTHON_INTERPRETER=/usr/bin/python2 \ + PYPKGDIR=%{python3_sitelib}/ffado/ \ + PYTHON_INTERPRETER=/usr/bin/python3 \ BUILD_TESTS=1 %install @@ -105,7 +106,7 @@ scons-2 %{?_smp_mflags} \ export CFLAGS="%{optflags} -ffast-math" export CXXFLAGS="%{optflags} -ffast-math --std=gnu++11" export LDFLAGS="%{build_ldflags}" -scons-2 DESTDIR=%{buildroot} PREFIX=%{_prefix}\ +scons-3 DESTDIR=%{buildroot} PREFIX=%{_prefix}\ install # We need to install the xdg stuff manually @@ -153,10 +154,13 @@ appstream-util validate-relax --nonet \ %{_datadir}/applications/ffado.org-ffadomixer.desktop %{_datadir}/icons/hicolor/64x64/apps/ffado.png %{_datadir}/metainfo/ffado-mixer.appdata.xml -%{python2_sitelib}/ffado/ +%{python3_sitelib}/ffado/ %changelog +* Wed Sep 18 2019 Orcan Ogetbil - 2.4.1-9 +- Convert the package from Python2 to Python3 + * Sat Aug 03 2019 Orcan Ogetbil - 2.4.1-8 - scons renamed to scons-2 in the recent Fedora package From 57b1e96b11cce682a55f07104860f9dc74958e3b Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 29 Jan 2020 09:06:49 +0000 Subject: [PATCH 065/113] - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index 576eca9..0fb5b83 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.1 -Release: 9%{?dist} +Release: 10%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -158,6 +158,9 @@ appstream-util validate-relax --nonet \ %changelog +* Wed Jan 29 2020 Fedora Release Engineering - 2.4.1-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Wed Sep 18 2019 Orcan Ogetbil - 2.4.1-9 - Convert the package from Python2 to Python3 From 17d507b5e266ba1e97221a3148d4dfc387883f83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 26 May 2020 02:50:22 +0200 Subject: [PATCH 066/113] Rebuilt for Python 3.9 --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index 0fb5b83..a8ae5d5 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.1 -Release: 10%{?dist} +Release: 11%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -158,6 +158,9 @@ appstream-util validate-relax --nonet \ %changelog +* Tue May 26 2020 Miro Hrončok - 2.4.1-11 +- Rebuilt for Python 3.9 + * Wed Jan 29 2020 Fedora Release Engineering - 2.4.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild From f9d33751a53c2e26e98e65e7ffb8362796b1604c Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Sat, 30 May 2020 13:57:22 +0200 Subject: [PATCH 067/113] version 2.4.3 --- .gitignore | 1 + libffado-mixer-py3.patch | 39 --------------------------------------- libffado.spec | 10 +++++----- sources | 2 +- 4 files changed, 7 insertions(+), 45 deletions(-) delete mode 100644 libffado-mixer-py3.patch diff --git a/.gitignore b/.gitignore index 99cfd3d..2662323 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ libffado-2.0.1-svn1864.tar.bz2 /libffado-2.3.0.tgz /libffado-2.4.0.tgz /libffado-2.4.1.tgz +/libffado-2.4.3.tgz diff --git a/libffado-mixer-py3.patch b/libffado-mixer-py3.patch deleted file mode 100644 index 4b49423..0000000 --- a/libffado-mixer-py3.patch +++ /dev/null @@ -1,39 +0,0 @@ -diff -rupN libffado-2.4.1.org/SConstruct libffado-2.4.1/SConstruct ---- libffado-2.4.1.org/SConstruct 2018-03-04 01:13:17.000000000 -0500 -+++ libffado-2.4.1/SConstruct 2019-09-18 19:38:12.105388609 -0400 -@@ -719,8 +719,8 @@ def is_userspace_32bit(cpuinfo): - # /bin/mount: file format elf64-x86-64 - # or like this: - # /bin/mount: file format elf32-powerpc -- for line in x.split(b'\n'): -- line = line.strip().decode() -+ for line in x.split('\n'): -+ line = line.strip() - if line.startswith(real_exe): - x, fmt = line.rsplit(None, 1) - answer = 'elf32' in fmt -diff -rupN libffado-2.4.1.org/support/mixer-qt4/SConscript libffado-2.4.1/support/mixer-qt4/SConscript ---- libffado-2.4.1.org/support/mixer-qt4/SConscript 2015-04-12 07:18:15.000000000 -0400 -+++ libffado-2.4.1/support/mixer-qt4/SConscript 2019-09-18 19:37:50.112436538 -0400 -@@ -29,16 +29,13 @@ Import( 'env' ) - if env['BUILD_MIXER'] == 'true': - e = env.Clone() - -- def findfiles( arg, dirname, names ): -- for name in names: -+ pythonfiles = [ 'ffado/config.py' ] -+ for dirpath, dirnames, files in os.walk( "ffado"): -+ for name in files: - if name.startswith("."): -- names.remove(name) -- for name in names: -+ continue - if '.pyc' not in name and '.in' not in name: -- arg.append( os.path.join( dirname, name ) ) -- -- pythonfiles = [ 'ffado/config.py' ] -- os.path.walk( "ffado", findfiles, pythonfiles ) -+ pythonfiles.append(os.path.join(dirpath, name)) - - e.ScanReplace( "ffado/config.py.in" ) - e.Depends( "ffado/config.py", "#/SConstruct" ) diff --git a/libffado.spec b/libffado.spec index a8ae5d5..5d2beb4 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,14 +1,12 @@ Summary: Free firewire audio driver library Name: libffado -Version: 2.4.1 -Release: 11%{?dist} +Version: 2.4.3 +Release: 1%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) URL: http://www.ffado.org/ Source0: http://www.ffado.org/files/%{name}-%{version}.tgz -# Convert the package to Python3. Sent upstream via email. -Patch0: libffado-mixer-py3.patch # The trunk is tarballed as follows: # bash libffado-snapshot.sh 2088 # The fetch script @@ -68,7 +66,6 @@ Applications and utilities for use with libffado. %prep %setup -q -%patch0 -p1 -b .py3 # We don't want to install all tests sed -i '/Install/d' tests/{,*/}SConscript @@ -158,6 +155,9 @@ appstream-util validate-relax --nonet \ %changelog +* Fri May 29 2020 Nils Philippsen - 2.4.3-1 +- version 2.4.3 + * Tue May 26 2020 Miro Hrončok - 2.4.1-11 - Rebuilt for Python 3.9 diff --git a/sources b/sources index 5ffb408..80b41ef 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libffado-2.4.1.tgz) = 0859f17b87c68108bbde726d1cf8ab0b99f6f7f02cbe36acd8b451e112688a4d1edc21134eb4a2edc8c92dcf5f5da52efeabb2ad0dc07804ed1aa664a3b38d74 +SHA512 (libffado-2.4.3.tgz) = d5d3f6b5c446002f3b62d00a215532c208fcc86bedb444bb20872b6b064d48330c6c1ba923bacc4f538ac8e2c73be4dfe0e27f80ea196d5789493d980dfde609 From b41ed9dd6c3227fdbd30d4f6acd4ef408e998747 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Sat, 30 May 2020 18:02:49 +0200 Subject: [PATCH 068/113] work around a bug in scons < 3.0.2 Signed-off-by: Nils Philippsen --- libffado.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index 5d2beb4..1a31939 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.3 -Release: 1%{?dist} +Release: 2%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -67,6 +67,11 @@ Applications and utilities for use with libffado. %prep %setup -q +# Work around a bug in scons < 3.0.2 +if %{__python3} -c 'import SCons; import sys; sys.exit(not tuple(int(d) for d in SCons.__version__.split(".")) < (3, 0, 2))'; then + sed -i '/^CacheDir/d' SConstruct +fi + # We don't want to install all tests sed -i '/Install/d' tests/{,*/}SConscript @@ -155,6 +160,9 @@ appstream-util validate-relax --nonet \ %changelog +* Sat May 30 2020 Nils Philippsen - 2.4.3-2 +- work around a bug in scons < 3.0.2 + * Fri May 29 2020 Nils Philippsen - 2.4.3-1 - version 2.4.3 From 3ec1b95556e5022df3cbb21b975790ad1c203262 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 28 Jul 2020 04:38:19 +0000 Subject: [PATCH 069/113] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index 1a31939..cc5dcc8 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.3 -Release: 2%{?dist} +Release: 3%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -160,6 +160,9 @@ appstream-util validate-relax --nonet \ %changelog +* Tue Jul 28 2020 Fedora Release Engineering - 2.4.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Sat May 30 2020 Nils Philippsen - 2.4.3-2 - work around a bug in scons < 3.0.2 From f1c5f110d15394d51a59e910931749ba0ea7d5b1 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Tue, 5 Jan 2021 16:50:09 +0100 Subject: [PATCH 070/113] Version 2.4.4 Signed-off-by: Nils Philippsen --- .gitignore | 1 + libffado.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 2662323..7979b9e 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ libffado-2.0.1-svn1864.tar.bz2 /libffado-2.4.0.tgz /libffado-2.4.1.tgz /libffado-2.4.3.tgz +/libffado-2.4.4.tgz diff --git a/libffado.spec b/libffado.spec index cc5dcc8..9a60c64 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado -Version: 2.4.3 -Release: 3%{?dist} +Version: 2.4.4 +Release: 1%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -160,6 +160,9 @@ appstream-util validate-relax --nonet \ %changelog +* Tue Jan 05 2020 Nils Philippsen - 2.4.4-1 +- Version 2.4.4 + * Tue Jul 28 2020 Fedora Release Engineering - 2.4.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/sources b/sources index 80b41ef..b1e8199 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libffado-2.4.3.tgz) = d5d3f6b5c446002f3b62d00a215532c208fcc86bedb444bb20872b6b064d48330c6c1ba923bacc4f538ac8e2c73be4dfe0e27f80ea196d5789493d980dfde609 +SHA512 (libffado-2.4.4.tgz) = 065b7f9ce9bf58320c02353b63ed17b3610d0ee8a2de58de27159b2190e39c779094b01ae1123c087387e6077375e646b564b9e7717b192865b2f1f22a3acc80 From 306996926fa6e3f273af28f435036265c46bbc0a Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Tue, 5 Jan 2021 16:51:20 +0100 Subject: [PATCH 071/113] Document license of binary package https://fedoraproject.org/wiki/Packaging:LicensingGuidelines#License:_field Signed-off-by: Nils Philippsen --- libffado.spec | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libffado.spec b/libffado.spec index 9a60c64..c86bbc7 100644 --- a/libffado.spec +++ b/libffado.spec @@ -2,9 +2,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.4 Release: 1%{?dist} -# src/libutil/float_cast.h is LGPLv2+. -# The rest is (GPLv2 or GPLv3) -License: LGPLv2+ and (GPLv2 or GPLv3) +License: GPLv2 or GPLv3 URL: http://www.ffado.org/ Source0: http://www.ffado.org/files/%{name}-%{version}.tgz # The trunk is tarballed as follows: @@ -162,6 +160,7 @@ appstream-util validate-relax --nonet \ %changelog * Tue Jan 05 2020 Nils Philippsen - 2.4.4-1 - Version 2.4.4 +- Document license of binary package * Tue Jul 28 2020 Fedora Release Engineering - 2.4.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From 0e22db972d52310b0c9616194bfd4931c95addca Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Tue, 5 Jan 2021 16:55:38 +0100 Subject: [PATCH 072/113] Avoid using sed to patch files where sensible Signed-off-by: Nils Philippsen --- libffado-2.4.4-icon-name.patch | 12 ++++++++++++ libffado-2.4.4-no-test-apps.patch | 30 ++++++++++++++++++++++++++++++ libffado.spec | 23 ++++++++--------------- 3 files changed, 50 insertions(+), 15 deletions(-) create mode 100644 libffado-2.4.4-icon-name.patch create mode 100644 libffado-2.4.4-no-test-apps.patch diff --git a/libffado-2.4.4-icon-name.patch b/libffado-2.4.4-icon-name.patch new file mode 100644 index 0000000..d5fc600 --- /dev/null +++ b/libffado-2.4.4-icon-name.patch @@ -0,0 +1,12 @@ +diff -up libffado-2.4.4/support/mixer-qt4/ffado/ffadowindow.py.icon-name libffado-2.4.4/support/mixer-qt4/ffado/ffadowindow.py +--- libffado-2.4.4/support/mixer-qt4/ffado/ffadowindow.py.icon-name 2020-05-29 08:59:52.000000000 +0200 ++++ libffado-2.4.4/support/mixer-qt4/ffado/ffadowindow.py 2021-01-05 16:30:40.293184745 +0100 +@@ -267,7 +267,7 @@ def ffadomain(args): + log.debug("Using %s with Qt: %s PyQt: %s" % (get_ffado_version(), QtCore.QT_VERSION_STR, QtCore.PYQT_VERSION_STR)) + + app = QApplication(args) +- app.setWindowIcon( QIcon( SHAREDIR + "/icons/hi64-apps-ffado.png" ) ) ++ app.setWindowIcon( QIcon( SHAREDIR + "/icons/ffado.png" ) ) + + app.setOrganizationName("FFADO") + app.setOrganizationDomain("ffado.org") diff --git a/libffado-2.4.4-no-test-apps.patch b/libffado-2.4.4-no-test-apps.patch new file mode 100644 index 0000000..3cffc74 --- /dev/null +++ b/libffado-2.4.4-no-test-apps.patch @@ -0,0 +1,30 @@ +diff -up libffado-2.4.4/tests/SConscript.no-test-apps libffado-2.4.4/tests/SConscript +--- libffado-2.4.4/tests/SConscript.no-test-apps 2018-03-04 07:12:18.000000000 +0100 ++++ libffado-2.4.4/tests/SConscript 2021-01-05 16:26:04.561795120 +0100 +@@ -83,7 +83,7 @@ if env['ENABLE_DICE']: + + for app in apps.keys(): + env.Program( target=app, source = env.Split( apps[app] ) ) +- env.Install( "$bindir", app ) ++ # env.Install( "$bindir", app ) + + env.SConscript( dirs=["streaming", "systemtests"], exports="env" ) + +diff -up libffado-2.4.4/tests/streaming/SConscript.no-test-apps libffado-2.4.4/tests/streaming/SConscript +--- libffado-2.4.4/tests/streaming/SConscript.no-test-apps 2018-03-04 07:12:18.000000000 +0100 ++++ libffado-2.4.4/tests/streaming/SConscript 2021-01-05 16:25:56.357813274 +0100 +@@ -38,4 +38,4 @@ apps = { + + for app in apps.keys(): + env.Program( target=app, source = env.Split( apps[app] ) ) +- env.Install( "$bindir", app ) ++ # env.Install( "$bindir", app ) +diff -up libffado-2.4.4/tests/systemtests/SConscript.no-test-apps libffado-2.4.4/tests/systemtests/SConscript +--- libffado-2.4.4/tests/systemtests/SConscript.no-test-apps 2018-03-04 07:12:18.000000000 +0100 ++++ libffado-2.4.4/tests/systemtests/SConscript 2021-01-05 16:26:07.104789496 +0100 +@@ -49,4 +49,4 @@ apps = { + + for app in apps.keys(): + env.Program( target=app, source = env.Split( apps[app] ) ) +- env.Install( "$bindir", app ) ++ # env.Install( "$bindir", app ) diff --git a/libffado.spec b/libffado.spec index c86bbc7..4d4d3ff 100644 --- a/libffado.spec +++ b/libffado.spec @@ -9,6 +9,8 @@ Source0: http://www.ffado.org/files/%{name}-%{version}.tgz # bash libffado-snapshot.sh 2088 # The fetch script Source9: libffado-snapshot.sh +Patch0: libffado-2.4.4-no-test-apps.patch +Patch1: libffado-2.4.4-icon-name.patch BuildRequires: alsa-lib-devel BuildRequires: dbus-c++-devel @@ -28,7 +30,7 @@ BuildRequires: libxml++-devel BuildRequires: pkgconfig BuildRequires: python3-qt5-devel BuildRequires: python3-devel -BuildRequires: python3-scons +BuildRequires: python3-scons >= 3.0.2 BuildRequires: subversion ExcludeArch: s390 s390x Requires: udev @@ -63,18 +65,9 @@ Applications and utilities for use with libffado. %prep -%setup -q - -# Work around a bug in scons < 3.0.2 -if %{__python3} -c 'import SCons; import sys; sys.exit(not tuple(int(d) for d in SCons.__version__.split(".")) < (3, 0, 2))'; then - sed -i '/^CacheDir/d' SConstruct -fi - -# We don't want to install all tests -sed -i '/Install/d' tests/{,*/}SConscript - -# Use standard icon name -sed -i 's|hi64-apps-ffado.png|ffado.png|' support/mixer-qt4/ffado/ffadowindow.py +%autosetup -N +%patch0 -p1 -b .no-test-apps +%patch1 -p1 -b .icon-name # Fix Python shebangs sed -i 's|/usr/bin/.*python$|/usr/bin/python3|' \ @@ -82,13 +75,12 @@ sed -i 's|/usr/bin/.*python$|/usr/bin/python3|' \ support/mixer-qt4/ffado-mixer* support/mixer-qt4/SConscript \ support/tools/*.py support/tools/SConscript -sed -i 's|-m32||' SConstruct - %build export CFLAGS="%{optflags} -ffast-math" export CXXFLAGS="%{optflags} -ffast-math --std=gnu++11" export LDFLAGS="%{build_ldflags}" scons-3 %{?_smp_mflags} \ + DETECT_USERSPACE_ENV=False \ ENABLE_SETBUFFERSIZE_API_VER=True \ ENABLE_OPTIMIZATIONS=True \ CUSTOM_ENV=True \ @@ -161,6 +153,7 @@ appstream-util validate-relax --nonet \ * Tue Jan 05 2020 Nils Philippsen - 2.4.4-1 - Version 2.4.4 - Document license of binary package +- Avoid using sed to patch files where feasible * Tue Jul 28 2020 Fedora Release Engineering - 2.4.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From 035144d89e8dc5d398b5f1fa9695879f08d40634 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Tue, 5 Jan 2021 16:56:19 +0100 Subject: [PATCH 073/113] Don't BR: subversion as we build from released tarball Signed-off-by: Nils Philippsen --- libffado.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index 4d4d3ff..4a9d113 100644 --- a/libffado.spec +++ b/libffado.spec @@ -31,7 +31,6 @@ BuildRequires: pkgconfig BuildRequires: python3-qt5-devel BuildRequires: python3-devel BuildRequires: python3-scons >= 3.0.2 -BuildRequires: subversion ExcludeArch: s390 s390x Requires: udev @@ -154,6 +153,7 @@ appstream-util validate-relax --nonet \ - Version 2.4.4 - Document license of binary package - Avoid using sed to patch files where feasible +- Don't BR: subversion as we build from released tarball * Tue Jul 28 2020 Fedora Release Engineering - 2.4.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From 816d56aa2cef3dcdaed6aadb0c31150977d65330 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Tue, 5 Jan 2021 17:11:58 +0100 Subject: [PATCH 074/113] Fix bogus changelog date, happy new year! Signed-off-by: Nils Philippsen --- libffado.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libffado.spec b/libffado.spec index 4a9d113..ece7927 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.4 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2 or GPLv3 URL: http://www.ffado.org/ Source0: http://www.ffado.org/files/%{name}-%{version}.tgz @@ -149,7 +149,10 @@ appstream-util validate-relax --nonet \ %changelog -* Tue Jan 05 2020 Nils Philippsen - 2.4.4-1 +* Tue Jan 05 2021 Nils Philippsen - 2.4.4-2 +- Fix bogus changelog date, happy new year! + +* Tue Jan 05 2021 Nils Philippsen - 2.4.4-1 - Version 2.4.4 - Document license of binary package - Avoid using sed to patch files where feasible From eb25fcf37435070acd9fbcc793e8b3776b573d15 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Tue, 5 Jan 2021 17:23:53 +0100 Subject: [PATCH 075/113] Remove outdated comment Signed-off-by: Nils Philippsen --- libffado.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index ece7927..023b3c4 100644 --- a/libffado.spec +++ b/libffado.spec @@ -55,7 +55,6 @@ Summary: Free firewire audio driver library applications and utilities License: GPLv3 and GPLv3+ and (GPLv2 or GPLv3) Requires: %{name}%{?_isa} = %{version}-%{release} Requires: dbus -# the following got renamed to python2-dbus on F28. We are using the backward-compatible Provides Requires: python3-dbus Requires: python3-qt5 From cf61085376187373a38d0bdbf50e5e6c9b8bc732 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Tue, 5 Jan 2021 18:34:32 +0100 Subject: [PATCH 076/113] Fix building on EL8 --- libffado-2.4.4-scons-quirk.patch | 13 +++++++++++++ libffado.spec | 15 +++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 libffado-2.4.4-scons-quirk.patch diff --git a/libffado-2.4.4-scons-quirk.patch b/libffado-2.4.4-scons-quirk.patch new file mode 100644 index 0000000..60f8a39 --- /dev/null +++ b/libffado-2.4.4-scons-quirk.patch @@ -0,0 +1,13 @@ +diff -up libffado-2.4.4/SConstruct.scons-quirk libffado-2.4.4/SConstruct +--- libffado-2.4.4/SConstruct.scons-quirk 2020-08-09 09:29:35.000000000 +0200 ++++ libffado-2.4.4/SConstruct 2021-01-05 18:28:40.865754202 +0100 +@@ -150,7 +150,8 @@ if not os.path.isdir( "cache" ): + if not os.path.isdir( 'cache/objects' ): + os.makedirs( 'cache/objects' ) + +-CacheDir( 'cache/objects' ) ++# Doesn't work with scons < 3.0.2 ++# CacheDir( 'cache/objects' ) + + opts.Save( 'cache/options.cache', env ) + diff --git a/libffado.spec b/libffado.spec index 023b3c4..e694c43 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,3 +1,9 @@ +%if ! 0%{?rhel} || 0%{?rhel} > 8 +%global needs_scons_quirk 0 +%else +%global needs_scons_quirk 1 +%endif + Summary: Free firewire audio driver library Name: libffado Version: 2.4.4 @@ -11,6 +17,7 @@ Source0: http://www.ffado.org/files/%{name}-%{version}.tgz Source9: libffado-snapshot.sh Patch0: libffado-2.4.4-no-test-apps.patch Patch1: libffado-2.4.4-icon-name.patch +Patch2: libffado-2.4.4-scons-quirk.patch BuildRequires: alsa-lib-devel BuildRequires: dbus-c++-devel @@ -30,7 +37,11 @@ BuildRequires: libxml++-devel BuildRequires: pkgconfig BuildRequires: python3-qt5-devel BuildRequires: python3-devel +%if ! %needs_scons_quirk BuildRequires: python3-scons >= 3.0.2 +%else +BuildRequires: python3-scons +%endif ExcludeArch: s390 s390x Requires: udev @@ -66,6 +77,9 @@ Applications and utilities for use with libffado. %autosetup -N %patch0 -p1 -b .no-test-apps %patch1 -p1 -b .icon-name +%if %needs_scons_quirk +%patch2 -p1 -b .scons-quirk +%endif # Fix Python shebangs sed -i 's|/usr/bin/.*python$|/usr/bin/python3|' \ @@ -150,6 +164,7 @@ appstream-util validate-relax --nonet \ %changelog * Tue Jan 05 2021 Nils Philippsen - 2.4.4-2 - Fix bogus changelog date, happy new year! +- Fix building on EL8 * Tue Jan 05 2021 Nils Philippsen - 2.4.4-1 - Version 2.4.4 From ec88d293558dcee59164bd935df5eced13053504 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 26 Jan 2021 17:03:24 +0000 Subject: [PATCH 077/113] - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index e694c43..7ed9703 100644 --- a/libffado.spec +++ b/libffado.spec @@ -7,7 +7,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.4 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2 or GPLv3 URL: http://www.ffado.org/ Source0: http://www.ffado.org/files/%{name}-%{version}.tgz @@ -162,6 +162,9 @@ appstream-util validate-relax --nonet \ %changelog +* Tue Jan 26 2021 Fedora Release Engineering - 2.4.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Tue Jan 05 2021 Nils Philippsen - 2.4.4-2 - Fix bogus changelog date, happy new year! - Fix building on EL8 From 51d2e084731e880da470227f8ac9471c7dbce6f1 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 4 Jun 2021 20:09:07 +0200 Subject: [PATCH 078/113] Rebuilt for Python 3.10 --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index 7ed9703..b823d64 100644 --- a/libffado.spec +++ b/libffado.spec @@ -7,7 +7,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.4 -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv2 or GPLv3 URL: http://www.ffado.org/ Source0: http://www.ffado.org/files/%{name}-%{version}.tgz @@ -162,6 +162,9 @@ appstream-util validate-relax --nonet \ %changelog +* Fri Jun 04 2021 Python Maint - 2.4.4-4 +- Rebuilt for Python 3.10 + * Tue Jan 26 2021 Fedora Release Engineering - 2.4.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild From d3db13b25cfa7dac990c3076818c49c56040e9cf Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 22 Jul 2021 11:21:57 +0000 Subject: [PATCH 079/113] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index b823d64..de6ccc1 100644 --- a/libffado.spec +++ b/libffado.spec @@ -7,7 +7,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.4 -Release: 4%{?dist} +Release: 5%{?dist} License: GPLv2 or GPLv3 URL: http://www.ffado.org/ Source0: http://www.ffado.org/files/%{name}-%{version}.tgz @@ -162,6 +162,9 @@ appstream-util validate-relax --nonet \ %changelog +* Thu Jul 22 2021 Fedora Release Engineering - 2.4.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Fri Jun 04 2021 Python Maint - 2.4.4-4 - Rebuilt for Python 3.10 From 1dd912750ed38047f8c6628f375cc68dffb445ea Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 20 Jan 2022 16:12:17 +0000 Subject: [PATCH 080/113] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index de6ccc1..b91571b 100644 --- a/libffado.spec +++ b/libffado.spec @@ -7,7 +7,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.4 -Release: 5%{?dist} +Release: 6%{?dist} License: GPLv2 or GPLv3 URL: http://www.ffado.org/ Source0: http://www.ffado.org/files/%{name}-%{version}.tgz @@ -162,6 +162,9 @@ appstream-util validate-relax --nonet \ %changelog +* Thu Jan 20 2022 Fedora Release Engineering - 2.4.4-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Thu Jul 22 2021 Fedora Release Engineering - 2.4.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild From f1b95bb3932fa519aaef37be9cf2ecaa866b5d38 Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Mon, 31 Jan 2022 11:10:42 -0800 Subject: [PATCH 081/113] epel8-playground decommissioned : https://pagure.io/epel/issue/136 --- .cvsignore | 0 Makefile | 21 --------------------- dead.package | 1 + sources | 0 4 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 .cvsignore delete mode 100644 Makefile create mode 100644 dead.package delete mode 100644 sources diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index e69de29..0000000 diff --git a/Makefile b/Makefile deleted file mode 100644 index fe58bf5..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: libffado -# $Id$ -NAME := libffado -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..a72aec0 --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +epel8-playground decommissioned : https://pagure.io/epel/issue/136 diff --git a/sources b/sources deleted file mode 100644 index e69de29..0000000 From 4fc0174098731e9348422c1e3dc939c8f84c4861 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Sat, 12 Mar 2022 12:12:16 +0100 Subject: [PATCH 082/113] Version 2.4.5 Signed-off-by: Nils Philippsen --- .gitignore | 1 + libffado.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 7979b9e..f61690c 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ libffado-2.0.1-svn1864.tar.bz2 /libffado-2.4.1.tgz /libffado-2.4.3.tgz /libffado-2.4.4.tgz +/libffado-2.4.5.tgz diff --git a/libffado.spec b/libffado.spec index b91571b..1bab982 100644 --- a/libffado.spec +++ b/libffado.spec @@ -6,8 +6,8 @@ Summary: Free firewire audio driver library Name: libffado -Version: 2.4.4 -Release: 6%{?dist} +Version: 2.4.5 +Release: 1%{?dist} License: GPLv2 or GPLv3 URL: http://www.ffado.org/ Source0: http://www.ffado.org/files/%{name}-%{version}.tgz @@ -162,6 +162,9 @@ appstream-util validate-relax --nonet \ %changelog +* Sat Mar 12 2022 Nils Philippsen - 2.4.5-1 +- Version 2.4.5 + * Thu Jan 20 2022 Fedora Release Engineering - 2.4.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild diff --git a/sources b/sources index b1e8199..8224679 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libffado-2.4.4.tgz) = 065b7f9ce9bf58320c02353b63ed17b3610d0ee8a2de58de27159b2190e39c779094b01ae1123c087387e6077375e646b564b9e7717b192865b2f1f22a3acc80 +SHA512 (libffado-2.4.5.tgz) = a2c1d0515e14015b7803c4d52d67605afec27ae2569888dec085375ed4a488f4885b5033369e52305e668a35289d3bd749a9babb5778df339fa93553c23af30f From 5153fbc39ef951828653663e596afda9352b8eb7 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Thu, 7 Apr 2022 17:57:45 +0200 Subject: [PATCH 083/113] Cast more values to int to avoid crashes Previously, click-dragging values in the matrix mixer would make ffado-mixer crash. Signed-off-by: Nils Philippsen --- ...-more-values-to-int-to-avoid-crashes.patch | 50 +++++++++++++++++++ libffado.spec | 7 ++- 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 0001-Cast-more-values-to-int-to-avoid-crashes.patch diff --git a/0001-Cast-more-values-to-int-to-avoid-crashes.patch b/0001-Cast-more-values-to-int-to-avoid-crashes.patch new file mode 100644 index 0000000..211538b --- /dev/null +++ b/0001-Cast-more-values-to-int-to-avoid-crashes.patch @@ -0,0 +1,50 @@ +From 9d4f2266ee06acc69f312cf2d67047ff74d60b95 Mon Sep 17 00:00:00 2001 +From: Nils Philippsen +Date: Thu, 7 Apr 2022 17:09:57 +0200 +Subject: [PATCH] Cast more values to int to avoid crashes + +Signed-off-by: Nils Philippsen +--- + .../support/mixer-qt4/ffado/widgets/matrixmixer.py | 12 +++++++++--- + 1 file changed, 9 insertions(+), 3 deletions(-) + +diff --git a/libffado/support/mixer-qt4/ffado/widgets/matrixmixer.py b/libffado/support/mixer-qt4/ffado/widgets/matrixmixer.py +index f63f6fc7..6da8bf40 100644 +--- a/libffado/support/mixer-qt4/ffado/widgets/matrixmixer.py ++++ b/libffado/support/mixer-qt4/ffado/widgets/matrixmixer.py +@@ -210,7 +210,9 @@ class MixerNode(QAbstractSlider): + newpos = ev.posF() if ffado_pyqt_version == 4 else ev.localPos() + change = newpos.y() - self.pos.y() + #log.debug("MixerNode.mouseReleaseEvent() change %s" % (str(change))) +- self.setValue( self.tmpvalue - math.copysign(pow(abs(change), 2), change) ) ++ self.setValue( ++ int(self.tmpvalue - math.copysign(pow(abs(change), 2), change)) ++ ) + ev.accept() + + def mouseReleaseEvent(self, ev): +@@ -218,7 +220,9 @@ class MixerNode(QAbstractSlider): + newpos = ev.posF() if ffado_pyqt_version == 4 else ev.localPos() + change = newpos.y() - self.pos.y() + #log.debug("MixerNode.mouseReleaseEvent() change %s" % (str(change))) +- self.setValue( self.tmpvalue - math.copysign(pow(abs(change), 2), change) ) ++ self.setValue( ++ int(self.tmpvalue - math.copysign(pow(abs(change), 2), change)) ++ ) + self.pos = QtCore.QPointF(0, 0) + del self.tmpvalue + ev.accept() +@@ -229,7 +233,9 @@ class MixerNode(QAbstractSlider): + if (ev.modifiers() & Qt.ControlModifier): + tmpvalue = self.value() + change = ev.delta()/8 +- self.setValue( tmpvalue + math.copysign(pow(abs(change), 2), change) ) ++ self.setValue( ++ int(self.tmpvalue - math.copysign(pow(abs(change), 2), change)) ++ ) + ev.accept() + else: + ev.ignore() +-- +2.35.1 + diff --git a/libffado.spec b/libffado.spec index 1bab982..2624bf4 100644 --- a/libffado.spec +++ b/libffado.spec @@ -7,7 +7,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.5 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2 or GPLv3 URL: http://www.ffado.org/ Source0: http://www.ffado.org/files/%{name}-%{version}.tgz @@ -18,6 +18,7 @@ Source9: libffado-snapshot.sh Patch0: libffado-2.4.4-no-test-apps.patch Patch1: libffado-2.4.4-icon-name.patch Patch2: libffado-2.4.4-scons-quirk.patch +Patch3: 0001-Cast-more-values-to-int-to-avoid-crashes.patch BuildRequires: alsa-lib-devel BuildRequires: dbus-c++-devel @@ -80,6 +81,7 @@ Applications and utilities for use with libffado. %if %needs_scons_quirk %patch2 -p1 -b .scons-quirk %endif +%patch3 -p2 -b .cast-more-values # Fix Python shebangs sed -i 's|/usr/bin/.*python$|/usr/bin/python3|' \ @@ -162,6 +164,9 @@ appstream-util validate-relax --nonet \ %changelog +* Thu Apr 07 2022 Nils Philippsen - 2.4.5-2 +- Cast more float values to int to avoid crashes + * Sat Mar 12 2022 Nils Philippsen - 2.4.5-1 - Version 2.4.5 From 0034caf4dd90814e81530deed28ac71417724ee6 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Mon, 13 Jun 2022 23:42:48 +0200 Subject: [PATCH 084/113] Rebuilt for Python 3.11 --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index 2624bf4..8e7c839 100644 --- a/libffado.spec +++ b/libffado.spec @@ -7,7 +7,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.5 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2 or GPLv3 URL: http://www.ffado.org/ Source0: http://www.ffado.org/files/%{name}-%{version}.tgz @@ -164,6 +164,9 @@ appstream-util validate-relax --nonet \ %changelog +* Mon Jun 13 2022 Python Maint - 2.4.5-3 +- Rebuilt for Python 3.11 + * Thu Apr 07 2022 Nils Philippsen - 2.4.5-2 - Cast more float values to int to avoid crashes From 944cab0bd9542b8d8c6690d7f50332ba01c5a637 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Mon, 18 Jul 2022 23:58:38 +0200 Subject: [PATCH 085/113] Version 2.4.6 Signed-off-by: Nils Philippsen --- .gitignore | 1 + ...-more-values-to-int-to-avoid-crashes.patch | 50 ------------------- libffado.spec | 9 ++-- sources | 2 +- 4 files changed, 7 insertions(+), 55 deletions(-) delete mode 100644 0001-Cast-more-values-to-int-to-avoid-crashes.patch diff --git a/.gitignore b/.gitignore index f61690c..33bd3ab 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ libffado-2.0.1-svn1864.tar.bz2 /libffado-2.4.3.tgz /libffado-2.4.4.tgz /libffado-2.4.5.tgz +/libffado-2.4.6.tgz diff --git a/0001-Cast-more-values-to-int-to-avoid-crashes.patch b/0001-Cast-more-values-to-int-to-avoid-crashes.patch deleted file mode 100644 index 211538b..0000000 --- a/0001-Cast-more-values-to-int-to-avoid-crashes.patch +++ /dev/null @@ -1,50 +0,0 @@ -From 9d4f2266ee06acc69f312cf2d67047ff74d60b95 Mon Sep 17 00:00:00 2001 -From: Nils Philippsen -Date: Thu, 7 Apr 2022 17:09:57 +0200 -Subject: [PATCH] Cast more values to int to avoid crashes - -Signed-off-by: Nils Philippsen ---- - .../support/mixer-qt4/ffado/widgets/matrixmixer.py | 12 +++++++++--- - 1 file changed, 9 insertions(+), 3 deletions(-) - -diff --git a/libffado/support/mixer-qt4/ffado/widgets/matrixmixer.py b/libffado/support/mixer-qt4/ffado/widgets/matrixmixer.py -index f63f6fc7..6da8bf40 100644 ---- a/libffado/support/mixer-qt4/ffado/widgets/matrixmixer.py -+++ b/libffado/support/mixer-qt4/ffado/widgets/matrixmixer.py -@@ -210,7 +210,9 @@ class MixerNode(QAbstractSlider): - newpos = ev.posF() if ffado_pyqt_version == 4 else ev.localPos() - change = newpos.y() - self.pos.y() - #log.debug("MixerNode.mouseReleaseEvent() change %s" % (str(change))) -- self.setValue( self.tmpvalue - math.copysign(pow(abs(change), 2), change) ) -+ self.setValue( -+ int(self.tmpvalue - math.copysign(pow(abs(change), 2), change)) -+ ) - ev.accept() - - def mouseReleaseEvent(self, ev): -@@ -218,7 +220,9 @@ class MixerNode(QAbstractSlider): - newpos = ev.posF() if ffado_pyqt_version == 4 else ev.localPos() - change = newpos.y() - self.pos.y() - #log.debug("MixerNode.mouseReleaseEvent() change %s" % (str(change))) -- self.setValue( self.tmpvalue - math.copysign(pow(abs(change), 2), change) ) -+ self.setValue( -+ int(self.tmpvalue - math.copysign(pow(abs(change), 2), change)) -+ ) - self.pos = QtCore.QPointF(0, 0) - del self.tmpvalue - ev.accept() -@@ -229,7 +233,9 @@ class MixerNode(QAbstractSlider): - if (ev.modifiers() & Qt.ControlModifier): - tmpvalue = self.value() - change = ev.delta()/8 -- self.setValue( tmpvalue + math.copysign(pow(abs(change), 2), change) ) -+ self.setValue( -+ int(self.tmpvalue - math.copysign(pow(abs(change), 2), change)) -+ ) - ev.accept() - else: - ev.ignore() --- -2.35.1 - diff --git a/libffado.spec b/libffado.spec index 8e7c839..da96c9d 100644 --- a/libffado.spec +++ b/libffado.spec @@ -6,8 +6,8 @@ Summary: Free firewire audio driver library Name: libffado -Version: 2.4.5 -Release: 3%{?dist} +Version: 2.4.6 +Release: 1%{?dist} License: GPLv2 or GPLv3 URL: http://www.ffado.org/ Source0: http://www.ffado.org/files/%{name}-%{version}.tgz @@ -18,7 +18,6 @@ Source9: libffado-snapshot.sh Patch0: libffado-2.4.4-no-test-apps.patch Patch1: libffado-2.4.4-icon-name.patch Patch2: libffado-2.4.4-scons-quirk.patch -Patch3: 0001-Cast-more-values-to-int-to-avoid-crashes.patch BuildRequires: alsa-lib-devel BuildRequires: dbus-c++-devel @@ -81,7 +80,6 @@ Applications and utilities for use with libffado. %if %needs_scons_quirk %patch2 -p1 -b .scons-quirk %endif -%patch3 -p2 -b .cast-more-values # Fix Python shebangs sed -i 's|/usr/bin/.*python$|/usr/bin/python3|' \ @@ -164,6 +162,9 @@ appstream-util validate-relax --nonet \ %changelog +* Mon Jul 18 2022 Nils Philippsen - 2.4.6-1 +- Version 2.4.6 + * Mon Jun 13 2022 Python Maint - 2.4.5-3 - Rebuilt for Python 3.11 diff --git a/sources b/sources index 8224679..5895210 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libffado-2.4.5.tgz) = a2c1d0515e14015b7803c4d52d67605afec27ae2569888dec085375ed4a488f4885b5033369e52305e668a35289d3bd749a9babb5778df339fa93553c23af30f +SHA512 (libffado-2.4.6.tgz) = dac651233ea94c19834e810c64230bcbd5516de9e694ced1b6497ad927d734c527b3a556281676393674d33da768cb2431e7da1a0fdfc6ceb268e897029aa584 From b452da0ed22761914b3fad8442b9bd0d81d13ef9 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 21 Jul 2022 17:47:35 +0000 Subject: [PATCH 086/113] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index da96c9d..172bcd0 100644 --- a/libffado.spec +++ b/libffado.spec @@ -7,7 +7,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.6 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2 or GPLv3 URL: http://www.ffado.org/ Source0: http://www.ffado.org/files/%{name}-%{version}.tgz @@ -162,6 +162,9 @@ appstream-util validate-relax --nonet \ %changelog +* Thu Jul 21 2022 Fedora Release Engineering - 2.4.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Mon Jul 18 2022 Nils Philippsen - 2.4.6-1 - Version 2.4.6 From 0f2308f3e5d5b62390eacef67f8bb96f9d3b0d55 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Sat, 3 Sep 2022 22:05:55 +0200 Subject: [PATCH 087/113] Fix yet another int/float crash This time it was in the crossbar router. Signed-off-by: Nils Philippsen --- ...-another-Python-3.10-int-float-crash.patch | 28 +++++++++++++++++++ libffado.spec | 8 +++++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 0001-ffado-mixer-Fix-another-Python-3.10-int-float-crash.patch diff --git a/0001-ffado-mixer-Fix-another-Python-3.10-int-float-crash.patch b/0001-ffado-mixer-Fix-another-Python-3.10-int-float-crash.patch new file mode 100644 index 0000000..4d40b82 --- /dev/null +++ b/0001-ffado-mixer-Fix-another-Python-3.10-int-float-crash.patch @@ -0,0 +1,28 @@ +From 96cb4262139d3df7e3fec5b5b775c0a61248b652 Mon Sep 17 00:00:00 2001 +From: Nils Philippsen +Date: Sat, 3 Sep 2022 00:34:39 +0200 +Subject: [PATCH] ffado-mixer: Fix another Python 3.10 int/float crash + +This one let switching to the crossbar router crash ffado-mixer. + +Signed-off-by: Nils Philippsen +--- + libffado/support/mixer-qt4/ffado/widgets/crossbarrouter.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libffado/support/mixer-qt4/ffado/widgets/crossbarrouter.py b/libffado/support/mixer-qt4/ffado/widgets/crossbarrouter.py +index 4a67c23a..bb222889 100644 +--- a/libffado/support/mixer-qt4/ffado/widgets/crossbarrouter.py ++++ b/libffado/support/mixer-qt4/ffado/widgets/crossbarrouter.py +@@ -53,7 +53,7 @@ class VuMeter(QFrame): + p = QPainter(self) + value = self.level/4096 + r = self.rect() +- r.setHeight(r.height() * math.sqrt(value)) ++ r.setHeight(int(r.height() * math.sqrt(value))) + r.moveBottom(self.rect().height()) + p.fillRect(r, self.palette().highlight()) + +-- +2.37.2 + diff --git a/libffado.spec b/libffado.spec index 172bcd0..9062a3b 100644 --- a/libffado.spec +++ b/libffado.spec @@ -7,7 +7,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.6 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2 or GPLv3 URL: http://www.ffado.org/ Source0: http://www.ffado.org/files/%{name}-%{version}.tgz @@ -18,6 +18,8 @@ Source9: libffado-snapshot.sh Patch0: libffado-2.4.4-no-test-apps.patch Patch1: libffado-2.4.4-icon-name.patch Patch2: libffado-2.4.4-scons-quirk.patch +# Fix int/float crash in crossbar router +Patch3: 0001-ffado-mixer-Fix-another-Python-3.10-int-float-crash.patch BuildRequires: alsa-lib-devel BuildRequires: dbus-c++-devel @@ -80,6 +82,7 @@ Applications and utilities for use with libffado. %if %needs_scons_quirk %patch2 -p1 -b .scons-quirk %endif +%patch3 -p2 -b .crossbar-router-crash # Fix Python shebangs sed -i 's|/usr/bin/.*python$|/usr/bin/python3|' \ @@ -162,6 +165,9 @@ appstream-util validate-relax --nonet \ %changelog +* Sat Sep 03 2022 Nils Philippsen - 2.4.6-3 +- Fix yet another int/float crash, this time in the crossbar router + * Thu Jul 21 2022 Fedora Release Engineering - 2.4.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From 9cf65acfbbac545c2b05a18479cfeeb2382c3f27 Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Fri, 2 Dec 2022 15:48:24 +0100 Subject: [PATCH 088/113] Drop udev enforcement - rhbz#2132573 --- libffado.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index 9062a3b..beed339 100644 --- a/libffado.spec +++ b/libffado.spec @@ -45,7 +45,7 @@ BuildRequires: python3-scons >= 3.0.2 BuildRequires: python3-scons %endif ExcludeArch: s390 s390x -Requires: udev + %description The FFADO project aims to provide a generic, open-source solution for the From df4be692fe74bde236b44cd41cdbf61d71a554f2 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 19 Jan 2023 16:19:08 +0000 Subject: [PATCH 089/113] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- libffado.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index beed339..80c4f76 100644 --- a/libffado.spec +++ b/libffado.spec @@ -7,7 +7,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.6 -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv2 or GPLv3 URL: http://www.ffado.org/ Source0: http://www.ffado.org/files/%{name}-%{version}.tgz @@ -165,6 +165,9 @@ appstream-util validate-relax --nonet \ %changelog +* Thu Jan 19 2023 Fedora Release Engineering - 2.4.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Sat Sep 03 2022 Nils Philippsen - 2.4.6-3 - Fix yet another int/float crash, this time in the crossbar router From b9421a36c9c5213262ba2e50484d4857ad71b50a Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Mon, 6 Feb 2023 11:31:27 +0100 Subject: [PATCH 090/113] Convert to rpmautospec --- changelog | 257 +++++++++++++++++++++++++++++++++++++++++++++++++ libffado.spec | 260 +------------------------------------------------- 2 files changed, 259 insertions(+), 258 deletions(-) create mode 100644 changelog diff --git a/changelog b/changelog new file mode 100644 index 0000000..4e01d66 --- /dev/null +++ b/changelog @@ -0,0 +1,257 @@ +* Thu Jan 19 2023 Fedora Release Engineering - 2.4.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Sep 03 2022 Nils Philippsen - 2.4.6-3 +- Fix yet another int/float crash, this time in the crossbar router + +* Thu Jul 21 2022 Fedora Release Engineering - 2.4.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jul 18 2022 Nils Philippsen - 2.4.6-1 +- Version 2.4.6 + +* Mon Jun 13 2022 Python Maint - 2.4.5-3 +- Rebuilt for Python 3.11 + +* Thu Apr 07 2022 Nils Philippsen - 2.4.5-2 +- Cast more float values to int to avoid crashes + +* Sat Mar 12 2022 Nils Philippsen - 2.4.5-1 +- Version 2.4.5 + +* Thu Jan 20 2022 Fedora Release Engineering - 2.4.4-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 2.4.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 2.4.4-4 +- Rebuilt for Python 3.10 + +* Tue Jan 26 2021 Fedora Release Engineering - 2.4.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jan 05 2021 Nils Philippsen - 2.4.4-2 +- Fix bogus changelog date, happy new year! +- Fix building on EL8 + +* Tue Jan 05 2021 Nils Philippsen - 2.4.4-1 +- Version 2.4.4 +- Document license of binary package +- Avoid using sed to patch files where feasible +- Don't BR: subversion as we build from released tarball + +* Tue Jul 28 2020 Fedora Release Engineering - 2.4.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat May 30 2020 Nils Philippsen - 2.4.3-2 +- work around a bug in scons < 3.0.2 + +* Fri May 29 2020 Nils Philippsen - 2.4.3-1 +- version 2.4.3 + +* Tue May 26 2020 Miro Hrončok - 2.4.1-11 +- Rebuilt for Python 3.9 + +* Wed Jan 29 2020 Fedora Release Engineering - 2.4.1-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Sep 18 2019 Orcan Ogetbil - 2.4.1-9 +- Convert the package from Python2 to Python3 + +* Sat Aug 03 2019 Orcan Ogetbil - 2.4.1-8 +- scons renamed to scons-2 in the recent Fedora package + +* Thu Jul 25 2019 Fedora Release Engineering - 2.4.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Feb 07 2019 Orcan Ogetbil - 2.4.1-6 +- Added BR: python2-rpm-macros + +* Fri Feb 01 2019 Fedora Release Engineering - 2.4.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Jul 24 2018 Tom Callaway - 2.4.1-4 +- rebuild for new libconfig + +* Thu Jul 19 2018 Orcan Ogetbil - 2.4.1-3 +- Fixed Python shebangs +- Added BR: python2-enum34 + +* Fri Jul 13 2018 Fedora Release Engineering - 2.4.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Apr 25 2018 Orcan Ogetbil - 2.4.1-1 +- Update to 2.4.1 +- Drop upstreamed patches + +* Wed Apr 18 2018 Iryna Shcherbina - 2.4.0-6 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Sat Feb 10 2018 Orcan Ogetbil - 2.4.0-5 +- Build with RPM_LD_FLAGS exported in install section as well + +* Fri Feb 9 2018 Florian Weimer - 2.4.0-4 +- Use LDFLAGS from redhat-rpm-config + +* Wed Feb 07 2018 Fedora Release Engineering - 2.4.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Sat Feb 03 2018 Igor Gnatenko - 2.4.0-2 +- Switch to %%ldconfig_scriptlets + +* Fri Jan 05 2018 Orcan Ogetbil - 2.4.0-1 +- Update to 2.4.0 +- Drop upstreamed patches + +* Fri Jan 05 2018 Igor Gnatenko - 2.3.0-8 +- Remove obsolete scriptlets + +* Mon Nov 06 2017 Orcan Ogetbil - 2.3.0-7 +- Build against scons3 +- Build against newer gcc/glibc + +* Thu Aug 10 2017 Orcan Ogetbil - 2.3.0-6 +- Fix FTBFS on F27 +- Backported fixes from trunk for various compilation warnings +- MIPS support RHBZ#1366701 + +* Thu Aug 03 2017 Fedora Release Engineering - 2.3.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 2.3.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Mon May 15 2017 Fedora Release Engineering - 2.3.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild + +* Thu Feb 16 2017 Jonathan Wakely - 2.3.0-2 +- Patch invalid code to build with GCC 7 + +* Fri Feb 10 2017 Fedora Release Engineering - 2.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Aug 08 2016 Orcan Ogetbil - 2.3.0-1 +- Update to 2.3.0. + +* Tue Jul 19 2016 Fedora Release Engineering - 2.2.1-9 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Tue Mar 01 2016 Yaakov Selkowitz - 2.2.1-8 +- Fix FTBFS with GCC 6 (#1307721) + +* Thu Feb 04 2016 Fedora Release Engineering - 2.2.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Jan 22 2016 Lubomir Rintel - 2.2.1-6 +- Fix FTBFS + +* Wed Jun 17 2015 Fedora Release Engineering - 2.2.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat May 02 2015 Kalev Lember - 2.2.1-4 +- Rebuilt for GCC 5 C++11 ABI change + +* Sun Aug 17 2014 Fedora Release Engineering - 2.2.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 2.2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Jun 01 2014 Brendan Jones 2.2.1-1 +- Update to 2.2.1 +- Remove incorporated udev rules patch + +* Mon Sep 30 2013 Brendan Jones 2.1.0-4 +- Corrrect udev rules RFBZ#999580 +- Correct changelog + +* Sat Aug 03 2013 Fedora Release Engineering - 2.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 2.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Sep 20 2012 Orcan Ogetbil - 2.1.0-1 +- Update to 2.1.0. +- Drop upstreamed & old patches, README.Fedora file. + +* Thu Jul 19 2012 Fedora Release Engineering - 2.1.0-0.10.20120325.svn2088 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Tue Jun 12 2012 Orcan Ogetbil - 2.1.0-0.9.20120325.svn2088 +- Fix multilib confict RHBZ#831405 +- Fix DSO linking #ticket 355 + +* Sun Mar 25 2012 Orcan Ogetbil - 2.1.0-0.8.20120325.svn2088 +- Update to svn2088. +- Drop upstreamed gcc-4.7 patch. + +* Thu Mar 22 2012 Orcan Ogetbil - 2.1.0-0.7.20111030.svn2000 +- Include the ffado-test executable RHBZ#805940 +- Fix .desktop file warning + +* Tue Feb 28 2012 Fedora Release Engineering - 2.1.0-0.6.20111030.svn2000 +- Rebuilt for c++ ABI breakage + +* Tue Jan 10 2012 Orcan Ogetbil - 2.1.0-0.5.20111030.svn2000 +- gcc-4.7 compile fix + +* Sun Oct 30 2011 Orcan Ogetbil - 2.1.0-0.4.20111030.svn2000 +- Update to svn2000. +- Drop the gold linker patch. The issue is properly solved upstream. See upstream tracker #293 + +* Tue Apr 26 2011 Brendan Jones - 2.1.0-0.3.20110426.svn1983 +- Update to svn1983 +- Clean up redundant patches +- Patch to rebuild using gold linker. Fixes RHBZ#684392 + +* Mon Feb 07 2011 Fedora Release Engineering - 2.1.0-0.2.20101015.svn1913 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Fri Oct 15 2010 Orcan Ogetbil - 2.1.0-0.1.20101015.svn1913 +- Update to svn1913. Fixes RHBZ#635315 +- Drop upstreamed patches + +* Thu Aug 26 2010 Dan Horák - 2.0.1-5.20100706.svn1864 +- no Firewire on s390(x) + +* Thu Jul 29 2010 Orcan Ogetbil - 2.0.1-4.20100706.svn1864 +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild + +* Wed Jul 14 2010 Orcan Ogetbil - 2.0.1-3.20100706.svn1864 +- Remove ENABLE_ALL +- Improve the libffado-dont-use-bundled-libs.patch +- Drop BR: expat-devel libavc1394-devel +- Move configuration file to the library package +- Minor enhancement in the .desktop file +- Add links to upstream tickets for patches +- Add -ffast-math to the compiler flags +- Add patch to compile against libconfig-1.4.5 + +* Tue Jul 13 2010 Orcan Ogetbil - 2.0.1-2.20100706.svn1864 +- Add ENABLE_ALL flag to support more devices +- Don't bundle tests +- Include some preliminary documentation for the tools until the manpages arrive +- Patch out bundled libraries. Also fixes some rpmlints +- Improve the instructions how to create the tarball + +* Wed Jul 07 2010 Orcan Ogetbil - 2.0.1-1.20100706.svn1864 +- Update to trunk, post 2.0.1. + +* Sat Jun 05 2010 Orcan Ogetbil - 2.0.0-1.20100605.svn1845 +- Update to trunk, post 2.0.0. + +* Mon May 18 2009 Jarod Wilson - 2.0-0.4.rc2 +- Update to 2.0.0-rc2 + +* Thu Nov 06 2008 Jarod Wilson - 2.0-0.3.beta7 +- Update to beta7 +- Put arch-dependent helper/test binaries in libexecdir instead of datadir + +* Sun Aug 10 2008 Jarod Wilson - 2.0-0.2.beta6 +- Review clean-ups (#456353) + +* Tue Jul 22 2008 Jarod Wilson - 2.0-0.1.beta6 +- Initial Fedora build of libffado diff --git a/libffado.spec b/libffado.spec index 80c4f76..c19bdc2 100644 --- a/libffado.spec +++ b/libffado.spec @@ -7,7 +7,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.6 -Release: 4%{?dist} +Release: %autorelease License: GPLv2 or GPLv3 URL: http://www.ffado.org/ Source0: http://www.ffado.org/files/%{name}-%{version}.tgz @@ -165,260 +165,4 @@ appstream-util validate-relax --nonet \ %changelog -* Thu Jan 19 2023 Fedora Release Engineering - 2.4.6-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Sat Sep 03 2022 Nils Philippsen - 2.4.6-3 -- Fix yet another int/float crash, this time in the crossbar router - -* Thu Jul 21 2022 Fedora Release Engineering - 2.4.6-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Mon Jul 18 2022 Nils Philippsen - 2.4.6-1 -- Version 2.4.6 - -* Mon Jun 13 2022 Python Maint - 2.4.5-3 -- Rebuilt for Python 3.11 - -* Thu Apr 07 2022 Nils Philippsen - 2.4.5-2 -- Cast more float values to int to avoid crashes - -* Sat Mar 12 2022 Nils Philippsen - 2.4.5-1 -- Version 2.4.5 - -* Thu Jan 20 2022 Fedora Release Engineering - 2.4.4-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Thu Jul 22 2021 Fedora Release Engineering - 2.4.4-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Fri Jun 04 2021 Python Maint - 2.4.4-4 -- Rebuilt for Python 3.10 - -* Tue Jan 26 2021 Fedora Release Engineering - 2.4.4-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Tue Jan 05 2021 Nils Philippsen - 2.4.4-2 -- Fix bogus changelog date, happy new year! -- Fix building on EL8 - -* Tue Jan 05 2021 Nils Philippsen - 2.4.4-1 -- Version 2.4.4 -- Document license of binary package -- Avoid using sed to patch files where feasible -- Don't BR: subversion as we build from released tarball - -* Tue Jul 28 2020 Fedora Release Engineering - 2.4.3-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Sat May 30 2020 Nils Philippsen - 2.4.3-2 -- work around a bug in scons < 3.0.2 - -* Fri May 29 2020 Nils Philippsen - 2.4.3-1 -- version 2.4.3 - -* Tue May 26 2020 Miro Hrončok - 2.4.1-11 -- Rebuilt for Python 3.9 - -* Wed Jan 29 2020 Fedora Release Engineering - 2.4.1-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Wed Sep 18 2019 Orcan Ogetbil - 2.4.1-9 -- Convert the package from Python2 to Python3 - -* Sat Aug 03 2019 Orcan Ogetbil - 2.4.1-8 -- scons renamed to scons-2 in the recent Fedora package - -* Thu Jul 25 2019 Fedora Release Engineering - 2.4.1-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Thu Feb 07 2019 Orcan Ogetbil - 2.4.1-6 -- Added BR: python2-rpm-macros - -* Fri Feb 01 2019 Fedora Release Engineering - 2.4.1-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Tue Jul 24 2018 Tom Callaway - 2.4.1-4 -- rebuild for new libconfig - -* Thu Jul 19 2018 Orcan Ogetbil - 2.4.1-3 -- Fixed Python shebangs -- Added BR: python2-enum34 - -* Fri Jul 13 2018 Fedora Release Engineering - 2.4.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Wed Apr 25 2018 Orcan Ogetbil - 2.4.1-1 -- Update to 2.4.1 -- Drop upstreamed patches - -* Wed Apr 18 2018 Iryna Shcherbina - 2.4.0-6 -- Update Python 2 dependency declarations to new packaging standards - (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) - -* Sat Feb 10 2018 Orcan Ogetbil - 2.4.0-5 -- Build with RPM_LD_FLAGS exported in install section as well - -* Fri Feb 9 2018 Florian Weimer - 2.4.0-4 -- Use LDFLAGS from redhat-rpm-config - -* Wed Feb 07 2018 Fedora Release Engineering - 2.4.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Sat Feb 03 2018 Igor Gnatenko - 2.4.0-2 -- Switch to %%ldconfig_scriptlets - -* Fri Jan 05 2018 Orcan Ogetbil - 2.4.0-1 -- Update to 2.4.0 -- Drop upstreamed patches - -* Fri Jan 05 2018 Igor Gnatenko - 2.3.0-8 -- Remove obsolete scriptlets - -* Mon Nov 06 2017 Orcan Ogetbil - 2.3.0-7 -- Build against scons3 -- Build against newer gcc/glibc - -* Thu Aug 10 2017 Orcan Ogetbil - 2.3.0-6 -- Fix FTBFS on F27 -- Backported fixes from trunk for various compilation warnings -- MIPS support RHBZ#1366701 - -* Thu Aug 03 2017 Fedora Release Engineering - 2.3.0-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - -* Wed Jul 26 2017 Fedora Release Engineering - 2.3.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Mon May 15 2017 Fedora Release Engineering - 2.3.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild - -* Thu Feb 16 2017 Jonathan Wakely - 2.3.0-2 -- Patch invalid code to build with GCC 7 - -* Fri Feb 10 2017 Fedora Release Engineering - 2.3.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Mon Aug 08 2016 Orcan Ogetbil - 2.3.0-1 -- Update to 2.3.0. - -* Tue Jul 19 2016 Fedora Release Engineering - 2.2.1-9 -- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages - -* Tue Mar 01 2016 Yaakov Selkowitz - 2.2.1-8 -- Fix FTBFS with GCC 6 (#1307721) - -* Thu Feb 04 2016 Fedora Release Engineering - 2.2.1-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Fri Jan 22 2016 Lubomir Rintel - 2.2.1-6 -- Fix FTBFS - -* Wed Jun 17 2015 Fedora Release Engineering - 2.2.1-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Sat May 02 2015 Kalev Lember - 2.2.1-4 -- Rebuilt for GCC 5 C++11 ABI change - -* Sun Aug 17 2014 Fedora Release Engineering - 2.2.1-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild - -* Sat Jun 07 2014 Fedora Release Engineering - 2.2.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Sun Jun 01 2014 Brendan Jones 2.2.1-1 -- Update to 2.2.1 -- Remove incorporated udev rules patch - -* Mon Sep 30 2013 Brendan Jones 2.1.0-4 -- Corrrect udev rules RFBZ#999580 -- Correct changelog - -* Sat Aug 03 2013 Fedora Release Engineering - 2.1.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Thu Feb 14 2013 Fedora Release Engineering - 2.1.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Thu Sep 20 2012 Orcan Ogetbil - 2.1.0-1 -- Update to 2.1.0. -- Drop upstreamed & old patches, README.Fedora file. - -* Thu Jul 19 2012 Fedora Release Engineering - 2.1.0-0.10.20120325.svn2088 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - -* Tue Jun 12 2012 Orcan Ogetbil - 2.1.0-0.9.20120325.svn2088 -- Fix multilib confict RHBZ#831405 -- Fix DSO linking #ticket 355 - -* Sun Mar 25 2012 Orcan Ogetbil - 2.1.0-0.8.20120325.svn2088 -- Update to svn2088. -- Drop upstreamed gcc-4.7 patch. - -* Thu Mar 22 2012 Orcan Ogetbil - 2.1.0-0.7.20111030.svn2000 -- Include the ffado-test executable RHBZ#805940 -- Fix .desktop file warning - -* Tue Feb 28 2012 Fedora Release Engineering - 2.1.0-0.6.20111030.svn2000 -- Rebuilt for c++ ABI breakage - -* Tue Jan 10 2012 Orcan Ogetbil - 2.1.0-0.5.20111030.svn2000 -- gcc-4.7 compile fix - -* Sun Oct 30 2011 Orcan Ogetbil - 2.1.0-0.4.20111030.svn2000 -- Update to svn2000. -- Drop the gold linker patch. The issue is properly solved upstream. See upstream tracker #293 - -* Tue Apr 26 2011 Brendan Jones - 2.1.0-0.3.20110426.svn1983 -- Update to svn1983 -- Clean up redundant patches -- Patch to rebuild using gold linker. Fixes RHBZ#684392 - -* Mon Feb 07 2011 Fedora Release Engineering - 2.1.0-0.2.20101015.svn1913 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - -* Fri Oct 15 2010 Orcan Ogetbil - 2.1.0-0.1.20101015.svn1913 -- Update to svn1913. Fixes RHBZ#635315 -- Drop upstreamed patches - -* Thu Aug 26 2010 Dan Horák - 2.0.1-5.20100706.svn1864 -- no Firewire on s390(x) - -* Thu Jul 29 2010 Orcan Ogetbil - 2.0.1-4.20100706.svn1864 -- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild - -* Wed Jul 14 2010 Orcan Ogetbil - 2.0.1-3.20100706.svn1864 -- Remove ENABLE_ALL -- Improve the libffado-dont-use-bundled-libs.patch -- Drop BR: expat-devel libavc1394-devel -- Move configuration file to the library package -- Minor enhancement in the .desktop file -- Add links to upstream tickets for patches -- Add -ffast-math to the compiler flags -- Add patch to compile against libconfig-1.4.5 - -* Tue Jul 13 2010 Orcan Ogetbil - 2.0.1-2.20100706.svn1864 -- Add ENABLE_ALL flag to support more devices -- Don't bundle tests -- Include some preliminary documentation for the tools until the manpages arrive -- Patch out bundled libraries. Also fixes some rpmlints -- Improve the instructions how to create the tarball - -* Wed Jul 07 2010 Orcan Ogetbil - 2.0.1-1.20100706.svn1864 -- Update to trunk, post 2.0.1. - -* Sat Jun 05 2010 Orcan Ogetbil - 2.0.0-1.20100605.svn1845 -- Update to trunk, post 2.0.0. - -* Mon May 18 2009 Jarod Wilson - 2.0-0.4.rc2 -- Update to 2.0.0-rc2 - -* Thu Nov 06 2008 Jarod Wilson - 2.0-0.3.beta7 -- Update to beta7 -- Put arch-dependent helper/test binaries in libexecdir instead of datadir - -* Sun Aug 10 2008 Jarod Wilson - 2.0-0.2.beta6 -- Review clean-ups (#456353) - -* Tue Jul 22 2008 Jarod Wilson - 2.0-0.1.beta6 -- Initial Fedora build of libffado +%autochangelog From 310500349f9d5a7c9406d24665f7c14e28048d9b Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Mon, 6 Feb 2023 11:52:53 +0100 Subject: [PATCH 091/113] Version 2.4.7 Signed-off-by: Nils Philippsen --- .gitignore | 1 + ...-another-Python-3.10-int-float-crash.patch | 28 ------------------- libffado.spec | 5 +--- sources | 2 +- 4 files changed, 3 insertions(+), 33 deletions(-) delete mode 100644 0001-ffado-mixer-Fix-another-Python-3.10-int-float-crash.patch diff --git a/.gitignore b/.gitignore index 33bd3ab..749eaf7 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ libffado-2.0.1-svn1864.tar.bz2 /libffado-2.4.4.tgz /libffado-2.4.5.tgz /libffado-2.4.6.tgz +/libffado-2.4.7.tgz diff --git a/0001-ffado-mixer-Fix-another-Python-3.10-int-float-crash.patch b/0001-ffado-mixer-Fix-another-Python-3.10-int-float-crash.patch deleted file mode 100644 index 4d40b82..0000000 --- a/0001-ffado-mixer-Fix-another-Python-3.10-int-float-crash.patch +++ /dev/null @@ -1,28 +0,0 @@ -From 96cb4262139d3df7e3fec5b5b775c0a61248b652 Mon Sep 17 00:00:00 2001 -From: Nils Philippsen -Date: Sat, 3 Sep 2022 00:34:39 +0200 -Subject: [PATCH] ffado-mixer: Fix another Python 3.10 int/float crash - -This one let switching to the crossbar router crash ffado-mixer. - -Signed-off-by: Nils Philippsen ---- - libffado/support/mixer-qt4/ffado/widgets/crossbarrouter.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/libffado/support/mixer-qt4/ffado/widgets/crossbarrouter.py b/libffado/support/mixer-qt4/ffado/widgets/crossbarrouter.py -index 4a67c23a..bb222889 100644 ---- a/libffado/support/mixer-qt4/ffado/widgets/crossbarrouter.py -+++ b/libffado/support/mixer-qt4/ffado/widgets/crossbarrouter.py -@@ -53,7 +53,7 @@ class VuMeter(QFrame): - p = QPainter(self) - value = self.level/4096 - r = self.rect() -- r.setHeight(r.height() * math.sqrt(value)) -+ r.setHeight(int(r.height() * math.sqrt(value))) - r.moveBottom(self.rect().height()) - p.fillRect(r, self.palette().highlight()) - --- -2.37.2 - diff --git a/libffado.spec b/libffado.spec index c19bdc2..9887eab 100644 --- a/libffado.spec +++ b/libffado.spec @@ -6,7 +6,7 @@ Summary: Free firewire audio driver library Name: libffado -Version: 2.4.6 +Version: 2.4.7 Release: %autorelease License: GPLv2 or GPLv3 URL: http://www.ffado.org/ @@ -18,8 +18,6 @@ Source9: libffado-snapshot.sh Patch0: libffado-2.4.4-no-test-apps.patch Patch1: libffado-2.4.4-icon-name.patch Patch2: libffado-2.4.4-scons-quirk.patch -# Fix int/float crash in crossbar router -Patch3: 0001-ffado-mixer-Fix-another-Python-3.10-int-float-crash.patch BuildRequires: alsa-lib-devel BuildRequires: dbus-c++-devel @@ -82,7 +80,6 @@ Applications and utilities for use with libffado. %if %needs_scons_quirk %patch2 -p1 -b .scons-quirk %endif -%patch3 -p2 -b .crossbar-router-crash # Fix Python shebangs sed -i 's|/usr/bin/.*python$|/usr/bin/python3|' \ diff --git a/sources b/sources index 5895210..e748454 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libffado-2.4.6.tgz) = dac651233ea94c19834e810c64230bcbd5516de9e694ced1b6497ad927d734c527b3a556281676393674d33da768cb2431e7da1a0fdfc6ceb268e897029aa584 +SHA512 (libffado-2.4.7.tgz) = 424a9ca7ded12e72d77a50d7ddf4e50dc0d55b80d725499df7609ce60d0eac8b24a41d9b8e4e74f78bdefe114b61bd5f1ec09a6d083f4a58475e66d61153f075 From f6ae14f3e142715e167adff998a6cb1c87b5c133 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 16 Jun 2023 17:30:07 +0200 Subject: [PATCH 092/113] Rebuilt for Python 3.12 From e4549abebb61f44f1928d11b091737784634e77c Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Thu, 13 Jul 2023 16:12:23 +0900 Subject: [PATCH 093/113] Patch for python3.12 imp module removal --- libffado-2.4.7-python312-imp-removal.patch | 69 ++++++++++++++++++++++ libffado.spec | 9 ++- 2 files changed, 75 insertions(+), 3 deletions(-) create mode 100644 libffado-2.4.7-python312-imp-removal.patch diff --git a/libffado-2.4.7-python312-imp-removal.patch b/libffado-2.4.7-python312-imp-removal.patch new file mode 100644 index 0000000..3a5a4b9 --- /dev/null +++ b/libffado-2.4.7-python312-imp-removal.patch @@ -0,0 +1,69 @@ +--- libffado-2.4.7/admin/pyuic.py.orig 2023-07-13 15:54:22.683633139 +0900 ++++ libffado-2.4.7/admin/pyuic.py 2023-07-13 15:59:32.832327567 +0900 +@@ -21,7 +21,7 @@ + # along with this program. If not, see . + # + +-import imp ++import importlib.util + + def pyuic_action( target, source, env ): + env.Execute( "pyuic " + str( source[0] ) + " > " + str( target[0] ) ) +@@ -34,8 +34,9 @@ + context.Message( "Checking for pyuic (by checking for the python module pyqtconfig) " ) + ret = True + try: +- imp.find_module( "pyqtconfig" ) +- except ImportError: ++ spec = importlib.util.find_spec( "pyqtconfig" ) ++ module = importlib.util.module_from_spec(spec) ++ except AttributeError: + ret = False + context.Result( ret ) + return ret +--- libffado-2.4.7/admin/pyuic4.py.orig 2023-07-13 15:54:22.683633139 +0900 ++++ libffado-2.4.7/admin/pyuic4.py 2023-07-13 15:58:59.688360220 +0900 +@@ -21,7 +21,7 @@ + # along with this program. If not, see . + # + +-import imp ++import importlib.util + + def pyuic4_action( target, source, env ): + env.Execute( "pyuic4 " + str( source[0] ) + " > " + str( target[0] ) ) +@@ -34,8 +34,9 @@ + context.Message( "Checking for pyuic4 (by checking for the python module pyqtconfig) " ) + ret = True + try: +- imp.find_module( "pyqtconfig" ) +- except ImportError: ++ spec = importlib.util.find_spec( "pyqtconfig" ) ++ module = importlib.util.module_from_spec(spec) ++ except AttributeError: + ret = False + context.Result( ret ) + return ret +--- libffado-2.4.7/admin/pyuic5.py.orig 2023-07-13 15:54:22.683633139 +0900 ++++ libffado-2.4.7/admin/pyuic5.py 2023-07-13 15:59:27.754332570 +0900 +@@ -22,7 +22,7 @@ + # along with this program. If not, see . + # + +-import imp ++import importlib.util + + def pyuic5_action( target, source, env ): + env.Execute( "pyuic5 " + str( source[0] ) + " > " + str( target[0] ) ) +@@ -35,8 +35,9 @@ + context.Message( "Checking for pyuic5 (by checking for the python module pyqtconfig) " ) + ret = True + try: +- imp.find_module( "pyqtconfig" ) +- except ImportError: ++ spec = importlib.util.find_spec( "pyqtconfig" ) ++ module = importlib.util.module_from_spec(spec) ++ except AttributeError: + ret = False + context.Result( ret ) + return ret diff --git a/libffado.spec b/libffado.spec index 9887eab..f68ddc8 100644 --- a/libffado.spec +++ b/libffado.spec @@ -18,6 +18,8 @@ Source9: libffado-snapshot.sh Patch0: libffado-2.4.4-no-test-apps.patch Patch1: libffado-2.4.4-icon-name.patch Patch2: libffado-2.4.4-scons-quirk.patch +# Patch for python3.12 imp module removal +Patch3: libffado-2.4.7-python312-imp-removal.patch BuildRequires: alsa-lib-devel BuildRequires: dbus-c++-devel @@ -75,11 +77,12 @@ Applications and utilities for use with libffado. %prep %autosetup -N -%patch0 -p1 -b .no-test-apps -%patch1 -p1 -b .icon-name +%patch -P0 -p1 -b .no-test-apps +%patch -P1 -p1 -b .icon-name %if %needs_scons_quirk -%patch2 -p1 -b .scons-quirk +%patch -P2 -p1 -b .scons-quirk %endif +%patch -P3 -p1 -b .py312 # Fix Python shebangs sed -i 's|/usr/bin/.*python$|/usr/bin/python3|' \ From 8ac0d478c1a07b662948cfb4fd797483c80279a7 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 20 Jul 2023 10:50:39 +0000 Subject: [PATCH 094/113] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering From ca7b59712d430c3ef2d246c278229e91028fd752 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Fri, 29 Sep 2023 01:23:53 +0200 Subject: [PATCH 095/113] Cope with configparser changes in Python 3.12 Signed-off-by: Nils Philippsen --- libffado-2.4.7-configparser.patch | 25 +++++++++++++++++++++++++ libffado.spec | 3 +++ 2 files changed, 28 insertions(+) create mode 100644 libffado-2.4.7-configparser.patch diff --git a/libffado-2.4.7-configparser.patch b/libffado-2.4.7-configparser.patch new file mode 100644 index 0000000..eae6567 --- /dev/null +++ b/libffado-2.4.7-configparser.patch @@ -0,0 +1,25 @@ +diff -up libffado-2.4.7/support/mixer-qt4/ffado/registration.py.configparser libffado-2.4.7/support/mixer-qt4/ffado/registration.py +--- libffado-2.4.7/support/mixer-qt4/ffado/registration.py.configparser 2022-02-25 13:25:10.000000000 +0100 ++++ libffado-2.4.7/support/mixer-qt4/ffado/registration.py 2023-09-29 01:20:30.771066060 +0200 +@@ -27,9 +27,9 @@ import os + # Python3 renamed ConfigParser to configparser. Deal with this in a way + # which maintains compatibility with python2. + try: +- from configparser import SafeConfigParser +-except: +- from ConfigParser import SafeConfigParser ++ from configparser import ConfigParser ++except ImportError: ++ from ConfigParser import SafeConfigParser as ConfigParser + + # The urlopen()/urlencode() functions from urllib in python2 are in + # urllib.request and urllib.parse respectively under python2. +@@ -76,7 +76,7 @@ class ffado_registration: + + # parse the ini file + self.config_filename = os.path.expanduser(INI_FILE_PATH) +- self.parser = SafeConfigParser() ++ self.parser = ConfigParser() + self.parser.read(self.config_filename) + self.section_name = "%s:%X" % (self.ffado_version, self.guid) + self.email = "(optional)" diff --git a/libffado.spec b/libffado.spec index f68ddc8..cea52ab 100644 --- a/libffado.spec +++ b/libffado.spec @@ -20,6 +20,8 @@ Patch1: libffado-2.4.4-icon-name.patch Patch2: libffado-2.4.4-scons-quirk.patch # Patch for python3.12 imp module removal Patch3: libffado-2.4.7-python312-imp-removal.patch +# Patch for Python 3.12 configparser changes +Patch4: libffado-2.4.7-configparser.patch BuildRequires: alsa-lib-devel BuildRequires: dbus-c++-devel @@ -83,6 +85,7 @@ Applications and utilities for use with libffado. %patch -P2 -p1 -b .scons-quirk %endif %patch -P3 -p1 -b .py312 +%patch -P4 -p1 -b .configparser # Fix Python shebangs sed -i 's|/usr/bin/.*python$|/usr/bin/python3|' \ From 23aa915d40e5966cf979db4042806d52c9ff79e3 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sun, 21 Jan 2024 04:04:20 +0000 Subject: [PATCH 096/113] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From ec9c5264224bdbc546412dddb57e607991a9a11e Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 25 Jan 2024 02:07:48 +0000 Subject: [PATCH 097/113] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From ecf0392148c13da95cee5059da91595189707f25 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Mon, 4 Mar 2024 14:36:21 +0100 Subject: [PATCH 098/113] Version 2.4.8 Signed-off-by: Nils Philippsen --- .gitignore | 1 + libffado-2.4.7-configparser.patch | 25 ----------------------- libffado.spec | 33 ++++++++++++++++++------------- sources | 2 +- 4 files changed, 21 insertions(+), 40 deletions(-) delete mode 100644 libffado-2.4.7-configparser.patch diff --git a/.gitignore b/.gitignore index 749eaf7..57a89ef 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ libffado-2.0.1-svn1864.tar.bz2 /libffado-2.4.5.tgz /libffado-2.4.6.tgz /libffado-2.4.7.tgz +/libffado-2.4.8.tgz diff --git a/libffado-2.4.7-configparser.patch b/libffado-2.4.7-configparser.patch deleted file mode 100644 index eae6567..0000000 --- a/libffado-2.4.7-configparser.patch +++ /dev/null @@ -1,25 +0,0 @@ -diff -up libffado-2.4.7/support/mixer-qt4/ffado/registration.py.configparser libffado-2.4.7/support/mixer-qt4/ffado/registration.py ---- libffado-2.4.7/support/mixer-qt4/ffado/registration.py.configparser 2022-02-25 13:25:10.000000000 +0100 -+++ libffado-2.4.7/support/mixer-qt4/ffado/registration.py 2023-09-29 01:20:30.771066060 +0200 -@@ -27,9 +27,9 @@ import os - # Python3 renamed ConfigParser to configparser. Deal with this in a way - # which maintains compatibility with python2. - try: -- from configparser import SafeConfigParser --except: -- from ConfigParser import SafeConfigParser -+ from configparser import ConfigParser -+except ImportError: -+ from ConfigParser import SafeConfigParser as ConfigParser - - # The urlopen()/urlencode() functions from urllib in python2 are in - # urllib.request and urllib.parse respectively under python2. -@@ -76,7 +76,7 @@ class ffado_registration: - - # parse the ini file - self.config_filename = os.path.expanduser(INI_FILE_PATH) -- self.parser = SafeConfigParser() -+ self.parser = ConfigParser() - self.parser.read(self.config_filename) - self.section_name = "%s:%X" % (self.ffado_version, self.guid) - self.email = "(optional)" diff --git a/libffado.spec b/libffado.spec index cea52ab..21bd344 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,12 +1,18 @@ %if ! 0%{?rhel} || 0%{?rhel} > 8 -%global needs_scons_quirk 0 +%bcond scons_quirk 0 %else -%global needs_scons_quirk 1 +%bcond scons_quirk 1 +%endif + +%if %{without scons_quirk} +%global scons scons +%else +%global scons scons-3 %endif Summary: Free firewire audio driver library Name: libffado -Version: 2.4.7 +Version: 2.4.8 Release: %autorelease License: GPLv2 or GPLv3 URL: http://www.ffado.org/ @@ -18,10 +24,8 @@ Source9: libffado-snapshot.sh Patch0: libffado-2.4.4-no-test-apps.patch Patch1: libffado-2.4.4-icon-name.patch Patch2: libffado-2.4.4-scons-quirk.patch -# Patch for python3.12 imp module removal +# Patch for Python 3.12 imp module removal Patch3: libffado-2.4.7-python312-imp-removal.patch -# Patch for Python 3.12 configparser changes -Patch4: libffado-2.4.7-configparser.patch BuildRequires: alsa-lib-devel BuildRequires: dbus-c++-devel @@ -41,11 +45,13 @@ BuildRequires: libxml++-devel BuildRequires: pkgconfig BuildRequires: python3-qt5-devel BuildRequires: python3-devel -%if ! %needs_scons_quirk +%if %{without scons_quirk} BuildRequires: python3-scons >= 3.0.2 %else BuildRequires: python3-scons %endif +BuildRequires: python3dist(setuptools) +BuildRequires: rpm_macro(py3_shebang_fix) ExcludeArch: s390 s390x @@ -78,17 +84,16 @@ Applications and utilities for use with libffado. %prep -%autosetup -N +%autosetup -N -n %{name}-%{version}/libffado %patch -P0 -p1 -b .no-test-apps %patch -P1 -p1 -b .icon-name -%if %needs_scons_quirk +%if %{with scons_quirk} %patch -P2 -p1 -b .scons-quirk %endif -%patch -P3 -p1 -b .py312 -%patch -P4 -p1 -b .configparser +%patch -P3 -p1 -b .py312-imp-removal # Fix Python shebangs -sed -i 's|/usr/bin/.*python$|/usr/bin/python3|' \ +%py3_shebang_fix \ admin/*.py doc/SConscript tests/python/*.py tests/*.py \ support/mixer-qt4/ffado-mixer* support/mixer-qt4/SConscript \ support/tools/*.py support/tools/SConscript @@ -97,7 +102,7 @@ sed -i 's|/usr/bin/.*python$|/usr/bin/python3|' \ export CFLAGS="%{optflags} -ffast-math" export CXXFLAGS="%{optflags} -ffast-math --std=gnu++11" export LDFLAGS="%{build_ldflags}" -scons-3 %{?_smp_mflags} \ +%{scons} %{?_smp_mflags} \ DETECT_USERSPACE_ENV=False \ ENABLE_SETBUFFERSIZE_API_VER=True \ ENABLE_OPTIMIZATIONS=True \ @@ -116,7 +121,7 @@ scons-3 %{?_smp_mflags} \ export CFLAGS="%{optflags} -ffast-math" export CXXFLAGS="%{optflags} -ffast-math --std=gnu++11" export LDFLAGS="%{build_ldflags}" -scons-3 DESTDIR=%{buildroot} PREFIX=%{_prefix}\ +%{scons} DESTDIR=%{buildroot} PREFIX=%{_prefix}\ install # We need to install the xdg stuff manually diff --git a/sources b/sources index e748454..7df56da 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libffado-2.4.7.tgz) = 424a9ca7ded12e72d77a50d7ddf4e50dc0d55b80d725499df7609ce60d0eac8b24a41d9b8e4e74f78bdefe114b61bd5f1ec09a6d083f4a58475e66d61153f075 +SHA512 (libffado-2.4.8.tgz) = fbbcd30640c55315f2e65fc6c07afc71a77dd2c9d1b6127ee55cd17e76511ad5f0563135e52397dbf113fb0d5925021a38780f231409bdd920da52e6c1ce3acc From 72af73badd802a750fe021afe0c2def8d004941e Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 7 Jun 2024 21:04:09 +0200 Subject: [PATCH 099/113] Rebuilt for Python 3.13 From 075ed30bf75d0774b7676656bed7657ba637a98d Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Mon, 10 Jun 2024 12:15:27 +0200 Subject: [PATCH 100/113] Own %{_libdir}/libffado (#2284000) [skip changelog] Signed-off-by: Nils Philippsen --- libffado.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index 21bd344..cdab40c 100644 --- a/libffado.spec +++ b/libffado.spec @@ -152,7 +152,7 @@ appstream-util validate-relax --nonet \ %dir %{_datadir}/libffado/ %{_datadir}/libffado/configuration %{_prefix}/lib/udev/rules.d/* -%{_libdir}/libffado/static_info.txt +%{_libdir}/libffado %files devel %doc doc/reference/html/ From a8e5c77510c1c50a6e688070b1bb749af5fcc7b4 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Mon, 10 Jun 2024 12:13:17 +0200 Subject: [PATCH 101/113] Update to fixed tarball See https://ffado.org/posts/ffado-2.4.8-tarball_fix/ [skip changelog] Signed-off-by: Nils Philippsen --- libffado.spec | 2 +- sources | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libffado.spec b/libffado.spec index cdab40c..9a221b7 100644 --- a/libffado.spec +++ b/libffado.spec @@ -84,7 +84,7 @@ Applications and utilities for use with libffado. %prep -%autosetup -N -n %{name}-%{version}/libffado +%autosetup -N %patch -P0 -p1 -b .no-test-apps %patch -P1 -p1 -b .icon-name %if %{with scons_quirk} diff --git a/sources b/sources index 7df56da..e86f101 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libffado-2.4.8.tgz) = fbbcd30640c55315f2e65fc6c07afc71a77dd2c9d1b6127ee55cd17e76511ad5f0563135e52397dbf113fb0d5925021a38780f231409bdd920da52e6c1ce3acc +SHA512 (libffado-2.4.8.tgz) = e891391ace53aa871d07ce244d38c5a3f1e622b6d289bb5ad5ed80255355cad14bc5dd36b6b54e9f3b2bd090b339c8688313204dbb8b391840941da0ef2abb94 From 437df976739b48d5a15b2f3c67a3de8d0d6d7942 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Mon, 10 Jun 2024 23:17:01 +0200 Subject: [PATCH 102/113] Rebuilt for Python 3.13 From 2d34efb195a570a447f54b71f8773ad277ab6e0a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 18 Jul 2024 13:50:51 +0000 Subject: [PATCH 103/113] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From b7cef06a67843558e93a728b4d6038c315e6c629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Wed, 7 Aug 2024 09:42:24 +0200 Subject: [PATCH 104/113] convert license to SPDX This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4 --- libffado.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libffado.spec b/libffado.spec index 9a221b7..d961305 100644 --- a/libffado.spec +++ b/libffado.spec @@ -14,7 +14,8 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.8 Release: %autorelease -License: GPLv2 or GPLv3 +# Automatically converted from old format: GPLv2 or GPLv3 - review is highly recommended. +License: GPL-2.0-only OR GPL-3.0-only URL: http://www.ffado.org/ Source0: http://www.ffado.org/files/%{name}-%{version}.tgz # The trunk is tarballed as follows: @@ -62,7 +63,8 @@ successor of the FreeBoB project. %package devel Summary: Free firewire audio driver library development headers -License: GPLv2 or GPLv3 +# Automatically converted from old format: GPLv2 or GPLv3 - review is highly recommended. +License: GPL-2.0-only OR GPL-3.0-only Requires: %{name}%{?_isa} = %{version}-%{release} %description devel @@ -73,7 +75,8 @@ Summary: Free firewire audio driver library applications and utilities # support/tools/* is GPLv3 # Some files in support/mixer-qt4/ffado are GPLv3+ # The rest is GPLv2 or GPLv3 -License: GPLv3 and GPLv3+ and (GPLv2 or GPLv3) +# Automatically converted from old format: GPLv3 and GPLv3+ and (GPLv2 or GPLv3) - review is highly recommended. +License: GPL-3.0-only AND GPL-3.0-or-later AND ( GPL-2.0-only OR GPL-3.0-only ) Requires: %{name}%{?_isa} = %{version}-%{release} Requires: dbus Requires: python3-dbus From 3a478acfa8dacb0f1b271792443a1d2ed92e86de Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Thu, 7 Nov 2024 22:43:26 +0100 Subject: [PATCH 105/113] Update to version 2.4.9 Signed-off-by: Nils Philippsen --- .gitignore | 1 + libffado-2.4.7-python312-imp-removal.patch | 69 ---------------------- libffado.spec | 4 +- sources | 2 +- 4 files changed, 3 insertions(+), 73 deletions(-) delete mode 100644 libffado-2.4.7-python312-imp-removal.patch diff --git a/.gitignore b/.gitignore index 57a89ef..ef73c7f 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ libffado-2.0.1-svn1864.tar.bz2 /libffado-2.4.6.tgz /libffado-2.4.7.tgz /libffado-2.4.8.tgz +/libffado-2.4.9.tgz diff --git a/libffado-2.4.7-python312-imp-removal.patch b/libffado-2.4.7-python312-imp-removal.patch deleted file mode 100644 index 3a5a4b9..0000000 --- a/libffado-2.4.7-python312-imp-removal.patch +++ /dev/null @@ -1,69 +0,0 @@ ---- libffado-2.4.7/admin/pyuic.py.orig 2023-07-13 15:54:22.683633139 +0900 -+++ libffado-2.4.7/admin/pyuic.py 2023-07-13 15:59:32.832327567 +0900 -@@ -21,7 +21,7 @@ - # along with this program. If not, see . - # - --import imp -+import importlib.util - - def pyuic_action( target, source, env ): - env.Execute( "pyuic " + str( source[0] ) + " > " + str( target[0] ) ) -@@ -34,8 +34,9 @@ - context.Message( "Checking for pyuic (by checking for the python module pyqtconfig) " ) - ret = True - try: -- imp.find_module( "pyqtconfig" ) -- except ImportError: -+ spec = importlib.util.find_spec( "pyqtconfig" ) -+ module = importlib.util.module_from_spec(spec) -+ except AttributeError: - ret = False - context.Result( ret ) - return ret ---- libffado-2.4.7/admin/pyuic4.py.orig 2023-07-13 15:54:22.683633139 +0900 -+++ libffado-2.4.7/admin/pyuic4.py 2023-07-13 15:58:59.688360220 +0900 -@@ -21,7 +21,7 @@ - # along with this program. If not, see . - # - --import imp -+import importlib.util - - def pyuic4_action( target, source, env ): - env.Execute( "pyuic4 " + str( source[0] ) + " > " + str( target[0] ) ) -@@ -34,8 +34,9 @@ - context.Message( "Checking for pyuic4 (by checking for the python module pyqtconfig) " ) - ret = True - try: -- imp.find_module( "pyqtconfig" ) -- except ImportError: -+ spec = importlib.util.find_spec( "pyqtconfig" ) -+ module = importlib.util.module_from_spec(spec) -+ except AttributeError: - ret = False - context.Result( ret ) - return ret ---- libffado-2.4.7/admin/pyuic5.py.orig 2023-07-13 15:54:22.683633139 +0900 -+++ libffado-2.4.7/admin/pyuic5.py 2023-07-13 15:59:27.754332570 +0900 -@@ -22,7 +22,7 @@ - # along with this program. If not, see . - # - --import imp -+import importlib.util - - def pyuic5_action( target, source, env ): - env.Execute( "pyuic5 " + str( source[0] ) + " > " + str( target[0] ) ) -@@ -35,8 +35,9 @@ - context.Message( "Checking for pyuic5 (by checking for the python module pyqtconfig) " ) - ret = True - try: -- imp.find_module( "pyqtconfig" ) -- except ImportError: -+ spec = importlib.util.find_spec( "pyqtconfig" ) -+ module = importlib.util.module_from_spec(spec) -+ except AttributeError: - ret = False - context.Result( ret ) - return ret diff --git a/libffado.spec b/libffado.spec index d961305..1087d10 100644 --- a/libffado.spec +++ b/libffado.spec @@ -12,7 +12,7 @@ Summary: Free firewire audio driver library Name: libffado -Version: 2.4.8 +Version: 2.4.9 Release: %autorelease # Automatically converted from old format: GPLv2 or GPLv3 - review is highly recommended. License: GPL-2.0-only OR GPL-3.0-only @@ -25,8 +25,6 @@ Source9: libffado-snapshot.sh Patch0: libffado-2.4.4-no-test-apps.patch Patch1: libffado-2.4.4-icon-name.patch Patch2: libffado-2.4.4-scons-quirk.patch -# Patch for Python 3.12 imp module removal -Patch3: libffado-2.4.7-python312-imp-removal.patch BuildRequires: alsa-lib-devel BuildRequires: dbus-c++-devel diff --git a/sources b/sources index e86f101..3364280 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libffado-2.4.8.tgz) = e891391ace53aa871d07ce244d38c5a3f1e622b6d289bb5ad5ed80255355cad14bc5dd36b6b54e9f3b2bd090b339c8688313204dbb8b391840941da0ef2abb94 +SHA512 (libffado-2.4.9.tgz) = 0a0c61cf9339ab542c85eaefbe017b7613f716ae0ed08d11a37782dd7ef5815b18256c5d1b9240f077c9f59bbf4b4878019cefbd6cab78140477bcad6a9d3e44 From c24716dc417ec04b352c675a552c9d520bff491b Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Thu, 7 Nov 2024 22:47:18 +0100 Subject: [PATCH 106/113] Accommodate changes in 2.4.9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Don’t attempt to apply removed patch - Don’t install XDG files manually [skip changelog] Signed-off-by: Nils Philippsen --- libffado.spec | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/libffado.spec b/libffado.spec index 1087d10..23bccc9 100644 --- a/libffado.spec +++ b/libffado.spec @@ -31,7 +31,6 @@ BuildRequires: dbus-c++-devel BuildRequires: dbus-devel BuildRequires: python3-dbus BuildRequires: python3-rpm-macros -BuildRequires: desktop-file-utils BuildRequires: doxygen BuildRequires: gcc-c++ BuildRequires: glibmm24-devel @@ -91,7 +90,6 @@ Applications and utilities for use with libffado. %if %{with scons_quirk} %patch -P2 -p1 -b .scons-quirk %endif -%patch -P3 -p1 -b .py312-imp-removal # Fix Python shebangs %py3_shebang_fix \ @@ -125,27 +123,11 @@ export LDFLAGS="%{build_ldflags}" %{scons} DESTDIR=%{buildroot} PREFIX=%{_prefix}\ install -# We need to install the xdg stuff manually -mkdir -p %{buildroot}%{_datadir}/applications -desktop-file-install --dir %{buildroot}%{_datadir}/applications \ - --add-category="Settings" \ - --set-icon=ffado \ - support/xdg/ffado.org-ffadomixer.desktop -mkdir -p %{buildroot}%{_datadir}/icons/hicolor/64x64/apps -ln -s ../../../../libffado/icons/hi64-apps-ffado.png \ - %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/ffado.png - # Install ffado-test RHBZ#805940 install -m 755 tests/ffado-test %{buildroot}%{_bindir} %ldconfig_scriptlets -%check -desktop-file-validate \ - %{buildroot}%{_datadir}/applications/ffado.org-ffadomixer.desktop -appstream-util validate-relax --nonet \ - %{buildroot}%{_datadir}/metainfo/ffado-mixer.appdata.xml - %files %license LICENSE.* %doc AUTHORS ChangeLog README @@ -167,9 +149,9 @@ appstream-util validate-relax --nonet \ %{_datadir}/libffado/*.xml %{_datadir}/libffado/icons/ %{_datadir}/dbus-1/services/org.ffado.Control.service -%{_datadir}/applications/ffado.org-ffadomixer.desktop -%{_datadir}/icons/hicolor/64x64/apps/ffado.png -%{_datadir}/metainfo/ffado-mixer.appdata.xml +%{_datadir}/applications/org.ffado.FfadoMixer.desktop +%{_datadir}/icons/hicolor/64x64/apps/hi64-apps-ffado.png +%{_datadir}/metainfo/org.ffado.FfadoMixer.metainfo.xml %{python3_sitelib}/ffado/ From 24eee8bfb7dc06b255605c07da8171e96a821342 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Fri, 8 Nov 2024 22:34:27 +0100 Subject: [PATCH 107/113] =?UTF-8?q?Don=E2=80=99t=20build=20with=20processo?= =?UTF-8?q?r-specific=20optimizations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nils Philippsen --- libffado.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libffado.spec b/libffado.spec index 23bccc9..9788072 100644 --- a/libffado.spec +++ b/libffado.spec @@ -104,7 +104,7 @@ export LDFLAGS="%{build_ldflags}" %{scons} %{?_smp_mflags} \ DETECT_USERSPACE_ENV=False \ ENABLE_SETBUFFERSIZE_API_VER=True \ - ENABLE_OPTIMIZATIONS=True \ + ENABLE_OPTIMIZATIONS=False \ CUSTOM_ENV=True \ BUILD_DOC=user \ PREFIX=%{_prefix} \ From b1f82a3ea67e37dcc378a5270990019196889f5b Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 17 Jan 2025 11:12:39 +0000 Subject: [PATCH 108/113] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 4a7176d9e7eeda9d6dfbf2d394e6b510b52285cb Mon Sep 17 00:00:00 2001 From: Python Maint Date: Tue, 3 Jun 2025 15:50:52 +0200 Subject: [PATCH 109/113] Rebuilt for Python 3.14 From a2a04488934a5e8635d053518c370ac696755188 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 24 Jul 2025 19:38:37 +0000 Subject: [PATCH 110/113] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From eb089fe7b1a1e67d0e6db89726a8a8f8affa37b7 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 15 Aug 2025 12:55:46 +0200 Subject: [PATCH 111/113] Rebuilt for Python 3.14.0rc2 bytecode From 8d67b43f6076b4b8ad31b12b5048f3bedca7e736 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 19 Sep 2025 12:26:22 +0200 Subject: [PATCH 112/113] Rebuilt for Python 3.14.0rc3 bytecode From 891493cc5efb780089131c9e8c55370619ba340d Mon Sep 17 00:00:00 2001 From: Tom spot Callaway Date: Wed, 17 Dec 2025 12:49:50 -0500 Subject: [PATCH 113/113] rebuild for new libconfig