Update of /cvsroot/alsa/alsa-driver/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12959/alsa-driver/include
Modified Files: adriver.h Log Message: adjust usb_set_interface() wrapper for 2.6.5-rc2 Index: adriver.h =================================================================== RCS file: /cvsroot/alsa/alsa-driver/include/adriver.h,v retrieving revision 1.77 retrieving revision 1.78 diff -u -r1.77 -r1.78 --- adriver.h 17 Mar 2004 13:08:44 -0000 1.77 +++ adriver.h 23 Mar 2004 12:48:18 -0000 1.78 @@ -357,6 +357,24 @@ #endif /* SND_NEED_USB_WRAPPER && CONFIG_USB */ +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 24) \ + && LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 5) \ + && defined(SND_NEED_USB_SET_INTERFACE) \ + && (defined(CONFIG_USB) || defined(CONFIG_USB_MODULE)) + +#include <linux/usb.h> + +inline static int real_usb_set_interface(struct usb_device *dev, int interface, int alternate) +{ + return usb_set_interface(dev, interface, alternate); +} + +int snd_hack_usb_set_interface(struct usb_device *dev, int interface, int alternate); +#undef usb_set_interface +#define usb_set_interface(dev,iface,alt) snd_hack_usb_set_interface(dev,iface,alt) + +#endif + /* workqueue-alike; 2.5.45 */ #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0) #include <linux/workqueue.h> ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog