* Status of pinnacle/fiji driver
@ 2006-05-18 15:29 Lee Revell
2006-05-18 15:43 ` Takashi Iwai
0 siblings, 1 reply; 4+ messages in thread
From: Lee Revell @ 2006-05-18 15:29 UTC (permalink / raw)
To: alsa-devel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Status of pinnacle/fiji driver
2006-05-18 15:29 Status of pinnacle/fiji driver Lee Revell
@ 2006-05-18 15:43 ` Takashi Iwai
2006-06-17 19:14 ` Sergey Vlasov
0 siblings, 1 reply; 4+ messages in thread
From: Takashi Iwai @ 2006-05-18 15:43 UTC (permalink / raw)
To: Lee Revell; +Cc: alsa-devel
At Thu, 18 May 2006 11:29:14 -0400,
Lee Revell wrote:
>
> 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?
Already fixed on HG repo.
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Status of pinnacle/fiji driver
2006-05-18 15:43 ` Takashi Iwai
@ 2006-06-17 19:14 ` Sergey Vlasov
2006-06-19 13:44 ` Takashi Iwai
0 siblings, 1 reply; 4+ messages in thread
From: Sergey Vlasov @ 2006-06-17 19:14 UTC (permalink / raw)
To: Takashi Iwai; +Cc: Lee Revell, alsa-devel
[-- Attachment #1.1: Type: text/plain, Size: 3076 bytes --]
On Thu, May 18, 2006 at 05:43:45PM +0200, Takashi Iwai wrote:
> At Thu, 18 May 2006 11:29:14 -0400,
> Lee Revell wrote:
> >
> > 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?
>
> 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:
http://kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=57f3ebccaa560d1eeb40b5c719773bed5cb0df46
> > 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?
[-- Attachment #1.2: Type: application/pgp-signature, Size: 191 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
[-- Attachment #3: Type: text/plain, Size: 161 bytes --]
_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Status of pinnacle/fiji driver
2006-06-17 19:14 ` Sergey Vlasov
@ 2006-06-19 13:44 ` Takashi Iwai
0 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2006-06-19 13:44 UTC (permalink / raw)
To: Sergey Vlasov; +Cc: Lee Revell, alsa-devel
At Sat, 17 Jun 2006 23:14:51 +0400,
Sergey Vlasov wrote:
>
> On Thu, May 18, 2006 at 05:43:45PM +0200, Takashi Iwai wrote:
> > At Thu, 18 May 2006 11:29:14 -0400,
> > Lee Revell wrote:
> > >
> > > 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?
> >
> > 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)
> Apparently the isa_* functions were removed from kernel:
>
> http://kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=57f3ebccaa560d1eeb40b5c719773bed5cb0df46
Try the patch below.
> > > 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
diff -r 173a7e861761 isa/msnd/msnd.h
--- a/isa/msnd/msnd.h Fri Jun 09 15:27:09 2006 +0200
+++ b/isa/msnd/msnd.h Mon Jun 19 15:42:13 2006 +0200
@@ -280,4 +280,81 @@ int snd_msndmidi_new(struct snd_card *ca
int 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 */
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-06-19 13:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-18 15:29 Status of pinnacle/fiji driver Lee Revell
2006-05-18 15:43 ` Takashi Iwai
2006-06-17 19:14 ` Sergey Vlasov
2006-06-19 13:44 ` Takashi Iwai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.