OpenCloudOS-Kernel/sound/soc
Pierre-Louis Bossart f7309dbe62
ASoC: SOF: reduce default verbosity of IPC logs
We currently log the initiation of an IPC as well at its success.

[ 3906.106987] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx: 0x80010000: GLB_DAI_MSG: CONFIG
[ 3906.107189] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx succeeded: 0x80010000: GLB_DAI_MSG: CONFIG

This is overkill in most cases, we already have a message thrown in
case of errors and have tracepoints enabled to check for IPC
duration. The only case where this might be useful is to check if
there is an interleaved IPC RX. Add a flag and only print those logs
if enabled.

In addition, the DMA_POSITION_UPDATE for traces brings limited
information in most cases and pollutes the logs for no good reason.

[ 3906.322256] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG: DMA_POSITION
[ 3906.322308] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG: DMA_POSITION
[ 3906.822261] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG: DMA_POSITION
[ 3906.822319] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG: DMA_POSITION
[ 3907.822261] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG: DMA_POSITION
[ 3907.822319] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG: DMA_POSITION
[ 3908.822251] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG: DMA_POSITION
[ 3908.822309] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG: DMA_POSITION

This information is only helpful when debugging the trace support, not
when using the trace. Add a flag to only print DMA position update
logs if enabled.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://lore.kernel.org/r/20220610214601.43005-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-06-14 09:14:20 +01:00
..
adi
amd Specify clock provider directly to CPU DAIs 2022-06-09 11:56:32 +01:00
atmel ASoC: atmel: Rename set_fmt_new back to set_fmt 2022-06-06 12:33:55 +01:00
au1x ASoC: au1x: Rename set_fmt_new back to set_fmt 2022-06-06 12:33:56 +01:00
bcm ASoC: bcm: Rename set_fmt_new back to set_fmt 2022-06-06 12:33:57 +01:00
cirrus ASoC: ep93xx: Rename set_fmt_new back to set_fmt 2022-06-06 12:33:58 +01:00
codecs ASoC: hdmi-codec: Update to modern DAI terminology 2022-06-13 14:56:07 +01:00
dwc ASoC: dwc: Rename set_fmt_new back to set_fmt 2022-06-06 12:33:59 +01:00
fsl ASoC: fsl_mqs: Add support for i.MX93 platform 2022-06-14 09:14:19 +01:00
generic Specify clock provider directly to CPU DAIs 2022-06-09 11:56:32 +01:00
hisilicon ASoC: hisilicon: Rename set_fmt_new back to set_fmt 2022-06-06 12:34:01 +01:00
img ASoC: img: Rename set_fmt_new back to set_fmt 2022-06-06 12:34:02 +01:00
intel ASoC: intel: sof_sdw: add RT711 SDCA card for MTL platform 2022-06-13 18:37:57 +01:00
jz4740 ASoC: jz4740-i2s: Rename set_fmt_new back to set_fmt 2022-06-06 12:34:04 +01:00
kirkwood
mediatek ASoC: mediatek: mt8186: Use new direct clock defines 2022-06-14 09:14:16 +01:00
meson Specify clock provider directly to CPU DAIs 2022-06-09 11:56:32 +01:00
mxs ASoC: mxs-saif: Rename set_fmt_new back to set_fmt 2022-06-06 12:34:07 +01:00
pxa ASoC: pxa: Rename set_fmt_new back to set_fmt 2022-06-06 12:34:08 +01:00
qcom Specify clock provider directly to CPU DAIs 2022-06-09 11:56:32 +01:00
rockchip Specify clock provider directly to CPU DAIs 2022-06-09 11:56:32 +01:00
samsung Specify clock provider directly to CPU DAIs 2022-06-09 11:56:32 +01:00
sh ASoC: sh: Rename set_fmt_new back to set_fmt 2022-06-06 12:34:13 +01:00
sof ASoC: SOF: reduce default verbosity of IPC logs 2022-06-14 09:14:20 +01:00
spear
sprd
sti ASoC: sti: Fix deadlock via snd_pcm_stop_xrun() call 2022-03-16 16:39:28 +00:00
stm Specify clock provider directly to CPU DAIs 2022-06-09 11:56:32 +01:00
sunxi ASoC: sun8i-codec: Partial revert to fix clock specifiers 2022-06-14 09:14:00 +01:00
tegra Specify clock provider directly to CPU DAIs 2022-06-09 11:56:32 +01:00
ti ASoC: ti: Rename set_fmt_new back to set_fmt 2022-06-06 12:34:18 +01:00
uniphier ASoC: uniphier: simplify the return expression of uniphier_aio_compr_set_params() 2022-05-09 12:48:41 +01:00
ux500 Specify clock provider directly to CPU DAIs 2022-06-09 11:56:32 +01:00
xilinx ASoC: xilinx: xlnx_i2s: Handle sysclk setting 2022-01-24 19:45:38 +00:00
xtensa ASoC: xtensa: Rename set_fmt_new back to set_fmt 2022-06-06 12:34:20 +01:00
Kconfig ASoC: soc-utils: Add kunit test for snd_soc_tdm_params_to_bclk() 2022-04-05 18:27:56 +01:00
Makefile ASoC: soc-utils: Add kunit test for snd_soc_tdm_params_to_bclk() 2022-04-05 18:27:56 +01:00
soc-ac97.c
soc-acpi.c ALSA: Replace acpi_bus_get_device() 2022-02-01 08:08:08 +01:00
soc-card.c ASoC: Introduce 'fixup_controls' card method 2022-06-10 13:32:20 +01:00
soc-component.c ASoC: soc-component: Update handling to component delays 2022-05-16 12:58:41 +01:00
soc-compress.c ASoC: soc-compress: Change the check for codec_dai 2022-03-14 08:29:11 +00:00
soc-core.c ASoC: Introduce 'fixup_controls' card method 2022-06-10 13:32:20 +01:00
soc-dai.c ASoC: soc-dai: Remove set_fmt_new callback 2022-06-06 12:34:21 +01:00
soc-dapm.c ASoC: dapm: Don't fold register value changes into notifications 2022-05-03 13:42:26 +01:00
soc-devres.c
soc-generic-dmaengine-pcm.c ASoC: soc-generic-dmaengine-pcm: Use default config when none is given 2022-05-04 15:31:19 +01:00
soc-jack.c ASoC: soc-card: Create jack kcontrol without pins 2022-04-14 17:37:21 +01:00
soc-link.c
soc-ops.c ASoC: ops: Remove unneeded delay.h inclusion 2022-06-06 12:38:46 +01:00
soc-pcm.c ASoC: soc-pcm: fix BE transition for TRIGGER_START 2022-05-23 14:52:59 +01:00
soc-topology-test.c
soc-topology.c ASoC: Pull in fixes 2022-04-05 10:29:12 +01:00
soc-utils-test.c ASoC: soc-utils: Add kunit test for snd_soc_tdm_params_to_bclk() 2022-04-05 18:27:56 +01:00
soc-utils.c ASoC: soc-utils: Add helper to calculate BCLK from TDM info 2022-04-05 18:27:55 +01:00