ASoC: codecs: allow compile testing without MFD drivers
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fri, 26 Aug 2022 09:36:59 +0000 (12:36 +0300)
committerMark Brown <broonie@kernel.org>
Sun, 28 Aug 2022 21:04:57 +0000 (22:04 +0100)
Motorola CPCAP, Lochnagar Sound, Rockchip RK817 and Qualcomm
WCD9340/WCD9341 do not depend on parent MFD driver in build time and can
be compile tested without respective MFD part for increased build
coverage.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220826093659.1059276-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/Kconfig

index 5926b33..94b7bb8 100644 (file)
@@ -610,7 +610,7 @@ config SND_SOC_BT_SCO
 
 config SND_SOC_CPCAP
        tristate "Motorola CPCAP codec"
-       depends on MFD_CPCAP
+       depends on MFD_CPCAP || COMPILE_TEST
 
 config SND_SOC_CQ0093VC
        tristate
@@ -972,7 +972,7 @@ config SND_SOC_LM49453
 
 config SND_SOC_LOCHNAGAR_SC
        tristate "Lochnagar Sound Card"
-       depends on MFD_LOCHNAGAR
+       depends on MFD_LOCHNAGAR || COMPILE_TEST
        help
          This driver support the sound card functionality of the Cirrus
          Logic Lochnagar audio development board.
@@ -1197,7 +1197,7 @@ config SND_SOC_RK3328
 
 config SND_SOC_RK817
        tristate "Rockchip RK817 audio CODEC"
-       depends on MFD_RK808
+       depends on MFD_RK808 || COMPILE_TEST
        select REGMAP_I2C
 
 config SND_SOC_RL6231
@@ -1745,7 +1745,7 @@ config SND_SOC_WCD934X
        tristate "WCD9340/WCD9341 Codec"
        depends on COMMON_CLK
        select SND_SOC_WCD_MBHC
-       depends on MFD_WCD934X
+       depends on MFD_WCD934X || COMPILE_TEST
        help
          The WCD9340/9341 is a audio codec IC Integrated in
          Qualcomm SoCs like SDM845.