ASoC: rt5514-spi: Let the buf_size to align with period_bytes
authorOder Chiou <oder_chiou@realtek.com>
Wed, 8 Nov 2017 11:21:47 +0000 (19:21 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 8 Nov 2017 11:26:56 +0000 (11:26 +0000)
commitc4a71ff78e668a75a4a3cfd9ebbfbd5cbe8da5fb
tree8a8b9e7d10cf4e2532a0892b8e0cb0715d112ec3
parent28aef24d726f8d503fde24ccf8a14b214355cfb5
ASoC: rt5514-spi: Let the buf_size to align with period_bytes

The patch lets the buf_size to align with period_bytes to prevent the
buffer reading over the real size of the DSP buffer and also avoid to
calculate the wrong size of remaining data.

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