Skip to content

Commit cb4db13

Browse files
committed
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 <[email protected]>
1 parent 45e07ee commit cb4db13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/sof/intel/hda.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ static int mclk_id_override = -1;
482482
module_param_named(mclk_id, mclk_id_override, int, 0444);
483483
MODULE_PARM_DESC(mclk_id, "SOF SSP mclk_id");
484484

485-
static int bt_link_mask_override;
485+
static int bt_link_mask_override = -1;
486486
module_param_named(bt_link_mask, bt_link_mask_override, int, 0444);
487487
MODULE_PARM_DESC(bt_link_mask, "SOF BT offload link mask");
488488

@@ -1532,7 +1532,7 @@ struct snd_soc_acpi_mach *hda_machine_select(struct snd_sof_dev *sdev)
15321532
mach->mach_params.bt_link_mask);
15331533

15341534
/* allow for module parameter override */
1535-
if (bt_link_mask_override) {
1535+
if (bt_link_mask_override != -1) {
15361536
dev_dbg(sdev->dev, "overriding BT link detected in NHLT tables %#x by kernel param %#x\n",
15371537
mach->mach_params.bt_link_mask, bt_link_mask_override);
15381538
mach->mach_params.bt_link_mask = bt_link_mask_override;

0 commit comments

Comments
 (0)