blob: 2e3676147ceafa610a2a6c918f330ec143dfbcb4 [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
Jerome Brunet6dc4fa12018-07-17 17:42:51 +02002menu "ASoC support for Amlogic platforms"
3 depends on ARCH_MESON || COMPILE_TEST
4
5config SND_MESON_AXG_FIFO
6 tristate
7 select REGMAP_MMIO
Jerome Brunetac16df92018-08-28 14:17:21 +02008 imply COMMON_CLK_AXG_AUDIO
9 imply RESET_MESON_AUDIO_ARB
Jerome Brunet6dc4fa12018-07-17 17:42:51 +020010
Jerome Brunet57d552e2018-07-17 17:42:52 +020011config SND_MESON_AXG_FRDDR
12 tristate "Amlogic AXG Playback FIFO support"
13 select SND_MESON_AXG_FIFO
14 help
15 Select Y or M to add support for the frontend playback interfaces
16 embedded in the Amlogic AXG SoC family
17
Jerome Brunet7ed48772018-07-17 17:42:53 +020018config SND_MESON_AXG_TODDR
19 tristate "Amlogic AXG Capture FIFO support"
20 select SND_MESON_AXG_FIFO
21 help
22 Select Y or M to add support for the frontend capture interfaces
23 embedded in the Amlogic AXG SoC family
24
Jerome Brunet1a11d882018-07-17 17:42:58 +020025config SND_MESON_AXG_TDM_FORMATTER
26 tristate
27 select REGMAP_MMIO
Jerome Brunetac16df92018-08-28 14:17:21 +020028 imply COMMON_CLK_AXG_AUDIO
Jerome Brunet1a11d882018-07-17 17:42:58 +020029
Jerome Brunetd60e4f12018-07-17 17:42:59 +020030config SND_MESON_AXG_TDM_INTERFACE
31 tristate
32 select SND_MESON_AXG_TDM_FORMATTER
33
Jerome Brunet13a22e62018-07-17 17:43:01 +020034config SND_MESON_AXG_TDMIN
35 tristate "Amlogic AXG TDM Input Support"
36 select SND_MESON_AXG_TDM_FORMATTER
37 select SND_MESON_AXG_TDM_INTERFACE
38 help
39 Select Y or M to add support for TDM input formatter embedded
40 in the Amlogic AXG SoC family
41
Jerome Brunetc41c2a32018-07-17 17:43:00 +020042config SND_MESON_AXG_TDMOUT
43 tristate "Amlogic AXG TDM Output Support"
44 select SND_MESON_AXG_TDM_FORMATTER
45 select SND_MESON_AXG_TDM_INTERFACE
46 help
47 Select Y or M to add support for TDM output formatter embedded
48 in the Amlogic AXG SoC family
49
Jerome Brunet7864a792018-07-17 17:43:04 +020050config SND_MESON_AXG_SOUND_CARD
51 tristate "Amlogic AXG Sound Card Support"
52 select SND_MESON_AXG_TDM_INTERFACE
53 imply SND_MESON_AXG_FRDDR
54 imply SND_MESON_AXG_TODDR
55 imply SND_MESON_AXG_TDMIN
56 imply SND_MESON_AXG_TDMOUT
57 imply SND_MESON_AXG_SPDIFOUT
Jerome Brunet5ce56582018-12-11 14:47:12 +010058 imply SND_MESON_AXG_SPDIFIN
Jerome Brunet2cfc1232018-08-29 17:00:51 +020059 imply SND_MESON_AXG_PDM
Jerome Brunetc8609f32019-05-15 15:18:58 +020060 imply SND_MESON_G12A_TOHDMITX if DRM_MESON_DW_HDMI
Jerome Brunet7864a792018-07-17 17:43:04 +020061 help
62 Select Y or M to add support for the AXG SoC sound card
63
Jerome Brunet53eb4b72018-07-17 17:42:55 +020064config SND_MESON_AXG_SPDIFOUT
65 tristate "Amlogic AXG SPDIF Output Support"
Arnd Bergmanna241c3d2018-07-24 11:36:45 +020066 select SND_PCM_IEC958
Jerome Brunet53eb4b72018-07-17 17:42:55 +020067 imply SND_SOC_SPDIF
Jerome Brunetac16df92018-08-28 14:17:21 +020068 imply COMMON_CLK_AXG_AUDIO
Jerome Brunet53eb4b72018-07-17 17:42:55 +020069 help
70 Select Y or M to add support for SPDIF output serializer embedded
71 in the Amlogic AXG SoC family
72
Jerome Brunet5ce56582018-12-11 14:47:12 +010073config SND_MESON_AXG_SPDIFIN
74 tristate "Amlogic AXG SPDIF Input Support"
75 imply SND_SOC_SPDIF
76 help
77 Select Y or M to add support for SPDIF input embedded
78 in the Amlogic AXG SoC family
79
Jerome Brunet2cfc1232018-08-29 17:00:51 +020080config SND_MESON_AXG_PDM
81 tristate "Amlogic AXG PDM Input Support"
82 imply SND_SOC_DMIC
83 imply COMMON_CLK_AXG_AUDIO
84 help
85 Select Y or M to add support for PDM input embedded
86 in the Amlogic AXG SoC family
Jerome Brunetc8609f32019-05-15 15:18:58 +020087
88config SND_MESON_G12A_TOHDMITX
89 tristate "Amlogic G12A To HDMI TX Control Support"
Jerome Brunet351b3102019-08-20 14:35:10 +020090 select REGMAP_MMIO
Jerome Brunetc8609f32019-05-15 15:18:58 +020091 imply SND_SOC_HDMI_CODEC
92 help
93 Select Y or M to add support for HDMI audio on the g12a SoC
94 family
Jerome Brunet6dc4fa12018-07-17 17:42:51 +020095endmenu