• Luca Ceresoli's avatar
    ASoC: dapm: debugfs: add component to route lines · cbd9eed8
    Luca Ceresoli authored
    
    
    debugfs entries for DAPM widgets have the following form:
    
      Left ADC: Off  in 1 out 0 - R2(0x2) mask 0x2
       stream Left HiFi Capture inactive
       out  "static" "Capture"
       in  "static" "Left PGA"
    
    Lines with the "in" and "out" prefixes describe routes from/to other
    widgets presenting the path name and the connected widget name.
    
    This is ambiguous in case of cards having multiple widgets with the same
    name in different components. For example the STM32MP157A-DK1 board
    (arch/arm/boot/dts/st/stm32mp15xx-dkx.dtsi) has a "Capture" widget in both
    the "cs42l51.0-004a" and the "hdmi-audio-codec.1.auto" components.
    
    Avoid the ambiguity by adding the component name to the "in" and "out"
    lines. Add the new field at the end to minimize backward compatibility
    issues. The existing vizdapm tool continues working after this change.
    
    The output becomes:
    
      Left ADC: Off  in 1 out 0 - R2(0x2) mask 0x2
       stream Left HiFi Capture inactive
       out  "static" "Capture" "cs42l51.0-004a"
       in  "static" "Left PGA" "cs42l51.0-004a"
    Signed-off-by: default avatarLuca Ceresoli <luca.ceresoli@bootlin.com>
    Reviewed-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
    Link: https://lore.kernel.org/r/20240416-vizdapm-ng-v1-1-5d33c0b57bc5@bootlin.com
    
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    cbd9eed8
soc-dapm.c 122 KB