ASoC: SOF: topology: show clks_control value in dynamic debug
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 4 Oct 2021 21:27:27 +0000 (16:27 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 5 Oct 2021 12:09:54 +0000 (13:09 +0100)
We log most of the SSP configurations except the clks_control. This
will be used to enable bclk/mclk early start so it's useful to show
the information to the user.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <bard.liao@intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20211004212729.199550-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/topology.c

index 44d6008..32461f6 100644 (file)
@@ -2825,12 +2825,12 @@ static int sof_link_ssp_load(struct snd_soc_component *scomp, int index,
                config[i].ssp.rx_slots = le32_to_cpu(hw_config[i].rx_slots);
                config[i].ssp.tx_slots = le32_to_cpu(hw_config[i].tx_slots);
 
-               dev_dbg(scomp->dev, "tplg: config SSP%d fmt 0x%x mclk %d bclk %d fclk %d width (%d)%d slots %d mclk id %d quirks %d\n",
+               dev_dbg(scomp->dev, "tplg: config SSP%d fmt %#x mclk %d bclk %d fclk %d width (%d)%d slots %d mclk id %d quirks %d clks_control %#x\n",
                        config[i].dai_index, config[i].format,
                        config[i].ssp.mclk_rate, config[i].ssp.bclk_rate,
                        config[i].ssp.fsync_rate, config[i].ssp.sample_valid_bits,
                        config[i].ssp.tdm_slot_width, config[i].ssp.tdm_slots,
-                       config[i].ssp.mclk_id, config[i].ssp.quirks);
+                       config[i].ssp.mclk_id, config[i].ssp.quirks, config[i].ssp.clks_control);
 
                /* validate SSP fsync rate and channel count */
                if (config[i].ssp.fsync_rate < 8000 || config[i].ssp.fsync_rate > 192000) {