ASoC: Intel: Skylake: stop probe if HDaudio capabilities don't exist
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 7 Dec 2018 23:50:05 +0000 (17:50 -0600)
committerMark Brown <broonie@kernel.org>
Thu, 13 Dec 2018 15:35:48 +0000 (15:35 +0000)
commitfa11ab5688f744bc868356f3f14c3bb9f283a780
treedaaa9d8e5c4caa23b71bf4a57c783a8ebc8b1e6f
parentc746de8dbc7b0ae9df491f7a99a6dab34203b51b
ASoC: Intel: Skylake: stop probe if HDaudio capabilities don't exist

Check immediately if required HDaudio capabilities can't be found (no
PPCAP or no streams exposed in GCAP), and move all DMA inits after the
error tests.

PPCAP and GCAP are not reliable indicators of DSP presence, but if
they don't exist then the driver will not work.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl.c