ASoC: Intel: cht_bsw_rt5645: harden ACPI device detection
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Tue, 4 Apr 2017 19:32:29 +0000 (19:32 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Apr 2017 10:41:20 +0000 (12:41 +0200)
commit584f4318f9236a8b30b0d8717bb047749bc72095
treefe5a839590370490884d5defa7704df7d53ed7b6
parent4060a32e9d2471b030ce21f0519daecf2f17db5e
ASoC: Intel: cht_bsw_rt5645: harden ACPI device detection

[ Upstream commit 42648c2270ca0c96935dfc5d0f5c4f8d2406cf75 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/intel/boards/cht_bsw_rt5645.c