linux/include/dt-bindings/sound
Stephan Gerhold 34facb0422
ASoC: dt-bindings: q6asm: Add Q6ASM_DAI_{TX_RX, TX, RX} defines
Right now the direction of a DAI has to be specified as a literal
number in the device tree, e.g.:

	dai@0 {
		reg = <0>;
		direction = <2>;
	};

but this does not make it immediately clear that this is a
playback/RX-only DAI.

Actually, q6asm-dai.c has useful defines for this. Move them to the
dt-bindings header to allow using them in the dts(i) files.
The example above then becomes:

	dai@0 {
		reg = <0>;
		direction = <Q6ASM_DAI_RX>;
	};

which is immediately recognizable as playback/RX-only DAI.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20200727082502.2341-1-stephan@gerhold.net
Signed-off-by: Mark Brown <broonie@kernel.org>
2020-07-27 14:21:09 +01:00
..
apq8016-lpass.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
audio-jack-events.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cs35l32.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cs42l42.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
fsl-imx-audmux.h ASoC: imx-audmux: add RXFS/RXCLK defines for 6-wire connections 2018-05-30 11:37:30 +01:00
madera.h ASoC: madera: Update SPDX headers 2019-06-26 12:27:50 +01:00
meson-aiu.h ASoC: meson: aiu: add audio output dt-bindings 2020-02-13 20:57:21 +00:00
meson-g12a-toacodec.h ASoC: meson: g12a: add toacodec dt-binding documentation 2020-02-21 16:39:04 +00:00
meson-g12a-tohdmitx.h ASoC: meson: add tohdmitx DT bindings 2019-05-16 12:13:27 +01:00
qcom,q6afe.h ASoC: qdsp6: dt-bindings: Add q6afe display_port dt binding 2018-12-14 12:48:48 +00:00
qcom,q6asm.h ASoC: dt-bindings: q6asm: Add Q6ASM_DAI_{TX_RX, TX, RX} defines 2020-07-27 14:21:09 +01:00
rt5640.h ASoC: rt5640: Add devicetree-bindings for dmic, jack-detect 2018-05-11 11:22:03 +09:00
rt5651.h ASoC: rt5651: move definitions of dt-binding constants to include/dt-bindings 2018-03-12 14:15:51 -07:00
samsung-i2s.h ASoC: samsung: i2s: Document clocks macros 2019-10-21 13:51:24 +01:00
tas2552.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
tlv320aic31xx-micbias.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00