-   Slackware (
-   -   Compilation of ALSA "fireworks" driver for Echoaudio firewire DAC in slack-current (

vnovak 01-08-2013 04:39 PM

Compilation of ALSA "fireworks" driver for Echoaudio firewire DAC in slack-current
Hello everybody,
I'm trying to compile above mentioned driver in slackware-current. This driver,which can be found here:;hb=fireworks
is from ALSA development tree,which is, as they say for 2.6.x linux kernel. I have replaced contents of /usr/src/linux/sound/firewire with this driver,then ran menuconfig and marked it for a module compilation. And then:

root@slack:/usr/src/linux# make modules_prepare
make[1]: Nothing to be done for `all'.
  HOSTCC  scripts/basic/fixdep
  HOSTCC  arch/x86/tools/relocs
  CHK    include/generated/uapi/linux/version.h
  CHK    include/generated/utsrelease.h
  CC      kernel/bounds.s
  GEN    include/generated/bounds.h
  CC      arch/x86/kernel/asm-offsets.s
  GEN    include/generated/asm-offsets.h
  CALL    scripts/
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF  scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/pnmtologo
  HOSTCC  scripts/conmakehash
  HOSTCC  scripts/bin2c
  HOSTCC  scripts/recordmcount
  HOSTCC  scripts/sortextable
  HOSTCC  scripts/asn1_compiler
root@slack:/usr/src/linux# make M=sound/firewire
  LD      sound/firewire/built-in.o
  CC [M]  sound/firewire/fireworks.o
sound/firewire/fireworks.c:30:20: error: expected declaration specifiers or '...' before string constant
sound/firewire/fireworks.c:31:15: error: expected declaration specifiers or '...' before string constant
sound/firewire/fireworks.c:32:16: error: expected declaration specifiers or '...' before string constant
sound/firewire/fireworks.c:41:27: error: expected ')' before 'int'
sound/firewire/fireworks.c:42:25: error: expected ')' before string constant
sound/firewire/fireworks.c:43:31: error: expected ')' before '(' token
sound/firewire/fireworks.c:44:22: error: expected ')' before string constant
sound/firewire/fireworks.c:45:28: error: expected ')' before 'bool'
sound/firewire/fireworks.c:46:26: error: expected ')' before string constant
sound/firewire/fireworks.c:47:31: error: expected ')' before 'uint'
sound/firewire/fireworks.c:48:35: error: expected ')' before string constant
sound/firewire/fireworks.c:49:31: error: expected ')' before 'uint'
sound/firewire/fireworks.c:50:35: error: expected ')' before string constant
sound/firewire/fireworks.c:51:32: error: expected ')' before 'bool'
sound/firewire/fireworks.c:52:36: error: expected ')' before string constant
sound/firewire/fireworks.c: In function 'echofire_probe':
sound/firewire/fireworks.c:2103:59: error: 'THIS_MODULE' undeclared (first use in this function)
sound/firewire/fireworks.c:2103:59: note: each undeclared identifier is reported only once for each function it appears in
sound/firewire/fireworks.c: At top level:
sound/firewire/fireworks.c:2249:1: warning: data definition has no type or storage class [enabled by default]
sound/firewire/fireworks.c:2249:1: warning: type defaults to 'int' in declaration of 'MODULE_DEVICE_TABLE' [-Wimplicit-int]
sound/firewire/fireworks.c:2249:1: warning: parameter names (without types) in function declaration [enabled by default]
sound/firewire/fireworks.c:2253:12: error: 'THIS_MODULE' undeclared here (not in a function)
make[1]: *** [sound/firewire/fireworks.o] Error 1
make: *** [_module_sound/firewire] Error 2

Does anybody know whether these errors are related to GCC 4.7.x upgrade (and as I think, might be removed by some simple patch) or this driver needs to be completely rewriten in order to work in 3.7 kernel+ALSA 1.0.26 environment and attempting to compile this driver is just nonsense or have I done some other evident mistake? (I have a feeling for example that overwriting kernel source tree in a way I did is not exactly the right method of building such external modules(and probably even not necessary)). I understand that firewire audio is quite marginal topic in linux,but this device is in point of fact a central point of my household,so any help will be appreciated.

A supplication:It's not necessary to point out that there are things like ffado,jackd and qjackctl. I'm unsuccessfully fighting with them for nearly whole year and taking existence of this ALSA driver as a final Redemption!
Thank you very much.

All times are GMT -5. The time now is 07:40 PM.