Skip to content

Commit 8d34e6d

Browse files
awhitcrofttiwai
authored andcommitted
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>
1 parent c48a8fb commit 8d34e6d

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎sound/oss/ad1848.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ static int ad1848_set_recmask(ad1848_info * devc, int mask)
458458
return mask;
459459
}
460460

461-
static void change_bits(ad1848_info * devc, unsigned char *regval,
461+
static void oss_change_bits(ad1848_info *devc, unsigned char *regval,
462462
unsigned char *muteval, int dev, int chn, int newval)
463463
{
464464
unsigned char mask;
@@ -516,10 +516,10 @@ static void ad1848_mixer_set_channel(ad1848_info *devc, int dev, int value, int
516516

517517
if (muteregoffs != regoffs) {
518518
muteval = ad_read(devc, muteregoffs);
519-
change_bits(devc, &val, &muteval, dev, channel, value);
519+
oss_change_bits(devc, &val, &muteval, dev, channel, value);
520520
}
521521
else
522-
change_bits(devc, &val, &val, dev, channel, value);
522+
oss_change_bits(devc, &val, &val, dev, channel, value);
523523

524524
spin_lock_irqsave(&devc->lock,flags);
525525
ad_write(devc, regoffs, val);

‎sound/oss/sb_mixer.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ static int detect_mixer(sb_devc * devc)
232232
return 1;
233233
}
234234

235-
static void change_bits(sb_devc * devc, unsigned char *regval, int dev, int chn, int newval)
235+
static void oss_change_bits(sb_devc *devc, unsigned char *regval, int dev, int chn, int newval)
236236
{
237237
unsigned char mask;
238238
int shift;
@@ -284,7 +284,7 @@ int sb_common_mixer_set(sb_devc * devc, int dev, int left, int right)
284284
return -EINVAL;
285285

286286
val = sb_getmixer(devc, regoffs);
287-
change_bits(devc, &val, dev, LEFT_CHN, left);
287+
oss_change_bits(devc, &val, dev, LEFT_CHN, left);
288288

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

309309
sb_setmixer(devc, regoffs, val);
310310

0 commit comments

Comments
 (0)