Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d045db9 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda - Split quirk codes from patch_realtek.c



Put the all static quirk codes out of patch_realtek.c, split into the
file for each codec model.  For controlling the build of quirk codes,
a new Kconfig, CONFIG_SND_HDA_ENABLE_REALTEK_QUIRKS is introduced.
By setting this off, all quirk codes won't be built, thus you can save
lots of memory.

The codes in patch_realtek.c are also shuffled and more comments are
given, but the contents aren't changed.  This is just a refactoring.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 0e4a73ae
Loading
Loading
Loading
Loading
+13 −0
Original line number Original line Diff line number Diff line
@@ -83,6 +83,19 @@ config SND_HDA_CODEC_REALTEK
	  snd-hda-codec-realtek.
	  snd-hda-codec-realtek.
	  This module is automatically loaded at probing.
	  This module is automatically loaded at probing.


config SND_HDA_ENABLE_REALTEK_QUIRKS
	bool "Build static quirks for Realtek codecs"
	depends on SND_HDA_CODEC_REALTEK
	default y
	help
	  Say Y here to build the static quirks codes for Realtek codecs.
	  If you need the "model" preset that the default BIOS auto-parser
	  can't handle, turn this option on.

	  If your device works with model=auto option, basically you don't
	  need the quirk code.  By turning this off, you can reduce the
	  module size quite a lot.

config SND_HDA_CODEC_ANALOG
config SND_HDA_CODEC_ANALOG
	bool "Build Analog Device HD-audio codec support"
	bool "Build Analog Device HD-audio codec support"
	default y
	default y
+1272 −0

File added.

Preview size limit exceeded, changes collapsed.

+1353 −0

File added.

Preview size limit exceeded, changes collapsed.

+636 −0

File added.

Preview size limit exceeded, changes collapsed.

+681 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading