1# SPDX-License-Identifier: GPL-2.0-only 2 3config SND_HDA 4 tristate 5 select SND_PCM 6 select SND_VMASTER 7 select SND_JACK 8 select SND_HDA_CORE 9 10if SND_HDA 11 12config SND_HDA_HWDEP 13 bool "Build hwdep interface for HD-audio driver" 14 select SND_HWDEP 15 help 16 Say Y here to build a hwdep interface for HD-audio driver. 17 This interface can be used for out-of-band communication 18 with codecs for debugging purposes. 19 20config SND_HDA_RECONFIG 21 bool "Allow dynamic codec reconfiguration" 22 help 23 Say Y here to enable the HD-audio codec re-configuration feature. 24 It allows user to clear the whole codec configuration, change the 25 codec setup, add extra verbs, and re-configure the codec dynamically. 26 27 Note that this item alone doesn't provide the sysfs interface, but 28 enables the feature just for the patch loader below. 29 If you need the traditional sysfs entries for the manual interaction, 30 turn on CONFIG_SND_HDA_HWDEP as well. 31 32config SND_HDA_INPUT_BEEP 33 bool "Support digital beep via input layer" 34 depends on INPUT=y || INPUT=SND_HDA 35 help 36 Say Y here to build a digital beep interface for HD-audio 37 driver. This interface is used to generate digital beeps. 38 39config SND_HDA_INPUT_BEEP_MODE 40 int "Digital beep registration mode (0=off, 1=on)" 41 depends on SND_HDA_INPUT_BEEP=y 42 default "1" 43 range 0 1 44 help 45 Set 0 to disable the digital beep interface for HD-audio by default. 46 Set 1 to always enable the digital beep interface for HD-audio by 47 default. 48 49config SND_HDA_PATCH_LOADER 50 bool "Support initialization patch loading for HD-audio" 51 select FW_LOADER 52 select SND_HDA_RECONFIG 53 help 54 Say Y here to allow the HD-audio driver to load a pseudo 55 firmware file ("patch") for overriding the BIOS setup at 56 start up. The "patch" file can be specified via patch module 57 option, such as patch=hda-init. 58 59config SND_HDA_POWER_SAVE_DEFAULT 60 int "Default time-out for HD-audio power-save mode" 61 depends on PM 62 default 0 63 help 64 The default time-out value in seconds for HD-audio automatic 65 power-save mode. 0 means to disable the power-save mode. 66 67config SND_HDA_CTL_DEV_ID 68 bool "Use the device identifier field for controls" 69 depends on SND_HDA_INTEL 70 help 71 Say Y to use the device identifier field for (mixer) 72 controls (old behaviour until this option is available). 73 74 When enabled, the multiple HDA codecs may set the device 75 field in control (mixer) element identifiers. The use 76 of this field is not recommended and defined for mixer controls. 77 78 The old behaviour (Y) is obsolete and will be removed. Consider 79 to not enable this option. 80 81config SND_HDA_PREALLOC_SIZE 82 int "Pre-allocated buffer size for HD-audio driver" 83 range 0 32768 84 default 0 if SND_DMA_SGBUF 85 default 64 if !SND_DMA_SGBUF 86 help 87 Specifies the default pre-allocated buffer-size in kB for the 88 HD-audio driver. A larger buffer (e.g. 2048) is preferred 89 for systems using PulseAudio. The default 64 is chosen just 90 for compatibility reasons. 91 On x86 systems, the default is zero as S/G allocation works 92 and no preallocation is needed in most cases. 93 94 Note that the pre-allocation size can be changed dynamically 95 via a proc file (/proc/asound/card*/pcm*/sub*/prealloc), too. 96 97endif 98