Linux Sound subsystem development
 help / color / mirror / Atom feed
* Strange issue with opl3sa2 driver under linux 2.4.4
@ 2001-06-28 18:04 David Nedved
  2001-06-28 19:04 ` Jérôme Augé
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: David Nedved @ 2001-06-28 18:04 UTC (permalink / raw)
  To: linux-sound

Hi all,

I'm trying to get sound working on my laptop, and  I'm having some strange
problems getting it work as expected, and I hope that you can give me some
insight.  I have a Toshiba Libretto 70CT, which is one of the hardware
platforms that is mentioned as working in the docs... I CAN get sound out of
it, but only after a strange ritual...

I have to do this to get it to work:

#modprobe opl3sa2 io=0x220 mss_io=0x530 mpu_io=0x330 irq=5 dma=1 dma2=0
opl3sa2: Control I/O port 0x220 is not a YMF7xx chipset!
#modprobe opl3sa2 io=0x370 mss_io=0x530 mpu_io=0x330 irq=5 dma=1 dma2=0
opl3sa2: Control I/O port 0x370 is not free
opl3sa2: Control I/O port 0x370 is not free
opl3sa2: Control I/O port 0x370 is not free
#modprobe opl3sa2 io=0x220 mss_io=0x530 mpu_io=0x330 irq=5 dma=1 dma2=0

notice that I have to modprobe it FIRST at 0x370, it fails, then it will
insert into 0x220!  I have verified all the settings through both the BIOS
setup utility and by dual-booting into Windows98.

This is with kernel version 2.4.4.  Do you have any idea about why it is
acting so strange upon inserting?  In /proc/ioports it lists 0x370 as belonging
to OPL3-SA3, and 0x220 is not listed, however 0x220 is 
the address that it ends up working under both in Windows98 and Linux.

Thanks very much, I really hope you have some idea how to work around this
more elegantly (so that maybe I can boot and have sound without typing all
that junk!)  If there's anything I can do to experiment around that would help
others, just let me know and I'll be happy to do it.

Thanks once again,

David
-
To unsubscribe from this list: send the line "unsubscribe linux-sound" in
the body of a message to majordomo@vger.kernel.org

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Strange issue with opl3sa2 driver under linux 2.4.4
  2001-06-28 18:04 Strange issue with opl3sa2 driver under linux 2.4.4 David Nedved
@ 2001-06-28 19:04 ` Jérôme Augé
  2001-06-29 17:33 ` David Nedved
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Jérôme Augé @ 2001-06-28 19:04 UTC (permalink / raw)
  To: linux-sound

David Nedved wrote:
> 
> Hi all,
> 
> I'm trying to get sound working on my laptop, and  I'm having some strange
> problems getting it work as expected, and I hope that you can give me some
> insight.  I have a Toshiba Libretto 70CT, which is one of the hardware
> platforms that is mentioned as working in the docs... I CAN get sound out of
> it, but only after a strange ritual...
> 
> I have to do this to get it to work:
> 
> #modprobe opl3sa2 io=0x220 mss_io=0x530 mpu_io=0x330 irq=5 dma=1 dma2=0
> opl3sa2: Control I/O port 0x220 is not a YMF7xx chipset!
> #modprobe opl3sa2 io=0x370 mss_io=0x530 mpu_io=0x330 irq=5 dma=1 dma2=0
> opl3sa2: Control I/O port 0x370 is not free
> opl3sa2: Control I/O port 0x370 is not free
> opl3sa2: Control I/O port 0x370 is not free
> #modprobe opl3sa2 io=0x220 mss_io=0x530 mpu_io=0x330 irq=5 dma=1 dma2=0
> 
> notice that I have to modprobe it FIRST at 0x370, it fails, then it will
> insert into 0x220!  I have verified all the settings through both the BIOS
> setup utility and by dual-booting into Windows98.
> 
> This is with kernel version 2.4.4.  Do you have any idea about why it is
> acting so strange upon inserting?  In /proc/ioports it lists 0x370 as belonging
> to OPL3-SA3, and 0x220 is not listed, however 0x220 is
> the address that it ends up working under both in Windows98 and Linux.
> 
> Thanks very much, I really hope you have some idea how to work around this
> more elegantly (so that maybe I can boot and have sound without typing all
> that junk!)  If there's anything I can do to experiment around that would help
> others, just let me know and I'll be happy to do it.
> 

Are you sure it really fails when modprobing at 0x370 ?

Try to modprobe at 0x370 and immediatly look at the output of "lsmod" to
see if the driver is really loaded or not ... ???

-- 
Jérôme Augé
echo cdqgm@vnqb-hklmpkml.yp | tr khplmndvqyc nirtelacufj
-
To unsubscribe from this list: send the line "unsubscribe linux-sound" in
the body of a message to majordomo@vger.kernel.org

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Strange issue with opl3sa2 driver under linux 2.4.4
  2001-06-28 18:04 Strange issue with opl3sa2 driver under linux 2.4.4 David Nedved
  2001-06-28 19:04 ` Jérôme Augé
@ 2001-06-29 17:33 ` David Nedved
  2001-06-30  0:44 ` Jérôme Augé
  2001-06-30 12:02 ` Jérôme Augé
  3 siblings, 0 replies; 5+ messages in thread
From: David Nedved @ 2001-06-29 17:33 UTC (permalink / raw)
  To: linux-sound

Merci beaucoup Jérôme!  You are indeed correct, somehow you saw through my
rantings, and although I thought I had tested everything extensively and
scientifically, it does indeed work with 0x370...

Now I have an alias in /etc/modules.conf so that all I have to do is 
modprobe opl3sa2 and everything works... if you don't mind I'd like to ask a
few questions about getting it a little more automated...

1.) any idea how to get it automatically inserted when I try to use the sound
    card?  (For ethernet cards I know you alias eth0 to the driver name, 
    but aliasing dsp and sound to opl3sa2 don't seem to work)
2.) any ideas how to avoid the "opl3sa2: Control I/O port 0x370 is not free"
    messages since they are apparently bogus?
3.) any ideas what to do to make it work when compiled into the kernel?
    a line in lilo to pass parameters to the kernel?

Thanks again,

David

On Thu, Jun 28, 2001 at 09:04:29PM +0200, Jérôme Augé wrote:
> David Nedved wrote:
> > 
> > Hi all,
> > 
> > I'm trying to get sound working on my laptop, and  I'm having some strange
> > problems getting it work as expected, and I hope that you can give me some
> > insight.  I have a Toshiba Libretto 70CT, which is one of the hardware
> > platforms that is mentioned as working in the docs... I CAN get sound out of
> > it, but only after a strange ritual...
> > 
> > I have to do this to get it to work:
> > 
> > #modprobe opl3sa2 io=0x220 mss_io=0x530 mpu_io=0x330 irq=5 dma=1 dma2=0
> > opl3sa2: Control I/O port 0x220 is not a YMF7xx chipset!
> > #modprobe opl3sa2 io=0x370 mss_io=0x530 mpu_io=0x330 irq=5 dma=1 dma2=0
> > opl3sa2: Control I/O port 0x370 is not free
> > opl3sa2: Control I/O port 0x370 is not free
> > opl3sa2: Control I/O port 0x370 is not free
> > #modprobe opl3sa2 io=0x220 mss_io=0x530 mpu_io=0x330 irq=5 dma=1 dma2=0
> > 
> > notice that I have to modprobe it FIRST at 0x370, it fails, then it will
> > insert into 0x220!  I have verified all the settings through both the BIOS
> > setup utility and by dual-booting into Windows98.
> > 
> > This is with kernel version 2.4.4.  Do you have any idea about why it is
> > acting so strange upon inserting?  In /proc/ioports it lists 0x370 as belonging
> > to OPL3-SA3, and 0x220 is not listed, however 0x220 is
> > the address that it ends up working under both in Windows98 and Linux.
> > 
> > Thanks very much, I really hope you have some idea how to work around this
> > more elegantly (so that maybe I can boot and have sound without typing all
> > that junk!)  If there's anything I can do to experiment around that would help
> > others, just let me know and I'll be happy to do it.
> > 
> 
> Are you sure it really fails when modprobing at 0x370 ?
> 
> Try to modprobe at 0x370 and immediatly look at the output of "lsmod" to
> see if the driver is really loaded or not ... ???
> 
> -- 
> Jérôme Augé
> echo cdqgm@vnqb-hklmpkml.yp | tr khplmndvqyc nirtelacufj
> -
> To unsubscribe from this list: send the line "unsubscribe linux-laptop" in
> the body of a message to majordomo@vger.kernel.org
> 
-
To unsubscribe from this list: send the line "unsubscribe linux-sound" in
the body of a message to majordomo@vger.kernel.org

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Strange issue with opl3sa2 driver under linux 2.4.4
  2001-06-28 18:04 Strange issue with opl3sa2 driver under linux 2.4.4 David Nedved
  2001-06-28 19:04 ` Jérôme Augé
  2001-06-29 17:33 ` David Nedved
@ 2001-06-30  0:44 ` Jérôme Augé
  2001-06-30 12:02 ` Jérôme Augé
  3 siblings, 0 replies; 5+ messages in thread
From: Jérôme Augé @ 2001-06-30  0:44 UTC (permalink / raw)
  To: linux-sound

David Nedved wrote:
> 
> Merci beaucoup Jérôme!  You are indeed correct, somehow you saw through my
> rantings, and although I thought I had tested everything extensively and
> scientifically, it does indeed work with 0x370...
> 
> Now I have an alias in /etc/modules.conf so that all I have to do is
> modprobe opl3sa2 and everything works... if you don't mind I'd like to ask a
> few questions about getting it a little more automated...
> 
> 1.) any idea how to get it automatically inserted when I try to use the sound
>     card?  (For ethernet cards I know you alias eth0 to the driver name,
>     but aliasing dsp and sound to opl3sa2 don't seem to work)
> 2.) any ideas how to avoid the "opl3sa2: Control I/O port 0x370 is not free"
>     messages since they are apparently bogus?
> 3.) any ideas what to do to make it work when compiled into the kernel?
>     a line in lilo to pass parameters to the kernel?
> 

:-)

1) here is the part for the sound from my modules.conf file :

alias sound-slot-0 opl3sa2
options sound dmabuf=1
alias midi opl3
options opl3 io=0x388
options opl3sa2 mss_io=0x530 irq=5 dma=1 dma2=0 mpu_io=0x330 io=0x370
ymode=1

2) I don't know ... I also get the 3 messages about 0x370 not free, so
I'll look into the driver and try to see what's wrong with the
initialization ...

3) If you build the opl3sa2 directly into the kernel you'll need to add
the "opl3sa2=<io>,<irq>,<dma>,<dma2>,<mssio>,<mpuio>" parameter to lilo.

mode details in /usr/src/linux/Documentation/sound/OPL3-SA2

-- 
Jérôme Augé
echo cdqgm@vnqb-hklmpkml.yp | tr khplmndvqyc nirtelacufj
-
To unsubscribe from this list: send the line "unsubscribe linux-sound" in
the body of a message to majordomo@vger.kernel.org

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Strange issue with opl3sa2 driver under linux 2.4.4
  2001-06-28 18:04 Strange issue with opl3sa2 driver under linux 2.4.4 David Nedved
                   ` (2 preceding siblings ...)
  2001-06-30  0:44 ` Jérôme Augé
@ 2001-06-30 12:02 ` Jérôme Augé
  3 siblings, 0 replies; 5+ messages in thread
From: Jérôme Augé @ 2001-06-30 12:02 UTC (permalink / raw)
  To: linux-sound

David Nedved wrote:
> [...]
> 
> 2.) any ideas how to avoid the "opl3sa2: Control I/O port 0x370 is not free"
>     messages since they are apparently bogus?
> 

Now I remenber ... try to use the isapnp=0 parameter to disable PnP
detection and it should remove those messages when inserting the module.

-- 
Jérôme Augé
echo cdqgm@vnqb-hklmpkml.yp | tr khplmndvqyc nirtelacufj
-
To unsubscribe from this list: send the line "unsubscribe linux-sound" in
the body of a message to majordomo@vger.kernel.org

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-06-30 12:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-28 18:04 Strange issue with opl3sa2 driver under linux 2.4.4 David Nedved
2001-06-28 19:04 ` Jérôme Augé
2001-06-29 17:33 ` David Nedved
2001-06-30  0:44 ` Jérôme Augé
2001-06-30 12:02 ` Jérôme Augé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox