Status of pinnacle/fiji driver
Someone pointed out on IRC that this driver has bitrotted and doesn't compile with recent kernels.
alsa/alsa-driver-1.0.11/isa/msnd/msnd_pinnacle.c:117: error: expected ) before string constant
I think it's due to use of MODULE_PARM which seems to have been removed?
I also notice that this driver is not in the kernel. Could it be added? It would allow the OSS driver to be deprecated.
Lee
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
At Thu, 18 May 2006 11:29:14 -0400,
Quoted 8 lines · Lee Revell
Someone pointed out on IRC that this driver has bitrotted and doesn't compile with recent kernels.
alsa/alsa-driver-1.0.11/isa/msnd/msnd_pinnacle.c:117: error: expected ) before string constantI think it's due to use of
MODULE_PARMwhich seems to have been removed?
Already fixed on HG repo.
Quoted 2 lines
I also notice that this driver is not in the kernel. Could it be added? It would allow the OSS driver to be deprecated.
No, the driver code is too ugly to include to kernel tree.
Takashi
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Quoted 6 lines · Takashi Iwai
At Thu, 18 May 2006 11:29:14 -0400,
Quoted 4 lines · Lee Revell
Someone pointed out on IRC that this driver has bitrotted and doesn't compile with recent kernels.
Quoted 6 lines
Quoted 4 lines
alsa/alsa-driver-1.0.11/isa/msnd/msnd_pinnacle.c:117: error: expected ) before string constantI think it's due to use of
MODULE_PARMwhich seems to have been removed?Already fixed on HG repo.
With this fix the driver seems to compile, but won't load because of undefined symbols - trying to compile it for 2.6.17-rc6-git7 gives these warnings:
CC [M] .../isa/msnd/msnd.o.../isa/msnd/msnd.c: In function `snd_msnd_init_queue':.../isa/msnd/msnd.c:134: warning: implicit declaration of function `isa_writew'
CC [M] .../isa/msnd/msnd_pinnacle.o.../isa/msnd/msnd_pinnacle.c: In function `snd_msnd_play_reset_queue':.../isa/msnd/msnd_pinnacle.c:166: warning: implicit declaration of function isa_writew' .../isa/msnd/msnd_pinnacle.c: In function snd_msnd_DARQ':.../isa/msnd/msnd_pinnacle.c:313: warning: implicit declaration of function isa_readw' .../isa/msnd/msnd_pinnacle.c: In function snd_msnd_init_sma':.../isa/msnd/msnd_pinnacle.c:623: warning: implicit declaration of function isa_memset_io' .../isa/msnd/msnd_pinnacle.c:670: warning: implicit declaration of function isa_writel' .../isa/msnd/msnd_pinnacle.c: In function `upload_dsp_code':.../isa/msnd/msnd_pinnacle.c:720: warning: implicit declaration of function `isa_memcpy_toio'
CC [M] .../isa/msnd/msnd_pinnacle_mixer.o.../isa/msnd/msnd_pinnacle_mixer.c: In function `snd_msndmix_set':.../isa/msnd/msnd_pinnacle_mixer.c:204: warning: implicit declaration of function isa_writeb' .../isa/msnd/msnd_pinnacle_mixer.c:219: warning: implicit declaration of function isa_writew' .../isa/msnd/msnd_pinnacle_mixer.c:241: warning: implicit declaration of function `isa_readw'
CC [M] .../isa/msnd/msnd_midi.o.../isa/msnd/msnd_midi.c: In function `snd_msndmidi_input_drop':.../isa/msnd/msnd_midi.c:312: warning: implicit declaration of function isa_readw' .../isa/msnd/msnd_midi.c:313: warning: implicit declaration of function isa_writew'
WARNING: "isa_memcpy_toio" [.../isa/msnd/snd-msnd-pinnacle.ko] undefined!
WARNING: "isa_memset_io" [.../isa/msnd/snd-msnd-pinnacle.ko] undefined!
WARNING: "isa_writeb" [.../isa/msnd/snd-msnd-pinnacle.ko] undefined!
WARNING: "isa_writel" [.../isa/msnd/snd-msnd-pinnacle.ko] undefined!
WARNING: "isa_writew" [.../isa/msnd/snd-msnd-pinnacle.ko] undefined!
WARNING: "isa_readw" [.../isa/msnd/snd-msnd-pinnacle.ko] undefined!
Apparently the isa_* functions were removed from kernel:
Quoted 4 lines
Quoted 2 lines
I also notice that this driver is not in the kernel. Could it be added? It would allow the OSS driver to be deprecated.
No, the driver code is too ugly to include to kernel tree.
Does someone really maintain this driver?
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
At Sat, 17 Jun 2006 23:14:51 +0400,
Quoted 22 lines · Sergey Vlasov
Quoted 6 lines · Takashi Iwai
At Thu, 18 May 2006 11:29:14 -0400,
Quoted 4 lines · Lee Revell
Someone pointed out on IRC that this driver has bitrotted and doesn't compile with recent kernels.
Quoted 6 lines
Quoted 4 lines
alsa/alsa-driver-1.0.11/isa/msnd/msnd_pinnacle.c:117: error: expected ) before string constantI think it's due to use of
MODULE_PARMwhich seems to have been removed?Already fixed on HG repo.
With this fix the driver seems to compile, but won't load because of undefined symbols - trying to compile it for 2.6.17-rc6-git7 gives these warnings:
CC [M]
.../isa/msnd/msnd.o.../isa/msnd/msnd.c: In function `snd_msnd_init_queue':.../isa/msnd/msnd.c:134: warning: implicit declaration of function `isa_writew'
(snip)
Quoted 3 lines
Apparently the isa_* functions were removed from kernel:
Try the patch below.
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
I also notice that this driver is not in the kernel. Could it be added? It would allow the OSS driver to be deprecated.
No, the driver code is too ugly to include to kernel tree.
Does someone really maintain this driver?
Not really. Let me know if someone can test this driver.
Takashi
isa/msnd/msnd.h +77 -0
@@ -280,4 +280,81 @@ int snd_msndmidi_new(struct snd_card *caint snd_msndmidi_new (struct snd_card *card,int device,multisound_dev_t *dev);void snd_msndmidi_input_read (void * mpu); +#if LINUX_VERSION_CODE >=KERNEL_VERSION (2 ,6 ,17 ) +static inline u8 +isa_readb (unsigned long offset) +{ +void __iomem *addr =ioremap (offset,1 ); +u8 ret =readb (addr); +iounmap (addr); +return ret; +} + +static inline u16 +isa_readw (unsigned long offset) +{ +void __iomem *addr =ioremap (offset,2 ); +u16 ret =readw (addr); +iounmap (addr); +return ret; +} + +static inline u32 +isa_readl (unsigned long offset) +{ +void __iomem *addr =ioremap (offset,4 ); +u32 ret =readl (addr); +iounmap (addr); +return ret; +} + +static inline void +isa_writeb (u8 b,unsigned long offset) +{ +void __iomem *addr =ioremap (offset,2 ); +writeb (b, addr); +iounmap (addr); +} + +static inline void +isa_writew (u16 w,unsigned long offset) +{ +void __iomem *addr =ioremap (offset,2 ); +writew (w, addr); +iounmap (addr); +} + +static inline void +isa_writel (u32 l,unsigned long offset) +{ +void __iomem *addr =ioremap (offset,4 ); +writel (l, addr); +iounmap (addr); +} + +static inline void +isa_memset_io (unsigned long offset,u8 val,long n) +{ +void __iomem *addr =ioremap (offset, n); +memset_io (addr, val, n); +iounmap (addr); +} + +static inline void +isa_memcpy_fromio (void *dest,unsigned long offset,long n) +{ +void __iomem *addr =ioremap (offset, n); +memcpy_fromio (dest, addr, n); +iounmap (addr); +} + +static inline void +isa_memcpy_toio (unsigned long offset,const void *src,long n) +{ +void __iomem *addr =ioremap (offset, n); +memcpy_toio (addr, src, n); +iounmap (addr); +} +#endif +#endif /* __MSND_H */