Skip to content

Commit 6894e49

Browse files
charleskeepaxbroonie
authored andcommitted
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: Charles Keepax <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent ad46556 commit 6894e49

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

sound/soc/sdca/Kconfig

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,24 @@ config SND_SOC_SDCA
88
This option enables support for the MIPI SoundWire Device
99
Class for Audio (SDCA).
1010

11-
config SND_SOC_SDCA_OPTIONAL
12-
def_tristate SND_SOC_SDCA || !SND_SOC_SDCA
13-
1411
config SND_SOC_SDCA_HID
1512
bool "SDCA HID support"
1613
depends on SND_SOC_SDCA
1714
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.
1818

1919
config SND_SOC_SDCA_IRQ
20-
tristate
20+
bool "SDCA IRQ support"
2121
select REGMAP
2222
select REGMAP_IRQ
23+
depends on SND_SOC_SDCA
24+
default y
2325
help
2426
This option enables support for SDCA IRQs.
2527

28+
config SND_SOC_SDCA_OPTIONAL
29+
def_tristate SND_SOC_SDCA || !SND_SOC_SDCA
30+
2631
endmenu

sound/soc/sdca/Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22

3-
snd-soc-sdca-y := sdca_functions.o sdca_device.o sdca_regmap.o sdca_asoc.o
3+
snd-soc-sdca-y := sdca_functions.o sdca_device.o sdca_regmap.o sdca_asoc.o
44
snd-soc-sdca-hid-y := sdca_hid.o
55
snd-soc-sdca-irq-y := sdca_interrupts.o
66

7-
obj-$(CONFIG_SND_SOC_SDCA) += snd-soc-sdca.o
7+
obj-$(CONFIG_SND_SOC_SDCA) += snd-soc-sdca.o
88
ifdef CONFIG_SND_SOC_SDCA_HID
9-
obj-$(CONFIG_SND_SOC_SDCA) += snd-soc-sdca-hid.o
9+
obj-$(CONFIG_SND_SOC_SDCA) += snd-soc-sdca-hid.o
10+
endif
11+
ifdef CONFIG_SND_SOC_SDCA_IRQ
12+
obj-$(CONFIG_SND_SOC_SDCA) += snd-soc-sdca-irq.o
1013
endif
11-
obj-$(CONFIG_SND_SOC_SDCA_IRQ) += snd-soc-sdca-irq.o

0 commit comments

Comments
 (0)