ASoC: rt5514: reset dma_offset at hw_params
author[email protected] <[email protected]>
Mon, 7 Aug 2017 10:39:32 +0000 (18:39 +0800)
committerMark Brown <[email protected]>
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 <[email protected]>
Signed-off-by: Oder Chiou <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
sound/soc/codecs/rt5514-spi.c