xref: /linux/sound/hda/codecs/side-codecs/Kconfig (revision b6a08b017f8c7723c7e4c3fc460a3a7bf5870b2c)
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	depends on DEBUG_FS
98	select SND_SOC_CS35L56_CAL_DEBUGFS_COMMON
99	help
100	  Create debugfs entries used during factory-line manufacture
101	  for factory calibration.
102
103	  If unsure select "N".
104endmenu
105
106config SND_HDA_SCODEC_TAS2781
107	tristate
108	select SND_HDA_GENERIC
109
110config SND_HDA_SCODEC_TAS2781_I2C
111	tristate "Build TAS2781 HD-audio side codec support for I2C Bus"
112	depends on I2C
113	depends on ACPI
114	depends on EFI
115	depends on SND_SOC
116	select SND_HDA_SCODEC_TAS2781
117	select SND_SOC_TAS2781_COMLIB_I2C
118	select SND_SOC_TAS2781_FMWLIB
119	select CRC32
120	help
121	  Say Y or M here to include TAS2781 I2C HD-audio side codec support
122	  in snd-hda-intel driver, such as ALC287.
123
124comment "Set to Y if you want auto-loading the side codec driver"
125	depends on SND_HDA=y && SND_HDA_SCODEC_TAS2781_I2C=m
126
127config SND_HDA_SCODEC_TAS2781_SPI
128	tristate "Build TAS2781 HD-audio side codec support for SPI Bus"
129	depends on SPI_MASTER
130	depends on ACPI
131	depends on EFI
132	depends on SND_SOC
133	select SND_HDA_SCODEC_TAS2781
134	select SND_SOC_TAS2781_COMLIB
135	select SND_SOC_TAS2781_FMWLIB
136	select CRC8
137	select CRC32
138	help
139	  Say Y or M here to include TAS2781 SPI HD-audio side codec support
140	  in snd-hda-intel driver, such as ALC287.
141
142comment "Set to Y if you want auto-loading the side codec driver"
143	depends on SND_HDA=y && SND_HDA_SCODEC_TAS2781_SPI=m
144