xref: /linux/sound/hda/codecs/side-codecs/Kconfig (revision 5ea5880764cbb164afb17a62e76ca75dc371409d)
1# SPDX-License-Identifier: GPL-2.0-only
2config SND_HDA_CIRRUS_SCODEC
3	tristate
4
5config SND_HDA_CIRRUS_SCODEC_KUNIT_TEST
6	tristate "KUnit test for Cirrus side-codec library" if !KUNIT_ALL_TESTS
7	depends on SND_HDA_CIRRUS_SCODEC && GPIOLIB && KUNIT
8	default KUNIT_ALL_TESTS
9	help
10	  This builds KUnit tests for the cirrus side-codec library.
11	  For more information on KUnit and unit tests in general,
12	  please refer to the KUnit documentation in
13	  Documentation/dev-tools/kunit/.
14	  If in doubt, say "N".
15
16config SND_HDA_SCODEC_CS35L41
17	tristate
18	select SND_HDA_GENERIC
19	select REGMAP_IRQ
20	select FW_CS_DSP
21
22config SND_HDA_SCODEC_COMPONENT
23	tristate
24
25config SND_HDA_SCODEC_CS35L41_I2C
26	tristate "Build CS35L41 HD-audio side codec support for I2C Bus"
27	depends on I2C
28	depends on ACPI
29	depends on EFI
30	depends on SND_SOC
31	select SND_SOC_CS35L41_LIB
32	select SND_HDA_SCODEC_CS35L41
33	select SND_SOC_CS_AMP_LIB
34	help
35	  Say Y or M here to include CS35L41 I2C HD-audio side codec support
36	  in snd-hda-intel driver, such as ALC287.
37
38comment "Set to Y if you want auto-loading the side codec driver"
39	depends on SND_HDA=y && SND_HDA_SCODEC_CS35L41_I2C=m
40
41config SND_HDA_SCODEC_CS35L41_SPI
42	tristate "Build CS35L41 HD-audio codec support for SPI Bus"
43	depends on SPI_MASTER
44	depends on ACPI
45	depends on EFI
46	depends on SND_SOC
47	select SND_SOC_CS35L41_LIB
48	select SND_HDA_SCODEC_CS35L41
49	select SND_SOC_CS_AMP_LIB
50	help
51	  Say Y or M here to include CS35L41 SPI HD-audio side codec support
52	  in snd-hda-intel driver, such as ALC287.
53
54comment "Set to Y if you want auto-loading the side codec driver"
55	depends on SND_HDA=y && SND_HDA_SCODEC_CS35L41_SPI=m
56
57config SND_HDA_SCODEC_CS35L56
58	tristate
59
60config SND_HDA_SCODEC_CS35L56_I2C
61	tristate "Build CS35L56 HD-audio side codec support for I2C Bus"
62	depends on I2C
63	depends on ACPI
64	depends on SND_SOC
65	select FW_CS_DSP
66	imply SERIAL_MULTI_INSTANTIATE
67	select SND_HDA_GENERIC
68	select SND_SOC_CS35L56_SHARED
69	select SND_HDA_SCODEC_CS35L56
70	select SND_HDA_CIRRUS_SCODEC
71	select SND_SOC_CS_AMP_LIB
72	help
73	  Say Y or M here to include CS35L56 amplifier support with
74	  I2C control.
75
76config SND_HDA_SCODEC_CS35L56_SPI
77	tristate "Build CS35L56 HD-audio side codec support for SPI Bus"
78	depends on SPI_MASTER
79	depends on ACPI
80	depends on SND_SOC
81	select FW_CS_DSP
82	imply SERIAL_MULTI_INSTANTIATE
83	select SND_HDA_GENERIC
84	select SND_SOC_CS35L56_SHARED
85	select SND_HDA_SCODEC_CS35L56
86	select SND_HDA_CIRRUS_SCODEC
87	select SND_SOC_CS_AMP_LIB
88	help
89	  Say Y or M here to include CS35L56 amplifier support with
90	  SPI control.
91
92menu "CS35L56 driver options"
93	depends on SND_HDA_SCODEC_CS35L56
94
95config SND_HDA_SCODEC_CS35L56_CAL_DEBUGFS
96	bool "CS35L56 create debugfs for factory calibration"
97	default N
98	depends on DEBUG_FS
99	select SND_SOC_CS35L56_CAL_DEBUGFS_COMMON
100	help
101	  Create debugfs entries used during factory-line manufacture
102	  for factory calibration.
103
104	  If unsure select "N".
105endmenu
106
107config SND_HDA_SCODEC_TAS2781
108	tristate
109	select SND_HDA_GENERIC
110
111config SND_HDA_SCODEC_TAS2781_I2C
112	tristate "Build TAS2781 HD-audio side codec support for I2C Bus"
113	depends on I2C
114	depends on ACPI
115	depends on EFI
116	depends on SND_SOC
117	select SND_HDA_SCODEC_TAS2781
118	select SND_SOC_TAS2781_COMLIB_I2C
119	select SND_SOC_TAS2781_FMWLIB
120	select CRC32
121	help
122	  Say Y or M here to include TAS2781 I2C HD-audio side codec support
123	  in snd-hda-intel driver, such as ALC287.
124
125comment "Set to Y if you want auto-loading the side codec driver"
126	depends on SND_HDA=y && SND_HDA_SCODEC_TAS2781_I2C=m
127
128config SND_HDA_SCODEC_TAS2781_SPI
129	tristate "Build TAS2781 HD-audio side codec support for SPI Bus"
130	depends on SPI_MASTER
131	depends on ACPI
132	depends on EFI
133	depends on SND_SOC
134	select SND_HDA_SCODEC_TAS2781
135	select SND_SOC_TAS2781_COMLIB
136	select SND_SOC_TAS2781_FMWLIB
137	select CRC8
138	select CRC32
139	help
140	  Say Y or M here to include TAS2781 SPI HD-audio side codec support
141	  in snd-hda-intel driver, such as ALC287.
142
143comment "Set to Y if you want auto-loading the side codec driver"
144	depends on SND_HDA=y && SND_HDA_SCODEC_TAS2781_SPI=m
145