• Daniel Kurtz's avatar
    ASoC: AMD: Reset bytescount when starting transaction · 1a337a1e
    Daniel Kurtz authored
    The pointer() callback gets its value by reading the I2S BYTE_COUNT
    register.  This is a 64-bit runnning transaction counter. If a
    transaction was aborted in the middle of a sample buffer, the counter will
    stop counting on a number divisible by the buffer size.  Since we actually
    use it as a pointer into an aligned buffer, however, we do want to ensure
    that it always starts at a number divisible by the buffer size when
    starting a transaction, hence we reset it whenever starting a transaction.
    
    To accomplish this, it wasn't necessary to zero bytescount at the
    termination of each transaction, so remove this unnecessary code.
    Signed-off-by: default avatarDaniel Kurtz <djkurtz@chromium.org>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    1a337a1e
acp-pcm-dma.c 38.4 KB