Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232914
b: refs/heads/master
c: e9cf704
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Warren authored and Mark Brown committed Jan 28, 2011
1 parent 05f923e commit 6a01577
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 0fa63b69284c9bbedf876c677a9e650243cc40be
refs/heads/master: e9cf7049330cd44c8af43b0c5c7bef25a086c5b7
6 changes: 3 additions & 3 deletions trunk/sound/soc/soc-dapm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1742,21 +1742,21 @@ int snd_soc_dapm_put_volsw(struct snd_kcontrol *kcontrol,
int max = mc->max;
unsigned int mask = (1 << fls(max)) - 1;
unsigned int invert = mc->invert;
unsigned int val, val_mask;
unsigned int val;
int connect, change;
struct snd_soc_dapm_update update;

val = (ucontrol->value.integer.value[0] & mask);

if (invert)
val = max - val;
val_mask = mask << shift;
mask = mask << shift;
val = val << shift;

mutex_lock(&widget->codec->mutex);
widget->value = val;

change = snd_soc_test_bits(widget->codec, reg, val_mask, val);
change = snd_soc_test_bits(widget->codec, reg, mask, val);
if (change) {
if (val)
/* new connection */
Expand Down

0 comments on commit 6a01577

Please sign in to comment.