]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rsnd: ssi: remove unnesessary period_pos
authorJiada Wang <jiada_wang@mentor.com>
Fri, 8 Dec 2017 06:15:39 +0000 (22:15 -0800)
committerMark Brown <broonie@kernel.org>
Fri, 8 Dec 2017 18:53:32 +0000 (18:53 +0000)
commit923e8b6050f234224e6d067fc6a060d7ed766268
treeddfb06ac68d3223cdb354ff1ae7d947f4ba56df5
parent7cd728837394659527367dd273d368598834c133
ASoC: rsnd: ssi: remove unnesessary period_pos

period_pos can always be calculated by byte_pos and
byte_per_period, there is no reason to maintain this
variable in rsnd_dai_stream.

This patch removes period_pos from rsnd_ssi and calculates
next_period_byte with consideration of actual byte_pos value.

Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/ssi.c