ASoC: SOF: core: allow module parameter to override dma trace Kconfig
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Tue, 7 Sep 2021 18:46:47 +0000 (13:46 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 13 Sep 2021 00:59:06 +0000 (01:59 +0100)
commit6ade849e30b470d11d591528d7cebb3174298336
treee84817f90d45bde80c8ddfba4e290ae6cbe1f89b
parentc6b1b57469b4768b83e9ccc9bc3e5c2c7eb93013
ASoC: SOF: core: allow module parameter to override dma trace Kconfig

Most distributions do not enable the SOF developer options and
specifically the DMA trace. This is problematic for end-user/community
support since the sof-logger tool cannot extract valuable information.

Conversely in rare cases the DMA trace can lead to Heisenbugs by
creating more traffic to system memory and more interrupts.

This patch changes the logic so that the Kconfig value is used as a
default value for a module parameter, but this value can be changed as
needed. Users can override the distro DMA trace selection.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Daniel Baluta <daniel.baluta@gmail.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20210907184648.33306-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/core.c