Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: imx-card: support playback or capture only

Merge series from Shengjiu Wang <shengjiu.wang@nxp.com>:

Be similar to audio graph card, support playback or capture only for
imx-audio-card.

imx-card can't directly refer to audio-graph-port.yaml, because it is
not based on 'ports'. Add playback-only and capture-only property
directly

+19
+14
Documentation/devicetree/bindings/sound/imx-audio-card.yaml
··· 46 46 description: see tdm-slot.txt. 47 47 $ref: /schemas/types.yaml#/definitions/uint32 48 48 49 + playback-only: 50 + description: link is used only for playback 51 + $ref: /schemas/types.yaml#/definitions/flag 52 + 53 + capture-only: 54 + description: link is used only for capture 55 + $ref: /schemas/types.yaml#/definitions/flag 56 + 49 57 cpu: 50 58 description: Holds subnode which indicates cpu dai. 51 59 type: object ··· 78 70 required: 79 71 - link-name 80 72 - cpu 73 + 74 + allOf: 75 + - not: 76 + required: 77 + - playback-only 78 + - capture-only 81 79 82 80 additionalProperties: false 83 81
+5
sound/soc/fsl/imx-card.c
··· 518 518 struct snd_soc_dai_link *link; 519 519 struct dai_link_data *link_data; 520 520 struct of_phandle_args args; 521 + bool playback_only, capture_only; 521 522 int ret, num_links; 522 523 u32 asrc_fmt = 0; 523 524 u32 width; ··· 679 678 } else { 680 679 link->ops = &imx_aif_ops; 681 680 } 681 + 682 + graph_util_parse_link_direction(np, &playback_only, &capture_only); 683 + link->playback_only = playback_only; 684 + link->capture_only = capture_only; 682 685 683 686 /* Get dai fmt */ 684 687 ret = simple_util_parse_daifmt(dev, np, codec,