[linux-dvb] Another compiling issue em28xx-audio.c

Hans-Peter Jansen hpj at urpla.net
Sun Jan 20 00:21:53 CET 2008


Am Samstag, 19. Januar 2008 schrieb ewomer at charter.net:
> im running ubuntu hardy 8.04 with the 2.6.24-4-generic linux kernel based
> of of the 2.6.24-rc6 linux kerneli get this error running make in the
> v4l-dvb folder
>
> make -C /home/eric/build/mercurial/v4l-dvb/v4l
> make[1]: Entering directory `/home/eric/build/mercurial/v4l-dvb/v4l'
> creating symbolic links...
> Kernel build directory is /lib/modules/2.6.24-4-generic/build
> make -C /lib/modules/2.6.24-4-generic/build
> SUBDIRS=/home/eric/build/mercurial/v4l-dvb/v4l  modules make[2]: Entering
> directory `/usr/src/linux-headers-2.6.24-4-generic' CC [M] 
> /home/eric/build/mercurial/v4l-dvb/v4l/em28xx-audio.o
> In file included from
> /home/eric/build/mercurial/v4l-dvb/v4l/em28xx-audio.c:39:
> include/sound/core.h:281: error: 'SNDRV_CARDS' undeclared here (not in a
> function) /home/eric/build/mercurial/v4l-dvb/v4l/em28xx-audio.c:58:
> error: array index in initializer not of integer type
> /home/eric/build/mercurial/v4l-dvb/v4l/em28xx-audio.c:58: error: (near
> initialization for 'index') make[3]: ***
> [/home/eric/build/mercurial/v4l-dvb/v4l/em28xx-audio.o] Error 1 make[2]:
> *** [_module_/home/eric/build/mercurial/v4l-dvb/v4l] Error 2 make[2]:
> Leaving directory `/usr/src/linux-headers-2.6.24-4-generic' make[1]: ***
> [default] Error 2
> make[1]: Leaving directory `/home/eric/build/mercurial/v4l-dvb/v4l'
> make: *** [all] Error 2
>
> is it another issue like the radio-si470x.c not compiling

I'm not sure, if it's the right fix, but this patch fixed it for me:

--- em28xx-audio.c~	2008-01-19 00:14:24.000000000 +0100
+++ em28xx-audio.c	2008-01-19 00:33:26.891186900 +0100
@@ -36,6 +36,7 @@
 #include <linux/proc_fs.h>
 #include <linux/module.h>
 #include "compat.h"
+#include <sound/driver.h>
 #include <sound/core.h>
 #include <sound/pcm.h>
 #include <sound/pcm_params.h>


Hth,
Pete



More information about the linux-dvb mailing list