]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: Intel: drop HDA codec upon probe failure
authorKai Vehmanen <kai.vehmanen@linux.intel.com>
Wed, 18 Dec 2019 00:26:13 +0000 (18:26 -0600)
committerMark Brown <broonie@kernel.org>
Wed, 18 Dec 2019 19:53:37 +0000 (19:53 +0000)
commit261b1a97c5d9a058c245a45c2d6d4a8fea8874c9
tree118aa1fa4215c252d722d95defcf2f46165be53a
parentbd9aff194666b5037ab476a7d2c1a369e991fa90
ASoC: SOF: Intel: drop HDA codec upon probe failure

In case a HDA codec probe fails, do not raise error immediately,
but instead remove the codec from bus->codec_mask and continue
probe for other codecs.

This allows for more robust behaviour in cases where one codec
in the system is faulty. SOF driver load can still proceed with
the codecs that can be probed successfully. Probe may still
fail if suitable machine driver is not found, but in many
cases the generic HDA machine driver can operate with a subset
of codecs.

Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20191218002616.7652-6-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-codec.c
sound/soc/sof/intel/hda.h