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)
commitfbb673f7c6555d5434ad005f86b0d4368b1203d9
tree6692149f4ce957c90723b9ba5f81d60fa79e4238
parent75383f8d39d4c0fb96083dd460b7b139fbdac492
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