Re: plugin to query hardware status
Re: plugin to query hardware status
- Subject: Re: plugin to query hardware status
- From: Jeff Moore <email@hidden>
- Date: Wed, 10 May 2006 14:45:33 -0700
On May 10, 2006, at 2:38 PM, david tay wrote:
My device sets an array of custom bits/ counters in response to
something like an audio spike, etc, AND
indicates that an update event occured (eg - audio spike/ plug
removed/ plug inserted / softLimit value changed event happened).
It is the responsibility of the custom application(s) upon
receiving such a notification to issue a command to the device to
get the exact value of
the change.
For example - in response to a plug insertion notification, ask the
device which port was the plug inserted.
How would that be implemented? Can this be accomplished via
IORegistryEntryCreateCFProperty()? My own tests indicate not.
It don't see why that would be. Seems to me that what you describe
fits pretty much exactly what I described.
If you don't like that model, then you have to write a custom user
client in your driver and have your user-land code interface with
that. Teaching about writing custom IOKit user client objects is way
beyond the scope of this list. You'll get better information about
that task from one of the kernel/IOKit focussed mailing lists.
--
Jeff Moore
Core Audio
Apple
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden