From: Jerome Brunet Date: Fri, 13 Jul 2018 12:50:42 +0000 (+0200) Subject: ASoC: add DT documentation for the sound-name-prefix property X-Git-Tag: v4.19~92^2~2^2~169 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d5418ae3f9443f911d4324c0cade988ced39cfbe;p=platform%2Fkernel%2Flinux-rpi3.git ASoC: add DT documentation for the sound-name-prefix property Signed-off-by: Jerome Brunet Signed-off-by: Mark Brown --- diff --git a/Documentation/devicetree/bindings/sound/name-prefix.txt b/Documentation/devicetree/bindings/sound/name-prefix.txt new file mode 100644 index 0000000..6457759 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/name-prefix.txt @@ -0,0 +1,24 @@ +Name prefix: + +Card implementing the routing property define the connection between +audio components as list of string pair. Component using the same +sink/source names may use the name prefix property to prepend the +name of their sinks/sources with the provided string. + +Optional name prefix property: +- sound-name-prefix : string using as prefix for the sink/source names of + the component. + +Example: Two instances of the same component. + +amp0: analog-amplifier@0 { + compatible = "simple-audio-amplifier"; + enable-gpios = <&gpio GPIOH_3 0>; + sound-name-prefix = "FRONT"; +}; + +amp1: analog-amplifier@1 { + compatible = "simple-audio-amplifier"; + enable-gpios = <&gpio GPIOH_4 0>; + sound-name-prefix = "BACK"; +};