Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193352
b: refs/heads/master
c: f4bee1b
h: refs/heads/master
v: v3
  • Loading branch information
Barry Song authored and Mark Brown committed Mar 18, 2010
1 parent 035f064 commit 8295578
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 85dfcdffc227717fd218b9a86b507d9b7a3c321d
refs/heads/master: f4bee1bb0083869b1b7d73c6eda7703a7aae0506
4 changes: 3 additions & 1 deletion trunk/sound/soc/soc-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ static int snd_soc_8_8_write(struct snd_soc_codec *codec, unsigned int reg,

BUG_ON(codec->volatile_register);

data[0] = reg & 0xff;
reg &= 0xff;
data[0] = reg;
data[1] = value & 0xff;

if (reg < codec->reg_cache_size)
Expand All @@ -180,6 +181,7 @@ static unsigned int snd_soc_8_8_read(struct snd_soc_codec *codec,
unsigned int reg)
{
u8 *cache = codec->reg_cache;
reg &= 0xff;
if (reg >= codec->reg_cache_size)
return -1;
return cache[reg];
Expand Down

0 comments on commit 8295578

Please sign in to comment.