From 09407b6be383a1a6220545f14122c3ef6407b047 Mon Sep 17 00:00:00 2001 From: Xingyu Wu Date: Wed, 1 Feb 2023 11:18:38 +0800 Subject: [PATCH] sound: starfive: pwmdac: Support module building Change Makefile and Kconfig to support module building. Signed-off-by: Xingyu Wu --- sound/soc/starfive/Kconfig | 7 +++++++ sound/soc/starfive/Makefile | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/sound/soc/starfive/Kconfig b/sound/soc/starfive/Kconfig index 4510c91..bbe5097 100644 --- a/sound/soc/starfive/Kconfig +++ b/sound/soc/starfive/Kconfig @@ -14,6 +14,13 @@ config SND_SOC_STARFIVE_PWMDAC help Say Y or M if you want to add support for sf pwmdac driver. +config SND_SOC_STARFIVE_PWMDAC_TRANSMITTER + tristate "Starfive PWMDAC transmitter dit codecs" + depends on SND_SOC_STARFIVE_PWMDAC + default SND_SOC_STARFIVE_PWMDAC + help + Say Y or M if you want to add support for sf pwmdac transmitter dit driver. + config SND_SOC_STARFIVE_PWMDAC_PCM bool "PCM PIO extension for PWMDAC" depends on SND_SOC_STARFIVE_PWMDAC diff --git a/sound/soc/starfive/Makefile b/sound/soc/starfive/Makefile index 9355f90..85c0759 100644 --- a/sound/soc/starfive/Makefile +++ b/sound/soc/starfive/Makefile @@ -1,6 +1,6 @@ # starfive Platform Support -obj-$(CONFIG_SND_SOC_STARFIVE_PWMDAC) += pwmdac.o -pwmdac-y := starfive_pwmdac.o starfive_pwmdac_transmitter.o +obj-$(CONFIG_SND_SOC_STARFIVE_PWMDAC) += starfive_pwmdac.o +obj-$(CONFIG_SND_SOC_STARFIVE_PWMDAC_TRANSMITTER) += starfive_pwmdac_transmitter.o pwmdac-$(CONFIG_SND_SOC_STARFIVE_PWMDAC_PCM) += starfive_pwmdac_pcm.o obj-$(CONFIG_SND_SOC_STARFIVE_PDM) += starfive_pdm.o -- 2.7.4