Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230436
b: refs/heads/master
c: 68d44ee
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Dec 21, 2010
1 parent ef7c1d0 commit 41f9506
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: be4fcddd17f01ede0ff46cf86c5ab8c5adb37175
refs/heads/master: 68d44ee0bc70be30ea1ee936e6e21082193386cf
17 changes: 15 additions & 2 deletions trunk/sound/soc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

menuconfig SND_SOC
tristate "ALSA for SoC audio support"
select LZO_COMPRESS
select LZO_DECOMPRESS
select SND_PCM
select AC97_BUS if SND_SOC_AC97_BUS
select SND_JACK if INPUT=y || INPUT=SND
Expand All @@ -22,6 +20,21 @@ menuconfig SND_SOC

if SND_SOC

config SND_SOC_CACHE_LZO
bool "Support LZO compression for register caches"
select LZO_COMPRESS
select LZO_DECOMPRESS
---help---
Select this to enable LZO compression for register caches.
This will allow machine or CODEC drivers to compress register
caches in memory, reducing the memory consumption at the
expense of performance. If this is not present and is used
the system will fall back to uncompressed caches.

Usually it is safe to disable this option, where cache
compression in used the rbtree option will typically perform
better.

config SND_SOC_AC97_BUS
bool

Expand Down
4 changes: 4 additions & 0 deletions trunk/sound/soc/soc-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,7 @@ static int snd_soc_rbtree_cache_init(struct snd_soc_codec *codec)
return 0;
}

#ifdef CONFIG_SND_SOC_CACHE_LZO
struct snd_soc_lzo_ctx {
void *wmem;
void *dst;
Expand Down Expand Up @@ -1399,6 +1400,7 @@ static int snd_soc_lzo_cache_init(struct snd_soc_codec *codec)
}
return ret;
}
#endif

static int snd_soc_flat_cache_sync(struct snd_soc_codec *codec)
{
Expand Down Expand Up @@ -1541,6 +1543,7 @@ static const struct snd_soc_cache_ops cache_types[] = {
.write = snd_soc_flat_cache_write,
.sync = snd_soc_flat_cache_sync
},
#ifdef CONFIG_SND_SOC_CACHE_LZO
{
.id = SND_SOC_LZO_COMPRESSION,
.name = "LZO",
Expand All @@ -1550,6 +1553,7 @@ static const struct snd_soc_cache_ops cache_types[] = {
.write = snd_soc_lzo_cache_write,
.sync = snd_soc_lzo_cache_sync
},
#endif
{
.id = SND_SOC_RBTREE_COMPRESSION,
.name = "rbtree",
Expand Down

0 comments on commit 41f9506

Please sign in to comment.