Skip to content

Commit 81da1ab

Browse files
committed
ASoC: SOF: Intel: hda: add dev_dbg() when DMIC number is overridden
It's useful for debug and system integration to show cases where we ignore the number of microphones reported by NHLT. Suggested-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
1 parent c291583 commit 81da1ab

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

sound/soc/sof/intel/hda.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,8 +562,12 @@ static int dmic_topology_fixup(struct snd_sof_dev *sdev,
562562
dmic_num = check_nhlt_dmic(sdev);
563563

564564
/* allow for module parameter override */
565-
if (hda_dmic_num != -1)
565+
if (hda_dmic_num != -1) {
566+
dev_dbg(sdev->dev,
567+
"overriding DMICs detected in NHLT tables %d by kernel param %d\n",
568+
dmic_num, hda_dmic_num);
566569
dmic_num = hda_dmic_num;
570+
}
567571

568572
switch (dmic_num) {
569573
case 1:

0 commit comments

Comments
 (0)