kernel: 6.12: add snd hda scodec component module
authorMieczyslaw Nalewaj <namiltd@yahoo.com>
Tue, 26 Nov 2024 11:53:34 +0000 (12:53 +0100)
committerZoltan HERPAI <wigyori@uid0.hu>
Tue, 17 Dec 2024 22:28:11 +0000 (23:28 +0100)
Add snd hda scodec component module

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
package/kernel/linux/modules/sound.mk

index f3e44e01eee82d1d0f99ec59f4d0ef52568cebb8..8037f9306697915ede3166cd65936fd988e9366c 100644 (file)
@@ -383,6 +383,20 @@ endef
 
 $(eval $(call KernelPackage,sound-hda-core))
 
+define KernelPackage/snd-hda-scodec-component
+  SUBMENU:=$(SOUND_MENU)
+  TITLE:= HD Audio Codec Component
+  DEPENDS:=@LINUX_6_12
+  KCONFIG:= \
+       CONFIG_SND_HDA_SCODEC_COMPONENT
+  FILES:= \
+       $(LINUX_DIR)/sound/pci/hda/snd-hda-scodec-component.ko
+  AUTOLOAD:=$(call AutoProbe,snd-hda-scodec-component)
+  $(call AddDepends/sound,kmod-sound-hda-core)
+endef
+
+$(eval $(call KernelPackage,snd-hda-scodec-component))
+
 define KernelPackage/sound-hda-codec-realtek
   SUBMENU:=$(SOUND_MENU)
   TITLE:= HD Audio Realtek Codec
@@ -391,7 +405,7 @@ define KernelPackage/sound-hda-codec-realtek
   FILES:= \
        $(LINUX_DIR)/sound/pci/hda/snd-hda-codec-realtek.ko
   AUTOLOAD:=$(call AutoProbe,snd-hda-codec-realtek)
-  $(call AddDepends/sound,kmod-sound-hda-core)
+  $(call AddDepends/sound,kmod-sound-hda-core +LINUX_6_12:kmod-snd-hda-scodec-component)
 endef
 
 define KernelPackage/sound-hda-codec-realtek/description