ASoC: rt5514: Guard Hotword Model bytes loading
authorHsin-Yu Chao <hychao@chromium.org>
Mon, 28 Aug 2017 07:13:50 +0000 (15:13 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 29 Aug 2017 18:45:35 +0000 (19:45 +0100)
commiteb33869c720656c16e614ea40a175a014f60007b
tree0c2c8e2437ccf8ad9ef5ff105209a362b852ce36
parentd18420b0a0b8f8f51f55fc654b2e0eb86d8b41d7
ASoC: rt5514: Guard Hotword Model bytes loading

If the rt5514-spi driver is not enabled in kernel, hotword model will
not be loaded when "DSP Voice Wake Up" is set to turn on DSP mode, and
an error is logged instead.

Signed-off-by: Hsin-Yu Chao <hychao@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5514.c