Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: SOF: Intel: allow module parameter override BT link to 0

The existing code test if (bt_link_mask_override) to overwrite the BT
link mask. This doesn't allow user to disable the BT link mask. User may
want to disable the BT link when it is detected by the NHLT.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://patch.msgid.link/20260203111545.3742255-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Bard Liao and committed by
Mark Brown
023dfede d83039b5

+2 -2
+2 -2
sound/soc/sof/intel/hda.c
··· 482 482 module_param_named(mclk_id, mclk_id_override, int, 0444); 483 483 MODULE_PARM_DESC(mclk_id, "SOF SSP mclk_id"); 484 484 485 - static int bt_link_mask_override; 485 + static int bt_link_mask_override = -1; 486 486 module_param_named(bt_link_mask, bt_link_mask_override, int, 0444); 487 487 MODULE_PARM_DESC(bt_link_mask, "SOF BT offload link mask"); 488 488 ··· 1532 1532 mach->mach_params.bt_link_mask); 1533 1533 1534 1534 /* allow for module parameter override */ 1535 - if (bt_link_mask_override) { 1535 + if (bt_link_mask_override != -1) { 1536 1536 dev_dbg(sdev->dev, "overriding BT link detected in NHLT tables %#x by kernel param %#x\n", 1537 1537 mach->mach_params.bt_link_mask, bt_link_mask_override); 1538 1538 mach->mach_params.bt_link_mask = bt_link_mask_override;