]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt5514-spi: Get the period_bytes in the copy work to make sure the value correctly
authorOder Chiou <oder_chiou@realtek.com>
Mon, 17 Sep 2018 11:03:09 +0000 (19:03 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 17 Sep 2018 17:48:40 +0000 (10:48 -0700)
commit2eec4551adbf54597d4b10e23cb48a942138d8d5
tree6692149f4ce957c90723b9ba5f81d60fa79e4238
parent09d632167a5f76f5dbc1d044890d05f24fea6d11
ASoC: rt5514-spi: Get the period_bytes in the copy work to make sure the value correctly

The value of period_bytes will get the zero before the hw_params() is not
run completely. Move the function snd_pcm_lib_period_bytes() to copy work,
and make sure that is not zero.

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