ASoC: SOF: Intel: hda: add sanity check on SSP index reported by NHLT
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 25 Jul 2022 19:53:41 +0000 (14:53 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 25 Jul 2022 21:37:00 +0000 (22:37 +0100)
commite51699505042fb365df3a0ce68b850ccd9ad0108
tree7855c3b8bc55d720624f90fea6ec671df47ed8e3
parentbe0aa8d4b0fcb4532bf7973141e911998ab39508
ASoC: SOF: Intel: hda: add sanity check on SSP index reported by NHLT

We should have a limited trust in the BIOS and verify that the SSP
index reported in NHLT is valid for each platform.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20220725195343.145603-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda.c