Skip to content

Commit 35bc99a

Browse files
plbossartbroonie
authored andcommitted
ASoC: Intel: Skylake: Add more platform granularity
The current SKYLAKE kconfig is a all-you-can-eat selection that will support all known plaforms. This is however not necessarily a good thing: most platforms for SKL and KBL don't support the DSP, but a number of CNL/WHL ones do. Selecting this driver in all cases isn't really smart and will require users to muck with blacklists. Partition the configs to allow distributions to select on which platform this driver is used. Keep the existing SND_SOC_INTEL_SKYLAKE config to select everything for backwards compatibility. This patch does not provide new functionality, only finer-grained choices in supported platforms. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent ae38d26 commit 35bc99a

3 files changed

Lines changed: 92 additions & 9 deletions

File tree

‎sound/soc/intel/Kconfig‎

Lines changed: 66 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,74 @@ config SND_SST_ATOM_HIFI2_PLATFORM_ACPI
102102
recommended option
103103

104104
config SND_SOC_INTEL_SKYLAKE
105-
tristate "SKL/BXT/KBL/GLK/CNL... Platforms"
105+
tristate "All Skylake/SST Platforms"
106106
depends on PCI && ACPI
107-
select SND_SOC_INTEL_SKYLAKE_COMMON
107+
select SND_SOC_INTEL_SKL
108+
select SND_SOC_INTEL_APL
109+
select SND_SOC_INTEL_KBL
110+
select SND_SOC_INTEL_GLK
111+
select SND_SOC_INTEL_CNL
112+
select SND_SOC_INTEL_CFL
108113
help
109-
If you have a Intel Skylake/Broxton/ApolloLake/KabyLake/
110-
GeminiLake or CannonLake platform with the DSP enabled in the BIOS
111-
then enable this option by saying Y or m.
114+
This is a backwards-compatible option to select all devices
115+
supported by the Intel SST/Skylake driver. This option is no
116+
longer recommended and will be deprecated when the SOF
117+
driver is introduced. Distributions should explicitly
118+
select which platform uses this driver.
119+
120+
config SND_SOC_INTEL_SKL
121+
tristate "Skylake Platforms"
122+
depends on PCI && ACPI
123+
select SND_SOC_INTEL_SKYLAKE_FAMILY
124+
help
125+
If you have a Intel Skylake platform with the DSP enabled
126+
in the BIOS then enable this option by saying Y or m.
127+
128+
config SND_SOC_INTEL_APL
129+
tristate "Broxton/ApolloLake Platforms"
130+
depends on PCI && ACPI
131+
select SND_SOC_INTEL_SKYLAKE_FAMILY
132+
help
133+
If you have a Intel Broxton/ApolloLake platform with the DSP
134+
enabled in the BIOS then enable this option by saying Y or m.
135+
136+
config SND_SOC_INTEL_KBL
137+
tristate "Kabylake Platforms"
138+
depends on PCI && ACPI
139+
select SND_SOC_INTEL_SKYLAKE_FAMILY
140+
help
141+
If you have a Intel Kabylake platform with the DSP
142+
enabled in the BIOS then enable this option by saying Y or m.
143+
144+
config SND_SOC_INTEL_GLK
145+
tristate "GeminiLake Platforms"
146+
depends on PCI && ACPI
147+
select SND_SOC_INTEL_SKYLAKE_FAMILY
148+
help
149+
If you have a Intel GeminiLake platform with the DSP
150+
enabled in the BIOS then enable this option by saying Y or m.
151+
152+
config SND_SOC_INTEL_CNL
153+
tristate "CannonLake/WhiskyLake Platforms"
154+
depends on PCI && ACPI
155+
select SND_SOC_INTEL_SKYLAKE_FAMILY
156+
help
157+
If you have a Intel CNL/WHL platform with the DSP
158+
enabled in the BIOS then enable this option by saying Y or m.
159+
160+
config SND_SOC_INTEL_CFL
161+
tristate "CoffeeLake Platforms"
162+
depends on PCI && ACPI
163+
select SND_SOC_INTEL_SKYLAKE_FAMILY
164+
help
165+
If you have a Intel CoffeeLake platform with the DSP
166+
enabled in the BIOS then enable this option by saying Y or m.
167+
168+
config SND_SOC_INTEL_SKYLAKE_FAMILY
169+
tristate
170+
select SND_SOC_INTEL_SKYLAKE_COMMON
112171

113-
if SND_SOC_INTEL_SKYLAKE
172+
if SND_SOC_INTEL_SKYLAKE_FAMILY
114173

115174
config SND_SOC_INTEL_SKYLAKE_SSP_CLK
116175
tristate
@@ -135,7 +194,7 @@ config SND_SOC_INTEL_SKYLAKE_COMMON
135194
GeminiLake or CannonLake platform with the DSP enabled in the BIOS
136195
then enable this option by saying Y or m.
137196

138-
endif ## SND_SOC_INTEL_SKYLAKE
197+
endif ## SND_SOC_INTEL_SKYLAKE_FAMILY
139198

140199
config SND_SOC_ACPI_INTEL_MATCH
141200
tristate

‎sound/soc/intel/boards/Kconfig‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ config SND_SOC_INTEL_BYT_CHT_NOCODEC_MACH
172172

173173
endif ## SND_SST_ATOM_HIFI2_PLATFORM
174174

175-
if SND_SOC_INTEL_SKYLAKE
175+
if SND_SOC_INTEL_SKL
176176

177177
config SND_SOC_INTEL_SKL_RT286_MACH
178178
tristate "SKL with RT286 I2S mode"
@@ -212,6 +212,10 @@ config SND_SOC_INTEL_SKL_NAU88L25_MAX98357A_MACH
212212
Say Y or m if you have such a device. This is a recommended option.
213213
If unsure select "N".
214214

215+
endif ## SND_SOC_INTEL_SKL
216+
217+
if SND_SOC_INTEL_APL
218+
215219
config SND_SOC_INTEL_BXT_DA7219_MAX98357A_MACH
216220
tristate "Broxton with DA7219 and MAX98357A in I2S Mode"
217221
depends on MFD_INTEL_LPSS && I2C && ACPI
@@ -239,6 +243,10 @@ config SND_SOC_INTEL_BXT_RT298_MACH
239243
Say Y or m if you have such a device. This is a recommended option.
240244
If unsure select "N".
241245

246+
endif ## SND_SOC_INTEL_APL
247+
248+
if SND_SOC_INTEL_KBL
249+
242250
config SND_SOC_INTEL_KBL_RT5663_MAX98927_MACH
243251
tristate "KBL with RT5663 and MAX98927 in I2S Mode"
244252
depends on MFD_INTEL_LPSS && I2C && ACPI
@@ -303,6 +311,10 @@ config SND_SOC_INTEL_KBL_RT5660_MACH
303311
create an alsa sound card for RT5660 I2S audio codec.
304312
Say Y if you have such a device.
305313

314+
endif ## SND_SOC_INTEL_KBL
315+
316+
if SND_SOC_INTEL_GLK
317+
306318
config SND_SOC_INTEL_GLK_RT5682_MAX98357A_MACH
307319
tristate "GLK with RT5682 and MAX98357A in I2S Mode"
308320
depends on MFD_INTEL_LPSS && I2C && ACPI
@@ -317,7 +329,7 @@ config SND_SOC_INTEL_GLK_RT5682_MAX98357A_MACH
317329
Say Y if you have such a device.
318330
If unsure select "N".
319331

320-
endif ## SND_SOC_INTEL_SKYLAKE
332+
endif ## SND_SOC_INTEL_GLK
321333

322334
if SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC
323335

‎sound/soc/intel/skylake/skl.c‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,24 +1142,36 @@ static void skl_remove(struct pci_dev *pci)
11421142

11431143
/* PCI IDs */
11441144
static const struct pci_device_id skl_ids[] = {
1145+
#if IS_ENABLED(CONFIG_SND_SOC_INTEL_SKL)
11451146
/* Sunrise Point-LP */
11461147
{ PCI_DEVICE(0x8086, 0x9d70),
11471148
.driver_data = (unsigned long)&snd_soc_acpi_intel_skl_machines},
1149+
#endif
1150+
#if IS_ENABLED(CONFIG_SND_SOC_INTEL_APL)
11481151
/* BXT-P */
11491152
{ PCI_DEVICE(0x8086, 0x5a98),
11501153
.driver_data = (unsigned long)&snd_soc_acpi_intel_bxt_machines},
1154+
#endif
1155+
#if IS_ENABLED(CONFIG_SND_SOC_INTEL_KBL)
11511156
/* KBL */
11521157
{ PCI_DEVICE(0x8086, 0x9D71),
11531158
.driver_data = (unsigned long)&snd_soc_acpi_intel_kbl_machines},
1159+
#endif
1160+
#if IS_ENABLED(CONFIG_SND_SOC_INTEL_GLK)
11541161
/* GLK */
11551162
{ PCI_DEVICE(0x8086, 0x3198),
11561163
.driver_data = (unsigned long)&snd_soc_acpi_intel_glk_machines},
1164+
#endif
1165+
#if IS_ENABLED(CONFIG_SND_SOC_INTEL_CNL)
11571166
/* CNL */
11581167
{ PCI_DEVICE(0x8086, 0x9dc8),
11591168
.driver_data = (unsigned long)&snd_soc_acpi_intel_cnl_machines},
1169+
#endif
1170+
#if IS_ENABLED(CONFIG_SND_SOC_INTEL_CFL)
11601171
/* CFL */
11611172
{ PCI_DEVICE(0x8086, 0xa348),
11621173
.driver_data = (unsigned long)&snd_soc_acpi_intel_cnl_machines},
1174+
#endif
11631175
{ 0, }
11641176
};
11651177
MODULE_DEVICE_TABLE(pci, skl_ids);

0 commit comments

Comments
 (0)