• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: HAL master instance not loading my driver
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HAL master instance not loading my driver


  • Subject: Re: HAL master instance not loading my driver
  • From: Jeff Moore <email@hidden>
  • Date: Tue, 9 Aug 2005 11:45:17 -0700

Because the HAL's master process is coreaudiod in Tiger, the HAL doesn't load any plug-ins in that process. The reason why is that coreaudiod is run as root and loading plug-ins were deemed a security risk.

Note that the same goes for user-land drivers (the ones that conform to <AudioHardware/AudioHardwarePlugIn.h>). They won't be loaded in coreaudiod.

On Aug 5, 2005, at 4:17 AM, Fabian Renn wrote:

Hello list-members,

i've programmed an audio driver plugin for my kernel driver of a usb 2.0 audio device. The purpose for the plugin is to save some custom settings, so i can reload them once the kernel driver is loaded. In the plugin i use the kAudioHardwarePropertyProcessIsMaster key to find out if the master instance has loaded the plugin, and only then do i load and save my settings. The problem i'm having now is that the master instance doesn't always load the plugin. Furthermore i can't quite figure out when it loads it and when not. Seems kind of random to me. HALLab is telling me that there is a driver plug-in present. And programs like Audio MIDI Setup and HALLab do load the plugin ( <- but they are not masters of course ). I should add that i load my driver with kextload and kextunload ( the driver-plugin path starts like this '../../../Users/....' <- that seems to work because Audio MIDI Setupt and others do load my plugin ), and that my device is a usb device, even though i don't set the usb transport flag yet. Someone Help?!?!

Greetings

Fabian Renn

_______________________________________________
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



--

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
References: 
 >HAL master instance not loading my driver (From: Fabian Renn <email@hidden>)

  • Prev by Date: Re: [NEWBIE] Old thread and Vu-Meters
  • Next by Date: Re: linking with CoreAudio produces run-time crash
  • Previous by thread: HAL master instance not loading my driver
  • Next by thread: Re: HAL master instance not loading my driver
  • Index(es):
    • Date
    • Thread