Unverified Commit 6894e49b authored by Charles Keepax's avatar Charles Keepax Committed by Mark Brown
Browse files

ASoC: SDCA: Kconfig/Makefile fixups



Tidy up a few bits of the SDCA Kconfig. Default both HID and IRQ to
enabled, since typically if one wants SDCA all the functionality
will be expected.

Finally, update the IRQ support to match the changes made to the
HID support.

Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: default avatarArnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20250711100616.296329-2-ckeepax@opensource.cirrus.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent ad465565
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -8,19 +8,24 @@ config SND_SOC_SDCA
	  This option enables support for the MIPI SoundWire Device
	  Class for Audio (SDCA).

config SND_SOC_SDCA_OPTIONAL
	def_tristate SND_SOC_SDCA || !SND_SOC_SDCA

config SND_SOC_SDCA_HID
	bool "SDCA HID support"
	depends on SND_SOC_SDCA
	depends on HID=y || HID=SND_SOC_SDCA
	default y
	help
	  This option enables support for audio jack button reporting using HID.

config SND_SOC_SDCA_IRQ
	tristate
	bool "SDCA IRQ support"
	select REGMAP
	select REGMAP_IRQ
	depends on SND_SOC_SDCA
	default y
	help
	  This option enables support for SDCA IRQs.

config SND_SOC_SDCA_OPTIONAL
	def_tristate SND_SOC_SDCA || !SND_SOC_SDCA

endmenu
+6 −4
Original line number Diff line number Diff line
@@ -8,4 +8,6 @@ obj-$(CONFIG_SND_SOC_SDCA) += snd-soc-sdca.o
ifdef CONFIG_SND_SOC_SDCA_HID
obj-$(CONFIG_SND_SOC_SDCA) += snd-soc-sdca-hid.o
endif
obj-$(CONFIG_SND_SOC_SDCA_IRQ)	+= snd-soc-sdca-irq.o
ifdef CONFIG_SND_SOC_SDCA_IRQ
obj-$(CONFIG_SND_SOC_SDCA) += snd-soc-sdca-irq.o
endif