• Janusz Krzysztofik's avatar
    ASoC: OMAP: Make use of DMA channel self linking on OMAP1510 · 64844a6a
    Janusz Krzysztofik authored
    Use newly implemented DMA channel self linking on OMAP1510 like on other OMAP
    models. Remove unnecessary DMA transfer restart from interrupt handler
    routine.
    
    The interrupt routine used to maintain a period index, originally needed for
    counting up periods up to a full buffer in order to restart the DMA transfer.
    For some time, this counter is also used as a replacement for hardware DMA
    progress counter that has been found unusable on OMAP1510 in case of playback.
    Thus, the period index calculation cannot be omitted completely. However, the
    accuracy of this counter can still suffer from missing DMA interrupts.
    
    In order to work correctly, it requires patch 1 from this series also applied:
    [RFC][PATCH 1/3] ARM: OMAP: DMA: Add support for DMA channel self linking on OMAP1510
    
    Created against linux-2.6.31-rc5.
    
    Tested on Amstrad Delta.
    Signed-off-by: default avatarJanusz Krzysztofik <jkrzyszt@tis.icnet.pl>
    Acked-by: default avatarJarkko Nikula <jhnikula@gmail.com>
    Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
    64844a6a
omap-pcm.c 10.4 KB