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

ALSA: hda: Move controller drivers into sound/hda/controllers directory

Now HD-audio controller drivers are moved into sound/hda/controllers
directory as a part of HD-audio code reorganization. Most of drivers
are independent from PCI bus, hence it makes more sense to put under
sound/hda.

The hda_ prefix is dropped from most of files at moving, as it's
more or less superfluous.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-6-tiwai@suse.de

+63 -60
+1
sound/hda/Kconfig
··· 2 2 menu "HD-Audio" 3 3 4 4 source "sound/hda/common/Kconfig" 5 + source "sound/hda/controllers/Kconfig" 5 6 source "sound/hda/core/Kconfig" 6 7 7 8 endmenu
+4
sound/hda/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 obj-y += core/ 3 3 obj-$(CONFIG_SND_HDA) += common/ 4 + # this must be the last entry after codec drivers; 5 + # otherwise the codec patches won't be hooked before the PCI probe 6 + # when built in kernel 7 + obj-$(CONFIG_SND_HDA) += controllers/
+42
sound/hda/controllers/Kconfig
··· 1 + # SPDX-License-Identifier: GPL-2.0-only 2 + config SND_HDA_INTEL 3 + tristate "HD Audio PCI" 4 + depends on SND_PCI 5 + select SND_HDA 6 + select SND_INTEL_DSP_CONFIG 7 + help 8 + Say Y here to include support for Intel "High Definition 9 + Audio" (Azalia) and its compatible devices. 10 + 11 + This option enables the HD-audio controller. Don't forget 12 + to choose the appropriate HD-audio codec options. 13 + 14 + To compile this driver as a module, choose M here: the module 15 + will be called snd-hda-intel. 16 + 17 + config SND_HDA_TEGRA 18 + tristate "NVIDIA Tegra HD Audio" 19 + depends on ARCH_TEGRA 20 + select SND_HDA 21 + select SND_HDA_ALIGNED_MMIO 22 + help 23 + Say Y here to support the HDA controller present in NVIDIA 24 + Tegra SoCs 25 + 26 + This options enables support for the HD Audio controller 27 + present in some NVIDIA Tegra SoCs, used to communicate audio 28 + to the HDMI output. 29 + 30 + To compile this driver as a module, choose M here: the module 31 + will be called snd-hda-tegra. 32 + 33 + config SND_HDA_ACPI 34 + tristate "HD Audio ACPI" 35 + depends on ACPI 36 + select SND_HDA 37 + help 38 + Say Y here to include support for Azalia-compatible HDA controllers 39 + which are advertised via ACPI objects. 40 + 41 + To compile this driver as a module, choose M here: the module 42 + will be called snd-hda-acpi.
+13
sound/hda/controllers/Makefile
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + snd-hda-intel-y := intel.o 3 + snd-hda-tegra-y := tegra.o 4 + snd-hda-acpi-y := acpi.o 5 + 6 + subdir-ccflags-y += -I$(src)/../common 7 + 8 + # for trace-points 9 + CFLAGS_intel.o := -I$(src) 10 + 11 + obj-$(CONFIG_SND_HDA_INTEL) += snd-hda-intel.o 12 + obj-$(CONFIG_SND_HDA_TEGRA) += snd-hda-tegra.o 13 + obj-$(CONFIG_SND_HDA_ACPI) += snd-hda-acpi.o
-42
sound/pci/hda/Kconfig
··· 4 4 config SND_HDA_GENERIC_LEDS 5 5 bool 6 6 7 - config SND_HDA_INTEL 8 - tristate "HD Audio PCI" 9 - depends on SND_PCI 10 - select SND_HDA 11 - select SND_INTEL_DSP_CONFIG 12 - help 13 - Say Y here to include support for Intel "High Definition 14 - Audio" (Azalia) and its compatible devices. 15 - 16 - This option enables the HD-audio controller. Don't forget 17 - to choose the appropriate codec options below. 18 - 19 - To compile this driver as a module, choose M here: the module 20 - will be called snd-hda-intel. 21 - 22 - config SND_HDA_TEGRA 23 - tristate "NVIDIA Tegra HD Audio" 24 - depends on ARCH_TEGRA 25 - select SND_HDA 26 - select SND_HDA_ALIGNED_MMIO 27 - help 28 - Say Y here to support the HDA controller present in NVIDIA 29 - Tegra SoCs 30 - 31 - This options enables support for the HD Audio controller 32 - present in some NVIDIA Tegra SoCs, used to communicate audio 33 - to the HDMI output. 34 - 35 - To compile this driver as a module, choose M here: the module 36 - will be called snd-hda-tegra. 37 - 38 - config SND_HDA_ACPI 39 - tristate "HD Audio ACPI" 40 - depends on ACPI 41 - select SND_HDA 42 - help 43 - Say Y here to include support for Azalia-compatible HDA controllers 44 - which are advertised via ACPI objects. 45 - 46 - To compile this driver as a module, choose M here: the module 47 - will be called snd-hda-acpi. 48 - 49 7 if SND_HDA 50 8 51 9 config SND_HDA_CIRRUS_SCODEC
-14
sound/pci/hda/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 - snd-hda-intel-y := hda_intel.o 3 - snd-hda-tegra-y := hda_tegra.o 4 - snd-hda-acpi-y := hda_acpi.o 5 - 6 - # for trace-points 7 - CFLAGS_hda_intel.o := -I$(src) 8 - 9 2 subdir-ccflags-y += -I$(src)/../../hda/common 10 3 11 4 snd-hda-codec-generic-y := hda_generic.o ··· 59 66 obj-$(CONFIG_SND_HDA_SCODEC_TAS2781) += snd-hda-scodec-tas2781.o 60 67 obj-$(CONFIG_SND_HDA_SCODEC_TAS2781_I2C) += snd-hda-scodec-tas2781-i2c.o 61 68 obj-$(CONFIG_SND_HDA_SCODEC_TAS2781_SPI) += snd-hda-scodec-tas2781-spi.o 62 - 63 - # this must be the last entry after codec drivers; 64 - # otherwise the codec patches won't be hooked before the PCI probe 65 - # when built in kernel 66 - obj-$(CONFIG_SND_HDA_INTEL) += snd-hda-intel.o 67 - obj-$(CONFIG_SND_HDA_TEGRA) += snd-hda-tegra.o 68 - obj-$(CONFIG_SND_HDA_ACPI) += snd-hda-acpi.o
sound/pci/hda/hda_acpi.c sound/hda/controllers/acpi.c
+2 -3
sound/pci/hda/hda_intel.c sound/hda/controllers/intel.c
··· 54 54 #include <linux/apple-gmux.h> 55 55 #include <linux/firmware.h> 56 56 #include <sound/hda_codec.h> 57 - #include "hda_controller.h" 58 - #include "hda_intel.h" 57 + #include "intel.h" 59 58 60 59 #define CREATE_TRACE_POINTS 61 - #include "hda_intel_trace.h" 60 + #include "intel_trace.h" 62 61 63 62 /* position fix mode */ 64 63 enum {
sound/pci/hda/hda_intel.h sound/hda/controllers/intel.h
+1 -1
sound/pci/hda/hda_intel_trace.h sound/hda/controllers/intel_trace.h
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 2 #undef TRACE_SYSTEM 3 3 #define TRACE_SYSTEM hda_intel 4 - #define TRACE_INCLUDE_FILE hda_intel_trace 4 + #define TRACE_INCLUDE_FILE intel_trace 5 5 6 6 #if !defined(_TRACE_HDA_INTEL_H) || defined(TRACE_HEADER_MULTI_READ) 7 7 #define _TRACE_HDA_INTEL_H
sound/pci/hda/hda_tegra.c sound/hda/controllers/tegra.c