Commit 2e19b0c8 authored by Mark Brown's avatar Mark Brown

ASoC: Enable rbtree compression for WM8994/58 register cache

The WM8994 and WM8958 register map is relatively sparse so benefits
from compression. The rbtree compression gives better results than
LZO for both memory and CPU consumption on a map as sparse as this.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent ca9aef50
...@@ -3033,6 +3033,7 @@ static struct snd_soc_codec_driver soc_codec_dev_wm8994 = { ...@@ -3033,6 +3033,7 @@ static struct snd_soc_codec_driver soc_codec_dev_wm8994 = {
.reg_cache_size = WM8994_CACHE_SIZE, .reg_cache_size = WM8994_CACHE_SIZE,
.reg_cache_default = wm8994_reg_defaults, .reg_cache_default = wm8994_reg_defaults,
.reg_word_size = 2, .reg_word_size = 2,
.compress_type = SND_SOC_RBTREE_COMPRESSION,
}; };
static int __devinit wm8994_probe(struct platform_device *pdev) static int __devinit wm8994_probe(struct platform_device *pdev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment