blob: 19de97ae4ce973f62a05ec81602d5fc11dcbde4e [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
Jerome Brunet6ae9ca92020-02-13 16:51:54 +01005config SND_MESON_AIU
6 tristate "Amlogic AIU"
Jerome Brunetb82b7342020-02-13 16:51:55 +01007 select SND_MESON_CODEC_GLUE
Jerome Brunet6ae9ca92020-02-13 16:51:54 +01008 select SND_PCM_IEC958
Jerome Brunetb82b7342020-02-13 16:51:55 +01009 imply SND_SOC_HDMI_CODEC if DRM_MESON_DW_HDMI
Jerome Brunet6ae9ca92020-02-13 16:51:54 +010010 help
11 Select Y or M to add support for the Audio output subsystem found
12 in the Amlogic GX SoC family
13
Jerome Brunet6dc4fa12018-07-17 17:42:51 +020014config SND_MESON_AXG_FIFO
15 tristate
16 select REGMAP_MMIO
Jerome Brunetac16df92018-08-28 14:17:21 +020017 imply COMMON_CLK_AXG_AUDIO
18 imply RESET_MESON_AUDIO_ARB
Jerome Brunet6dc4fa12018-07-17 17:42:51 +020019
Jerome Brunet57d552e2018-07-17 17:42:52 +020020config SND_MESON_AXG_FRDDR
21 tristate "Amlogic AXG Playback FIFO support"
22 select SND_MESON_AXG_FIFO
23 help
24 Select Y or M to add support for the frontend playback interfaces
25 embedded in the Amlogic AXG SoC family
26
Jerome Brunet7ed48772018-07-17 17:42:53 +020027config SND_MESON_AXG_TODDR
28 tristate "Amlogic AXG Capture FIFO support"
29 select SND_MESON_AXG_FIFO
30 help
31 Select Y or M to add support for the frontend capture interfaces
32 embedded in the Amlogic AXG SoC family
33
Jerome Brunet1a11d882018-07-17 17:42:58 +020034config SND_MESON_AXG_TDM_FORMATTER
35 tristate
36 select REGMAP_MMIO
Jerome Brunetac16df92018-08-28 14:17:21 +020037 imply COMMON_CLK_AXG_AUDIO
Jerome Brunet1a11d882018-07-17 17:42:58 +020038
Jerome Brunetd60e4f12018-07-17 17:42:59 +020039config SND_MESON_AXG_TDM_INTERFACE
40 tristate
41 select SND_MESON_AXG_TDM_FORMATTER
42
Jerome Brunet13a22e62018-07-17 17:43:01 +020043config SND_MESON_AXG_TDMIN
44 tristate "Amlogic AXG TDM Input Support"
45 select SND_MESON_AXG_TDM_FORMATTER
46 select SND_MESON_AXG_TDM_INTERFACE
47 help
48 Select Y or M to add support for TDM input formatter embedded
49 in the Amlogic AXG SoC family
50
Jerome Brunetc41c2a32018-07-17 17:43:00 +020051config SND_MESON_AXG_TDMOUT
52 tristate "Amlogic AXG TDM Output Support"
53 select SND_MESON_AXG_TDM_FORMATTER
54 select SND_MESON_AXG_TDM_INTERFACE
55 help
56 Select Y or M to add support for TDM output formatter embedded
57 in the Amlogic AXG SoC family
58
Jerome Brunet7864a792018-07-17 17:43:04 +020059config SND_MESON_AXG_SOUND_CARD
60 tristate "Amlogic AXG Sound Card Support"
61 select SND_MESON_AXG_TDM_INTERFACE
62 imply SND_MESON_AXG_FRDDR
63 imply SND_MESON_AXG_TODDR
64 imply SND_MESON_AXG_TDMIN
65 imply SND_MESON_AXG_TDMOUT
66 imply SND_MESON_AXG_SPDIFOUT
Jerome Brunet5ce56582018-12-11 14:47:12 +010067 imply SND_MESON_AXG_SPDIFIN
Jerome Brunet2cfc1232018-08-29 17:00:51 +020068 imply SND_MESON_AXG_PDM
Jerome Brunetc8609f32019-05-15 15:18:58 +020069 imply SND_MESON_G12A_TOHDMITX if DRM_MESON_DW_HDMI
Jerome Brunet7864a792018-07-17 17:43:04 +020070 help
71 Select Y or M to add support for the AXG SoC sound card
72
Jerome Brunet53eb4b72018-07-17 17:42:55 +020073config SND_MESON_AXG_SPDIFOUT
74 tristate "Amlogic AXG SPDIF Output Support"
Arnd Bergmanna241c3d2018-07-24 11:36:45 +020075 select SND_PCM_IEC958
Jerome Brunet53eb4b72018-07-17 17:42:55 +020076 imply SND_SOC_SPDIF
Jerome Brunetac16df92018-08-28 14:17:21 +020077 imply COMMON_CLK_AXG_AUDIO
Jerome Brunet53eb4b72018-07-17 17:42:55 +020078 help
79 Select Y or M to add support for SPDIF output serializer embedded
80 in the Amlogic AXG SoC family
81
Jerome Brunet5ce56582018-12-11 14:47:12 +010082config SND_MESON_AXG_SPDIFIN
83 tristate "Amlogic AXG SPDIF Input Support"
84 imply SND_SOC_SPDIF
85 help
86 Select Y or M to add support for SPDIF input embedded
87 in the Amlogic AXG SoC family
88
Jerome Brunet2cfc1232018-08-29 17:00:51 +020089config SND_MESON_AXG_PDM
90 tristate "Amlogic AXG PDM Input Support"
91 imply SND_SOC_DMIC
92 imply COMMON_CLK_AXG_AUDIO
93 help
94 Select Y or M to add support for PDM input embedded
95 in the Amlogic AXG SoC family
Jerome Brunetc8609f32019-05-15 15:18:58 +020096
Jerome Brunet9c29fd92020-02-13 16:51:52 +010097config SND_MESON_CODEC_GLUE
98 tristate
99
Jerome Brunetc8609f32019-05-15 15:18:58 +0200100config SND_MESON_G12A_TOHDMITX
101 tristate "Amlogic G12A To HDMI TX Control Support"
Jerome Brunet351b3102019-08-20 14:35:10 +0200102 select REGMAP_MMIO
Jerome Brunet9c29fd92020-02-13 16:51:52 +0100103 select SND_MESON_CODEC_GLUE
Jerome Brunetc8609f32019-05-15 15:18:58 +0200104 imply SND_SOC_HDMI_CODEC
105 help
106 Select Y or M to add support for HDMI audio on the g12a SoC
107 family
Jerome Brunet6dc4fa12018-07-17 17:42:51 +0200108endmenu