[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ALSA Driver for Sparc DBRI chips



Am Dienstag, 23. November 2004 16:26 schrieb Martin Habets:
> In my 2.6.8 kernel build I do have asm/asm_offsets.h with at the top:
>  * This file was generated by arch/sparc/Makefile
> and then a bunch of AOFF_* defines.
>
> My recommendation would be either to upgrade kernel-headers, or just
> comment out the include.

Already found that out. As you can see, I use 2.4.27 and thus, I should not 
use 2.6.x kernel header files.
I'll file a bug report against kernel-headers-2.4.27-1 since auto builders 
cannot do that change. Another work-around is to simple touch the missing 
header file.

> > > At: http://www.mph.eclipse.co.uk/pub/linux/dbri
> > > you'll find these files:
> > > - dbri.c  Source code of the driver
> > > - Alsa.patch  Patch against Alsa-driver 1.0.7rc1, without the driver
> > >    code itself (pick up dbri.c and put it in
> > >    alsa-kernel/sparc).
> >
> > That patch is incomplete: alsa-driver/acinclude.m4 needs to be modified
> > and aclocal and autoconf must be run afterwards, so that the configure
> > option --with-cards=sun-dbri
> > is usable. Just take AMD7930 as example and make a simple copy and
> > modify.
>
> Actually, acinclude.m4 is generated by 'make all-deps' (which should also
> recompile util/mod-deps).

I manually do now:
cp ../sbri.c alsa-kernel/sparc/
patch -p1 < ../Alsa.patch
#mod-deps binary is not the right one for sparc
rm utils/mod-deps
#create updated acinclude.m4
make all-deps
#create updated aclocal.m4 (probably optional)
aclocal
#create updated configure
autoconf
./configure --with-oss=no --with-cards=sun-amd7930,sun-dbri
make

I cannot compile in the OSS compatibility layer because the Debian Sparc 
kernels do not have the proper option enabled :-(

However, I must tell you that compilation of the driver fails:
-----------------------------snip--------------------------------------------
make[2]: Entering directory `/usr/src/alsa-driver-1.0.7/sparc'
/usr/src/alsa-driver-1.0.7/include/sndversions.h was not updated
gcc -M -D__KERNEL__ -D__isapnp_now__ -DMODULE=1 
-I/usr/src/alsa-driver-1.0.7/include  
-I/lib/modules/2.4.27-1-sparc32/build/include -O2 -m32 -mno-fpu 
-fcall-used-g5 -fcall-used-g7 -DLINUX -Wall -Wstrict-prototypes 
-fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
-pipe -DALSA_BUILD -nostdinc -iwithprefix include  amd7930.c dbri.c > .depend
In file included from dbri.c:1:
../alsa-kernel/sparc/dbri.c:684:75: pasting "KERN_DEBUG" and ""cmd: %lx:
%08x\n"" does not give a valid preprocessing token
../alsa-kernel/sparc/dbri.c:701:77: pasting "KERN_DEBUG" and ""DBRI: Chip 
never completed command buffer\n"" does not give a valid preprocessing token
../alsa-kernel/sparc/dbri.c:707:71: pasting "KERN_DEBUG" and ""DBRI: Chip 
never acked WAIT\n"" does not give a valid preprocessing token
../alsa-kernel/sparc/dbri.c:710:69: pasting "KERN_DEBUG" and ""Chip completed 
command "" does not give a valid preprocessing token
../alsa-kernel/sparc/dbri.c:725:77: pasting "KERN_DEBUG" and ""reset 0:%x 2:%x 
8:%x 9:%x\n"" does not give a valid preprocessing token
../alsa-kernel/sparc/dbri.c:746:56: pasting "KERN_DEBUG" and ""init: cmd: %p, 
int: %p\n"" does not give a valid preprocessing token
../alsa-kernel/sparc/dbri.c:1189:79: pasting "KERN_DEBUG" and ""DESC %d: %08x 
%08x %08x %08x\n"" does not give a valid preprocessing token
../alsa-kernel/sparc/dbri.c:1415:54: pasting "KERN_DEBUG" and ""cs4215_open: 
%d channels, %d bits\n"" does not give a validpreprocessing token
../alsa-kernel/sparc/dbri.c:1491:57: pasting "KERN_DEBUG" and 
""cs4215_setctrl: reg2=0x%x\n"" does not give a valid preprocessing token
../alsa-kernel/sparc/dbri.c:1542:40: pasting "KERN_DEBUG" and ""CS4215 didn't 
respond to CLB (0x%02x)\n"" does not give a valid preprocessing token
../alsa-kernel/sparc/dbri.c:1632:55: pasting "KERN_DEBUG" and ""cs4215_init: 
reg2=0x%x\n"" does not give a valid preprocessing token
../alsa-kernel/sparc/dbri.c:1636:58: pasting "KERN_DEBUG" and ""Onboard CS4215 
detected\n"" does not give a valid preprocessing token
../alsa-kernel/sparc/dbri.c:1640:54: pasting "KERN_DEBUG" and ""Speakerbox 
detected\n"" does not give a valid preprocessingtoken
../alsa-kernel/sparc/dbri.c:1666:40: pasting "KERN_DEBUG" and ""CS4215 failed 
probe at offset %d\n"" does not give a valid preprocessing token
../alsa-kernel/sparc/dbri.c:1669:69: pasting "KERN_DEBUG" and ""Found CS4215 
at offset %d\n"" does not give a valid preprocessing token
../alsa-kernel/sparc/dbri.c:1714:69: pasting "KERN_DEBUG" and ""xmit_descs rec 
@ TD %d\n"" does not give a valid preprocessing token
../alsa-kernel/sparc/dbri.c:1743:70: pasting "KERN_DEBUG" and ""xmit_descs 
play @ TD %d\n"" does not give a valid preprocessing token
../alsa-kernel/sparc/dbri.c:1799:68: pasting "KERN_DEBUG" and ""TD %d, status 
0x%02x\n"" does not give a valid preprocessing token
../alsa-kernel/sparc/dbri.c:1852:64: pasting "KERN_DEBUG" and ""Recv RD %d, 
status 0x%02x, len %d\n"" does not give a validpreprocessing token
../alsa-kernel/sparc/dbri.c:1883:43: pasting "KERN_DEBUG" and ""INTR: Command: 
%-5s  Value:%d\n"" does not give a valid preprocessing token
../alsa-kernel/sparc/dbri.c:1886:44: pasting "KERN_DEBUG" and ""INTR: Chan:%d 
Code:%d Val:%#x\n"" does not give a valid preprocessing token
../alsa-kernel/sparc/dbri.c:2003:70: pasting "KERN_DEBUG" and ""Interrupt 
errors exceeded.\n"" does not give a valid preprocessing token
../alsa-kernel/sparc/dbri.c:2052:46: pasting "KERN_DEBUG" and ""open audio 
output.\n"" does not give a valid preprocessing token
../alsa-kernel/sparc/dbri.c:2073:47: pasting "KERN_DEBUG" and ""close audio 
output.\n"" does not give a valid preprocessingtoken
../alsa-kernel/sparc/dbri.c:2119:45: pasting "KERN_DEBUG" and ""hw_params: %d 
bytes, dvma=%x\n"" does not give a valid preprocessing token
../alsa-kernel/sparc/dbri.c:2128:36: pasting "KERN_DEBUG" and ""hw_free.\n"" 
does not give a valid preprocessing token
../alsa-kernel/sparc/dbri.c:2174:70: pasting "KERN_DEBUG" and ""prepare audio 
output. %d bytes\n"" does not give a valid preprocessing token
../alsa-kernel/sparc/dbri.c:2187:60: pasting "KERN_DEBUG" and ""start audio, 
period is %d bytes\n"" does not give a valid preprocessing token
../alsa-kernel/sparc/dbri.c:2193:47: pasting "KERN_DEBUG" and ""stop audio.
\n"" does not give a valid preprocessing token
../alsa-kernel/sparc/dbri.c:2214:32: pasting "KERN_DEBUG" and ""I/O pointer: 
%ld frames, %d bytes left.\n"" does not give avalid preprocessing token
../alsa-kernel/sparc/dbri.c:2392:40: pasting "KERN_DEBUG" and ""put_single: 
mask=0x%x, changed=%d, "" does not give a validpreprocessing token
../alsa-kernel/sparc/dbri.c:2563:42: pasting "KERN_DEBUG" and ""DMA Cmd Block 
0x%p (0x%08x)\n"" does not give a valid preprocessing token
../alsa-kernel/sparc/dbri.c:2602:41: pasting "KERN_DEBUG" and 
""snd_dbri_free\n"" does not give a valid preprocessing token
../alsa-kernel/sparc/dbri.c:2701:60: pasting "KERN_DEBUG" and ""DBRI: Found %s 
in SBUS slot %d\n"" does not give a valid preprocessing token
make[2]: *** [fastdep] Error 1
make[2]: Leaving directory `/usr/src/alsa-driver-1.0.7/sparc'
make[1]: *** [dep] Error 1
make[1]: Leaving directory `/usr/src/alsa-driver-1.0.7'
make: *** [include/sndversions.h] Error 2
-----------------------------snip--------------------------------------------
Seems always to refer to dprintk.

> This should have been triggered by the Kconfig 
> and mod-deps.c changes. I'm afraid this area is a bit of black magic to me.
> I'll update the README to add building instructions.

AFAIK, Kconfig is much advanced in linux-2.6, less automatic in linux-2.4. 
Sadly, I cannot use linux-2.6 since SMP is not working, there.

HS

-- 
Mein GPG-Key ist auf meiner Homepage verfügbar: http://www.hendrik-sattler.de
        oder über pgp.net

PingoS - Linux-User helfen Schulen: http://www.pingos.org



Reply to: