Author: wmb Date: 2009-11-23 05:06:06 +0100 (Mon, 23 Nov 2009) New Revision: 1500
Modified: dev/hdaudio/conexant.fth Log: OLPC trac 9701 - turn off speaker if headphones attached
Modified: dev/hdaudio/conexant.fth =================================================================== --- dev/hdaudio/conexant.fth 2009-11-22 00:21:26 UTC (rev 1499) +++ dev/hdaudio/conexant.fth 2009-11-23 04:06:06 UTC (rev 1500) @@ -43,6 +43,11 @@ ;
: cx2058x-enable-playback ( -- ) + h# 19 to node pin-sense? if \ headphones attached + h# 1f to node power-off \ turn off speaker + else \ no headphones + h# 1f to node power-on \ turn on speaker + then h# 10 to node h# 70640 cmd h# 20000 stream-format or cmd ; : cx2058x-disable-playback ( -- ) ;
openfirmware@openfirmware.info