2001-10-29 19:39:26

by Alex Deucher

[permalink] [raw]
Subject: opl3sa2 sound driver and mixers

I have a toshiba portege 3020ct and a libretto 50ct
with a opl3sa2 sound chips. The modules load ok and
sound works, but an extra mixer seems to always load.
I always suspected t was because of code sharing or
somthing, but I thought I'd ask here to see if it was
a bug or just a quirk of the driver. I don't have the
notebook on hand right, now do these are from memory.
When I load sound, several modules get loaded, opl3sa2
and AD18?? (can't remember the number off hand).
What's strange is that 2 mixers seem to get loaded.
The first is for a CS4??? (can't recall the exact
numbers) and the second is for the opl3sa2. The
problem is that most sound applications like gmix for
example, seem to enumerate the CS4??? mixer (which
does nothing) as the first mixer and the opl3sa2 mixer
(which works) as the second mixer. Why is that? Is
there a way to get rid of the CS4??? mixer or have it
be enumerated as the second mixer device?

Just curious,

Alex

__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com


2001-10-29 19:49:49

by Alan

[permalink] [raw]
Subject: Re: opl3sa2 sound driver and mixers

> sound works, but an extra mixer seems to always load.
> I always suspected t was because of code sharing or
> somthing, but I thought I'd ask here to see if it was
> a bug or just a quirk of the driver. I don't have the
> notebook on hand right, now do these are from memory.
> When I load sound, several modules get loaded, opl3sa2
> and AD18?? (can't remember the number off hand).

AD1848 - this is correct. The opl3sa2 is an AD1848 compatible device
and an MPU401 compatible device (and some other oddments).

> What's strange is that 2 mixers seem to get loaded.
> The first is for a CS4??? (can't recall the exact

CS4232 - that mixer shouldnt be getting created. That is a bug. I'll take
a look at it

2001-10-29 20:08:19

by Alex Deucher

[permalink] [raw]
Subject: Re: opl3sa2 sound driver and mixers

BTW, this is with kernel 2.4.9, but it has been
happening with every 2.4 kernel I've tried on these
notebooks. I haven't tried 2.2 kernels in so long I
can't remember if they acted the same or not.

Alex

--- Alan Cox <[email protected]> wrote:
> > sound works, but an extra mixer seems to always
> load.
> > I always suspected t was because of code sharing
> or
> > somthing, but I thought I'd ask here to see if it
> was
> > a bug or just a quirk of the driver. I don't have
> the
> > notebook on hand right, now do these are from
> memory.
> > When I load sound, several modules get loaded,
> opl3sa2
> > and AD18?? (can't remember the number off hand).
>
> AD1848 - this is correct. The opl3sa2 is an AD1848
> compatible device
> and an MPU401 compatible device (and some other
> oddments).
>
> > What's strange is that 2 mixers seem to get
> loaded.
> > The first is for a CS4??? (can't recall the exact
>
> CS4232 - that mixer shouldnt be getting created.
> That is a bug. I'll take
> a look at it


__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

2001-10-29 20:21:01

by Joel Becker

[permalink] [raw]
Subject: Re: opl3sa2 sound driver and mixers

On Mon, Oct 29, 2001 at 11:39:32AM -0800, Alex Deucher wrote:
> I have a toshiba portege 3020ct and a libretto 50ct
> with a opl3sa2 sound chips. The modules load ok and
> sound works, but an extra mixer seems to always load.

Yeah, I see this too, "MS Sound System (CS4231)". Toshiba Tecra
8000. 2.4.10-ac10. I will say that this is still an improvement over
the "opl3sa2 doesn't work in 2.4" bit.

Joel

--

Life's Little Instruction Book #94

"Make it a habit to do nice things for people who
will never find out."

http://www.jlbec.org/
[email protected]

2001-10-29 21:32:47

by PALFFY Daniel

[permalink] [raw]
Subject: Re: opl3sa2 sound driver and mixers

On Mon, 29 Oct 2001, Alan Cox wrote:

> > What's strange is that 2 mixers seem to get loaded.
> > The first is for a CS4??? (can't recall the exact
>
> CS4232 - that mixer shouldnt be getting created. That is a bug. I'll take
> a look at it

Please read Documentation/sound/OPL3-SA2 (the two mixers are intentional,
some channels are available only on the MSS mixer, others only on the
OPL3-SA2), and don't break the driver! Since the latest DMA fix finally
everything works fine on my Portege 3010 (which is exactly the same as the
3020 except for a slower CPU and smaller disk).

--
Dani
...and Linux for all.


2001-10-29 21:35:36

by Alan

[permalink] [raw]
Subject: Re: opl3sa2 sound driver and mixers

> Please read Documentation/sound/OPL3-SA2 (the two mixers are intentional,
> some channels are available only on the MSS mixer, others only on the
> OPL3-SA2), and don't break the driver! Since the latest DMA fix finally
> everything works fine on my Portege 3010 (which is exactly the same as the
> 3020 except for a slower CPU and smaller disk).

Thanks for warning me and saving me the effort of decoding it all



2001-10-30 06:47:45

by Scott Murray

[permalink] [raw]
Subject: Re: opl3sa2 sound driver and mixers

On Mon, 29 Oct 2001, Alan Cox wrote:

> > Please read Documentation/sound/OPL3-SA2 (the two mixers are intentional,
> > some channels are available only on the MSS mixer, others only on the
> > OPL3-SA2), and don't break the driver! Since the latest DMA fix finally
> > everything works fine on my Portege 3010 (which is exactly the same as the
> > 3020 except for a slower CPU and smaller disk).
>
> Thanks for warning me and saving me the effort of decoding it all

I've found myself too busy at work over the last while to really look into
any issues with this driver. Anyone keen on taking over as maintainer?

Scott


--
Scott Murray
SOMA Networks, Inc.
Toronto, Ontario
e-mail: [email protected]

2001-10-30 08:29:45

by Jerome AUGE

[permalink] [raw]
Subject: Re: opl3sa2 sound driver and mixers

Scott Murray wrote:
>
> On Mon, 29 Oct 2001, Alan Cox wrote:
>
> > > Please read Documentation/sound/OPL3-SA2 (the two mixers are intentional,
> > > some channels are available only on the MSS mixer, others only on the
> > > OPL3-SA2), and don't break the driver! Since the latest DMA fix finally
> > > everything works fine on my Portege 3010 (which is exactly the same as the
> > > 3020 except for a slower CPU and smaller disk).
> >
> > Thanks for warning me and saving me the effort of decoding it all
>
> I've found myself too busy at work over the last while to really look into
> any issues with this driver. Anyone keen on taking over as maintainer?
>

Some times ago I wanted to change the mixer part and get back to the
"original" one, with a single mixer ... but as it was intentional, I
left it like this.

However I think it would be a good thing to present, to the user, a
single mixer. You have 1 or more soundcards and each soundcard have a
single mixer that control all the volume available with this card, no ?

If Alan has not yet released a patch that changes this ... I could try
to put all the controls back together ... and it will be the occasion to
learn a little bit more of that "mighty and scaring kernel" :)

--

2001-10-30 15:38:03

by Scott Murray

[permalink] [raw]
Subject: Re: opl3sa2 sound driver and mixers

On Tue, 30 Oct 2001, Jerome AUGE wrote:

> Scott Murray wrote:
> > I've found myself too busy at work over the last while to really look into
> > any issues with this driver. Anyone keen on taking over as maintainer?
>
> Some times ago I wanted to change the mixer part and get back to the
> "original" one, with a single mixer ... but as it was intentional, I
> left it like this.
>
> However I think it would be a good thing to present, to the user, a
> single mixer. You have 1 or more soundcards and each soundcard have a
> single mixer that control all the volume available with this card, no ?

I gave up on the idea because it seemed dumb to me to basically duplicate
the MSS mixer handling that's already implemented in ad1848.c, but feel
free to change it. The mixer code from opl3sa2.c in the 2.2 kernels is
probably a good place to start. Remember that you have to worry about
extra mixer channels on the SA3 versus the SA2.

> If Alan has not yet released a patch that changes this ... I could try
> to put all the controls back together ... and it will be the occasion to
> learn a little bit more of that "mighty and scaring kernel" :)

Give it a shot.

Scott


--
Scott Murray
SOMA Networks, Inc.
Toronto, Ontario
e-mail: [email protected]