xref: /linux/sound/hda/common/Kconfig (revision 177bf8620cf4ed290ee170a6c5966adc0924b336)
105be28feSTakashi Iwai# SPDX-License-Identifier: GPL-2.0-only
205be28feSTakashi Iwai
305be28feSTakashi Iwaiconfig SND_HDA
405be28feSTakashi Iwai	tristate
505be28feSTakashi Iwai	select SND_PCM
605be28feSTakashi Iwai	select SND_VMASTER
705be28feSTakashi Iwai	select SND_JACK
805be28feSTakashi Iwai	select SND_HDA_CORE
905be28feSTakashi Iwai
1005be28feSTakashi Iwaiif SND_HDA
1105be28feSTakashi Iwai
1205be28feSTakashi Iwaiconfig SND_HDA_HWDEP
1305be28feSTakashi Iwai	bool "Build hwdep interface for HD-audio driver"
1405be28feSTakashi Iwai	select SND_HWDEP
1505be28feSTakashi Iwai	help
1605be28feSTakashi Iwai	  Say Y here to build a hwdep interface for HD-audio driver.
1705be28feSTakashi Iwai	  This interface can be used for out-of-band communication
1805be28feSTakashi Iwai	  with codecs for debugging purposes.
1905be28feSTakashi Iwai
2005be28feSTakashi Iwaiconfig SND_HDA_RECONFIG
2105be28feSTakashi Iwai	bool "Allow dynamic codec reconfiguration"
2205be28feSTakashi Iwai	help
2305be28feSTakashi Iwai	  Say Y here to enable the HD-audio codec re-configuration feature.
2405be28feSTakashi Iwai	  It allows user to clear the whole codec configuration, change the
2505be28feSTakashi Iwai	  codec setup, add extra verbs, and re-configure the codec dynamically.
2605be28feSTakashi Iwai
2705be28feSTakashi Iwai	  Note that this item alone doesn't provide the sysfs interface, but
2805be28feSTakashi Iwai	  enables the feature just for the patch loader below.
2905be28feSTakashi Iwai	  If you need the traditional sysfs entries for the manual interaction,
3005be28feSTakashi Iwai	  turn on CONFIG_SND_HDA_HWDEP as well.
3105be28feSTakashi Iwai
3205be28feSTakashi Iwaiconfig SND_HDA_INPUT_BEEP
3305be28feSTakashi Iwai	bool "Support digital beep via input layer"
3405be28feSTakashi Iwai	depends on INPUT=y || INPUT=SND_HDA
3505be28feSTakashi Iwai	help
3605be28feSTakashi Iwai	  Say Y here to build a digital beep interface for HD-audio
3705be28feSTakashi Iwai	  driver. This interface is used to generate digital beeps.
3805be28feSTakashi Iwai
3905be28feSTakashi Iwaiconfig SND_HDA_INPUT_BEEP_MODE
4005be28feSTakashi Iwai	int "Digital beep registration mode (0=off, 1=on)"
4105be28feSTakashi Iwai	depends on SND_HDA_INPUT_BEEP=y
4205be28feSTakashi Iwai	default "1"
4305be28feSTakashi Iwai	range 0 1
4405be28feSTakashi Iwai	help
4505be28feSTakashi Iwai	  Set 0 to disable the digital beep interface for HD-audio by default.
4605be28feSTakashi Iwai	  Set 1 to always enable the digital beep interface for HD-audio by
4705be28feSTakashi Iwai	  default.
4805be28feSTakashi Iwai
4905be28feSTakashi Iwaiconfig SND_HDA_PATCH_LOADER
5005be28feSTakashi Iwai	bool "Support initialization patch loading for HD-audio"
5105be28feSTakashi Iwai	select FW_LOADER
5205be28feSTakashi Iwai	select SND_HDA_RECONFIG
5305be28feSTakashi Iwai	help
5405be28feSTakashi Iwai	  Say Y here to allow the HD-audio driver to load a pseudo
5505be28feSTakashi Iwai	  firmware file ("patch") for overriding the BIOS setup at
5605be28feSTakashi Iwai	  start up.  The "patch" file can be specified via patch module
5705be28feSTakashi Iwai	  option, such as patch=hda-init.
5805be28feSTakashi Iwai
5905be28feSTakashi Iwaiconfig SND_HDA_POWER_SAVE_DEFAULT
6005be28feSTakashi Iwai	int "Default time-out for HD-audio power-save mode"
6105be28feSTakashi Iwai	depends on PM
6205be28feSTakashi Iwai	default 0
6305be28feSTakashi Iwai	help
6405be28feSTakashi Iwai	  The default time-out value in seconds for HD-audio automatic
6505be28feSTakashi Iwai	  power-save mode.  0 means to disable the power-save mode.
6605be28feSTakashi Iwai
6705be28feSTakashi Iwaiconfig SND_HDA_CTL_DEV_ID
6805be28feSTakashi Iwai	bool "Use the device identifier field for controls"
6905be28feSTakashi Iwai	depends on SND_HDA_INTEL
7005be28feSTakashi Iwai	help
7105be28feSTakashi Iwai	  Say Y to use the device identifier field for (mixer)
7205be28feSTakashi Iwai	  controls (old behaviour until this option is available).
7305be28feSTakashi Iwai
7405be28feSTakashi Iwai	  When enabled, the multiple HDA codecs may set the device
7505be28feSTakashi Iwai	  field in control (mixer) element identifiers. The use
7605be28feSTakashi Iwai	  of this field is not recommended and defined for mixer controls.
7705be28feSTakashi Iwai
7805be28feSTakashi Iwai	  The old behaviour (Y) is obsolete and will be removed. Consider
7905be28feSTakashi Iwai	  to not enable this option.
80*146355eeSTakashi Iwai
81*146355eeSTakashi Iwaiconfig SND_HDA_PREALLOC_SIZE
82*146355eeSTakashi Iwai	int "Pre-allocated buffer size for HD-audio driver"
83*146355eeSTakashi Iwai	range 0 32768
84*146355eeSTakashi Iwai	default 0 if SND_DMA_SGBUF
85*146355eeSTakashi Iwai	default 64 if !SND_DMA_SGBUF
86*146355eeSTakashi Iwai	help
87*146355eeSTakashi Iwai	  Specifies the default pre-allocated buffer-size in kB for the
88*146355eeSTakashi Iwai	  HD-audio driver.  A larger buffer (e.g. 2048) is preferred
89*146355eeSTakashi Iwai	  for systems using PulseAudio.  The default 64 is chosen just
90*146355eeSTakashi Iwai	  for compatibility reasons.
91*146355eeSTakashi Iwai	  On x86 systems, the default is zero as S/G allocation works
92*146355eeSTakashi Iwai	  and no preallocation is needed in most cases.
93*146355eeSTakashi Iwai
94*146355eeSTakashi Iwai	  Note that the pre-allocation size can be changed dynamically
95*146355eeSTakashi Iwai	  via a proc file (/proc/asound/card*/pcm*/sub*/prealloc), too.
96*146355eeSTakashi Iwai
9705be28feSTakashi Iwaiendif
98