]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit423cff4563fdccfdb6cf3a8bf923e73e9199d300
tree8a8b9e7d10cf4e2532a0892b8e0cb0715d112ec3
parent1984e39d56b4657602b707486c65b0b12cf27f6f
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