Commit 95592787 authored by Sameer Pujar's avatar Sameer Pujar Committed by Mark Brown

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: default avatarSameer Pujar <spujar@nvidia.com>
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/1659936452-2254-3-git-send-email-spujar@nvidia.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent b79b6220
...@@ -22,6 +22,8 @@ properties: ...@@ -22,6 +22,8 @@ properties:
$ref: "/schemas/sound/dai-params.yaml#/$defs/dai-sample-rate" $ref: "/schemas/sound/dai-params.yaml#/$defs/dai-sample-rate"
convert-channels: convert-channels:
$ref: "/schemas/sound/dai-params.yaml#/$defs/dai-channels" $ref: "/schemas/sound/dai-params.yaml#/$defs/dai-channels"
convert-sample-format:
$ref: "/schemas/sound/dai-params.yaml#/$defs/dai-sample-format"
patternProperties: patternProperties:
"^endpoint(@[0-9a-f]+)?": "^endpoint(@[0-9a-f]+)?":
...@@ -67,6 +69,8 @@ patternProperties: ...@@ -67,6 +69,8 @@ patternProperties:
$ref: "/schemas/sound/dai-params.yaml#/$defs/dai-sample-rate" $ref: "/schemas/sound/dai-params.yaml#/$defs/dai-sample-rate"
convert-channels: convert-channels:
$ref: "/schemas/sound/dai-params.yaml#/$defs/dai-channels" $ref: "/schemas/sound/dai-params.yaml#/$defs/dai-channels"
convert-sample-format:
$ref: "/schemas/sound/dai-params.yaml#/$defs/dai-sample-format"
dai-tdm-slot-width-map: dai-tdm-slot-width-map:
description: Mapping of sample widths to slot widths. For hardware description: Mapping of sample widths to slot widths. For hardware
......
...@@ -30,6 +30,8 @@ properties: ...@@ -30,6 +30,8 @@ properties:
$ref: "/schemas/sound/dai-params.yaml#/$defs/dai-sample-rate" $ref: "/schemas/sound/dai-params.yaml#/$defs/dai-sample-rate"
convert-channels: convert-channels:
$ref: "/schemas/sound/dai-params.yaml#/$defs/dai-channels" $ref: "/schemas/sound/dai-params.yaml#/$defs/dai-channels"
convert-sample-format:
$ref: "/schemas/sound/dai-params.yaml#/$defs/dai-sample-format"
pa-gpios: pa-gpios:
maxItems: 1 maxItems: 1
......
...@@ -19,6 +19,16 @@ $defs: ...@@ -19,6 +19,16 @@ $defs:
minimum: 1 minimum: 1
maximum: 32 maximum: 32
dai-sample-format:
description: Audio sample format used by DAI
$ref: /schemas/types.yaml#/definitions/string
enum:
- s8
- s16_le
- s24_le
- s24_3le
- s32_le
dai-sample-rate: dai-sample-rate:
description: Audio sample rate used by DAI description: Audio sample rate used by DAI
$ref: /schemas/types.yaml#/definitions/uint32 $ref: /schemas/types.yaml#/definitions/uint32
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment