[RFC][PATCH]
RFC PATCH 1/1 [RFC][PATCH]
Hi!
Please give me a comment on this patch. I'm currently tryin' to make the HAL2 driver work (yes, I've got my Indy out of the edge again and I'm going to use it as my desktop machine).
It fixes a compilation problem on dmabuf.c. There, DMA_AUTOINIT isn't defined. As ./include/asm-mips/dma.h looks like the asm-i386 file in general, I've copied the #define from the i386 port (and reformated the passus...).
If you think it'o okay, please apply it (and drop me a note:-p)
MfG, JBG
Index: include/asm-mips/dma.h
===================================================================
RCS file: /cvs/linux/include/asm-mips/dma.h,v
retrieving revision 1.8
asm-mips/dma.h +4 -3
@@ -138,10 +138,11 @@#define DMA_PAGE_6 0x89#define DMA_PAGE_7 0x8A -#define DMA_MODE_READ 0x44/* I/O to memory, no autoinit, increment, single mode */ -#define DMA_MODE_WRITE 0x48/* memory to I/O, no autoinit, increment, single mode */ -#define DMA_MODE_CASCADE 0xC0/* pass thru DREQ->HRQ, DACK<-HLDA only */ +#define DMA_MODE_READ 0x44/* I/O to memory, no autoinit, increment, single mode */ +#define DMA_MODE_WRITE 0x48/* memory to I/O, no autoinit, increment, single mode */ +#define DMA_MODE_CASCADE 0xC0/* pass thru DREQ->HRQ, DACK<-HLDA only */ +#define DMA_AUTOINIT 0x10extern spinlock_t dma_spin_lock;
Signature · 3 lines
Jan-Benedict Glaw . [email protected] . +49-172-7608481 -- New APT-Proxy written in shell script -- http://lug-owl.de/~jbglaw/software/ap2/
Quoted 10 lines · Jan-Benedict Glaw
Please give me a comment on this patch. I'm currently tryin' to make the HAL2 driver work (yes, I've got my Indy out of the edge again and I'm going to use it as my desktop machine).
It fixes a compilation problem on
dmabuf.c. There,DMA_AUTOINITisn't defined. As./include/asm-mips/dma.hlooks like the asm-i386 file in general, I've copied the #define from the i386 port (and reformated the passus...).If you think it'o okay, please apply it (and drop me a note:-p)
Sort of the right thing - why the heck does the Indy sound code have to rely on code for the that antique PC DMA controller ...
Ralf
On Sun, 2002-06-30 14:42:38 +0200, Ralf Baechle <[email protected]> wrote in message <[email protected]>:
Quoted 10 lines · Jan-Benedict Glaw
Quoted 9 lines
Please give me a comment on this patch. I'm currently tryin' to make the HAL2 driver work (yes, I've got my Indy out of the edge again and I'm going to use it as my desktop machine).
It fixes a compilation problem on
dmabuf.c. There,DMA_AUTOINITisn't defined. As./include/asm-mips/dma.hlooks like the asm-i386 file in general, I've copied the #define from the i386 port (and reformated the passus...).
Quoted 4 lines
Quoted 1 line
If you think it'o okay, please apply it (and drop me a note:-p)
Sort of the right thing - why the heck does the Indy sound code have to rely on code for the that antique PC DMA controller ...
Well, OSS has some 'soundbase.o', in which dmabuf.o is linked into. Possibly which code path is not used at all on Indy, but the #define has to be there... So there's no real answer, but running 2.4.16 (from Debian installer) and 'insmod -f'ing the just compiled 2.4.19-rc1 hal2.o into that kernel ends up in useable sound. So this is some working way of doing sound.
Btw., I think I'll have a deeper look at hal2.o - the smallest load lets sound proceed in snail mode:-(
MfG, JBG
Signature · 3 lines
Jan-Benedict Glaw . [email protected] . +49-172-7608481 -- New APT-Proxy written in shell script -- http://lug-owl.de/~jbglaw/software/ap2/
Quoted 12 lines · Jan-Benedict Glaw
On Sun, 2002-06-30 14:42:38 +0200, Ralf Baechle <[email protected]> wrote in message <[email protected]>:
Quoted 10 lines · Jan-Benedict Glaw
Quoted 9 lines
Please give me a comment on this patch. I'm currently tryin' to make the HAL2 driver work (yes, I've got my Indy out of the edge again and I'm going to use it as my desktop machine).
It fixes a compilation problem on
dmabuf.c. There,DMA_AUTOINITisn't defined. As./include/asm-mips/dma.hlooks like the asm-i386 file in general, I've copied the #define from the i386 port (and reformated the passus...).
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
If you think it'o okay, please apply it (and drop me a note:-p)
Sort of the right thing - why the heck does the Indy sound code have to rely on code for the that antique PC DMA controller ...
Well, OSS has some 'soundbase.o', in which dmabuf.o is linked into.
you need soundcore.o and hal2.o only.
Quoted 2 lines
Possibly which code path is not used at all on Indy, but the #define has to be there... So there's no real answer, but running 2.4.16 (from
the real answer is that you are trying to build support for OSS drivers, which has definitely nothing to do with HAL2 driver. disable it.
Quoted 6 lines
Debian installer) and 'insmod -f'ing the just compiled 2.4.19-rc1 hal2.o into that kernel ends up in useable sound. So this is some working way of doing sound.
Btw., I think I'll have a deeper look at hal2.o - the smallest load lets sound proceed in snail mode:-(
can you describe it better? (it has always worked for me ;-))
ladis