Block multiple devices

Hello,

I rewriting a audio driver that was created in IOKit to a new one based on AudioDriverKit. I would like to block possibility to connect multiple devices to the computer so that driver support just one device. In IOKit it was done by overriding IOAudioEngine::getLocalUniqueID() method and I cannot find anything similar in AudioDriverKit (IOUserAudioDevice). Do you know how to do it?

Best Regards

Post not yet marked as solved Up vote post of slawek17 Down vote post of slawek17
142 views

Answers

The question is still open. I need to find answer on how I can decide (based on serial number of device) whether second or next device can be handled by driver. In IOKit I just had to overload IOAudioEngine::getLocalUniqueID and return empty OSString if I didn't want the driver to handle another device.

Problem is solved. It is possible to give UID to init function of IOUserAudioDevice.