Specifying the order of sound devices
Scott James Remnant
scott at ubuntu.com
Mon Apr 10 18:09:59 BST 2006
On Mon, 2006-04-10 at 18:01 +0100, Matthew Garrett wrote:
> On Mon, Apr 10, 2006 at 05:58:12PM +0100, Scott James Remnant wrote:
>
> > Simple; we blacklist one of the drivers. I've said before that I have
> > no problem adding a "conditional blacklist" feature; where only one of
> > two "possible" drivers are selected.
>
> No, that doesn't work entirely work - we want to load prism54softmac if
> prism54 fails to bind to the device (and the same in the ata_piix/ahci
> case)
>
Then that's a kernel patch. We could create a pseudo-driver that
supports the alias list of both the prism54 and prism54softmac drivers,
and depends on them both.
The drivers themselves will depend on nothing.
This pseudo-driver simply gives the device to the driver which can deal
with it.
This solves every single problem I can think of. Cards which are
fullmac-only will get the fullmac-driver; cards which are softmac-only
get the softmac-driver; cards which are both will get the
kernel-preferred driver (fullmac).
And it doesn't matter which order any modules are loaded, and it doesn't
matter which order hardware is plugged in. Even hardware plugged in
after both modules are loaded will work correctly.
This is a trivial thing to do with driver-core, and is (in my mind,
anyway) the right solution to this problem.
Scott
--
Scott James Remnant
scott at ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/sounder/attachments/20060410/5b6155a1/attachment.pgp
More information about the sounder
mailing list