diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-05-26 10:34:20 -0300 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2014-09-16 15:26:29 +0200 |
commit | 3273c585dfef2c846744c62d7392047672dade31 (patch) | |
tree | 0d2c504fc68d05c3cef3fe897394408bf492183b /lib/locking-selftest.c | |
parent | ecece06ca136c5ed43495f53bc80dcc639cf513f (diff) |
ASoC: sgtl5000: Fix the cache handling
Since commit e5d80e82e32e (ASoC: sgtl5000: Convert to use regmap directly) a
kernel oops is observed after a suspend/resume sequence.
The kernel oops happens inside sgtl5000_restore_regs() as codec->reg_cache is no
longer a valid pointer.
Add the remaining register entries into sgtl5000_reg_defaults[] and remove
sgtl5000_restore_regs() completely, which allows suspend/resume to work fine and
make the code simpler.
Tested on a im53-qsb board.
Reported-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Tested-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
(cherry picked from commit 29aa37cddfb9b721013ff28608200d73a9426368)
Diffstat (limited to 'lib/locking-selftest.c')
0 files changed, 0 insertions, 0 deletions