ASoC: rt5514: reset dma_offset at hw_params
authoroder_chiou@realtek.com <oder_chiou@realtek.com>
Mon, 7 Aug 2017 10:39:32 +0000 (18:39 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 7 Aug 2017 11:32:31 +0000 (12:32 +0100)
commitb56bff43a965ffe03b4a994fd1a102059d272807
tree18072f5b5da56f8e04f44bc148b03a2d116b81c0
parent818010dac09183e99ff02e35836544b2e1d659f3
ASoC: rt5514: reset dma_offset at hw_params

dma_offset needs reset every time otherwise for consecutive PCM
open the last dma_offset value will cause incorrect pointer position
be reported to user space.

Signed-off-by: Hsin-Yu Chao <hychao@chromium.org>
Signed-off-by: Oder Chiou <oder_chiou@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5514-spi.c