ASoC: SOF: only allocate debugfs cache buffers for IPC flood entries
authorGuennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Mon, 15 Mar 2021 16:39:31 +0000 (11:39 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 16 Mar 2021 13:25:45 +0000 (13:25 +0000)
commit72c35856b5edc3f734be5699e9f6737190a1d897
tree51fc19ef7861acbd903b896a614fec9e3144fa3f
parent11fd6d8e097b5b179ea445e0206aaefc47e62845
ASoC: SOF: only allocate debugfs cache buffers for IPC flood entries

snd_sof_debugfs_buf_item() is an exported function and is called from
different locations to initialise different debugfs entries. However
.cache_buf is only needed for IPC flood entries. Limit allocations
respectively.

Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Xiuli Pan <xiulipan@outlook.com>
Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210315163932.18663-3-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/debug.c