firmware: cs_dsp: Add a debugfs entry containing control details
authorSimon Trimmer <simont@opensource.cirrus.com>
Tue, 28 Mar 2023 13:10:18 +0000 (14:10 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 3 Apr 2023 11:15:28 +0000 (12:15 +0100)
commit7a3f924cee4bdfe85eda4e636213e79d3fda6182
tree7f7dc88f4d7bfcb33f4ea3bc8c17ff36b10ba07c
parenta4d432e9132c0b29d857b09ca2ec4c1f455b5948
firmware: cs_dsp: Add a debugfs entry containing control details

The file named 'controls' in the DSP's debugfs root contains a
formatted table describing the controls defined within the loaded DSP
firmware, it is of the form

  name: len region:offset addr fwname algid ctltype flags en dirty

Where flags is represented as a character for each flag if set, or '-',
enabled is whether the control is enabled or disabled and dirty is
whether the control value is set in the cache but not the hardware.

Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230328131018.6820-1-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/firmware/cirrus/cs_dsp.c