Hi,
this patch adds PnP BIOS configuration support in OPL3-SA1 sound driver,
along with some cleanups (static zero initializers, missing __init etc.)
Patch was tested on one motherboard with integrated YMF701B chip and
seems like it actually works.
IMHO this patch can be usefull for people with such mobos.
Best regards.
--
Andrey Panin | Embedded systems software engineer
[email protected] | PGP key: http://www.orbita1.ru/~pazke/AndreyPanin.asc
You define a table of struct pnpbios_device_id's containing
the IDs plus pointers to structs containing info about which
ioports reported by pnpbios do which things. Okay.
But rather than search for each ID in the table using
pnpbios_find_device(), why not use pnpbios_register_driver()?
To use this, you define a struct pnpbios_driver, which contains among
other things a pointer to your table of struct pnpbios_device_id's
and callback handles for adding ("probing") and removing the device.
You call pnpbios_register_driver() with a pointer to this
struct pnpbios_driver; it searches the devlist and table
for matches and for each one calls the callback function.
--
Thomas