Commit 8d34e6d3 authored by Andy Whitcroft's avatar Andy Whitcroft Committed by Takashi Iwai

sound: oss: rename local change_bits to avoid powerpc bitsops.h definition

This collides with powerpc exported functions from bitops.h.  Rename the
local copy in the oss soundblaster mixer and ad1848 driver.
Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent c48a8fb0
...@@ -458,7 +458,7 @@ static int ad1848_set_recmask(ad1848_info * devc, int mask) ...@@ -458,7 +458,7 @@ static int ad1848_set_recmask(ad1848_info * devc, int mask)
return 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 *muteval, int dev, int chn, int newval)
{ {
unsigned char mask; unsigned char mask;
...@@ -516,10 +516,10 @@ static void ad1848_mixer_set_channel(ad1848_info *devc, int dev, int value, int ...@@ -516,10 +516,10 @@ static void ad1848_mixer_set_channel(ad1848_info *devc, int dev, int value, int
if (muteregoffs != regoffs) { if (muteregoffs != regoffs) {
muteval = ad_read(devc, muteregoffs); muteval = ad_read(devc, muteregoffs);
change_bits(devc, &val, &muteval, dev, channel, value); oss_change_bits(devc, &val, &muteval, dev, channel, value);
} }
else else
change_bits(devc, &val, &val, dev, channel, value); oss_change_bits(devc, &val, &val, dev, channel, value);
spin_lock_irqsave(&devc->lock,flags); spin_lock_irqsave(&devc->lock,flags);
ad_write(devc, regoffs, val); ad_write(devc, regoffs, val);
......
...@@ -232,7 +232,7 @@ static int detect_mixer(sb_devc * devc) ...@@ -232,7 +232,7 @@ static int detect_mixer(sb_devc * devc)
return 1; 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; unsigned char mask;
int shift; int shift;
...@@ -284,7 +284,7 @@ int sb_common_mixer_set(sb_devc * devc, int dev, int left, int right) ...@@ -284,7 +284,7 @@ int sb_common_mixer_set(sb_devc * devc, int dev, int left, int right)
return -EINVAL; return -EINVAL;
val = sb_getmixer(devc, regoffs); 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) /* if ((*devc->iomap)[dev][RIGHT_CHN].regno != regoffs) /*
* Change register * Change register
...@@ -304,7 +304,7 @@ int sb_common_mixer_set(sb_devc * devc, int dev, int left, int right) ...@@ -304,7 +304,7 @@ int sb_common_mixer_set(sb_devc * devc, int dev, int left, int right)
* Read the new one * 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); sb_setmixer(devc, regoffs, val);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment