ASoC: dapm: debugfs: show the widget type
authorLuca Ceresoli <luca.ceresoli@bootlin.com>
Tue, 16 Apr 2024 06:00:25 +0000 (08:00 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 21 Apr 2024 00:58:16 +0000 (09:58 +0900)
commit5b1047dcf80b35bafcacbd10b57342d1a96139c0
tree7d36e4e1f7f161ac2c3de7390f66a6230a29d788
parentcbd9eed87107bb6d6e537e79aeea65399898ca41
ASoC: dapm: debugfs: show the widget type

To make the widget debugfs files more informative, add a line showing the
widget type string.

Keeping backward compatibility is nice to have being debugfs, and ease of
parsing by both humans and software is also good. To maximize both with a
reasonable effort add a new line without thouching the already complex
format of the first line. The syntax is meant to be a key/value pair.

The existing vizdapm tool continues working after this change, ignoring the
new line.

The new format is:

  Left ADC: Off  in 1 out 0 - R2(0x2) mask 0x2
   stream Left HiFi Capture inactive
   widget-type adc
   out  "static" "Capture" "cs42l51.0-004a"
   in  "static" "Left PGA" "cs42l51.0-004a"

Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20240416-vizdapm-ng-v1-2-5d33c0b57bc5@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c