Skip to contentSkip to conversation

ASoC: Intel: sof_rt5682: Add quirk override support

PATCH In review Bard Liao 2 participants 2 messages Nov 11, 2025

Subsystems (3)
lore
Share & tools
lore

Bard Liao

author maintainer
#0 lore raw

PATCH 1/1 ASoC: Intel: sof_rt5682: Add quirk override support

From: Balamurugan C <[email protected]>

adding quirk override support to configure different quirk configuration at runtime.

---
 sound/soc/intel/boards/sof_rt5682.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
sound/soc/intel/boards/sof_rt5682.c +10 -0
index 4994aaccc583..6ca114c30ae1 100644
@@ -35,6 +35,10 @@
 static unsigned long sof_rt5682_quirk = SOF_RT5682_MCLK_EN |
 					SOF_SSP_PORT_CODEC(0);
 
+static int quirk_override = -1;
+module_param_named(quirk, quirk_override, int, 0444);
+MODULE_PARM_DESC(quirk, "Board-specific quirk override");
+
 static int sof_rt5682_quirk_cb(const struct dmi_system_id *id)
 {
 	sof_rt5682_quirk = (unsigned long)id->driver_data;
@@ -643,6 +647,12 @@ static int sof_audio_probe(struct platform_device *pdev)
 
 	dmi_check_system(sof_rt5682_quirk_table);
 
+	if (quirk_override != -1) {
+		dev_info(&pdev->dev, "Overriding quirk 0x%lx => 0x%x\n",
+			 sof_rt5682_quirk, quirk_override);
+		sof_rt5682_quirk = quirk_override;
+	}
+
 	dev_dbg(&pdev->dev, "sof_rt5682_quirk = %lx\n", sof_rt5682_quirk);
 
 	/* initialize ctx with board quirk */
Signature · 1 line
2.43.0
maintainer
#1 lore raw
Quoted 4 lines · Bard Liao

adding quirk override support to configure different quirk configuration at runtime.

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: Intel: sof_rt5682: Add quirk override support

      commit: b3a5302484033331af37569f7277d00131694b57

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark