Skip to content

Commit 7f826da

Browse files
pujarsbroonie
authored andcommitted
ASoC: Add json-schema documentation for sound-name-prefix
The 'sound-name-prefix' is used to prepend suitable strings to a component widgets or controls. This is helpful when there are multiple instances of the same component. Add relevant json-schema and is inspired from sound-name-prefix.txt documentation. Signed-off-by: Sameer Pujar <spujar@nvidia.com> Cc: Jerome Brunet <jbrunet@baylibre.com> Cc: Rob Herring <robh+dt@kernel.org> Reviewed-by: Jerome Brunet <jbrunet@baylibre.com> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/1630686919-19495-2-git-send-email-spujar@nvidia.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 0c7985e commit 7f826da

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/sound/name-prefix.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Component sound name prefix
8+
9+
maintainers:
10+
- Jerome Brunet <jbrunet@baylibre.com>
11+
12+
properties:
13+
sound-name-prefix:
14+
$ref: /schemas/types.yaml#/definitions/string
15+
description: |
16+
Card implementing the routing property define the connection between
17+
audio components as list of string pair. Component using the same
18+
sink/source names may use this property to prepend the name of their
19+
sinks/sources with the provided string.
20+
21+
additionalProperties: true

0 commit comments

Comments
 (0)