How to exclude onboard HDMI sound card driver module while compiling new kernel?

Based on Jetpack3.0, L4T R24. i want to disable onboard HDMI sound card :
root@tegra:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Tegra [HDA NVIDIA Tegra], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0

so i comment out below content and it cause errors when building new kernel.
CONFIG_SND_HDA_PLATFORM_DRIVER=y
CONFIG_SND_HDA_PLATFORM_NVIDIA_TEGRA=y

Seems HDMI is part of graphic card related, maybe some dependency with it.

Any one knows how to exclude the driver?

Hi youngerliu,

Please paste the build error log. Thanks.

Hi WayneWWW,
would you pls find below errors when compile stops:


CC drivers/video/tegra/host/vhost/vhost_cdma.o
CC drivers/video/tegra/host/vhost/vhost_client.o
LD drivers/video/tegra/host/vhost/nvhost-vhost.o
LD drivers/video/tegra/host/vhost/built-in.o
LD drivers/video/tegra/host/built-in.o
LD drivers/video/tegra/built-in.o
LD drivers/video/built-in.o
LD drivers/built-in.o
Makefile:130: recipe for target ‘sub-make’ failed
make: *** [sub-make] Error 2
root@moby:~/sources/kernel#

I think this is not clear enough…
Could you please upload a attachment that contains the error part?

This is error when i run “make O=$TEGRA_KERNEL_OUT zImage -j4” after update the .config to comment out below 2 items:

CONFIG_SND_HDA_PLATFORM_DRIVER=y
CONFIG_SND_HDA_PLATFORM_NVIDIA_TEGRA=y

Is there any other msgs i could provide for you?

Could you try to remove only “CONFIG_SND_HDA_PLATFORM_NVIDIA_TEGRA=y”?

Still no luck, with the same error msgs:

CC drivers/video/tegra/host/vhost/vhost_cdma.o
CC drivers/video/tegra/host/vhost/vhost_client.o
LD drivers/video/tegra/host/vhost/nvhost-vhost.o
LD drivers/video/tegra/host/vhost/built-in.o
LD drivers/video/tegra/host/built-in.o
LD drivers/video/tegra/built-in.o
LD drivers/video/built-in.o
LD drivers/built-in.o
Makefile:130: recipe for target ‘sub-make’ failed
make: *** [sub-make] Error 2

Seems some Graphic Card drivers module depends on this one?

youngerliu,

Does the log point out which file hit the error?

as you could see the messages above, when “LD drivers/built-in.o” is the last messages before error.

Would you pls also specify if there is any method i could provide information when compile kernel?

Please also comment out

“CONFIG_SND_HDA_INTEL=y”

Yes, it works as i expected. Thank you!

May i know how could i check the module dependency ?

youngerliu,

I also compiled it myself and found out the code in this depends on the two you commented out and thus cause error.