Again
      Check my patch , it correct ?

MrChoke

Supphachoke Suntiwichaya wrote:

Hi,
   I can't  compile ALSA-DRIVER 0.9.7b .

====
In file included from au8810_core.c:2:
au88x0_core.c: In function `vortex_adb_allocroute':
au88x0_core.c:1780: incompatible type for argument 1 of `_raw_spin_lock'
au88x0_core.c:1887: incompatible type for argument 1 of `_raw_spin_unlock'
make[2]: *** [au8810_core.o] Error 1
make[1]: *** [_modsubdir_au88x0] Error 2


====
I used kernel 2.4.22
http://www-ccrma.stanford.edu/planetccrma/software/system.html#kernel

MrChoke



--


Name : Supphachoke Suntiwichaya
Email : [EMAIL PROTECTED]
URL : http://jedi.links.nectec.or.th/mrchoke/
Distribution : Linux TLE 5.0 (Andaman)
OS : Linux 2.4.23-pre4-tv #2 ÍÒ. ¡.Â. 14 16:58:21 ICT 2003 i686 GNU/Linux
Uptime :  11:05:00  up 6 days, 19:19,  1 user,  load average: 0.38, 0.42, 0.27

--- alsa-driver-0.9.7b/pci/au88x0/au88x0_core.c 2003-10-06 21:01:04.000000000 +0700
+++ alsa-driver-0.9.7b/pci/au88x0/au88x0_core.c-spin    2003-10-13 10:46:53.000000000 
+0700
@@ -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 !! */

Reply via email to