ASoC: SOF: add quirk to override topology mclk_id
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 19 Sep 2022 11:53:48 +0000 (13:53 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 19 Sep 2022 17:11:45 +0000 (18:11 +0100)
commitd136949dd8e2e309dc2f186507486b71cbe9acdb
treeaa86d76d3b638a920d7e160c3f1385e21a433d88
parent9ccbc2e12e01b39b804774c3207d2474dd992d95
ASoC: SOF: add quirk to override topology mclk_id

Some Intel-based platforms rely on a topology file that hard-codes the
use of MCLK0. This is incorrect in 10% of the cases. Rather than
generating yet another set of topology files, this patch adds a kernel
module parameter to override the topology value.

In hindsight, we should never have allowed mclks to be specified in
topology, this is a hardware-level information that should not have
been visible in the topology.

Future patches will try to set this value automagically, e.g. by
parsing the NHLT content.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20220919115350.43104-3-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda.c
sound/soc/sof/ipc3-topology.c
sound/soc/sof/sof-priv.h