Subject: Re: audio_detach_mi ?
To: Jared D. McNeill <>
From: Lennart Augustsson <>
List: tech-kern
Date: 06/04/2001 09:21:21
Yes, just use the usual detach machinery.  I.e., call config_deactivate() when
you're deactivated, then call config_detach() when your detach() is called.
You can look at dev/usb/uaudio.c for a sound driver that can detach.

    -- Lennart

"Jared D. McNeill" wrote:

> I'm working on a PCMCIA audio driver, but there doesn't seem to be a function
> (audio_detach_mi?) to complement audio_attach_mi. As a result, a new audio
> device is attach everytime the card is inserted.
> Is there any way to detach the audio device when the PCMCIA device attaches?
> Thanks,
> Jared
> --
> Jared D. McNeill -
> Computer Programming Technology
> New Brunswick Community College, Saint John