• 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: Proper way to remove an Audio Device
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Proper way to remove an Audio Device


  • Subject: Re: Proper way to remove an Audio Device
  • From: Matthew Xavier Mora <email@hidden>
  • Date: Thu, 18 Sep 2003 10:23:46 -0700

At 6:21 PM -0700 9/17/03, Robert Penland wrote:
What is the prescribed sequence of calls for removing a CoreAudio device in the kernel? Our Audio device driver is part of another kext driver and when the last instance of our main driver is closed, I want to eliminate the Audio devices. I have tried calling terminate on the Audio device object, but if I then do a kextunload of our main driver it fails saying there is still 1 instance of my Audiodevice and it's associated Engines present.

This can be a nightmare to find. When we rewrote the AppleOnBoard audio driver we spent a considerable amount of time tracking this down and it was an important fix since we needed to load and unload the driver a lot during bring up.

What it came down to was when we published a resource for the modem kext to find we did not unpublish that resource when we tore down the driver which left us with one instance of the device loaded. Once we unpublished that resource we could load and unload the driver at will. I had the same problem in the AppleFWAudio driver and I fixed that right after we fixed it in the on board driver. So double check that is you publish a resource you unpublish when you are going down.


Matt
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

References: 
 >Proper way to remove an Audio Device (From: "Robert Penland" <email@hidden>)

  • Prev by Date: Re: ANN: help doing GetFactoryPresets correctly
  • Next by Date: FW: get/set device receive channels
  • Previous by thread: Re: Proper way to remove an Audio Device
  • Next by thread: Re: Proper way to remove an Audio Device
  • Index(es):
    • Date
    • Thread