diff options
author | Shuming Fan <shumingf@realtek.com> | 2022-10-19 12:57:15 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-10-19 15:39:33 +0300 |
commit | 75d8b1662ca5c20cf8365575222abaef18ff1f50 (patch) | |
tree | 4827fb438c308b60dca0b95b4189fbcbbd02ddbe /sound | |
parent | 00aaf8bfe0ee2b807b452df806d725e080d85404 (diff) | |
download | linux-75d8b1662ca5c20cf8365575222abaef18ff1f50.tar.xz |
ASoC: rt1308-sdw: add the default value of some registers
The driver missed the default value of register 0xc070/0xc360.
This patch adds that default value to avoid invalid register access
when the device doesn't be enumerated yet.
BugLink: https://github.com/thesofproject/linux/issues/3924
Signed-off-by: Shuming Fan <shumingf@realtek.com>
Link: https://lore.kernel.org/r/20221019095715.31082-1-shumingf@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/rt1308-sdw.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt1308-sdw.h b/sound/soc/codecs/rt1308-sdw.h index f88f52e8917e..62ce27799307 100644 --- a/sound/soc/codecs/rt1308-sdw.h +++ b/sound/soc/codecs/rt1308-sdw.h @@ -139,10 +139,12 @@ static const struct reg_default rt1308_reg_defaults[] = { { 0x3005, 0x23 }, { 0x3008, 0x02 }, { 0x300a, 0x00 }, + { 0xc000 | (RT1308_DATA_PATH << 4), 0x00 }, { 0xc003 | (RT1308_DAC_SET << 4), 0x00 }, { 0xc000 | (RT1308_POWER << 4), 0x00 }, { 0xc001 | (RT1308_POWER << 4), 0x00 }, { 0xc002 | (RT1308_POWER << 4), 0x00 }, + { 0xc000 | (RT1308_POWER_STATUS << 4), 0x00 }, }; #define RT1308_SDW_OFFSET 0xc000 |