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)
commit715cdce04487fb23d5c10693b3bc01309fea955a
tree401405611a90b799e8d203135ff7f68cc48c9814
parent30896d3619bd80486a3f8a75d62ea3b58fc61ad5
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