I currently use a HALPlugin to provide some custom controls to a user space application.
From the exisiting HAL documentation,
values for controls are obtained as follows valueAsCFTypeRef = IORegistryEntryCreateCFProperty(controlConnection, CFSTR("IOAudioControlValue"), kCFAllocatorDefault, 0 ); if (valueAsCFTypeRef) { CFNumberGetValue((CFNumberRef) valueAsCFTypeRef, ...); ... }
This allows one to take values stored in the IORegistry.
How would one set things up so that the user client can call a specific function in the driver that sends commands querying the hardware like the custom user client which bypasses the HAL?
I would like to keep everything as a custom HAL client so that the application developers can use the standard AudioDeviceGetProperty(), AudioDeviceSetProperty() calls without having to resort to using an alternate user client interface.
David
Date: Mon, 8 May 2006 11:23:25 -0700 Subject: Re: plugin to query hardware status Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
You'll need to provide more context before I can give you a good answer.
On May 6, 2006, at 3:19 PM, david tay wrote:
How would one create a HAL plugin that sends commands directly to the hardware asking for various status bits?
|