Commit 0c279a59 authored by Akshu Agrawal's avatar Akshu Agrawal Committed by Mark Brown

ASoC: rt5645: Wait for 400msec before concluding on value of RT5645_VENDOR_ID2

Minimum time required between power On of codec and read
of RT5645_VENDOR_ID2 is 400msec. We should wait that long
before reading the value.

TEST=Cold boot the device and check for sound device.
Signed-off-by: default avatarAkshu Agrawal <>
Signed-off-by: default avatarBard Liao <>
Signed-off-by: default avatarAlex Deucher <>
Signed-off-by: default avatarMark Brown <>
parent 50f510a3
......@@ -55,6 +55,8 @@ MODULE_PARM_DESC(quirk, "RT5645 pdata quirk override");
#define RT5645_HWEQ_NUM 57
#define TIME_TO_POWER_MS 400
static const struct regmap_range_cfg rt5645_ranges[] = {
.name = "PR",
......@@ -3784,6 +3786,12 @@ static int rt5645_i2c_probe(struct i2c_client *i2c,
return ret;
* Read after 400msec, as it is the interval required between
* read and power On.
regmap_read(regmap, RT5645_VENDOR_ID2, &val);
switch (val) {
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment