[alsa-devel] [PATCH] dt019x: reuse als100 code

Takashi Iwai tiwai at suse.de
Thu Dec 10 11:47:11 CET 2009


At Wed, 9 Dec 2009 20:10:46 +0100,
Krzysztof Helt wrote:
> 
> From: Krzysztof Helt <krzysztof.h1 at wp.pl>
> 
> The als100 driver is so similar to the dt019x/als007 driver
> that one driver's source can be used for both drivers with
> only few ifdefs. Reuse the als100 code as the dt019x/als007
> driver.

In this case, we can really merge two modules into one, IMO.
You can set a flag in pnp_card_device_id.driver_data, so that you
can identify whether it's als100 or dt019x.

Then, add MODULE_ALIAS("snd-dt019x") so that the module can be
picked up by the old system, too.

Anyway, this is a 2.6.34 material, so no need to hurry ;)


thanks,

Takashi


More information about the Alsa-devel mailing list