]> 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)
commitd88d7e658a40a0984cf2c1b8bd8fc63526ec3ee3
tree401405611a90b799e8d203135ff7f68cc48c9814
parente7b4b7b6ddddb914a42be6ad44d705b2fe47a1f5
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