Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: hda: Move codec drivers into sound/hda/codecs directory

Now move the all remaining codec drivers from sound/pci/hda to
sound/hda/codecs subdirectory. Some drivers are put under the further
vendor subdirectory, and the vendor helper code (*_helper.c) are put
under helpers subdirectory. Also the sub-codec drivers are moved under
a different subdirectory, sound/hda/codecs/sub-codecs, for
distinguishing from the main HD-audio codec drivers.

The prefix patch_ and hda_ as well as the suffix _helper are dropped
from file names as they are mostly superfluous.

No functional changes but just file path shuffling.

Reviewed-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-7-tiwai@suse.de

+257 -247
+1
sound/hda/Kconfig
··· 3 3 4 4 source "sound/hda/common/Kconfig" 5 5 source "sound/hda/controllers/Kconfig" 6 + source "sound/hda/codecs/Kconfig" 6 7 source "sound/hda/core/Kconfig" 7 8 8 9 endmenu
+1
sound/hda/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 obj-y += core/ 3 3 obj-$(CONFIG_SND_HDA) += common/ 4 + obj-$(CONFIG_SND_HDA) += codecs/ 4 5 # this must be the last entry after codec drivers; 5 6 # otherwise the codec patches won't be hooked before the PCI probe 6 7 # when built in kernel
+31
sound/hda/codecs/Makefile
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + subdir-ccflags-y += -I$(src)/../common 3 + 4 + snd-hda-codec-generic-y := generic.o 5 + snd-hda-codec-analog-y := analog.o 6 + snd-hda-codec-ca0110-y := ca0110.o 7 + snd-hda-codec-ca0132-y := ca0132.o 8 + snd-hda-codec-cmedia-y := cmedia.o 9 + snd-hda-codec-conexant-y := conexant.o 10 + snd-hda-codec-idt-y := sigmatel.o 11 + snd-hda-codec-realtek-y := realtek.o 12 + snd-hda-codec-senarytech-y := senarytech.o 13 + snd-hda-codec-si3054-y := si3054.o 14 + snd-hda-codec-via-y := via.o 15 + 16 + obj-y += cirrus/ 17 + obj-y += hdmi/ 18 + obj-y += side-codecs/ 19 + 20 + # codec drivers 21 + obj-$(CONFIG_SND_HDA_GENERIC) += snd-hda-codec-generic.o 22 + obj-$(CONFIG_SND_HDA_CODEC_ANALOG) += snd-hda-codec-analog.o 23 + obj-$(CONFIG_SND_HDA_CODEC_CA0110) += snd-hda-codec-ca0110.o 24 + obj-$(CONFIG_SND_HDA_CODEC_CA0132) += snd-hda-codec-ca0132.o 25 + obj-$(CONFIG_SND_HDA_CODEC_CMEDIA) += snd-hda-codec-cmedia.o 26 + obj-$(CONFIG_SND_HDA_CODEC_CONEXANT) += snd-hda-codec-conexant.o 27 + obj-$(CONFIG_SND_HDA_CODEC_SIGMATEL) += snd-hda-codec-idt.o 28 + obj-$(CONFIG_SND_HDA_CODEC_REALTEK) += snd-hda-codec-realtek.o 29 + obj-$(CONFIG_SND_HDA_CODEC_SENARYTECH) += snd-hda-codec-senarytech.o 30 + obj-$(CONFIG_SND_HDA_CODEC_SI3054) += snd-hda-codec-si3054.o 31 + obj-$(CONFIG_SND_HDA_CODEC_VIA) += snd-hda-codec-via.o
+21
sound/hda/codecs/cirrus/Kconfig
··· 1 + # SPDX-License-Identifier: GPL-2.0-only 2 + 3 + config SND_HDA_CODEC_CIRRUS 4 + tristate "Build Cirrus Logic codec support" 5 + select SND_HDA_GENERIC 6 + help 7 + Say Y or M here to include Cirrus Logic codec support in 8 + snd-hda-intel driver, such as CS4206. 9 + 10 + comment "Set to Y if you want auto-loading the codec driver" 11 + depends on SND_HDA=y && SND_HDA_CODEC_CIRRUS=m 12 + 13 + config SND_HDA_CODEC_CS8409 14 + tristate "Build Cirrus Logic HDA bridge support" 15 + select SND_HDA_GENERIC 16 + help 17 + Say Y or M here to include Cirrus Logic HDA bridge support in 18 + snd-hda-intel driver, such as CS8409. 19 + 20 + comment "Set to Y if you want auto-loading the codec driver" 21 + depends on SND_HDA=y && SND_HDA_CODEC_CS8409=m
+8
sound/hda/codecs/cirrus/Makefile
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + subdir-ccflags-y += -I$(src)/../../common 3 + 4 + snd-hda-codec-cirrus-y := cirrus.o 5 + snd-hda-codec-cs8409-y := cs8409.o cs8409-tables.o 6 + 7 + obj-$(CONFIG_SND_HDA_CODEC_CIRRUS) += snd-hda-codec-cirrus.o 8 + obj-$(CONFIG_SND_HDA_CODEC_CS8409) += snd-hda-codec-cs8409.o
+6
sound/hda/codecs/hdmi/Makefile
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + subdir-ccflags-y += -I$(src)/../../common 3 + 4 + snd-hda-codec-hdmi-y := hdmi.o eld.o 5 + 6 + obj-$(CONFIG_SND_HDA_CODEC_HDMI) += snd-hda-codec-hdmi.o
+128
sound/hda/codecs/side-codecs/Kconfig
··· 1 + config SND_HDA_CIRRUS_SCODEC 2 + tristate 3 + 4 + config SND_HDA_CIRRUS_SCODEC_KUNIT_TEST 5 + tristate "KUnit test for Cirrus side-codec library" if !KUNIT_ALL_TESTS 6 + depends on SND_HDA_CIRRUS_SCODEC && GPIOLIB && KUNIT 7 + default KUNIT_ALL_TESTS 8 + help 9 + This builds KUnit tests for the cirrus side-codec library. 10 + For more information on KUnit and unit tests in general, 11 + please refer to the KUnit documentation in 12 + Documentation/dev-tools/kunit/. 13 + If in doubt, say "N". 14 + 15 + config SND_HDA_SCODEC_CS35L41 16 + tristate 17 + select SND_HDA_GENERIC 18 + select REGMAP_IRQ 19 + select FW_CS_DSP 20 + 21 + config SND_HDA_SCODEC_COMPONENT 22 + tristate 23 + 24 + config SND_HDA_SCODEC_CS35L41_I2C 25 + tristate "Build CS35L41 HD-audio side codec support for I2C Bus" 26 + depends on I2C 27 + depends on ACPI 28 + depends on EFI 29 + depends on SND_SOC 30 + select SND_SOC_CS35L41_LIB 31 + select SND_HDA_SCODEC_CS35L41 32 + select SND_SOC_CS_AMP_LIB 33 + help 34 + Say Y or M here to include CS35L41 I2C HD-audio side codec support 35 + in snd-hda-intel driver, such as ALC287. 36 + 37 + comment "Set to Y if you want auto-loading the side codec driver" 38 + depends on SND_HDA=y && SND_HDA_SCODEC_CS35L41_I2C=m 39 + 40 + config SND_HDA_SCODEC_CS35L41_SPI 41 + tristate "Build CS35L41 HD-audio codec support for SPI Bus" 42 + depends on SPI_MASTER 43 + depends on ACPI 44 + depends on EFI 45 + depends on SND_SOC 46 + select SND_SOC_CS35L41_LIB 47 + select SND_HDA_SCODEC_CS35L41 48 + select SND_SOC_CS_AMP_LIB 49 + help 50 + Say Y or M here to include CS35L41 SPI HD-audio side codec support 51 + in snd-hda-intel driver, such as ALC287. 52 + 53 + comment "Set to Y if you want auto-loading the side codec driver" 54 + depends on SND_HDA=y && SND_HDA_SCODEC_CS35L41_SPI=m 55 + 56 + config SND_HDA_SCODEC_CS35L56 57 + tristate 58 + 59 + config SND_HDA_SCODEC_CS35L56_I2C 60 + tristate "Build CS35L56 HD-audio side codec support for I2C Bus" 61 + depends on I2C 62 + depends on ACPI 63 + depends on SND_SOC 64 + select FW_CS_DSP 65 + imply SERIAL_MULTI_INSTANTIATE 66 + select SND_HDA_GENERIC 67 + select SND_SOC_CS35L56_SHARED 68 + select SND_HDA_SCODEC_CS35L56 69 + select SND_HDA_CIRRUS_SCODEC 70 + select SND_SOC_CS_AMP_LIB 71 + help 72 + Say Y or M here to include CS35L56 amplifier support with 73 + I2C control. 74 + 75 + config SND_HDA_SCODEC_CS35L56_SPI 76 + tristate "Build CS35L56 HD-audio side codec support for SPI Bus" 77 + depends on SPI_MASTER 78 + depends on ACPI 79 + depends on SND_SOC 80 + select FW_CS_DSP 81 + imply SERIAL_MULTI_INSTANTIATE 82 + select SND_HDA_GENERIC 83 + select SND_SOC_CS35L56_SHARED 84 + select SND_HDA_SCODEC_CS35L56 85 + select SND_HDA_CIRRUS_SCODEC 86 + select SND_SOC_CS_AMP_LIB 87 + help 88 + Say Y or M here to include CS35L56 amplifier support with 89 + SPI control. 90 + 91 + config SND_HDA_SCODEC_TAS2781 92 + tristate 93 + select SND_HDA_GENERIC 94 + 95 + config SND_HDA_SCODEC_TAS2781_I2C 96 + tristate "Build TAS2781 HD-audio side codec support for I2C Bus" 97 + depends on I2C 98 + depends on ACPI 99 + depends on EFI 100 + depends on SND_SOC 101 + select SND_HDA_SCODEC_TAS2781 102 + select SND_SOC_TAS2781_COMLIB_I2C 103 + select SND_SOC_TAS2781_FMWLIB 104 + select CRC32 105 + help 106 + Say Y or M here to include TAS2781 I2C HD-audio side codec support 107 + in snd-hda-intel driver, such as ALC287. 108 + 109 + comment "Set to Y if you want auto-loading the side codec driver" 110 + depends on SND_HDA=y && SND_HDA_SCODEC_TAS2781_I2C=m 111 + 112 + config SND_HDA_SCODEC_TAS2781_SPI 113 + tristate "Build TAS2781 HD-audio side codec support for SPI Bus" 114 + depends on SPI_MASTER 115 + depends on ACPI 116 + depends on EFI 117 + depends on SND_SOC 118 + select SND_HDA_SCODEC_TAS2781 119 + select SND_SOC_TAS2781_COMLIB 120 + select SND_SOC_TAS2781_FMWLIB 121 + select CRC8 122 + select CRC32 123 + help 124 + Say Y or M here to include TAS2781 SPI HD-audio side codec support 125 + in snd-hda-intel driver, such as ALC287. 126 + 127 + comment "Set to Y if you want auto-loading the side codec driver" 128 + depends on SND_HDA=y && SND_HDA_SCODEC_TAS2781_SPI=m
+28
sound/hda/codecs/side-codecs/Makefile
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + subdir-ccflags-y += -I$(src)/../../common 3 + 4 + snd-hda-cirrus-scodec-y := cirrus_scodec.o 5 + snd-hda-cirrus-scodec-test-y := cirrus_scodec_test.o 6 + snd-hda-scodec-cs35l41-y := cs35l41_hda.o cs35l41_hda_property.o 7 + snd-hda-scodec-cs35l41-i2c-y := cs35l41_hda_i2c.o 8 + snd-hda-scodec-cs35l41-spi-y := cs35l41_hda_spi.o 9 + snd-hda-scodec-cs35l56-y := cs35l56_hda.o 10 + snd-hda-scodec-cs35l56-i2c-y := cs35l56_hda_i2c.o 11 + snd-hda-scodec-cs35l56-spi-y := cs35l56_hda_spi.o 12 + snd-hda-scodec-component-y := hda_component.o 13 + snd-hda-scodec-tas2781-y := tas2781_hda.o 14 + snd-hda-scodec-tas2781-i2c-y := tas2781_hda_i2c.o 15 + snd-hda-scodec-tas2781-spi-y := tas2781_hda_spi.o 16 + 17 + obj-$(CONFIG_SND_HDA_CIRRUS_SCODEC) += snd-hda-cirrus-scodec.o 18 + obj-$(CONFIG_SND_HDA_CIRRUS_SCODEC_KUNIT_TEST) += snd-hda-cirrus-scodec-test.o 19 + obj-$(CONFIG_SND_HDA_SCODEC_CS35L41) += snd-hda-scodec-cs35l41.o 20 + obj-$(CONFIG_SND_HDA_SCODEC_CS35L41_I2C) += snd-hda-scodec-cs35l41-i2c.o 21 + obj-$(CONFIG_SND_HDA_SCODEC_CS35L41_SPI) += snd-hda-scodec-cs35l41-spi.o 22 + obj-$(CONFIG_SND_HDA_SCODEC_CS35L56) += snd-hda-scodec-cs35l56.o 23 + obj-$(CONFIG_SND_HDA_SCODEC_CS35L56_I2C) += snd-hda-scodec-cs35l56-i2c.o 24 + obj-$(CONFIG_SND_HDA_SCODEC_CS35L56_SPI) += snd-hda-scodec-cs35l56-spi.o 25 + obj-$(CONFIG_SND_HDA_SCODEC_COMPONENT) += snd-hda-scodec-component.o 26 + obj-$(CONFIG_SND_HDA_SCODEC_TAS2781) += snd-hda-scodec-tas2781.o 27 + obj-$(CONFIG_SND_HDA_SCODEC_TAS2781_I2C) += snd-hda-scodec-tas2781-i2c.o 28 + obj-$(CONFIG_SND_HDA_SCODEC_TAS2781_SPI) += snd-hda-scodec-tas2781-spi.o
-2
sound/pci/Kconfig
··· 933 933 will be called snd-ymfpci. 934 934 935 935 endif # SND_PCI 936 - 937 - source "sound/pci/hda/Kconfig"
-1
sound/pci/Makefile
··· 69 69 lx6464es/ \ 70 70 echoaudio/ \ 71 71 emu10k1/ \ 72 - hda/ \ 73 72 ice1712/ \ 74 73 korg1212/ \ 75 74 mixart/ \
+4 -154
sound/pci/hda/Kconfig sound/hda/codecs/Kconfig
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 - menu "HD-Audio" 2 + if SND_HDA 3 3 4 4 config SND_HDA_GENERIC_LEDS 5 5 bool 6 - 7 - if SND_HDA 8 - 9 - config SND_HDA_CIRRUS_SCODEC 10 - tristate 11 - 12 - config SND_HDA_CIRRUS_SCODEC_KUNIT_TEST 13 - tristate "KUnit test for Cirrus side-codec library" if !KUNIT_ALL_TESTS 14 - depends on SND_HDA_CIRRUS_SCODEC && GPIOLIB && KUNIT 15 - default KUNIT_ALL_TESTS 16 - help 17 - This builds KUnit tests for the cirrus side-codec library. 18 - For more information on KUnit and unit tests in general, 19 - please refer to the KUnit documentation in 20 - Documentation/dev-tools/kunit/. 21 - If in doubt, say "N". 22 - 23 - config SND_HDA_SCODEC_CS35L41 24 - tristate 25 - select SND_HDA_GENERIC 26 - select REGMAP_IRQ 27 - select FW_CS_DSP 28 - 29 - config SND_HDA_SCODEC_COMPONENT 30 - tristate 31 - 32 - config SND_HDA_SCODEC_CS35L41_I2C 33 - tristate "Build CS35L41 HD-audio side codec support for I2C Bus" 34 - depends on I2C 35 - depends on ACPI 36 - depends on EFI 37 - depends on SND_SOC 38 - select SND_SOC_CS35L41_LIB 39 - select SND_HDA_SCODEC_CS35L41 40 - select SND_SOC_CS_AMP_LIB 41 - help 42 - Say Y or M here to include CS35L41 I2C HD-audio side codec support 43 - in snd-hda-intel driver, such as ALC287. 44 - 45 - comment "Set to Y if you want auto-loading the side codec driver" 46 - depends on SND_HDA=y && SND_HDA_SCODEC_CS35L41_I2C=m 47 - 48 - config SND_HDA_SCODEC_CS35L41_SPI 49 - tristate "Build CS35L41 HD-audio codec support for SPI Bus" 50 - depends on SPI_MASTER 51 - depends on ACPI 52 - depends on EFI 53 - depends on SND_SOC 54 - select SND_SOC_CS35L41_LIB 55 - select SND_HDA_SCODEC_CS35L41 56 - select SND_SOC_CS_AMP_LIB 57 - help 58 - Say Y or M here to include CS35L41 SPI HD-audio side codec support 59 - in snd-hda-intel driver, such as ALC287. 60 - 61 - comment "Set to Y if you want auto-loading the side codec driver" 62 - depends on SND_HDA=y && SND_HDA_SCODEC_CS35L41_SPI=m 63 - 64 - config SND_HDA_SCODEC_CS35L56 65 - tristate 66 - 67 - config SND_HDA_SCODEC_CS35L56_I2C 68 - tristate "Build CS35L56 HD-audio side codec support for I2C Bus" 69 - depends on I2C 70 - depends on ACPI 71 - depends on SND_SOC 72 - select FW_CS_DSP 73 - imply SERIAL_MULTI_INSTANTIATE 74 - select SND_HDA_GENERIC 75 - select SND_SOC_CS35L56_SHARED 76 - select SND_HDA_SCODEC_CS35L56 77 - select SND_HDA_CIRRUS_SCODEC 78 - select SND_SOC_CS_AMP_LIB 79 - help 80 - Say Y or M here to include CS35L56 amplifier support with 81 - I2C control. 82 - 83 - config SND_HDA_SCODEC_CS35L56_SPI 84 - tristate "Build CS35L56 HD-audio side codec support for SPI Bus" 85 - depends on SPI_MASTER 86 - depends on ACPI 87 - depends on SND_SOC 88 - select FW_CS_DSP 89 - imply SERIAL_MULTI_INSTANTIATE 90 - select SND_HDA_GENERIC 91 - select SND_SOC_CS35L56_SHARED 92 - select SND_HDA_SCODEC_CS35L56 93 - select SND_HDA_CIRRUS_SCODEC 94 - select SND_SOC_CS_AMP_LIB 95 - help 96 - Say Y or M here to include CS35L56 amplifier support with 97 - SPI control. 98 - 99 - config SND_HDA_SCODEC_TAS2781 100 - tristate 101 - select SND_HDA_GENERIC 102 - 103 - config SND_HDA_SCODEC_TAS2781_I2C 104 - tristate "Build TAS2781 HD-audio side codec support for I2C Bus" 105 - depends on I2C 106 - depends on ACPI 107 - depends on EFI 108 - depends on SND_SOC 109 - select SND_HDA_SCODEC_TAS2781 110 - select SND_SOC_TAS2781_COMLIB_I2C 111 - select SND_SOC_TAS2781_FMWLIB 112 - select CRC32 113 - help 114 - Say Y or M here to include TAS2781 I2C HD-audio side codec support 115 - in snd-hda-intel driver, such as ALC287. 116 - 117 - comment "Set to Y if you want auto-loading the side codec driver" 118 - depends on SND_HDA=y && SND_HDA_SCODEC_TAS2781_I2C=m 119 - 120 - config SND_HDA_SCODEC_TAS2781_SPI 121 - tristate "Build TAS2781 HD-audio side codec support for SPI Bus" 122 - depends on SPI_MASTER 123 - depends on ACPI 124 - depends on EFI 125 - depends on SND_SOC 126 - select SND_HDA_SCODEC_TAS2781 127 - select SND_SOC_TAS2781_COMLIB 128 - select SND_SOC_TAS2781_FMWLIB 129 - select CRC8 130 - select CRC32 131 - help 132 - Say Y or M here to include TAS2781 SPI HD-audio side codec support 133 - in snd-hda-intel driver, such as ALC287. 134 - 135 - comment "Set to Y if you want auto-loading the side codec driver" 136 - depends on SND_HDA=y && SND_HDA_SCODEC_TAS2781_SPI=m 137 6 138 7 config SND_HDA_CODEC_REALTEK 139 8 tristate "Build Realtek HD-audio codec support" ··· 62 193 63 194 comment "Set to Y if you want auto-loading the codec driver" 64 195 depends on SND_HDA=y && SND_HDA_CODEC_HDMI=m 65 - 66 - config SND_HDA_CODEC_CIRRUS 67 - tristate "Build Cirrus Logic codec support" 68 - select SND_HDA_GENERIC 69 - help 70 - Say Y or M here to include Cirrus Logic codec support in 71 - snd-hda-intel driver, such as CS4206. 72 - 73 - comment "Set to Y if you want auto-loading the codec driver" 74 - depends on SND_HDA=y && SND_HDA_CODEC_CIRRUS=m 75 - 76 - config SND_HDA_CODEC_CS8409 77 - tristate "Build Cirrus Logic HDA bridge support" 78 - select SND_HDA_GENERIC 79 - help 80 - Say Y or M here to include Cirrus Logic HDA bridge support in 81 - snd-hda-intel driver, such as CS8409. 82 - 83 - comment "Set to Y if you want auto-loading the codec driver" 84 - depends on SND_HDA=y && SND_HDA_CODEC_CS8409=m 85 196 86 197 config SND_HDA_CODEC_CONEXANT 87 198 tristate "Build Conexant HD-audio codec support" ··· 162 313 This feature can impact power consumption as resources 163 314 are kept reserved both at transmitter and receiver. 164 315 165 - endif 316 + source "sound/hda/codecs/cirrus/Kconfig" 317 + source "sound/hda/codecs/side-codecs/Kconfig" 166 318 167 - endmenu 319 + endif # SND_HDA
-61
sound/pci/hda/Makefile
··· 1 - # SPDX-License-Identifier: GPL-2.0 2 - subdir-ccflags-y += -I$(src)/../../hda/common 3 - 4 - snd-hda-codec-generic-y := hda_generic.o 5 - snd-hda-codec-realtek-y := patch_realtek.o 6 - snd-hda-codec-cmedia-y := patch_cmedia.o 7 - snd-hda-codec-analog-y := patch_analog.o 8 - snd-hda-codec-idt-y := patch_sigmatel.o 9 - snd-hda-codec-si3054-y := patch_si3054.o 10 - snd-hda-codec-cirrus-y := patch_cirrus.o 11 - snd-hda-codec-cs8409-y := patch_cs8409.o patch_cs8409-tables.o 12 - snd-hda-codec-ca0110-y := patch_ca0110.o 13 - snd-hda-codec-ca0132-y := patch_ca0132.o 14 - snd-hda-codec-conexant-y := patch_conexant.o 15 - snd-hda-codec-senarytech-y :=patch_senarytech.o 16 - snd-hda-codec-via-y := patch_via.o 17 - snd-hda-codec-hdmi-y := patch_hdmi.o hda_eld.o 18 - 19 - # side codecs 20 - snd-hda-cirrus-scodec-y := cirrus_scodec.o 21 - snd-hda-cirrus-scodec-test-y := cirrus_scodec_test.o 22 - snd-hda-scodec-cs35l41-y := cs35l41_hda.o cs35l41_hda_property.o 23 - snd-hda-scodec-cs35l41-i2c-y := cs35l41_hda_i2c.o 24 - snd-hda-scodec-cs35l41-spi-y := cs35l41_hda_spi.o 25 - snd-hda-scodec-cs35l56-y := cs35l56_hda.o 26 - snd-hda-scodec-cs35l56-i2c-y := cs35l56_hda_i2c.o 27 - snd-hda-scodec-cs35l56-spi-y := cs35l56_hda_spi.o 28 - snd-hda-scodec-component-y := hda_component.o 29 - snd-hda-scodec-tas2781-y := tas2781_hda.o 30 - snd-hda-scodec-tas2781-i2c-y := tas2781_hda_i2c.o 31 - snd-hda-scodec-tas2781-spi-y := tas2781_hda_spi.o 32 - 33 - # codec drivers 34 - obj-$(CONFIG_SND_HDA_GENERIC) += snd-hda-codec-generic.o 35 - obj-$(CONFIG_SND_HDA_CODEC_REALTEK) += snd-hda-codec-realtek.o 36 - obj-$(CONFIG_SND_HDA_CODEC_CMEDIA) += snd-hda-codec-cmedia.o 37 - obj-$(CONFIG_SND_HDA_CODEC_ANALOG) += snd-hda-codec-analog.o 38 - obj-$(CONFIG_SND_HDA_CODEC_SIGMATEL) += snd-hda-codec-idt.o 39 - obj-$(CONFIG_SND_HDA_CODEC_SI3054) += snd-hda-codec-si3054.o 40 - obj-$(CONFIG_SND_HDA_CODEC_CIRRUS) += snd-hda-codec-cirrus.o 41 - obj-$(CONFIG_SND_HDA_CODEC_CS8409) += snd-hda-codec-cs8409.o 42 - obj-$(CONFIG_SND_HDA_CODEC_CA0110) += snd-hda-codec-ca0110.o 43 - obj-$(CONFIG_SND_HDA_CODEC_CA0132) += snd-hda-codec-ca0132.o 44 - obj-$(CONFIG_SND_HDA_CODEC_CONEXANT) += snd-hda-codec-conexant.o 45 - obj-$(CONFIG_SND_HDA_CODEC_SENARYTECH) += snd-hda-codec-senarytech.o 46 - obj-$(CONFIG_SND_HDA_CODEC_VIA) += snd-hda-codec-via.o 47 - obj-$(CONFIG_SND_HDA_CODEC_HDMI) += snd-hda-codec-hdmi.o 48 - 49 - # side codecs 50 - obj-$(CONFIG_SND_HDA_CIRRUS_SCODEC) += snd-hda-cirrus-scodec.o 51 - obj-$(CONFIG_SND_HDA_CIRRUS_SCODEC_KUNIT_TEST) += snd-hda-cirrus-scodec-test.o 52 - obj-$(CONFIG_SND_HDA_SCODEC_CS35L41) += snd-hda-scodec-cs35l41.o 53 - obj-$(CONFIG_SND_HDA_SCODEC_CS35L41_I2C) += snd-hda-scodec-cs35l41-i2c.o 54 - obj-$(CONFIG_SND_HDA_SCODEC_CS35L41_SPI) += snd-hda-scodec-cs35l41-spi.o 55 - obj-$(CONFIG_SND_HDA_SCODEC_CS35L56) += snd-hda-scodec-cs35l56.o 56 - obj-$(CONFIG_SND_HDA_SCODEC_CS35L56_I2C) += snd-hda-scodec-cs35l56-i2c.o 57 - obj-$(CONFIG_SND_HDA_SCODEC_CS35L56_SPI) += snd-hda-scodec-cs35l56-spi.o 58 - obj-$(CONFIG_SND_HDA_SCODEC_COMPONENT) += snd-hda-scodec-component.o 59 - obj-$(CONFIG_SND_HDA_SCODEC_TAS2781) += snd-hda-scodec-tas2781.o 60 - obj-$(CONFIG_SND_HDA_SCODEC_TAS2781_I2C) += snd-hda-scodec-tas2781-i2c.o 61 - obj-$(CONFIG_SND_HDA_SCODEC_TAS2781_SPI) += snd-hda-scodec-tas2781-spi.o
sound/pci/hda/ca0132_regs.h sound/hda/codecs/ca0132_regs.h
sound/pci/hda/cirrus_scodec.c sound/hda/codecs/side-codecs/cirrus_scodec.c
sound/pci/hda/cirrus_scodec.h sound/hda/codecs/side-codecs/cirrus_scodec.h
sound/pci/hda/cirrus_scodec_test.c sound/hda/codecs/side-codecs/cirrus_scodec_test.c
+1 -1
sound/pci/hda/cs35l41_hda.c sound/hda/codecs/side-codecs/cs35l41_hda.c
··· 17 17 #include "hda_local.h" 18 18 #include "hda_auto_parser.h" 19 19 #include "hda_jack.h" 20 - #include "hda_generic.h" 20 + #include "../generic.h" 21 21 #include "hda_component.h" 22 22 #include "cs35l41_hda.h" 23 23 #include "cs35l41_hda_property.h"
sound/pci/hda/cs35l41_hda.h sound/hda/codecs/side-codecs/cs35l41_hda.h
sound/pci/hda/cs35l41_hda_i2c.c sound/hda/codecs/side-codecs/cs35l41_hda_i2c.c
sound/pci/hda/cs35l41_hda_property.c sound/hda/codecs/side-codecs/cs35l41_hda_property.c
sound/pci/hda/cs35l41_hda_property.h sound/hda/codecs/side-codecs/cs35l41_hda_property.h
sound/pci/hda/cs35l41_hda_spi.c sound/hda/codecs/side-codecs/cs35l41_hda_spi.c
+1 -1
sound/pci/hda/cs35l56_hda.c sound/hda/codecs/side-codecs/cs35l56_hda.c
··· 20 20 #include "cirrus_scodec.h" 21 21 #include "cs35l56_hda.h" 22 22 #include "hda_component.h" 23 - #include "hda_generic.h" 23 + #include "../generic.h" 24 24 25 25 /* 26 26 * The cs35l56_hda_dai_config[] reg sequence configures the device as
sound/pci/hda/cs35l56_hda.h sound/hda/codecs/side-codecs/cs35l56_hda.h
sound/pci/hda/cs35l56_hda_i2c.c sound/hda/codecs/side-codecs/cs35l56_hda_i2c.c
sound/pci/hda/cs35l56_hda_spi.c sound/hda/codecs/side-codecs/cs35l56_hda_spi.c
sound/pci/hda/hda_component.c sound/hda/codecs/side-codecs/hda_component.c
sound/pci/hda/hda_component.h sound/hda/codecs/side-codecs/hda_component.h
sound/pci/hda/hda_eld.c sound/hda/codecs/hdmi/eld.c
+1 -1
sound/pci/hda/hda_generic.c sound/hda/codecs/generic.c
··· 25 25 #include "hda_auto_parser.h" 26 26 #include "hda_jack.h" 27 27 #include "hda_beep.h" 28 - #include "hda_generic.h" 28 + #include "generic.h" 29 29 30 30 31 31 /**
sound/pci/hda/hda_generic.h sound/hda/codecs/generic.h
sound/pci/hda/hp_x360_helper.c sound/hda/codecs/helpers/hp_x360.c
sound/pci/hda/ideapad_hotkey_led_helper.c sound/hda/codecs/helpers/ideapad_hotkey_led.c
sound/pci/hda/ideapad_s740_helper.c sound/hda/codecs/helpers/ideapad_s740.c
+1 -1
sound/pci/hda/patch_analog.c sound/hda/codecs/analog.c
··· 16 16 #include "hda_auto_parser.h" 17 17 #include "hda_beep.h" 18 18 #include "hda_jack.h" 19 - #include "hda_generic.h" 19 + #include "generic.h" 20 20 21 21 22 22 struct ad198x_spec {
+1 -1
sound/pci/hda/patch_ca0110.c sound/hda/codecs/ca0110.c
··· 13 13 #include "hda_local.h" 14 14 #include "hda_auto_parser.h" 15 15 #include "hda_jack.h" 16 - #include "hda_generic.h" 16 + #include "generic.h" 17 17 18 18 19 19 static const struct hda_codec_ops ca0110_patch_ops = {
+1 -1
sound/pci/hda/patch_ca0132.c sound/hda/codecs/ca0132.c
··· 4 4 * 5 5 * Copyright (c) 2011, Creative Technology Ltd. 6 6 * 7 - * Based on patch_ca0110.c 7 + * Based on ca0110.c 8 8 * Copyright (c) 2008 Takashi Iwai <tiwai@suse.de> 9 9 */ 10 10
+1 -1
sound/pci/hda/patch_cirrus.c sound/hda/codecs/cirrus/cirrus.c
··· 15 15 #include "hda_local.h" 16 16 #include "hda_auto_parser.h" 17 17 #include "hda_jack.h" 18 - #include "hda_generic.h" 18 + #include "../generic.h" 19 19 20 20 /* 21 21 */
+1 -1
sound/pci/hda/patch_cmedia.c sound/hda/codecs/cmedia.c
··· 15 15 #include "hda_local.h" 16 16 #include "hda_auto_parser.h" 17 17 #include "hda_jack.h" 18 - #include "hda_generic.h" 18 + #include "generic.h" 19 19 20 20 /* CM9825 Offset Definitions */ 21 21
+3 -3
sound/pci/hda/patch_conexant.c sound/hda/codecs/conexant.c
··· 19 19 #include "hda_auto_parser.h" 20 20 #include "hda_beep.h" 21 21 #include "hda_jack.h" 22 - #include "hda_generic.h" 22 + #include "generic.h" 23 23 24 24 struct conexant_spec { 25 25 struct hda_gen_spec gen; ··· 312 312 }; 313 313 314 314 /* for hda_fixup_thinkpad_acpi() */ 315 - #include "thinkpad_helper.c" 315 + #include "helpers/thinkpad.c" 316 316 317 317 /* for hda_fixup_ideapad_acpi() */ 318 - #include "ideapad_hotkey_led_helper.c" 318 + #include "helpers/ideapad_hotkey_led.c" 319 319 320 320 static void cxt_fixup_stereo_dmic(struct hda_codec *codec, 321 321 const struct hda_fixup *fix, int action)
+2 -2
sound/pci/hda/patch_cs8409-tables.c sound/hda/codecs/cirrus/cs8409-tables.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0-only 2 2 /* 3 - * patch_cs8409-tables.c -- HD audio interface patch for Cirrus Logic CS8409 HDA bridge chip 3 + * cs8409-tables.c -- HD audio interface patch for Cirrus Logic CS8409 HDA bridge chip 4 4 * 5 5 * Copyright (C) 2021 Cirrus Logic, Inc. and 6 6 * Cirrus Logic International Semiconductor Ltd. ··· 8 8 * Author: Lucas Tanure <tanureal@opensource.cirrus.com> 9 9 */ 10 10 11 - #include "patch_cs8409.h" 11 + #include "cs8409.h" 12 12 13 13 /****************************************************************************** 14 14 * CS42L42 Specific Data
+1 -1
sound/pci/hda/patch_cs8409.c sound/hda/codecs/cirrus/cs8409.c
··· 13 13 #include <linux/mutex.h> 14 14 #include <linux/iopoll.h> 15 15 16 - #include "patch_cs8409.h" 16 + #include "cs8409.h" 17 17 18 18 /****************************************************************************** 19 19 * CS8409 Specific Functions
+1 -1
sound/pci/hda/patch_cs8409.h sound/hda/codecs/cirrus/cs8409.h
··· 17 17 #include "hda_local.h" 18 18 #include "hda_auto_parser.h" 19 19 #include "hda_jack.h" 20 - #include "hda_generic.h" 20 + #include "../generic.h" 21 21 22 22 /* CS8409 Specific Definitions */ 23 23
+1 -1
sound/pci/hda/patch_hdmi.c sound/hda/codecs/hdmi/hdmi.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 2 /* 3 3 * 4 - * patch_hdmi.c - routines for HDMI/DisplayPort codecs 4 + * hdmi.c - routines for HDMI/DisplayPort codecs 5 5 * 6 6 * Copyright(c) 2008-2010 Intel Corporation 7 7 * Copyright (c) 2006 ATI Technologies Inc.
+6 -6
sound/pci/hda/patch_realtek.c sound/hda/codecs/realtek.c
··· 30 30 #include "hda_auto_parser.h" 31 31 #include "hda_beep.h" 32 32 #include "hda_jack.h" 33 - #include "hda_generic.h" 34 - #include "hda_component.h" 33 + #include "generic.h" 34 + #include "side-codecs/hda_component.h" 35 35 36 36 /* keep halting ALC5505 DSP, for power saving */ 37 37 #define HALT_REALTEK_ALC5505 ··· 7120 7120 } 7121 7121 7122 7122 /* for hda_fixup_thinkpad_acpi() */ 7123 - #include "thinkpad_helper.c" 7123 + #include "helpers/thinkpad.c" 7124 7124 7125 7125 static void alc_fixup_thinkpad_acpi(struct hda_codec *codec, 7126 7126 const struct hda_fixup *fix, int action) ··· 7130 7130 } 7131 7131 7132 7132 /* for hda_fixup_ideapad_acpi() */ 7133 - #include "ideapad_hotkey_led_helper.c" 7133 + #include "helpers/ideapad_hotkey_led.c" 7134 7134 7135 7135 static void alc_fixup_ideapad_acpi(struct hda_codec *codec, 7136 7136 const struct hda_fixup *fix, int action) ··· 7362 7362 7363 7363 7364 7364 /* for alc295_fixup_hp_top_speakers */ 7365 - #include "hp_x360_helper.c" 7365 + #include "helpers/hp_x360.c" 7366 7366 7367 7367 /* for alc285_fixup_ideapad_s740_coef() */ 7368 - #include "ideapad_s740_helper.c" 7368 + #include "helpers/ideapad_s740.c" 7369 7369 7370 7370 static const struct coef_fw alc256_fixup_set_coef_defaults_coefs[] = { 7371 7371 WRITE_COEF(0x10, 0x0020), WRITE_COEF(0x24, 0x0000),
+2 -2
sound/pci/hda/patch_senarytech.c sound/hda/codecs/senarytech.c
··· 2 2 /* 3 3 * HD audio interface patch for Senary HDA audio codec 4 4 * 5 - * Initially based on sound/pci/hda/patch_conexant.c 5 + * Initially based on conexant.c 6 6 */ 7 7 8 8 #include <linux/init.h> ··· 17 17 #include "hda_auto_parser.h" 18 18 #include "hda_beep.h" 19 19 #include "hda_jack.h" 20 - #include "hda_generic.h" 20 + #include "generic.h" 21 21 22 22 struct senary_spec { 23 23 struct hda_gen_spec gen;
sound/pci/hda/patch_si3054.c sound/hda/codecs/si3054.c
+2 -2
sound/pci/hda/patch_sigmatel.c sound/hda/codecs/sigmatel.c
··· 7 7 * Copyright (c) 2005 Embedded Alley Solutions, Inc. 8 8 * Matt Porter <mporter@embeddedalley.com> 9 9 * 10 - * Based on patch_cmedia.c and patch_realtek.c 10 + * Based on cmedia.c and realtek.c 11 11 * Copyright (c) 2004 Takashi Iwai <tiwai@suse.de> 12 12 */ 13 13 ··· 24 24 #include "hda_auto_parser.h" 25 25 #include "hda_beep.h" 26 26 #include "hda_jack.h" 27 - #include "hda_generic.h" 27 + #include "generic.h" 28 28 29 29 enum { 30 30 STAC_REF,
+1 -1
sound/pci/hda/patch_via.c sound/hda/codecs/via.c
··· 43 43 #include "hda_local.h" 44 44 #include "hda_auto_parser.h" 45 45 #include "hda_jack.h" 46 - #include "hda_generic.h" 46 + #include "generic.h" 47 47 48 48 /* Pin Widget NID */ 49 49 #define VT1708_HP_PIN_NID 0x20
sound/pci/hda/tas2781_hda.c sound/hda/codecs/side-codecs/tas2781_hda.c
sound/pci/hda/tas2781_hda.h sound/hda/codecs/side-codecs/tas2781_hda.h
+1 -1
sound/pci/hda/tas2781_hda_i2c.c sound/hda/codecs/side-codecs/tas2781_hda_i2c.c
··· 30 30 #include "hda_auto_parser.h" 31 31 #include "hda_component.h" 32 32 #include "hda_jack.h" 33 - #include "hda_generic.h" 33 + #include "../generic.h" 34 34 #include "tas2781_hda.h" 35 35 36 36 #define TAS2563_CAL_VAR_NAME_MAX 16
+1 -1
sound/pci/hda/tas2781_hda_spi.c sound/hda/codecs/side-codecs/tas2781_hda_spi.c
··· 35 35 #include "hda_auto_parser.h" 36 36 #include "hda_component.h" 37 37 #include "hda_jack.h" 38 - #include "hda_generic.h" 38 + #include "../generic.h" 39 39 #include "tas2781_hda.h" 40 40 41 41 #define TASDEVICE_RANGE_MAX_SIZE (256 * 128)
sound/pci/hda/thinkpad_helper.c sound/hda/codecs/helpers/thinkpad.c