Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260966
b: refs/heads/master
c: 8d34e6d
h: refs/heads/master
v: v3
  • Loading branch information
Andy Whitcroft authored and Takashi Iwai committed Jul 27, 2011
1 parent 0e128f7 commit 3b85d21
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: c48a8fb0d31d6147d8d76b8e2ad7f51a2fbb5c4d
refs/heads/master: 8d34e6d3ec0393a286569587fbd9675abd258d93
6 changes: 3 additions & 3 deletions trunk/sound/oss/ad1848.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ static int ad1848_set_recmask(ad1848_info * devc, int mask)
return mask;
}

static void change_bits(ad1848_info * devc, unsigned char *regval,
static void oss_change_bits(ad1848_info *devc, unsigned char *regval,
unsigned char *muteval, int dev, int chn, int newval)
{
unsigned char mask;
Expand Down Expand Up @@ -516,10 +516,10 @@ static void ad1848_mixer_set_channel(ad1848_info *devc, int dev, int value, int

if (muteregoffs != regoffs) {
muteval = ad_read(devc, muteregoffs);
change_bits(devc, &val, &muteval, dev, channel, value);
oss_change_bits(devc, &val, &muteval, dev, channel, value);
}
else
change_bits(devc, &val, &val, dev, channel, value);
oss_change_bits(devc, &val, &val, dev, channel, value);

spin_lock_irqsave(&devc->lock,flags);
ad_write(devc, regoffs, val);
Expand Down
6 changes: 3 additions & 3 deletions trunk/sound/oss/sb_mixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ static int detect_mixer(sb_devc * devc)
return 1;
}

static void change_bits(sb_devc * devc, unsigned char *regval, int dev, int chn, int newval)
static void oss_change_bits(sb_devc *devc, unsigned char *regval, int dev, int chn, int newval)
{
unsigned char mask;
int shift;
Expand Down Expand Up @@ -284,7 +284,7 @@ int sb_common_mixer_set(sb_devc * devc, int dev, int left, int right)
return -EINVAL;

val = sb_getmixer(devc, regoffs);
change_bits(devc, &val, dev, LEFT_CHN, left);
oss_change_bits(devc, &val, dev, LEFT_CHN, left);

if ((*devc->iomap)[dev][RIGHT_CHN].regno != regoffs) /*
* Change register
Expand All @@ -304,7 +304,7 @@ int sb_common_mixer_set(sb_devc * devc, int dev, int left, int right)
* Read the new one
*/
}
change_bits(devc, &val, dev, RIGHT_CHN, right);
oss_change_bits(devc, &val, dev, RIGHT_CHN, right);

sb_setmixer(devc, regoffs, val);

Expand Down

0 comments on commit 3b85d21

Please sign in to comment.