ASoC: rt5514: Move the auto disable DSP function to set_bias_level()
authoroder_chiou@realtek.com <oder_chiou@realtek.com>
Mon, 10 Jul 2017 02:03:12 +0000 (10:03 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 17 Jul 2017 11:05:47 +0000 (12:05 +0100)
commitea4daf81fc5a37766a606479f592cd9dfe6f1da8
tree639685ddfb3c9f30a4d242259e23c2578692e12e
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877
ASoC: rt5514: Move the auto disable DSP function to set_bias_level()

Move the auto disable DSP function from the widget event "DAPM Pre" to
the set_bias_level() function to avoid the unexpected behavior. While the
SPI was recording using the DAI "rt5514-dsp-cpu-dai", the event "DAPM Pre"
would be manipulated even the DAPM widgets were not connected, and it also
would power off the DSP that cause the DSP buffered data lost. So the auto
disable DSP function should move to the set_bias_level() function to make
sure that it is only manipulated by the DAPM widgets are connected.

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