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

ASoC: audio-graph-port: add link-trigger-order

Sound Card need to consider/adjust HW control ordering based on the
combination of CPU/Codec. The controlling feature is already supported
on ASoC, but Simple Audio Card / Audio Graph Card still not support it.
Let's support it.

Cc: Maxim Kochetkov <fido_max@inbox.ru>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/87sexizojx.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Kuninori Morimoto and committed by
Mark Brown
fafc20de 727de4fb

+35
+9
Documentation/devicetree/bindings/sound/audio-graph-port.yaml
··· 25 25 capture-only: 26 26 description: port connection used only for capture 27 27 $ref: /schemas/types.yaml#/definitions/flag 28 + link-trigger-order: 29 + description: trigger order for both start/stop 30 + $ref: /schemas/types.yaml#/definitions/uint32-array 31 + link-trigger-order-start: 32 + description: trigger order for start 33 + $ref: /schemas/types.yaml#/definitions/uint32-array 34 + link-trigger-order-stop: 35 + description: trigger order for stop 36 + $ref: /schemas/types.yaml#/definitions/uint32-array 28 37 29 38 endpoint-base: 30 39 allOf:
+26
include/dt-bindings/sound/audio-graph.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 2 + * 3 + * audio-graph.h 4 + * 5 + * Copyright (c) 2024 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> 6 + */ 7 + #ifndef __AUDIO_GRAPH_H 8 + #define __AUDIO_GRAPH_H 9 + 10 + /* 11 + * used in 12 + * link-trigger-order 13 + * link-trigger-order-start 14 + * link-trigger-order-stop 15 + * 16 + * default is 17 + * link-trigger-order = <SND_SOC_TRIGGER_LINK 18 + * SND_SOC_TRIGGER_COMPONENT 19 + * SND_SOC_TRIGGER_DAI>; 20 + */ 21 + #define SND_SOC_TRIGGER_LINK 0 22 + #define SND_SOC_TRIGGER_COMPONENT 1 23 + #define SND_SOC_TRIGGER_DAI 2 24 + #define SND_SOC_TRIGGER_SIZE 3 /* shoud be last */ 25 + 26 + #endif /* __AUDIO_GRAPH_H */