Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283746
b: refs/heads/master
c: e3470da
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Nov 22, 2011
1 parent 18ac785 commit 4972314
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 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: dbb1f516375b3019373f2177b46e334b47a6d8bf
refs/heads/master: e3470da9e6f1f958737df7fe95631d20024f61b2
2 changes: 1 addition & 1 deletion trunk/sound/soc/codecs/ad1836.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

#define AD1836_ADC_CTRL2 13
#define AD1836_ADC_WORD_LEN_MASK 0x30
#define AD1836_ADC_WORD_OFFSET 5
#define AD1836_ADC_WORD_OFFSET 4
#define AD1836_ADC_SERFMT_MASK (7 << 6)
#define AD1836_ADC_SERFMT_PCK256 (0x4 << 6)
#define AD1836_ADC_SERFMT_PCK128 (0x5 << 6)
Expand Down
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 4972314

Please sign in to comment.