diff options
| -rw-r--r-- | sound/soc/codecs/rt5645.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c index 23cc2cb8393f..5f24df4fae8e 100644 --- a/sound/soc/codecs/rt5645.c +++ b/sound/soc/codecs/rt5645.c | |||
| @@ -55,6 +55,8 @@ MODULE_PARM_DESC(quirk, "RT5645 pdata quirk override"); | |||
| 55 | 55 | ||
| 56 | #define RT5645_HWEQ_NUM 57 | 56 | #define RT5645_HWEQ_NUM 57 |
| 57 | 57 | ||
| 58 | #define TIME_TO_POWER_MS 400 | ||
| 59 | |||
| 58 | static const struct regmap_range_cfg rt5645_ranges[] = { | 60 | static const struct regmap_range_cfg rt5645_ranges[] = { |
| 59 | { | 61 | { |
| 60 | .name = "PR", | 62 | .name = "PR", |
| @@ -3784,6 +3786,12 @@ static int rt5645_i2c_probe(struct i2c_client *i2c, | |||
| 3784 | ret); | 3786 | ret); |
| 3785 | return ret; | 3787 | return ret; |
| 3786 | } | 3788 | } |
| 3789 | |||
| 3790 | /* | ||
| 3791 | * Read after 400msec, as it is the interval required between | ||
| 3792 | * read and power On. | ||
| 3793 | */ | ||
| 3794 | msleep(TIME_TO_POWER_MS); | ||
| 3787 | regmap_read(regmap, RT5645_VENDOR_ID2, &val); | 3795 | regmap_read(regmap, RT5645_VENDOR_ID2, &val); |
| 3788 | 3796 | ||
| 3789 | switch (val) { | 3797 | switch (val) { |
