Skip to content

Commit

Permalink
ASoC: SOF: Intel: hda: add dev_dbg() when DMIC number is overridden
Browse files Browse the repository at this point in the history
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>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20210208233336.59449-12-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Pierre-Louis Bossart authored and Mark Brown committed Feb 10, 2021
1 parent b908853 commit 026370c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sound/soc/sof/intel/hda.c
Original file line number Diff line number Diff line change
Expand Up @@ -614,8 +614,12 @@ static int dmic_topology_fixup(struct snd_sof_dev *sdev,
dmic_num = check_nhlt_dmic(sdev);

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

switch (dmic_num) {
case 1:
Expand Down

0 comments on commit 026370c

Please sign in to comment.