Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181713
b: refs/heads/master
c: cca80b9
h: refs/heads/master
i:
  181711: 58295b8
v: v3
  • Loading branch information
Clemens Ladisch authored and Mauro Carvalho Chehab committed Feb 26, 2010
1 parent eefae75 commit 0188c21
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: 071193ff4182c8f785e770c54e35f3ea2bb98b84
refs/heads/master: cca80b973244cf7cf721b05b33178ba4826dbc5e
10 changes: 6 additions & 4 deletions trunk/drivers/media/video/cx88/cx88-alsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,16 +583,18 @@ static int snd_cx88_volume_put(struct snd_kcontrol *kcontrol,
{
snd_cx88_card_t *chip = snd_kcontrol_chip(kcontrol);
struct cx88_core *core=chip->core;
int v, b;
int left, right, v, b;
int changed = 0;
u32 old;

b = value->value.integer.value[1] - value->value.integer.value[0];
left = value->value.integer.value[0] & 0x3f;
right = value->value.integer.value[1] & 0x3f;
b = right - left;
if (b < 0) {
v = 0x3f - value->value.integer.value[0];
v = 0x3f - left;
b = (-b) | 0x40;
} else {
v = 0x3f - value->value.integer.value[1];
v = 0x3f - right;
}
/* Do we really know this will always be called with IRQs on? */
spin_lock_irq(&chip->reg_lock);
Expand Down

0 comments on commit 0188c21

Please sign in to comment.