OSDN Git Service

ASoC: SOF: trace: move to opt-in with Kconfig and module parameter
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 27 Sep 2019 20:05:28 +0000 (15:05 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 1 Oct 2019 17:34:06 +0000 (18:34 +0100)
commit2ab4c50f6955514150f83b47b7aee3ba5fe3ac1d
treea9162ffa50d0ada22b1c3b6f770b391931f4e690
parent767b0bc590576cfda6e6bf2cd45fb8e1843b3ecb
ASoC: SOF: trace: move to opt-in with Kconfig and module parameter

In a number of debug cases, the DMA-based trace can add problems
(e.g. with HDaudio channel allocation). It also generates additional
traffic on the bus and if the DMA handling is unreliable will prevent
audio use-cases from working normally. Using the trace also requires
tools to be installed on the target.

The trace can be instead handled as dynamic debug. We can use a
Kconfig to force the trace to be enabled in all cases, or use a module
parameter to enable it on a need-basis, e.g. by setting "options
snd_sof sof_debug=0x1" in a /etc/modprobe.d file.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20190927200538.660-4-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/Kconfig
sound/soc/sof/core.c
sound/soc/sof/sof-priv.h
sound/soc/sof/trace.c