* [PATCH] sound/soc/rockchip: add RT5640 codec option
@ 2018-11-28 7:28 Max Kellermann
0 siblings, 0 replies; only message in thread
From: Max Kellermann @ 2018-11-28 7:28 UTC (permalink / raw)
To: heiko, linux-rockchip; +Cc: linux-kernel, bardliao, oder_chiou, Max Kellermann
The Firefly-RK3399 DeviceTree
(`arch/arm64/boot/dts/rockchip/rk3399-firefly.dts`) defines a
`simple-audio-card` device which selects a `realtek,rt5640` codec.
This codec however is inaccessible in the kernel configuration
(`SND_SOC_RT5640`) and thus cannot be used.
This patch adds a new configuration option named
`SND_SOC_ROCKCHIP_RT5640` which selects `SND_SOC_RT5640` and
`SND_SIMPLE_CARD`, but does nothing else.
It enables `SND_SIMPLE_CARD`, because that's what the Firefly has.
I'm not sure if there are Rockchip products which need a different
sound card driver with RT5640.
Signed-off-by: Max Kellermann <max.kellermann@gmail.com>
---
sound/soc/rockchip/Kconfig | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/sound/soc/rockchip/Kconfig b/sound/soc/rockchip/Kconfig
index 957046ac6c8c..ac2e27043107 100644
--- a/sound/soc/rockchip/Kconfig
+++ b/sound/soc/rockchip/Kconfig
@@ -42,6 +42,16 @@ config SND_SOC_ROCKCHIP_MAX98090
Say Y or M here if you want to add support for SoC audio on Rockchip
boards using the MAX98090 codec, such as Veyron.
+config SND_SOC_ROCKCHIP_RT5640
+ tristate "ASoC support for Rockchip boards using a RT5640 codec"
+ depends on SND_SOC_ROCKCHIP
+ select SND_SOC_ROCKCHIP_I2S
+ select SND_SOC_RT5640
+ select SND_SIMPLE_CARD
+ help
+ Say Y or M here if you want to add support for SoC audio on Rockchip
+ boards using the RT5640 codec, such as Firefly-RK3399.
+
config SND_SOC_ROCKCHIP_RT5645
tristate "ASoC support for Rockchip boards using a RT5645/RT5650 codec"
depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && CLKDEV_LOOKUP
--
2.19.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-11-28 7:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-28 7:28 [PATCH] sound/soc/rockchip: add RT5640 codec option Max Kellermann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).