[alsa-devel] [PATCH 1/1] Daily snapshot not building on 2.6.32

Brad Figg brad.figg at canonical.com
Wed Jun 23 20:37:16 CEST 2010


I've had to apply the following patch to successfully build
the daily snapshot on 2.6.32. Without this patch I get:

CC [M]  /karmic/home/work/alsa/alsa-driver/usb/urb.o
/karmic/home/work/alsa/alsa-driver/usb/urb.c: In function ‘release_urb_ctx’:
/karmic/home/work/alsa/alsa-driver/usb/urb.c:112: error: implicit declaration of function ‘usb_free_
coherent’
/karmic/home/work/alsa/alsa-driver/usb/urb.c: In function ‘snd_usb_init_substream_urbs’:
/karmic/home/work/alsa/alsa-driver/usb/urb.c:327: error: implicit declaration of function ‘usb_alloc_coherent’
/karmic/home/work/alsa/alsa-driver/usb/urb.c:328: warning: assignment makes pointer from integer without a cast
/karmic/home/work/alsa/alsa-driver/usb/urb.c:341: warning: assignment makes pointer from integer without a cast
make[3]: *** [/karmic/home/work/alsa/alsa-driver/usb/urb.o] Error 1


Note: I would have preferred to provide this as a git patch
       but I don't know where the repository for the daily
       snapshot files is located.


---
diff -ru a/usb/misc/Makefile b/usb/misc/Makefile
--- a/usb/misc/Makefile 2010-03-10 01:12:19.000000000 -0800
+++ b/usb/misc/Makefile 2010-06-23 11:25:33.176133657 -0700
@@ -7,4 +7,8 @@

  include $(SND_TOPDIR)/alsa-kernel/usb/misc/Makefile

+EXTRA_CFLAGS += -I$(SND_TOPDIR)/usb
+
  include $(SND_TOPDIR)/Rules.make
+
+ua101.c: usbaudio.inc $(SND_TOPDIR)/alsa-kernel/usb/misc/ua101.c
diff -ru a/usb/misc/ua101.c b/usb/misc/ua101.c
--- a/usb/misc/ua101.c  2010-03-10 01:12:19.000000000 -0800
+++ b/usb/misc/ua101.c  2010-06-23 11:25:53.054884851 -0700
@@ -1,3 +1,5 @@
+#define __NO_VERSION__
+#include "usbaudio.inc"
  #include "adriver.h"
  #include "../../alsa-kernel/usb/misc/ua101.c"
  EXPORT_NO_SYMBOLS;


-- 
Brad Figg brad.figg at canonical.com http://www.canonical.com


More information about the Alsa-devel mailing list