xref: /openbmc/linux/sound/hda/Kconfig (revision 8be98d2f2a0a262f8bf8a0bc1fdf522b3c7aab17)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2e3d280fcSTakashi Iwaiconfig SND_HDA_CORE
3e3d280fcSTakashi Iwai	tristate
44d75faa0STakashi Iwai	select REGMAP
58f3f600bSTakashi Iwai
68f3f600bSTakashi Iwaiconfig SND_HDA_DSP_LOADER
78f3f600bSTakashi Iwai	bool
898d8fc6cSMengdong Lin
919abfefdSTakashi Iwaiconfig SND_HDA_ALIGNED_MMIO
1019abfefdSTakashi Iwai	bool
1119abfefdSTakashi Iwai
12a57942bfSTakashi Iwaiconfig SND_HDA_COMPONENT
13a57942bfSTakashi Iwai	bool
14a57942bfSTakashi Iwai
1598d8fc6cSMengdong Linconfig SND_HDA_I915
1698d8fc6cSMengdong Lin	bool
17a57942bfSTakashi Iwai	select SND_HDA_COMPONENT
18dfe66a18SJeeja KP
19dfe66a18SJeeja KPconfig SND_HDA_EXT_CORE
20dfe66a18SJeeja KP       tristate
21dfe66a18SJeeja KP       select SND_HDA_CORE
22d39513f8SVinod Koul
23d39513f8SVinod Koulconfig SND_HDA_PREALLOC_SIZE
24*f4b4bdf2SAmadeusz Sławiński	int "Pre-allocated buffer size for HD-audio driver" if !SND_DMA_SGBUF
25d39513f8SVinod Koul	range 0 32768
26*f4b4bdf2SAmadeusz Sławiński	default 0 if SND_DMA_SGBUF
27c31427d0STakashi Iwai	default 64 if !SND_DMA_SGBUF
28d39513f8SVinod Koul	help
29d39513f8SVinod Koul	  Specifies the default pre-allocated buffer-size in kB for the
30d39513f8SVinod Koul	  HD-audio driver.  A larger buffer (e.g. 2048) is preferred
31d39513f8SVinod Koul	  for systems using PulseAudio.  The default 64 is chosen just
32d39513f8SVinod Koul	  for compatibility reasons.
33*f4b4bdf2SAmadeusz Sławiński	  On x86 systems, the default is zero as we need no preallocation.
34d39513f8SVinod Koul
35d39513f8SVinod Koul	  Note that the pre-allocation size can be changed dynamically
36d39513f8SVinod Koul	  via a proc file (/proc/asound/card*/pcm*/sub*/prealloc), too.
37303681f4SPierre-Louis Bossart
38303681f4SPierre-Louis Bossartconfig SND_INTEL_NHLT
3982d9d54aSJaroslav Kysela	bool
40303681f4SPierre-Louis Bossart	# this config should be selected only for Intel ACPI platforms.
41303681f4SPierre-Louis Bossart	# A fallback is provided so that the code compiles in all cases.
4282d9d54aSJaroslav Kysela
4382d9d54aSJaroslav Kyselaconfig SND_INTEL_DSP_CONFIG
4482d9d54aSJaroslav Kysela	tristate
4582d9d54aSJaroslav Kysela	select SND_INTEL_NHLT if ACPI
4608c2a4bcSPierre-Louis Bossart	select SND_INTEL_SOUNDWIRE_ACPI if ACPI
4782d9d54aSJaroslav Kysela	# this config should be selected only for Intel DSP platforms.
4882d9d54aSJaroslav Kysela	# A fallback is provided so that the code compiles in all cases.
495427c7d6SHans de Goede
5008c2a4bcSPierre-Louis Bossartconfig SND_INTEL_SOUNDWIRE_ACPI
5108c2a4bcSPierre-Louis Bossart	tristate
5208c2a4bcSPierre-Louis Bossart
535427c7d6SHans de Goedeconfig SND_INTEL_BYT_PREFER_SOF
545427c7d6SHans de Goede	bool "Prefer SOF driver over SST on BY/CHT platforms"
555427c7d6SHans de Goede	depends on SND_SST_ATOM_HIFI2_PLATFORM_ACPI && SND_SOC_SOF_BAYTRAIL
565427c7d6SHans de Goede	default n
575427c7d6SHans de Goede	help
585427c7d6SHans de Goede	  The kernel has 2 drivers for the Low Power Engine audio-block on
595427c7d6SHans de Goede	  Bay- and Cherry-Trail SoCs. The old SST driver and the new SOF
605427c7d6SHans de Goede	  driver. If both drivers are enabled then the kernel will default
615427c7d6SHans de Goede	  to using the old SST driver, unless told otherwise through the
625427c7d6SHans de Goede	  snd_intel_dspcfg.dsp_driver module-parameter.
635427c7d6SHans de Goede
645427c7d6SHans de Goede	  Set this option to Y to make the kernel default to the new SOF
655427c7d6SHans de Goede	  driver instead.
66