From: M. R. B. <mr...@0x...> - 2002-02-03 00:39:01
|
* Adrian McMenamin <ad...@mc...> on Sun, Feb 03, 2002: > What are the circumstances under which the 'connect' function for a maple= =20 > client device will be called? >=20 > I am building an experimental driver - as a module - for the microphone a= nd=20 > while clearly the init and exit functions are being called and the maple = core=20 > correctly reports the loading of a microphone driver, connect doesn't see= m to=20 > get called. >=20 Did you register your driver with maple? Your init() routine should have a call to maple_register_driver() with a pointer to the statically allocated maple_driver structure in your source. Are you sure this is being setup correctly? static struct maple_driver microphone_driver =3D { function: MAPLE_FUNC_MICROPHONE, name: "Microphone", connect: my_microphone_connect, disconnect: my_microphone_disconnect, }; M. R. |