• Peter Ujfalusi's avatar
    ASoC: tlv320dac33: Add new FIFO mode: mode 7 · 28e05d98
    Peter Ujfalusi authored
    Mode 7 of tlv320dac33 operates in the following way:
    The codec is in master mode.
    Host configures upper and lower thresholds in tlv320dac33
    During playback the codec will clock in the data until the
    upper threshold is reached in FIFO. At this point the codec
    stops the colocks on the serial bus.
    When the FIFO fill is reaching the lower threshold limit the
    codec will enable the clocks on the serial bus, and clocks
    in data till the upper threshold is reached.
    
    In this mode, we can also request interrupts for threshold
    events (upper, lower and alarm), which could be used for
    power management.
    
    At this point the interrupts are not enabled for this mode,
    but it can be taken into use in the future, when the surrounding
    code makes it possible to use it.
    Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@nokia.com>
    Acked-by: default avatarLiam Girdwood <lrg@slimlogic.oc.uk>
    Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
    28e05d98
tlv320dac33.c 36.4 KB