* Re: [RFC] merging splited driver back
[not found] <m27kimpp7r.fsf@vador.mandrakesoft.com>
@ 2002-08-20 9:42 ` Takashi Iwai
2002-08-21 9:53 ` Jaroslav Kysela
0 siblings, 1 reply; 7+ messages in thread
From: Takashi Iwai @ 2002-08-20 9:42 UTC (permalink / raw)
To: Thierry Vignaud; +Cc: alsa-devel
Hi,
At Mon, 19 Aug 2002 22:29:12 +0200,
Thierry Vignaud wrote:
>
> snd-ens1370 and 1371're just the same driver which compilation is
> altered by preprocessors directives.
>
> snd-via8232 came from via686 and some common code can still be seen.
>
> it would be nice if the alsa team can make a unified snd-ens137[01]
> driver and a snd-via-common sub module used by snd-via{686,8232}.
both jobs would be relatively easy.
in fact, integration of ens137x was already done experimentally on my
tree, and the change for via driver should be also small.
but the decision is different.
pro:
- merging via drivers will make the maintenance and bug-hunt easier.
merging ens137x drivers makes no difference, because it's already
in a source.
con:
- merging two drivers to a unified driver will increase the size.
- we may put the common stuff into lowlevel module. but the
lowlevel module cannot be marked as __devinit, although this
doesn't matter for modules anyway.
basically i vote for this action, but i'd like to hear the opinion
from other people in this regard.
Takashi
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Re: [RFC] merging splited driver back
2002-08-20 9:42 ` [RFC] merging splited driver back Takashi Iwai
@ 2002-08-21 9:53 ` Jaroslav Kysela
2002-08-22 13:31 ` Takashi Iwai
0 siblings, 1 reply; 7+ messages in thread
From: Jaroslav Kysela @ 2002-08-21 9:53 UTC (permalink / raw)
To: Takashi Iwai; +Cc: Thierry Vignaud, alsa-devel@lists.sourceforge.net
On Tue, 20 Aug 2002, Takashi Iwai wrote:
> Hi,
>
> At Mon, 19 Aug 2002 22:29:12 +0200,
> Thierry Vignaud wrote:
> >
> > snd-ens1370 and 1371're just the same driver which compilation is
> > altered by preprocessors directives.
> >
> > snd-via8232 came from via686 and some common code can still be seen.
> >
> > it would be nice if the alsa team can make a unified snd-ens137[01]
> > driver and a snd-via-common sub module used by snd-via{686,8232}.
>
> both jobs would be relatively easy.
> in fact, integration of ens137x was already done experimentally on my
> tree, and the change for via driver should be also small.
>
> but the decision is different.
>
> pro:
> - merging via drivers will make the maintenance and bug-hunt easier.
> merging ens137x drivers makes no difference, because it's already
> in a source.
>
> con:
> - merging two drivers to a unified driver will increase the size.
> - we may put the common stuff into lowlevel module. but the
> lowlevel module cannot be marked as __devinit, although this
> doesn't matter for modules anyway.
>
>
> basically i vote for this action, but i'd like to hear the opinion
> from other people in this regard.
I don't like very much to merging of ENS1370 and ENS1371, because
different codecs are used (snd-ak4531-codec and snd-ac97-codec). Sure,
there is common code (MIDI UART, most of PCM routines), but I think that
the final difference (separate module with common code) will be
negligible, but we may do it.
VIA code may be merged.
Jaroslav
-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project http://www.alsa-project.org
SuSE Linux http://www.suse.com
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Re: [RFC] merging splited driver back
2002-08-21 9:53 ` Jaroslav Kysela
@ 2002-08-22 13:31 ` Takashi Iwai
2002-08-22 13:41 ` Thierry Vignaud
0 siblings, 1 reply; 7+ messages in thread
From: Takashi Iwai @ 2002-08-22 13:31 UTC (permalink / raw)
To: Jaroslav Kysela; +Cc: Thierry Vignaud, alsa-devel@lists.sourceforge.net
At Wed, 21 Aug 2002 11:53:32 +0200 (CEST),
Jaroslav wrote:
>
> On Tue, 20 Aug 2002, Takashi Iwai wrote:
>
> > Hi,
> >
> > At Mon, 19 Aug 2002 22:29:12 +0200,
> > Thierry Vignaud wrote:
> > >
> > > snd-ens1370 and 1371're just the same driver which compilation is
> > > altered by preprocessors directives.
> > >
> > > snd-via8232 came from via686 and some common code can still be seen.
> > >
> > > it would be nice if the alsa team can make a unified snd-ens137[01]
> > > driver and a snd-via-common sub module used by snd-via{686,8232}.
> >
> > both jobs would be relatively easy.
> > in fact, integration of ens137x was already done experimentally on my
> > tree, and the change for via driver should be also small.
> >
> > but the decision is different.
> >
> > pro:
> > - merging via drivers will make the maintenance and bug-hunt easier.
> > merging ens137x drivers makes no difference, because it's already
> > in a source.
> >
> > con:
> > - merging two drivers to a unified driver will increase the size.
> > - we may put the common stuff into lowlevel module. but the
> > lowlevel module cannot be marked as __devinit, although this
> > doesn't matter for modules anyway.
> >
> >
> > basically i vote for this action, but i'd like to hear the opinion
> > from other people in this regard.
>
> I don't like very much to merging of ENS1370 and ENS1371, because
> different codecs are used (snd-ak4531-codec and snd-ac97-codec).
ah, yes, that's not beautiful to have two codec modules for one
driver.
> Sure,
> there is common code (MIDI UART, most of PCM routines), but I think that
> the final difference (separate module with common code) will be
> negligible, but we may do it.
well, then let's leave ens1370/1 as they are.
> VIA code may be merged.
yes. i'll work on this later.
Takashi
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Re: [RFC] merging splited driver back
2002-08-22 13:31 ` Takashi Iwai
@ 2002-08-22 13:41 ` Thierry Vignaud
2002-08-22 14:29 ` Takashi Iwai
2002-08-22 18:06 ` Jaroslav Kysela
0 siblings, 2 replies; 7+ messages in thread
From: Thierry Vignaud @ 2002-08-22 13:41 UTC (permalink / raw)
To: Takashi Iwai; +Cc: Jaroslav Kysela, alsa-devel@lists.sourceforge.net
Takashi Iwai <tiwai@suse.de> writes:
> > I don't like very much to merging of ENS1370 and ENS1371, because
> > different codecs are used (snd-ak4531-codec and snd-ac97-codec).
>
> ah, yes, that's not beautiful to have two codec modules for one
> driver.
>
>> Sure,
>> there is common code (MIDI UART, most of PCM routines), but I think that
>> the final difference (separate module with common code) will be
>> negligible, but we may do it.
>
> well, then let's leave ens1370/1 as they are.
this would have enbling to reduce memory usage if one have both 1370
and 1371 cards, and/or reduce kernel package size :-)
> > VIA code may be merged.
>
> yes. i'll work on this later.
nice.
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Re: [RFC] merging splited driver back
2002-08-22 13:41 ` Thierry Vignaud
@ 2002-08-22 14:29 ` Takashi Iwai
2002-08-22 18:06 ` Jaroslav Kysela
1 sibling, 0 replies; 7+ messages in thread
From: Takashi Iwai @ 2002-08-22 14:29 UTC (permalink / raw)
To: Thierry Vignaud; +Cc: Jaroslav Kysela, alsa-devel@lists.sourceforge.net
At Thu, 22 Aug 2002 15:41:17 +0200,
Thierry Vignaud wrote:
>
> Takashi Iwai <tiwai@suse.de> writes:
>
> > > I don't like very much to merging of ENS1370 and ENS1371, because
> > > different codecs are used (snd-ak4531-codec and snd-ac97-codec).
> >
> > ah, yes, that's not beautiful to have two codec modules for one
> > driver.
> >
> >> Sure,
> >> there is common code (MIDI UART, most of PCM routines), but I think that
> >> the final difference (separate module with common code) will be
> >> negligible, but we may do it.
> >
> > well, then let's leave ens1370/1 as they are.
>
> this would have enbling to reduce memory usage if one have both 1370
> and 1371 cards, and/or reduce kernel package size :-)
the probability of former case is not so high, i guess :)
Takashi
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Re: [RFC] merging splited driver back
2002-08-22 13:41 ` Thierry Vignaud
2002-08-22 14:29 ` Takashi Iwai
@ 2002-08-22 18:06 ` Jaroslav Kysela
2002-08-22 19:25 ` Thierry Vignaud
1 sibling, 1 reply; 7+ messages in thread
From: Jaroslav Kysela @ 2002-08-22 18:06 UTC (permalink / raw)
To: Thierry Vignaud; +Cc: Takashi Iwai, alsa-devel@lists.sourceforge.net
On Thu, 22 Aug 2002, Thierry Vignaud wrote:
> Takashi Iwai <tiwai@suse.de> writes:
>
> > > I don't like very much to merging of ENS1370 and ENS1371, because
> > > different codecs are used (snd-ak4531-codec and snd-ac97-codec).
> >
> > ah, yes, that's not beautiful to have two codec modules for one
> > driver.
> >
> >> Sure,
> >> there is common code (MIDI UART, most of PCM routines), but I think that
> >> the final difference (separate module with common code) will be
> >> negligible, but we may do it.
> >
> > well, then let's leave ens1370/1 as they are.
>
> this would have enbling to reduce memory usage if one have both 1370
> and 1371 cards,
It's questionable, because every segments are aligned to 4kB on i386 (8kb
on alphas), so you can reach same memory consumption.
> and/or reduce kernel package size :-)
It's probably only valid reason, but it does not change anything from the
maintaince view. Anyway, as I wrote, separating code to a common module
will be accepted. Patches are welcome ;-)
Jaroslav
-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project http://www.alsa-project.org
SuSE Linux http://www.suse.com
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Re: [RFC] merging splited driver back
2002-08-22 18:06 ` Jaroslav Kysela
@ 2002-08-22 19:25 ` Thierry Vignaud
0 siblings, 0 replies; 7+ messages in thread
From: Thierry Vignaud @ 2002-08-22 19:25 UTC (permalink / raw)
To: Jaroslav Kysela; +Cc: Takashi Iwai, alsa-devel@lists.sourceforge.net
Jaroslav Kysela <perex@suse.cz> writes:
> It's questionable, because every segments are aligned to 4kB on i386
> (8kb on alphas), so you can reach same memory consumption.
not if compiled in kernel core but i admit this is not a real point:-)
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2002-08-22 19:25 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <m27kimpp7r.fsf@vador.mandrakesoft.com>
2002-08-20 9:42 ` [RFC] merging splited driver back Takashi Iwai
2002-08-21 9:53 ` Jaroslav Kysela
2002-08-22 13:31 ` Takashi Iwai
2002-08-22 13:41 ` Thierry Vignaud
2002-08-22 14:29 ` Takashi Iwai
2002-08-22 18:06 ` Jaroslav Kysela
2002-08-22 19:25 ` Thierry Vignaud
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.