]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: AMD: Always subtract bytescount
authorDaniel Kurtz <djkurtz@chromium.org>
Mon, 2 Jul 2018 21:19:52 +0000 (15:19 -0600)
committerMark Brown <broonie@kernel.org>
Tue, 3 Jul 2018 15:14:29 +0000 (16:14 +0100)
commit8efa2e7c6c4882ada7053106c67d0de17acc9632
tree401405611a90b799e8d203135ff7f68cc48c9814
parent987eb8191337ee43f93bc17808a21c0963ff17d6
ASoC: AMD: Always subtract bytescount

It is always correct to subtract out the starting bytescount value.  Even
in the case of 2^64 byte rollover (292 Million Years in the future
@ 48000 Hz) the math still works out.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp-pcm-dma.c