ASoC: Intel: sof_sdw: add quirk override with kernel parameter
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 25 Jun 2020 19:12:56 +0000 (14:12 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 26 Jun 2020 12:35:15 +0000 (13:35 +0100)
commit2555ebe94df0ee30db56fdf6d3e2ea8205c2ec2d
treed401e6b427bfcd598a957edef531dd0b55357e8c
parent88cee34b776f80d2da04afb990c2a28c36799c43
ASoC: Intel: sof_sdw: add quirk override with kernel parameter

During the bring-up of new platforms, or to take care of specific
hardware reworks, it's useful to add a kernel parameter to override
the default DMI-based quirks.

For example, adding the following line in a .conf file in
/etc/modprobe.d/ will change the default quirk and log the changes if
dynamic debug is enabled.

options snd_soc_sof_sdw quirk=0x802

[  735.025785] sof_sdw sof_sdw: Overriding quirk 0x10 => 0x802
[  735.025787] sof_sdw sof_sdw: quirk realtek,jack-detect-source 2
[  735.025790] sof_sdw sof_sdw: quirk SOF_RT715_DAI_ID_FIX enabled

Tested on ICL RVP with add-on board instead of default codec.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20200625191308.3322-6-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_sdw.c