ASoC: Intel: sof-function-topology-lib: Print out the unsupported dmic count
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Thu, 19 Jun 2025 10:47:05 +0000 (13:47 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 19 Jun 2025 14:44:42 +0000 (15:44 +0100)
It is better to print out the non supported num_dmics than printing that
it is not matching with 2 or 4.

Fixes: 2fbeff33381c ("ASoC: Intel: add sof_sdw_get_tplg_files ops")
Cc: stable@vger.kernel.org
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
Link: https://patch.msgid.link/20250619104705.26057-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/common/sof-function-topology-lib.c

index 90fe7aa3df1cb461d4b17eb18fc7de1199278ac2..3cc81dcf047e3af98694ce6fb9d35d2491badfba 100644 (file)
@@ -73,7 +73,8 @@ int sof_sdw_get_tplg_files(struct snd_soc_card *card, const struct snd_soc_acpi_
                                break;
                        default:
                                dev_warn(card->dev,
-                                        "only -2ch and -4ch are supported for dmic\n");
+                                        "unsupported number of dmics: %d\n",
+                                        mach_params.dmic_num);
                                continue;
                        }
                        tplg_dev = TPLG_DEVICE_INTEL_PCH_DMIC;