ASoC: Intel: bytcht_es8316: fix HID handling
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 11 Jan 2018 19:52:08 +0000 (13:52 -0600)
committerMark Brown <broonie@kernel.org>
Fri, 12 Jan 2018 21:05:17 +0000 (21:05 +0000)
commit3c22a73fb87366851dcf48d852357a6d808921cc
tree2608eb3c2e627e4bf3acfbec857d3c818261ea89
parent2ebec60bc9569475823baa3899b3a8334e52bcbf
ASoC: Intel: bytcht_es8316: fix HID handling

Same problem as with previous machine drivers, the codec dai
uses a hard-coded name of "i2c-ESSX8316:00" but ACPI provides
"i2c-ESSX8316:01" in some systems.

Fix by overriding the hard-coded value with the codec name derived
from the HID information

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=189261
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-By: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/Kconfig
sound/soc/intel/boards/bytcht_es8316.c