Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276278
b: refs/heads/master
c: 5c4b2aa
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Nov 22, 2011
1 parent a1a287e commit bff391c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 72531c9434fa884d20cb3c36fcec83752f32fdf4
refs/heads/master: 5c4b2aa3fd1dc30af098de5dec766a817621ace2
10 changes: 5 additions & 5 deletions trunk/sound/soc/codecs/max9877.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,13 @@ static int max9877_set_2reg(struct snd_kcontrol *kcontrol,
unsigned int mask = mc->max;
unsigned int val = (ucontrol->value.integer.value[0] & mask);
unsigned int val2 = (ucontrol->value.integer.value[1] & mask);
unsigned int change = 1;
unsigned int change = 0;

if (((max9877_regs[reg] >> shift) & mask) == val)
change = 0;
if (((max9877_regs[reg] >> shift) & mask) != val)
change = 1;

if (((max9877_regs[reg2] >> shift) & mask) == val2)
change = 0;
if (((max9877_regs[reg2] >> shift) & mask) != val2)
change = 1;

if (change) {
max9877_regs[reg] &= ~(mask << shift);
Expand Down

0 comments on commit bff391c

Please sign in to comment.