Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30948 - alsa-driver-0.97-r2 emerge problem for au88x0 driver
Summary: alsa-driver-0.97-r2 emerge problem for au88x0 driver
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-11 22:17 UTC by Peter Colijn
Modified: 2003-12-18 14:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Colijn 2003-10-11 22:17:36 UTC
Emerging alsa-driver fails, with the following error:

In file included from au8810_core.c:2:
au88x0_core.c: In function `vortex_adb_allocroute':
au88x0_core.c:1780: error: incompatible type for argument 1 of `spin_lock'
au88x0_core.c:1887: error: incompatible type for argument 1 of `spin_unlock'
make[2]: *** [au8810_core.o] Error 1
make[2]: Leaving directory
`/var/tmp/portage/alsa-driver-0.9.7-r2/work/alsa-driver-0.9.7b/pci/au88x0'
make[1]: *** [_modsubdir_au88x0] Error 2
make[1]: Leaving directory
`/var/tmp/portage/alsa-driver-0.9.7-r2/work/alsa-driver-0.9.7b/pci'
make: *** [compile] Error 1

This is using vanilla kernel 2.4.22 on Gentoo 1.4. The configure and patching go
fine, then it just bombs on that file. GCC 3.3.1-r4 (I'm running ~x86).

Reproducible: Always
Steps to Reproduce:
1. Use a system running ~x86 with gcc 3.3.1-r2 and vanilla kernel 2.4.22.
2. Emerge alsa-driver

Actual Results:  
Compile problem as above.

Expected Results:  
Successful compile.

This patch fixes the problem for me. It seems to be consistent with spin_lock()
and spin_unlock() calls made elsewhere in the code:

diff -ruN alsa-driver-0.9.7b.orig/pci/au88x0/au88x0_core.c
alsa-driver-0.9.7b/pci/au88x0/au88x0_core.c
--- alsa-driver-0.9.7b.orig/pci/au88x0/au88x0_core.c    2003-10-06
10:01:04.000000000 -0400
+++ alsa-driver-0.9.7b/pci/au88x0/au88x0_core.c 2003-10-12 00:59:47.000000000 -0400
@@ -1777,7 +1777,7 @@
        if ((nr_ch == 3) || ((dir == SNDRV_PCM_STREAM_CAPTURE)&&(nr_ch > 2)))
                return -EBUSY;
  
-       spin_lock(vortex->lock);
+       spin_lock(&vortex->lock);
        if (dma >= 0) {
                en = 0;
                vortex_adb_checkinout(vortex, vortex->dma_adb[dma].resources,
en, VORTEX_RESOURCE_DMA);
@@ -1884,7 +1884,7 @@
                }
        }
        vortex->dma_adb[dma].nr_ch = nr_ch;
-       spin_unlock(vortex->lock);
+       spin_unlock(&vortex->lock);
  
 #if 0
        /* AC97 Codec channel setup. FIXME: this has no effect !! */
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-11-18 15:31:54 UTC
is this fixed with 0.9.8 ?
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-12-18 14:35:45 UTC
closing with 0.9.8