ASoC: Samsung: Update Kconfig for Exynos5250 and Exynos4412
Subsystems (4)
PATCH v2 1/1 ASoC: Samsung: Update Kconfig for Exynos5250 and Exynos4412
Update Kconfig file to support the Exynos5250 and Exynos4412
--- sound/soc/samsung/Kconfig | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
sound/soc/samsung/Kconfig +4 -4
@@ -1,6 +1,6 @@ config SND_SOC_SAMSUNG tristate "ASoC support for Samsung" - depends on ARCH_S3C24XX || ARCH_S3C64XX || ARCH_S5PC100 || ARCH_S5PV210 || ARCH_S5P64X0 || ARCH_EXYNOS4 + depends on PLAT_SAMSUNG select S3C64XX_DMA if ARCH_S3C64XX select S3C2410_DMA if ARCH_S3C24XX help
@@ -63,7 +63,7 @@ config SND_SOC_SAMSUNG_SMDK_WM8580 config SND_SOC_SAMSUNG_SMDK_WM8994 tristate "SoC I2S Audio support for WM8994 on SMDK" - depends on SND_SOC_SAMSUNG && (MACH_SMDKV310 || MACH_SMDKC210 || MACH_SMDK4212) + depends on SND_SOC_SAMSUNG && (MACH_SMDKV310 || MACH_SMDKC210 || MACH_SMDK4212 || MACH_SMDK4412 || MACH_EXYNOS5_DT) depends on I2C=y && GENERIC_HARDIRQS select MFD_WM8994 select SND_SOC_WM8994
@@ -162,7 +162,7 @@ config SND_SOC_GONI_AQUILA_WM8994 config SND_SOC_SAMSUNG_SMDK_SPDIF tristate "SoC S/PDIF Audio support for SMDK" - depends on SND_SOC_SAMSUNG && (MACH_SMDKC100 || MACH_SMDKC110 || MACH_SMDKV210 || MACH_SMDKV310 || MACH_SMDK4212) + depends on SND_SOC_SAMSUNG && (MACH_SMDKC100 || MACH_SMDKC110 || MACH_SMDKV210 || MACH_SMDKV310 || MACH_SMDK4212 || MACH_SMDK4412 || SOC_EXYNOS5250) select SND_SAMSUNG_SPDIF help Say Y if you want to add support for SoC S/PDIF audio on the SMDK.
@@ -177,7 +177,7 @@ config SND_SOC_SMDK_WM8580_PCM config SND_SOC_SMDK_WM8994_PCM tristate "SoC PCM Audio support for WM8994 on SMDK" - depends on SND_SOC_SAMSUNG && (MACH_SMDKC210 || MACH_SMDKV310 || MACH_SMDK4212) + depends on SND_SOC_SAMSUNG && (MACH_SMDKC210 || MACH_SMDKV310 || MACH_SMDK4212 || MACH_SMDK4412 || MACH_EXYNOS5_DT) depends on I2C=y && GENERIC_HARDIRQS select MFD_WM8994 select SND_SOC_WM8994
Signature · 1 line
1.7.4.4
PATCH v2 1/1 ASoC: Samsung: Update Kconfig for Exynos5250 and Exynos4412
sound/soc/samsung/Kconfig line 6
Quoted 13 lines · Padmavathi Venna
sound/soc/samsung/Kconfig +0
-1@@ -1,6 +1,6 @@ config SND_SOC_SAMSUNG tristate "ASoC support for Samsung" - depends on ARCH_S3C24XX || ARCH_S3C64XX || ARCH_S5PC100 || ARCH_S5PV210||
ARCH_S5P64X0||ARCH_EXYNOS4sound/soc/samsung/Kconfig +1
-0+ depends on PLAT_SAMSUNG select S3C64XX_DMA if ARCH_S3C64XX select S3C2410_DMA if ARCH_S3C24XX help
This code is already updated.
sound/soc/samsung/Kconfig
Quoted 11 lines
sound/soc/samsung/Kconfig +1
-1@@ -63,7 +63,7 @@ config SND_SOC_SAMSUNG_SMDK_WM8580 config SND_SOC_SAMSUNG_SMDK_WM8994 tristate "SoC I2S Audio support for WM8994 on SMDK" - depends on SND_SOC_SAMSUNG && (MACH_SMDKV310 || MACH_SMDKC210 || MACH_SMDK4212) + depends on SND_SOC_SAMSUNG && (MACH_SMDKV310 || MACH_SMDKC210 || MACH_SMDK4212 || MACH_SMDK4412 || MACH_EXYNOS5_DT) depends on I2C=y && GENERIC_HARDIRQSsound/soc/samsung/Kconfig +0
-0select MFD_WM8994 select SND_SOC_WM8994
I'm not sure about this since MACH_EXYNOS5_DT can have others instead of SMDK.
Thanks,
Sangsu.
PATCH v2 1/1 ASoC: Samsung: Update Kconfig for Exynos5250 and Exynos4412
Quoted 21 lines · Sangsu Park
sound/soc/samsung/Kconfig line 6
Quoted 13 lines · Padmavathi Venna
sound/soc/samsung/Kconfig +0
-1@@ -1,6 +1,6 @@ config SND_SOC_SAMSUNG tristate "ASoC support for Samsung" - depends on ARCH_S3C24XX || ARCH_S3C64XX || ARCH_S5PC100 || ARCH_S5PV210||
ARCH_S5P64X0||ARCH_EXYNOS4sound/soc/samsung/Kconfig +1
-0+ depends on PLAT_SAMSUNG select S3C64XX_DMA if ARCH_S3C64XX select S3C2410_DMA if ARCH_S3C24XX helpThis code is already updated.
Quoted 2 lines
sound/soc/samsung/Kconfig +0
-0@@ -63,7 +63,7 @@ config SND_SOC_SAMSUNG_SMDK_WM8580
Quoted 12 lines
sound/soc/samsung/Kconfig
Quoted 9 lines
sound/soc/samsung/Kconfig +1
-1config SND_SOC_SAMSUNG_SMDK_WM8994 tristate "SoC I2S Audio support for WM8994 on SMDK" - depends on SND_SOC_SAMSUNG && (MACH_SMDKV310 || MACH_SMDKC210 || MACH_SMDK4212) + depends on SND_SOC_SAMSUNG && (MACH_SMDKV310 || MACH_SMDKC210 || MACH_SMDK4212 || MACH_SMDK4412 || MACH_EXYNOS5_DT) depends on I2C=y && GENERIC_HARDIRQSsound/soc/samsung/Kconfig +0
-0select MFD_WM8994 select SND_SOC_WM8994I'm not sure about this since
MACH_EXYNOS5_DTcan have others instead of SMDK.
But there is no other way we can differentiate between two EXYNOS5_DT based boards in the kernel. So, support for all possible codecs and sound-cards should be enabled in the kernel. The instantiation of the drivers should depend on the device-tree entries.
Quoted 8 lines
Thanks,
Sangsu.--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 1 line
Tushar Behera
PATCH v2 1/1 ASoC: Samsung: Update Kconfig for Exynos5250 and Exynos4412
Quoted 5 lines · Tushar Behera
Quoted 3 lines · Sangsu Park
On Thu, Sep 27, 2012 at 07:30 PM, Padmavathi Venna wrote:
[...]
Quoted 13 lines
Quoted 13 lines
Review
Quoted 11 lines
sound/soc/samsung/Kconfig +1
-1@@ -63,7 +63,7 @@ config SND_SOC_SAMSUNG_SMDK_WM8580 config SND_SOC_SAMSUNG_SMDK_WM8994 tristate "SoC I2S Audio support for WM8994 on SMDK" - depends on SND_SOC_SAMSUNG && (MACH_SMDKV310 || MACH_SMDKC210 || MACH_SMDK4212) + depends on SND_SOC_SAMSUNG && (MACH_SMDKV310 || MACH_SMDKC210 || MACH_SMDK4212 || MACH_SMDK4412 || MACH_EXYNOS5_DT) depends on I2C=y && GENERIC_HARDIRQS(quoted diff) +0
-0select MFD_WM8994 select SND_SOC_WM8994I'm not sure about this since
MACH_EXYNOS5_DTcan have others instead of
Quoted 8 lines
SMDK.
Quoted 1 line
But there is no other way we can differentiate between two
EXYNOS5_DTbased boards in the kernel. So, support for all possible codecs and sound-cards should be enabled in the kernel. The instantiation of the drivers should depend on the device-tree entries.
Hmm...any idea on this?
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.
PATCH v2 1/1 ASoC: Samsung: Update Kconfig for Exynos5250 and Exynos4412
2012/10/23 Kukjin Kim <[email protected]>:
Quoted 25 lines
Quoted 5 lines · Tushar Behera
Quoted 3 lines · Sangsu Park
On Thu, Sep 27, 2012 at 07:30 PM, Padmavathi Venna wrote:
[...]
Quoted 16 lines
Quoted 13 lines
Quoted 11 lines
sound/soc/samsung/Kconfig +1
-1@@ -63,7 +63,7 @@ config SND_SOC_SAMSUNG_SMDK_WM8580 config SND_SOC_SAMSUNG_SMDK_WM8994 tristate "SoC I2S Audio support for WM8994 on SMDK" - depends on SND_SOC_SAMSUNG && (MACH_SMDKV310 || MACH_SMDKC210 || MACH_SMDK4212) + depends on SND_SOC_SAMSUNG && (MACH_SMDKV310 || MACH_SMDKC210 || MACH_SMDK4212 || MACH_SMDK4412 || MACH_EXYNOS5_DT) depends on I2C=y && GENERIC_HARDIRQSselect MFD_WM8994 select SND_SOC_WM8994I'm not sure about this since
MACH_EXYNOS5_DTcan have others instead ofSMDK.
Quoted 1 line
Quoted 6 lines
Quoted 5 lines
But there is no other way we can differentiate between two
EXYNOS5_DTbased boards in the kernel. So, support for all possible codecs and sound-cards should be enabled in the kernel. The instantiation of the drivers should depend on the device-tree entries.Hmm...any idea on this?
Tushar is right. In particular, there is absolutely no reason to enforce driver selection based on platform enablement, as long as it still builds no matter what (and if it doesn't, that should probably be fixed).
It should be possible to enable a superset of all drivers, and only have the ones that are actually instantiated by platform devices or device tree entries probe and configure. That's how the kernel works on nearly all platforms.
So, removing as much "depends on" as possible (probably only keep SND_SOC_SAMSUNG here) seems like a good choice, and fixing any compilation errors caused by it.
-Olof