diff options
author | Nicolas Frattaroli <frattaroli.nicolas@gmail.com> | 2022-10-25 14:41:32 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-11-25 19:31:07 +0000 |
commit | c619bd4268ff9895760dab303b4eb15ed3d0f7e9 (patch) | |
tree | e2440f8621ce887c07fe7f17d995e88046164b86 /sound/soc/rockchip | |
parent | 0643fd3669f5c33bab5b05a813459a2d00a83465 (diff) | |
download | linux-stable-c619bd4268ff9895760dab303b4eb15ed3d0f7e9.tar.gz linux-stable-c619bd4268ff9895760dab303b4eb15ed3d0f7e9.tar.bz2 linux-stable-c619bd4268ff9895760dab303b4eb15ed3d0f7e9.zip |
ASoC: rockchip: i2s_tdm: Add support for RK3588
This adds support for the RK3588 SoC to the I2S/TDM driver.
Signed-off-by: Nicolas Frattaroli <frattaroli.nicolas@gmail.com>
Link: https://lore.kernel.org/r/20221025124132.399729-5-frattaroli.nicolas@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/rockchip')
-rw-r--r-- | sound/soc/rockchip/rockchip_i2s_tdm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/rockchip/rockchip_i2s_tdm.c b/sound/soc/rockchip/rockchip_i2s_tdm.c index 917f17107891..08b90ec5cc80 100644 --- a/sound/soc/rockchip/rockchip_i2s_tdm.c +++ b/sound/soc/rockchip/rockchip_i2s_tdm.c @@ -1318,6 +1318,7 @@ static const struct of_device_id rockchip_i2s_tdm_match[] = { { .compatible = "rockchip,rk1808-i2s-tdm", .data = &rk1808_i2s_soc_data }, { .compatible = "rockchip,rk3308-i2s-tdm", .data = &rk3308_i2s_soc_data }, { .compatible = "rockchip,rk3568-i2s-tdm", .data = &rk3568_i2s_soc_data }, + { .compatible = "rockchip,rk3588-i2s-tdm" }, { .compatible = "rockchip,rv1126-i2s-tdm", .data = &rv1126_i2s_soc_data }, {}, }; @@ -1556,7 +1557,7 @@ static int rockchip_i2s_tdm_probe(struct platform_device *pdev) i2s_tdm->dev = &pdev->dev; of_id = of_match_device(rockchip_i2s_tdm_match, &pdev->dev); - if (!of_id || !of_id->data) + if (!of_id) return -EINVAL; spin_lock_init(&i2s_tdm->lock); |