Author: wmb Date: Fri Nov 2 21:44:40 2012 New Revision: 3411 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3411
Log: ALC5631 CODEC driver - make it possible to select different serial bit formats, for experimentation.
Modified: cpu/arm/olpc/alc5631.fth
Modified: cpu/arm/olpc/alc5631.fth ============================================================================== --- cpu/arm/olpc/alc5631.fth Fri Nov 2 21:43:10 2012 (r3410) +++ cpu/arm/olpc/alc5631.fth Fri Nov 2 21:44:40 2012 (r3411) @@ -16,6 +16,12 @@ h# 0000 h# 2c codec! \ SPOxMIX -> SPKRMUX, HPOVOL -> HPMUX ;
+h# 8001 value serial-mode +: left-justified h# 8001 to serial-mode ; +: i2s h# 8000 to serial-mode ; +: pcm-a h# 8002 to serial-mode ; +: pcm-b h# 8003 to serial-mode ; + : codec-on ( -- ) 0 0 codec! \ Reset
@@ -25,7 +31,7 @@
set-routing
- h# 8001 h# 34 codec! \ Slave mode, 16 bits, left justified, exchange L and R on playback + serial-mode h# 34 codec! \ Slave mode, 16 bits, left justified, exchange L and R on playback
\ The speaker gain ratio must be <= the ratio of SPKVDD to AVDD. \ In our system, SPKVDD is 5V and AVDD is 3.3V, so we need a gain ratio <= 1.51 .