All of lore.kernel.org
 help / color / mirror / Atom feed
* EMU10K1X and MIDI
@ 2004-07-06  2:15 Francisco Moraes
  2004-07-06  7:14 ` Clemens Ladisch
  0 siblings, 1 reply; 3+ messages in thread
From: Francisco Moraes @ 2004-07-06  2:15 UTC (permalink / raw)
  To: alsa-devel

I added MIDI support for the EMU10K1X driver by slightly adapting the 
code in th emumpu401.c file. Given that I barely changed anything in 
that file, I was thinking about moving all the code into a .h file which 
can be parametrized with some #define's and #ifdef's. Then, both the 
current file, the emu10k1x.c and audigyls.c drivers can reuse the same 
code without having to duplicate it.

Is that ok with everyone?

Francisco


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com

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

* Re: EMU10K1X and MIDI
  2004-07-06  2:15 EMU10K1X and MIDI Francisco Moraes
@ 2004-07-06  7:14 ` Clemens Ladisch
  0 siblings, 0 replies; 3+ messages in thread
From: Clemens Ladisch @ 2004-07-06  7:14 UTC (permalink / raw)
  To: Francisco Moraes; +Cc: alsa-devel

Francisco Moraes wrote:
> I added MIDI support for the EMU10K1X driver by slightly adapting the
> code in th emumpu401.c file. Given that I barely changed anything in
> that file, I was thinking about moving all the code into a .h file which
> can be parametrized with some #define's and #ifdef's.

Like opti92x-ad1848/opti92x-cs4231/opti93x, or ens1370/ens1371.
<nitpick>
But these drivers use a .c extension for this file.
</nitpick>

> Then, both the current file, the emu10k1x.c and audigyls.c drivers
> can reuse the same code without having to duplicate it.

Putting the common code into a module and parameterizing it at runtime
would be more, uh, modular, but I guess this probably wouldn't be
worth the effort because it's unlikely that somebody uses several of
these cards at the same time.


Regards,
Clemens




-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com

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

* Re: EMU10K1X and MIDI
       [not found] <40EB3852.907@nc.rr.com>
@ 2004-07-07  7:14 ` Clemens Ladisch
  0 siblings, 0 replies; 3+ messages in thread
From: Clemens Ladisch @ 2004-07-07  7:14 UTC (permalink / raw)
  To: Francisco Moraes; +Cc: alsa-devel

Francisco Moraes wrote:

> Clemens Ladisch wrote:
>
> >Like opti92x-ad1848/opti92x-cs4231/opti93x, or ens1370/ens1371.
> ><nitpick>
> >But these drivers use a .c extension for this file.
> ></nitpick>
> >
> I usually don't think .c is a good extension if the file is not
> compilable by itself.

In these cases, one of the hardware models is the default if no other
has been selected with a #define.  So we would have three .c files,
each compilable by itself.

The reasons for this are purely historical; the modifications to the
'master' file were not made before the other models became known.
(But it's the same situtation with emumpu401.c :-).


Regards,
Clemens


> If someone else has an opinion, please share it before I spend
> time making the patch.




-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com

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

end of thread, other threads:[~2004-07-07  7:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-06  2:15 EMU10K1X and MIDI Francisco Moraes
2004-07-06  7:14 ` Clemens Ladisch
     [not found] <40EB3852.907@nc.rr.com>
2004-07-07  7:14 ` Clemens Ladisch

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.