summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Chiu <Kevin.Chiu@quantatw.com>2016-08-12 05:16:29 (GMT)
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2016-08-12 20:44:58 (GMT)
commit8b52ec3dc791004c10795c03a2499dc5e997a270 (patch)
tree68de4182b2017144e209736b2025b5aafb14f339
parent55440431fe72d0724e0965e8334e84023cb9b3a4 (diff)
downloaddepthcharge-firmware-reks-7287.133.B.tar.gz
depthcharge-firmware-reks-7287.133.B.tar.xz
Reks : Enable Codec RT5645 MCLK Detectfirmware-reks-7287.133.B
enable MCLK detect to prevent speaker damage BRANCH=firmware-reks-7287.133.B BUG=none TEST=Build and verified Signed-off-by: Kevin Chiu <Kevin.Chiu@quantatw.com> Change-Id: Id35dc021e3d4a4b8e3e13dbe5b83fd74f3f7d7cb Reviewed-on: https://chromium-review.googlesource.com/368522 Reviewed-by: 永傳 廖 <bardliao@realtek.com> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Commit-Queue: Keith Tzeng <keith.tzeng@quantatw.com> Tested-by: Keith Tzeng <keith.tzeng@quantatw.com>
-rw-r--r--src/drivers/sound/rt5645.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/sound/rt5645.c b/src/drivers/sound/rt5645.c
index 19a86f4..c8147c1 100644
--- a/src/drivers/sound/rt5645.c
+++ b/src/drivers/sound/rt5645.c
@@ -184,7 +184,8 @@ int rt5645_device_init(rt5645Codec *codec)
/* turn on */
rt5645_i2c_writew(codec, RT5645_PWR_ANLG1, 0xA8D2);
- rt5645_i2c_writew(codec, RT5645_GEN_CTRL1, 0x2061);
+ rt5645_i2c_writew(codec, RT5645_GEN_CTRL1, 0x3261);
+ rt5645_i2c_writew(codec, RT5645_GEN_CTRL3, 0x0A00);
rt5645_i2c_writew(codec, RT5645_PWR_ANLG2, 0x0200);
rt5645_i2c_writew(codec, RT5645_PWR_DIG2, 0x0800);
rt5645_i2c_writew(codec, RT5645_ASRC_1, 0x0800);