diff options
| author | Daniel Kurtz <[email protected]> | 2018-07-02 15:19:51 -0600 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2018-07-03 16:15:30 +0100 |
| commit | 1a337a1e7885085d224583c766614e5945bde671 (patch) | |
| tree | 109a40f420b82740d0ec52cec81790320a00f24c /tools/perf/scripts/python | |
| parent | 8c6b964eddd2c39a9796899b2be099ece1b6c6ca (diff) | |
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 <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions