1 | Be similar to audio graph card, support playback or capture only | 1 | Be similar to audio graph card, support playback or capture only for |
---|---|---|---|
2 | for imx-audio-card. | 2 | imx-audio-card. |
3 | |||
4 | imx-card can't directly refer to audio-graph-port.yaml, because it is | ||
5 | not based on 'ports'. Add playback-only and capture-only property | ||
6 | directly | ||
7 | |||
8 | changes in v3: | ||
9 | - add mutually exclusive expression | ||
10 | |||
11 | changes in v2: | ||
12 | - wrap at 75 chars for commit messages | ||
3 | 13 | ||
4 | Shengjiu Wang (2): | 14 | Shengjiu Wang (2): |
5 | ASoC: dt-bindings: imx-card: Add playback-only and capture-only | 15 | ASoC: dt-bindings: imx-card: Add playback-only and capture-only |
6 | property | 16 | property |
7 | ASoC: imx-card: Add playback_only or capture_only support | 17 | ASoC: imx-card: Add playback_only or capture_only support |
8 | 18 | ||
9 | .../devicetree/bindings/sound/imx-audio-card.yaml | 8 ++++++++ | 19 | .../devicetree/bindings/sound/imx-audio-card.yaml | 14 ++++++++++++++ |
10 | sound/soc/fsl/imx-card.c | 5 +++++ | 20 | sound/soc/fsl/imx-card.c | 5 +++++ |
11 | 2 files changed, 13 insertions(+) | 21 | 2 files changed, 19 insertions(+) |
12 | 22 | ||
13 | -- | 23 | -- |
14 | 2.34.1 | 24 | 2.34.1 | diff view generated by jsdifflib |
1 | Refer to audio graph card, add playback-only and capture-only property | 1 | Refer to audio graph card, add playback-only and capture-only property |
---|---|---|---|
2 | for imx-audio-card.yaml for the case that only playback or capture | 2 | for imx-audio-card.yaml for the case that only playback or capture is |
3 | is supported. | 3 | supported. |
4 | 4 | ||
5 | Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> | 5 | Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> |
6 | Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com> | ||
7 | Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com> | ||
6 | --- | 8 | --- |
7 | .../devicetree/bindings/sound/imx-audio-card.yaml | 8 ++++++++ | 9 | .../devicetree/bindings/sound/imx-audio-card.yaml | 14 ++++++++++++++ |
8 | 1 file changed, 8 insertions(+) | 10 | 1 file changed, 14 insertions(+) |
9 | 11 | ||
10 | diff --git a/Documentation/devicetree/bindings/sound/imx-audio-card.yaml b/Documentation/devicetree/bindings/sound/imx-audio-card.yaml | 12 | diff --git a/Documentation/devicetree/bindings/sound/imx-audio-card.yaml b/Documentation/devicetree/bindings/sound/imx-audio-card.yaml |
11 | index XXXXXXX..XXXXXXX 100644 | 13 | index XXXXXXX..XXXXXXX 100644 |
12 | --- a/Documentation/devicetree/bindings/sound/imx-audio-card.yaml | 14 | --- a/Documentation/devicetree/bindings/sound/imx-audio-card.yaml |
13 | +++ b/Documentation/devicetree/bindings/sound/imx-audio-card.yaml | 15 | +++ b/Documentation/devicetree/bindings/sound/imx-audio-card.yaml |
... | ... | ||
24 | + $ref: /schemas/types.yaml#/definitions/flag | 26 | + $ref: /schemas/types.yaml#/definitions/flag |
25 | + | 27 | + |
26 | cpu: | 28 | cpu: |
27 | description: Holds subnode which indicates cpu dai. | 29 | description: Holds subnode which indicates cpu dai. |
28 | type: object | 30 | type: object |
31 | @@ -XXX,XX +XXX,XX @@ patternProperties: | ||
32 | - link-name | ||
33 | - cpu | ||
34 | |||
35 | + allOf: | ||
36 | + - not: | ||
37 | + required: | ||
38 | + - playback-only | ||
39 | + - capture-only | ||
40 | + | ||
41 | additionalProperties: false | ||
42 | |||
43 | required: | ||
29 | -- | 44 | -- |
30 | 2.34.1 | 45 | 2.34.1 | diff view generated by jsdifflib |
1 | With the DPCM case, the backend only support capture or | 1 | With the DPCM case, the backend only support capture or playback, then |
---|---|---|---|
2 | playback, then the linked frontend can only support | 2 | the linked frontend can only support capture or playback, but frontend |
3 | capture or playback, but frontend can't automatically | 3 | can't automatically enable only capture or playback, it needs the input |
4 | enable only capture or playback, it needs the input | ||
5 | from dt-binding. | 4 | from dt-binding. |
6 | 5 | ||
7 | Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> | 6 | Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> |
7 | Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com> | ||
8 | Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com> | ||
8 | --- | 9 | --- |
9 | sound/soc/fsl/imx-card.c | 5 +++++ | 10 | sound/soc/fsl/imx-card.c | 5 +++++ |
10 | 1 file changed, 5 insertions(+) | 11 | 1 file changed, 5 insertions(+) |
11 | 12 | ||
12 | diff --git a/sound/soc/fsl/imx-card.c b/sound/soc/fsl/imx-card.c | 13 | diff --git a/sound/soc/fsl/imx-card.c b/sound/soc/fsl/imx-card.c |
... | ... | diff view generated by jsdifflib |