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: Andy Whitcroft <apw@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:

committed by
Takashi Iwai

parent
c48a8fb0d3
commit
8d34e6d3ec
@@ -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;
|
||||
@@ -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
|
||||
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user