Skip to content

Commit 9559278

Browse files
pujarsbroonie
authored andcommitted
ASoC: dt-bindings: Add sample format conversion
Presently "convert-channels" and "convert-rate" DT bindings are available for channel and rate fixups respectively. Similarly add "convert-sample-format" binding to fixup DAI sample format as well. This is added to audio-graph-card based bindings. Signed-off-by: Sameer Pujar <spujar@nvidia.com> Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/1659936452-2254-3-git-send-email-spujar@nvidia.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent b79b622 commit 9559278

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

Documentation/devicetree/bindings/sound/audio-graph-port.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ properties:
2222
$ref: "/schemas/sound/dai-params.yaml#/$defs/dai-sample-rate"
2323
convert-channels:
2424
$ref: "/schemas/sound/dai-params.yaml#/$defs/dai-channels"
25+
convert-sample-format:
26+
$ref: "/schemas/sound/dai-params.yaml#/$defs/dai-sample-format"
2527

2628
patternProperties:
2729
"^endpoint(@[0-9a-f]+)?":
@@ -67,6 +69,8 @@ patternProperties:
6769
$ref: "/schemas/sound/dai-params.yaml#/$defs/dai-sample-rate"
6870
convert-channels:
6971
$ref: "/schemas/sound/dai-params.yaml#/$defs/dai-channels"
72+
convert-sample-format:
73+
$ref: "/schemas/sound/dai-params.yaml#/$defs/dai-sample-format"
7074

7175
dai-tdm-slot-width-map:
7276
description: Mapping of sample widths to slot widths. For hardware

Documentation/devicetree/bindings/sound/audio-graph.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ properties:
3030
$ref: "/schemas/sound/dai-params.yaml#/$defs/dai-sample-rate"
3131
convert-channels:
3232
$ref: "/schemas/sound/dai-params.yaml#/$defs/dai-channels"
33+
convert-sample-format:
34+
$ref: "/schemas/sound/dai-params.yaml#/$defs/dai-sample-format"
3335

3436
pa-gpios:
3537
maxItems: 1

Documentation/devicetree/bindings/sound/dai-params.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ $defs:
1919
minimum: 1
2020
maximum: 32
2121

22+
dai-sample-format:
23+
description: Audio sample format used by DAI
24+
$ref: /schemas/types.yaml#/definitions/string
25+
enum:
26+
- s8
27+
- s16_le
28+
- s24_le
29+
- s24_3le
30+
- s32_le
31+
2232
dai-sample-rate:
2333
description: Audio sample rate used by DAI
2434
$ref: /schemas/types.yaml#/definitions/uint32

0 commit comments

Comments
 (0)