sound/soc/rockchip: add RT5640 codec option
Subsystems (3)
PATCH 1/1 sound/soc/rockchip: add RT5640 codec option
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 <[email protected]>
--- sound/soc/rockchip/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+)
sound/soc/rockchip/Kconfig +10 -0
@@ -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
Signature · 1 line
2.19.2