Changeset 3411


Ignore:
Timestamp:
Nov 2, 2012, 9:44:40 PM (2 years ago)
Author:
wmb
Message:

ALC5631 CODEC driver - make it possible to select different serial bit formats, for experimentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpu/arm/olpc/alc5631.fth

    r3305 r3411  
    1717;
    1818
     19h# 8001 value serial-mode
     20: left-justified  h# 8001 to serial-mode  ;
     21: i2s    h# 8000 to serial-mode  ;
     22: pcm-a  h# 8002 to serial-mode  ;
     23: pcm-b  h# 8003 to serial-mode  ;
     24
    1925: codec-on  ( -- )
    2026   0 0 codec!  \ Reset
     
    2632   set-routing
    2733
    28    h# 8001 h# 34 codec!  \ Slave mode, 16 bits, left justified, exchange L and R on playback
     34   serial-mode h# 34 codec!  \ Slave mode, 16 bits, left justified, exchange L and R on playback
    2935
    3036   \ The speaker gain ratio must be <= the ratio of SPKVDD to AVDD.
Note: See TracChangeset for help on using the changeset viewer.