rt1308-sdw.c (715a1284d89a740b197b3bad5eb20d36a397382f) rt1308-sdw.c (7ef8c9edc86cff0881b2eb9a3274796258fbd872)
1// SPDX-License-Identifier: GPL-2.0
2//
3// rt1308-sdw.c -- rt1308 ALSA SoC audio driver
4//
5// Copyright(c) 2019 Realtek Semiconductor Corp.
6//
7//
8#include <linux/delay.h>

--- 687 unchanged lines hidden (view full) ---

696 if (!rt1308->hw_init)
697 return 0;
698
699 regcache_cache_only(rt1308->regmap, true);
700
701 return 0;
702}
703
1// SPDX-License-Identifier: GPL-2.0
2//
3// rt1308-sdw.c -- rt1308 ALSA SoC audio driver
4//
5// Copyright(c) 2019 Realtek Semiconductor Corp.
6//
7//
8#include <linux/delay.h>

--- 687 unchanged lines hidden (view full) ---

696 if (!rt1308->hw_init)
697 return 0;
698
699 regcache_cache_only(rt1308->regmap, true);
700
701 return 0;
702}
703
704#define RT1308_PROBE_TIMEOUT 2000
704#define RT1308_PROBE_TIMEOUT 5000
705
706static int __maybe_unused rt1308_dev_resume(struct device *dev)
707{
708 struct sdw_slave *slave = dev_to_sdw_dev(dev);
709 struct rt1308_sdw_priv *rt1308 = dev_get_drvdata(dev);
710 unsigned long time;
711
712 if (!rt1308->hw_init)

--- 40 unchanged lines hidden ---
705
706static int __maybe_unused rt1308_dev_resume(struct device *dev)
707{
708 struct sdw_slave *slave = dev_to_sdw_dev(dev);
709 struct rt1308_sdw_priv *rt1308 = dev_get_drvdata(dev);
710 unsigned long time;
711
712 if (!rt1308->hw_init)

--- 40 unchanged lines hidden ---