I assume, the driver in question is compiled as a module. If you also built the prerequisites as modules, you can easily find them. All modules and their corresponding options are noted in the kernel makefiles. So you can just grep these for the module name.
But first, you need to find out, which modules your driver depends on. So issue a lsmod
and search for your driver, especially in the Column Used by
. I, for example use the rt2800usb
driver.
$ lsmod | grep rt2800usb
rt2800usb 15392 0
rt2x00usb 8306 1 rt2800usb
rt2800lib 59262 1 rt2800usb
rt2x00lib 34431 3 rt2x00usb,rt2800lib,rt2800usb
usbcore 146570 7 rt2x00usb,rt2800usb
This tells me that my driver needs the modules rt2x00usb
, rt2800lib
, rt2x00lib
and usbcore
. Now I search the Makefiles for them. Note the leading space and trailing .o
in the search strings
$ fgrep -r --include=Makefile ' usbcore.o'
drivers/usb/core/Makefile:obj-$(CONFIG_USB) += usbcore.o
$ grep -Pr --include=Makefile ' rt2(x|8)00(usb|lib)\.o'
drivers/net/wireless/rt2x00/Makefile:obj-$(CONFIG_RT2X00_LIB) += rt2x00lib.o
drivers/net/wireless/rt2x00/Makefile:obj-$(CONFIG_RT2X00_LIB_USB) += rt2x00usb.o
drivers/net/wireless/rt2x00/Makefile:obj-$(CONFIG_RT2800_LIB) += rt2800lib.o
drivers/net/wireless/rt2x00/Makefile:obj-$(CONFIG_RT2800USB) += rt2800usb.o
And there we have the config options needed to build those modules. If you cannot instantly find the culprit, try to go a level deeper and search for the dependencies of the dependencies... If you can guess the name, this may help for built-in objects, too (contrary to modules).
(All command line outputs in this post were slightly condensed and reformatted for better readability.)
Best Answer
According to the documentation, parameters for modules which are built into the kernel need to be specified on the kernel command line with a module name prefix.
In this case add
snd_hda_intel.enable=0,1
to your kernel boot line.You can check the value of the param with:
Some parameters can be set by writing to this file under
/sys
, but this isn't the case for this particular parameter.