diff options
author | Jerome Brunet <jbrunet@baylibre.com> | 2018-07-13 15:50:42 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-07-13 18:05:27 +0300 |
commit | d5418ae3f9443f911d4324c0cade988ced39cfbe (patch) | |
tree | 54335efa4d5935b6a65de4f67a577dd349c6256e /Documentation | |
parent | baacd8d100d571aa713c3c60b1471b9962e6ec8a (diff) | |
download | linux-d5418ae3f9443f911d4324c0cade988ced39cfbe.tar.xz |
ASoC: add DT documentation for the sound-name-prefix property
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/sound/name-prefix.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/name-prefix.txt b/Documentation/devicetree/bindings/sound/name-prefix.txt new file mode 100644 index 000000000000..645775908657 --- /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"; +}; |