xref: /linux/sound/hda/core/Kconfig (revision b2660d1ebde1ba8f3edf963f3aac2bea884457c3)
1*b2660d1eSTakashi Iwai# SPDX-License-Identifier: GPL-2.0-only
2*b2660d1eSTakashi Iwaiconfig SND_HDA_CORE
3*b2660d1eSTakashi Iwai	tristate
4*b2660d1eSTakashi Iwai	select REGMAP
5*b2660d1eSTakashi Iwai
6*b2660d1eSTakashi Iwaiconfig SND_HDA_DSP_LOADER
7*b2660d1eSTakashi Iwai	bool
8*b2660d1eSTakashi Iwai
9*b2660d1eSTakashi Iwaiconfig SND_HDA_ALIGNED_MMIO
10*b2660d1eSTakashi Iwai	bool
11*b2660d1eSTakashi Iwai
12*b2660d1eSTakashi Iwaiconfig SND_HDA_COMPONENT
13*b2660d1eSTakashi Iwai	bool
14*b2660d1eSTakashi Iwai
15*b2660d1eSTakashi Iwaiconfig SND_HDA_I915
16*b2660d1eSTakashi Iwai	bool
17*b2660d1eSTakashi Iwai	select SND_HDA_COMPONENT
18*b2660d1eSTakashi Iwai
19*b2660d1eSTakashi Iwaiconfig SND_HDA_EXT_CORE
20*b2660d1eSTakashi Iwai       tristate
21*b2660d1eSTakashi Iwai       select SND_HDA_CORE
22*b2660d1eSTakashi Iwai
23*b2660d1eSTakashi Iwaiconfig SND_HDA_PREALLOC_SIZE
24*b2660d1eSTakashi Iwai	int "Pre-allocated buffer size for HD-audio driver"
25*b2660d1eSTakashi Iwai	range 0 32768
26*b2660d1eSTakashi Iwai	default 0 if SND_DMA_SGBUF
27*b2660d1eSTakashi Iwai	default 64 if !SND_DMA_SGBUF
28*b2660d1eSTakashi Iwai	help
29*b2660d1eSTakashi Iwai	  Specifies the default pre-allocated buffer-size in kB for the
30*b2660d1eSTakashi Iwai	  HD-audio driver.  A larger buffer (e.g. 2048) is preferred
31*b2660d1eSTakashi Iwai	  for systems using PulseAudio.  The default 64 is chosen just
32*b2660d1eSTakashi Iwai	  for compatibility reasons.
33*b2660d1eSTakashi Iwai	  On x86 systems, the default is zero as S/G allocation works
34*b2660d1eSTakashi Iwai	  and no preallocation is needed in most cases.
35*b2660d1eSTakashi Iwai
36*b2660d1eSTakashi Iwai	  Note that the pre-allocation size can be changed dynamically
37*b2660d1eSTakashi Iwai	  via a proc file (/proc/asound/card*/pcm*/sub*/prealloc), too.
38*b2660d1eSTakashi Iwai
39*b2660d1eSTakashi Iwaiconfig SND_INTEL_NHLT
40*b2660d1eSTakashi Iwai	bool
41*b2660d1eSTakashi Iwai	# this config should be selected only for Intel ACPI platforms.
42*b2660d1eSTakashi Iwai	# A fallback is provided so that the code compiles in all cases.
43*b2660d1eSTakashi Iwai
44*b2660d1eSTakashi Iwaiconfig SND_INTEL_DSP_CONFIG
45*b2660d1eSTakashi Iwai	tristate
46*b2660d1eSTakashi Iwai	select ACPI_NHLT if ACPI
47*b2660d1eSTakashi Iwai	select SND_INTEL_NHLT if ACPI
48*b2660d1eSTakashi Iwai	select SND_INTEL_SOUNDWIRE_ACPI if ACPI
49*b2660d1eSTakashi Iwai	# this config should be selected only for Intel DSP platforms.
50*b2660d1eSTakashi Iwai	# A fallback is provided so that the code compiles in all cases.
51*b2660d1eSTakashi Iwai
52*b2660d1eSTakashi Iwaiconfig SND_INTEL_SOUNDWIRE_ACPI
53*b2660d1eSTakashi Iwai	tristate
54*b2660d1eSTakashi Iwai
55*b2660d1eSTakashi Iwaiconfig SND_INTEL_BYT_PREFER_SOF
56*b2660d1eSTakashi Iwai	bool "Prefer SOF driver over SST on BY/CHT platforms"
57*b2660d1eSTakashi Iwai	depends on SND_SST_ATOM_HIFI2_PLATFORM_ACPI && SND_SOC_SOF_BAYTRAIL
58*b2660d1eSTakashi Iwai	default n
59*b2660d1eSTakashi Iwai	help
60*b2660d1eSTakashi Iwai	  The kernel has 2 drivers for the Low Power Engine audio-block on
61*b2660d1eSTakashi Iwai	  Bay- and Cherry-Trail SoCs. The old SST driver and the new SOF
62*b2660d1eSTakashi Iwai	  driver. If both drivers are enabled then the kernel will default
63*b2660d1eSTakashi Iwai	  to using the old SST driver, unless told otherwise through the
64*b2660d1eSTakashi Iwai	  snd_intel_dspcfg.dsp_driver module-parameter.
65*b2660d1eSTakashi Iwai
66*b2660d1eSTakashi Iwai	  Set this option to Y to make the kernel default to the new SOF
67*b2660d1eSTakashi Iwai	  driver instead.
68