[oss-devel] ALC268 hdaudio auto detect headphone presence ?
Wannabe Tsotsi
wannabetsotsi at yahoo.co.uk
Mon Jun 16 13:07:39 EEST 2008
As programming and control of audio codec's is new to me your reply
has certainly provided me with enough to research and think through , thanks.
Do you have an interface in mind that would allow an application to dynamically
determine jack presence ?
While in headphone only mode, an app might not want a switch to speaker on
headphone jack removal, perhaps in a quiet reading library.
Back at ones desk different behavior may be required (speaker interrupted by
headphone jack insertion) without the need to restart the app, OS or hdaudio driver,
just select a different config/button on the app.
The app could then just mute/unmute paths as appropriate.
Hannu said :
> 1) Finding out when something gets plugged or unpluged to the jacks.
> This can be done by implementing support for "unsolicited responses"
> sent by the codec when
> something gets plugged/unplugged. Otherwise the driver could use
> timeout() callbacks to check the jack precense detection bits every
> (say) 10 seconds.
"unsolicited responses" seem like an elegant solution, I'll try do some
spadework.
I think 10 seconds would be too long to wait after inserting/removing a
jack.
thanks again.
_______________________________________________
oss-devel mailing list
oss-devel at mailman.opensound.com
http://mailman.opensound.com/mailman/listinfo/oss-devel
__________________________________________________________
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.opensound.com/pipermail/oss-devel/attachments/20080616/96fcd8ce/attachment.htm
More information about the oss-devel
mailing list