• Jeeja KP's avatar
    ASoC: Intel: Skylake: Fix CLDMA buffer wrap case · e797af53
    Jeeja KP authored
    When downloading the firmware/module, if the ring buffer boundary
    is reached, we need to wrap to the zeroth position. On next copy
    we need to copy till end of buffer and the remaining buffer needs
    to be copied from zeroth position.
    
    In this case copy was not handled correctly when wrap condition
    is reached which caused invalid data to be copied resulting in
    invalid hash failure.
    
    This patch fixes the issue by handling copy at the boundary
    condition correctly.
    Signed-off-by: default avatarJeeja KP <jeeja.kp@intel.com>
    Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    e797af53
skl-sst-cldma.c 9.89 KB