Home
last modified time | relevance | path

Searched hist:"1 a337a1e7885085d224583c766614e5945bde671" (Results 1 – 1 of 1) sorted by relevance

/linux/sound/soc/amd/
H A Dacp-pcm-dma.cdiff 1a337a1e7885085d224583c766614e5945bde671 Mon Jul 02 23:19:51 CEST 2018 Daniel Kurtz <djkurtz@chromium.org> ASoC: AMD: Reset bytescount when starting transaction

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: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>