Skip to content
Browse files

firewire: compile with FFADO versions < 9 again

    
ffado_streaming_set_period_size() is exposed starting r2078 of FFADO.
To avoid a build dependency on ffado-svn in jack, we copy the prototype
declaration.
    
Since the symbol is defined as weak, no problems arise at runtime.
  • Loading branch information...
1 parent 598afcc commit 20a3b3520aef5e7baf5035357d4e66a851513276 @adiknoth committed Apr 2, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 drivers/firewire/ffado_driver.c
View
9 drivers/firewire/ffado_driver.c
@@ -56,6 +56,15 @@ static int ffado_driver_stop (ffado_driver_t *driver);
#define FIREWIRE_REQUIRED_FFADO_API_VERSION 8
#define FIREWIRE_REQUIRED_FFADO_API_VERSION_FOR_SETBUFSIZE 9
+/* FFADO_API_VERSION was first defined with API_VERSION 9, so all previous
+ * headers do not provide this define.
+ */
+#ifndef FFADO_API_VERSION
+extern int ffado_streaming_set_period_size(ffado_device_t *dev,
+ unsigned int period) __attribute__((__weak__));
+#endif
+
+
// enable verbose messages
static int g_verbose=0;

0 comments on commit 20a3b35

Please sign in to comment.
Something went wrong with that request. Please try again.