[alsa-devel] How can you tell if the speaker jack on your sound card has anything plugged into it???

Sean Thayne sthayne at summitmediagroupllc.com
Fri Apr 25 23:02:09 CEST 2008


How do you think Vista does it? I've used a couple of different 
computers (totally different hardware) and it can detect insertion for 
them all...

Timur Tabi wrote:
> Sean Thayne wrote:
>   
>> How would one go about getting this info? I'm trying to create a 
>> monitoring tool for a specific sound card, so the driver's standardized...
>>     
>
> First, the hardware has to detect insertion.  Then, it has to send a 
> signal to the driver (either via a status register or an interrupt).
>
> Assuming you have all that (I've never seen a sound card that provides 
> this info), perhaps you can specify the output jack only when something 
> is plugged in?  That is, you register the output jack when something is 
> plugged in, and then deregister it when something is removed.
>
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel at alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>
>
>   

-- 
Sean Thayne
Summit Media Group LLC.
5532 Lillehammer Lane, Suite 300
Park City, UT 84098
T: (435) 575-0610 ext 115
F: (435) 615-9979
E: sthayne at smgroupllc.com <mailto:sthayne at smgroupllc.com>
W: http://www.smgroupllc.com


More information about the Alsa-devel mailing list