Commit 16346a3c authored by Jack Yu's avatar Jack Yu Committed by Mark Brown

ASoC: rt715: Add power-up delay to fix dmic pop sound issue.

Add 400ms power-up delay recommended to fix pop noise on capture.
Reviewed-by: default avatarBard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: default avatarRander Wang <rander.wang@linux.intel.com>
Signed-off-by: default avatarJack Yu <jack.yu@realtek.com>
Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200925210509.83353-1-pierre-louis.bossart@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 3bf7b942
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
*/ */
#include <linux/module.h> #include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/delay.h> #include <linux/delay.h>
...@@ -498,6 +497,7 @@ static int rt715_set_bias_level(struct snd_soc_component *component, ...@@ -498,6 +497,7 @@ static int rt715_set_bias_level(struct snd_soc_component *component,
regmap_write(rt715->regmap, regmap_write(rt715->regmap,
RT715_SET_AUDIO_POWER_STATE, RT715_SET_AUDIO_POWER_STATE,
AC_PWRST_D0); AC_PWRST_D0);
msleep(RT715_POWER_UP_DELAY_MS);
} }
break; break;
......
...@@ -210,6 +210,8 @@ enum { ...@@ -210,6 +210,8 @@ enum {
RT715_AIFS, RT715_AIFS,
}; };
#define RT715_POWER_UP_DELAY_MS 400
int rt715_io_init(struct device *dev, struct sdw_slave *slave); int rt715_io_init(struct device *dev, struct sdw_slave *slave);
int rt715_init(struct device *dev, struct regmap *sdw_regmap, int rt715_init(struct device *dev, struct regmap *sdw_regmap,
struct regmap *regmap, struct sdw_slave *slave); struct regmap *regmap, struct sdw_slave *slave);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment