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@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
_______________________________________________
oss-devel mailing list
oss-devel@mailman.opensound.com
http://mailman.opensound.com/mailman/listinfo/oss-devel

Reply via email to