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

Update SDCA Kconfig

Merge series from Charles Keepax <ckeepax@opensource.cirrus.com>:

Tidy up a bunch of makefile and Kconfig things, and pull the HID and IRQ
into the main SDCA module.

Changes since v1:
- Don't expose SND_SOC_SDCA to the user
- Simplify the makefile bits for HID and IRQ

Thanks,
Charles

Charles Keepax (2):
ASoC: SDCA: Kconfig/Makefile fixups
ASoC: SDCA: Pull HID and IRQ into the primary SDCA module

sound/soc/sdca/Kconfig | 13 +++++++++----
sound/soc/sdca/Makefile | 12 ++++--------
sound/soc/sdca/sdca_functions.c | 1 -
sound/soc/sdca/sdca_hid.c | 2 +-
sound/soc/sdca/sdca_interrupts.c | 8 ++++----
5 files changed, 18 insertions(+), 18 deletions(-)

--
2.39.5

+18 -18
+9 -4
sound/soc/sdca/Kconfig
··· 8 8 This option enables support for the MIPI SoundWire Device 9 9 Class for Audio (SDCA). 10 10 11 - config SND_SOC_SDCA_OPTIONAL 12 - def_tristate SND_SOC_SDCA || !SND_SOC_SDCA 13 - 14 11 config SND_SOC_SDCA_HID 15 12 bool "SDCA HID support" 16 13 depends on SND_SOC_SDCA 17 14 depends on HID=y || HID=SND_SOC_SDCA 15 + default y 16 + help 17 + This option enables support for audio jack button reporting using HID. 18 18 19 19 config SND_SOC_SDCA_IRQ 20 - tristate 20 + bool "SDCA IRQ support" 21 21 select REGMAP 22 22 select REGMAP_IRQ 23 + depends on SND_SOC_SDCA 24 + default y 23 25 help 24 26 This option enables support for SDCA IRQs. 27 + 28 + config SND_SOC_SDCA_OPTIONAL 29 + def_tristate SND_SOC_SDCA || !SND_SOC_SDCA 25 30 26 31 endmenu
+4 -8
sound/soc/sdca/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 2 3 - snd-soc-sdca-y := sdca_functions.o sdca_device.o sdca_regmap.o sdca_asoc.o 4 - snd-soc-sdca-hid-y := sdca_hid.o 5 - snd-soc-sdca-irq-y := sdca_interrupts.o 3 + snd-soc-sdca-y := sdca_functions.o sdca_device.o sdca_regmap.o sdca_asoc.o 4 + snd-soc-sdca-$(CONFIG_SND_SOC_SDCA_HID) += sdca_hid.o 5 + snd-soc-sdca-$(CONFIG_SND_SOC_SDCA_IRQ) += sdca_interrupts.o 6 6 7 - obj-$(CONFIG_SND_SOC_SDCA) += snd-soc-sdca.o 8 - ifdef CONFIG_SND_SOC_SDCA_HID 9 - obj-$(CONFIG_SND_SOC_SDCA) += snd-soc-sdca-hid.o 10 - endif 11 - obj-$(CONFIG_SND_SOC_SDCA_IRQ) += snd-soc-sdca-irq.o 7 + obj-$(CONFIG_SND_SOC_SDCA) += snd-soc-sdca.o
-1
sound/soc/sdca/sdca_functions.c
··· 1943 1943 1944 1944 MODULE_LICENSE("Dual BSD/GPL"); 1945 1945 MODULE_DESCRIPTION("SDCA library"); 1946 - MODULE_IMPORT_NS("SND_SOC_SDCA_HID");
+1 -1
sound/soc/sdca/sdca_hid.c
··· 121 121 122 122 return 0; 123 123 } 124 - EXPORT_SYMBOL_NS(sdca_add_hid_device, "SND_SOC_SDCA_HID"); 124 + EXPORT_SYMBOL_NS(sdca_add_hid_device, "SND_SOC_SDCA"); 125 125 126 126 MODULE_LICENSE("Dual BSD/GPL"); 127 127 MODULE_DESCRIPTION("SDCA HID library");
+4 -4
sound/soc/sdca/sdca_interrupts.c
··· 279 279 280 280 return 0; 281 281 } 282 - EXPORT_SYMBOL_NS_GPL(sdca_irq_request, "SND_SOC_SDCA_IRQ"); 282 + EXPORT_SYMBOL_NS_GPL(sdca_irq_request, "SND_SOC_SDCA"); 283 283 284 284 /** 285 285 * sdca_irq_data_populate - Populate common interrupt data ··· 313 313 314 314 return 0; 315 315 } 316 - EXPORT_SYMBOL_NS_GPL(sdca_irq_data_populate, "SND_SOC_SDCA_IRQ"); 316 + EXPORT_SYMBOL_NS_GPL(sdca_irq_data_populate, "SND_SOC_SDCA"); 317 317 318 318 /** 319 319 * sdca_irq_populate - Request all the individual IRQs for an SDCA Function ··· 393 393 394 394 return 0; 395 395 } 396 - EXPORT_SYMBOL_NS_GPL(sdca_irq_populate, "SND_SOC_SDCA_IRQ"); 396 + EXPORT_SYMBOL_NS_GPL(sdca_irq_populate, "SND_SOC_SDCA"); 397 397 398 398 /** 399 399 * sdca_irq_allocate - allocate an SDCA interrupt structure for a device ··· 433 433 434 434 return info; 435 435 } 436 - EXPORT_SYMBOL_NS_GPL(sdca_irq_allocate, "SND_SOC_SDCA_IRQ"); 436 + EXPORT_SYMBOL_NS_GPL(sdca_irq_allocate, "SND_SOC_SDCA"); 437 437 438 438 MODULE_LICENSE("GPL"); 439 439 MODULE_DESCRIPTION("SDCA IRQ library");