ASoC: Intel: cht_bsw_rt5645: harden ACPI device detection
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 26 Jan 2017 20:09:41 +0000 (14:09 -0600)
committerMark Brown <broonie@kernel.org>
Tue, 31 Jan 2017 20:12:31 +0000 (20:12 +0000)
commit42648c2270ca0c96935dfc5d0f5c4f8d2406cf75
tree79dcdbd7da4eed4c2eb3d2279c729896da0d8920
parente1d06914542a198a6ab3d41b9d7f5d62dd744f8b
ASoC: Intel: cht_bsw_rt5645: harden ACPI device detection

Fix classic issue of having multiple codecs listed in DSDT
but a single one actually enabled. The previous code did
not handle such errors and could also lead to uninitalized
configurations

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