]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3f6e8b071f07a59f6e8cf751980de691851920fc
treee84817f90d45bde80c8ddfba4e290ae6cbe1f89b
parent8c2a30343799b0083abc537fbbde709fc118e8b6
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