Messages in this thread | | | Date | Sat, 11 Dec 1999 09:45:53 -0500 | From | Wakko Warner <> | Subject | Re: ESS maestro 2.2.31 no sound |
| |
Thanks for trying, but I couldn't get that patch to work. Same 'no sound' problem.
> Wakko is right, > > For Nec Versa's you need at least V0.13 for maestro.c > > I attached the patch I send to Zach for fixing it to run on a 2.3 kernel. > > Sincerly, > > Serge > > *** maestro.c.orig Thu Nov 25 11:13:43 1999 > --- maestro.c Thu Nov 25 11:23:16 1999 > *************** > *** 177,191 **** > > /*****************************************************************************/ > > #include <linux/version.h> > > #if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0) > > - #ifdef MODULE > - #include <linux/module.h> > - #ifdef MODVERSIONS > - #include <linux/modversions.h> > - #endif > - #endif > #define DECLARE_WAITQUEUE(QUEUE,INIT) struct wait_queue QUEUE = {INIT, NULL} > #define wait_queue_head_t struct wait_queue * > #define SILLY_PCI_BASE_ADDRESS(PCIDEV) (PCIDEV->base_address[0] & > PCI_BASE_ADDRESS_IO_MASK) > --- 177,191 ---- > > /*****************************************************************************/ > > #include <linux/version.h> > + #ifdef MODULE > + #include <linux/module.h> > + #ifdef MODVERSIONS > + #include <linux/modversions.h> > + #endif > + #endif > > #if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0) > > #define DECLARE_WAITQUEUE(QUEUE,INIT) struct wait_queue QUEUE = {INIT, NULL} > #define wait_queue_head_t struct wait_queue * > #define SILLY_PCI_BASE_ADDRESS(PCIDEV) (PCIDEV->base_address[0] & > PCI_BASE_ADDRESS_IO_MASK) > *************** > *** 210,222 **** > --- 210,227 ---- > #include <linux/malloc.h> > #include <linux/soundcard.h> > #include <linux/pci.h> > + #if LINUX_VERSION_CODE > KERNEL_VERSION(2,3,0) > + #include <linux/spinlock.h> > + #endif > #include <asm/io.h> > #include <asm/dma.h> > #include <linux/init.h> > #include <linux/poll.h> > #include <asm/uaccess.h> > #include <asm/hardirq.h> > + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0) > #include <asm/spinlock.h> > + #endif > > #ifdef CONFIG_APM > #include <linux/apm_bios.h> > *************** > *** 2372,2378 **** > --- 2377,2387 ---- > } else > #endif > return -EINVAL; > + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0) > if (vma->vm_offset != 0) > + #else > + if (vma->vm_pgoff != 0) > + #endif > return -EINVAL; > size = vma->vm_end - vma->vm_start; > if (size > (PAGE_SIZE << db->buforder)) > > > > -- > _______________ > / \ > | Serge Robyns \_______________________________ > | \ > | RC&S (Robyns Consulting & Services) \ > | 139, avenue De Fre | > | 1180 Uccle - Belgium | > | \|/ | > | phone: +32(477)29.66.97 -O- fax: +1(801)469-9358 | > | /|\ | > | | > | \|/ mailto:serge.robyns@advalvas.be \|/ | > \___/o\____ http://web.wanadoo.be/rc.s/ ____/o\____/ -- Lab tests show that use of micro$oft causes cancer in lab animals
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |