mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
ASoC: rockchip: i2s-tdm: Remove sync reset for latest soc
Do sync reset only for PX30/RK1808/RK3308, because the BUG 'fsync is out of sync' had been fixed on the latest version controller. Change-Id: Ia4cd711a213cc03221726f7b6e89de3c317dc965 Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
This commit is contained in:
@@ -1625,6 +1625,7 @@ static int rockchip_i2s_tdm_probe(struct platform_device *pdev)
|
||||
struct snd_soc_dai_driver *soc_dai;
|
||||
struct resource *res;
|
||||
void __iomem *regs;
|
||||
bool sync;
|
||||
int ret;
|
||||
int val;
|
||||
|
||||
@@ -1672,7 +1673,11 @@ static int rockchip_i2s_tdm_probe(struct platform_device *pdev)
|
||||
if (IS_ERR(i2s_tdm->grf))
|
||||
return PTR_ERR(i2s_tdm->grf);
|
||||
|
||||
if (i2s_tdm->clk_trcm) {
|
||||
sync = of_device_is_compatible(node, "rockchip,px30-i2s-tdm") ||
|
||||
of_device_is_compatible(node, "rockchip,rk1808-i2s-tdm") ||
|
||||
of_device_is_compatible(node, "rockchip,rk3308-i2s-tdm");
|
||||
|
||||
if (i2s_tdm->clk_trcm && sync) {
|
||||
cru_node = of_parse_phandle(node, "rockchip,cru", 0);
|
||||
i2s_tdm->cru_base = of_iomap(cru_node, 0);
|
||||
if (!i2s_tdm->cru_base)
|
||||
|
||||
Reference in New Issue
Block a user