summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/sound/name-prefix.txt
blob: 6457759086570626c78c11b6c1675534444a1662 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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";
};