aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@canonical.com>2011-07-27 12:48:41 -0400
committerTakashi Iwai <tiwai@suse.de>2011-07-27 13:16:05 -0400
commit8d34e6d3ec0393a286569587fbd9675abd258d93 (patch)
treea9cc1ef4024ff96a93b0c0f2013d0d604a7b9177 /sound
parentc48a8fb0d31d6147d8d76b8e2ad7f51a2fbb5c4d (diff)
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>
Diffstat (limited to 'sound')
-rw-r--r--sound/oss/ad1848.c6
-rw-r--r--sound/oss/sb_mixer.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/sound/oss/ad1848.c b/sound/oss/ad1848.c
index 4d2a6ae978f7..8a197fd3c57e 100644
--- a/sound/oss/ad1848.c
+++ b/sound/oss/ad1848.c
@@ -458,7 +458,7 @@ static int ad1848_set_recmask(ad1848_info * devc, int mask)
458 return mask; 458 return mask;
459} 459}
460 460
461static void change_bits(ad1848_info * devc, unsigned char *regval, 461static void oss_change_bits(ad1848_info *devc, unsigned char *regval,
462 unsigned char *muteval, int dev, int chn, int newval) 462 unsigned char *muteval, int dev, int chn, int newval)
463{ 463{
464 unsigned char mask; 464 unsigned char mask;
@@ -516,10 +516,10 @@ static void ad1848_mixer_set_channel(ad1848_info *devc, int dev, int value, int
516 516
517 if (muteregoffs != regoffs) { 517 if (muteregoffs != regoffs) {
518 muteval = ad_read(devc, muteregoffs); 518 muteval = ad_read(devc, muteregoffs);
519 change_bits(devc, &val, &muteval, dev, channel, value); 519 oss_change_bits(devc, &val, &muteval, dev, channel, value);
520 } 520 }
521 else 521 else
522 change_bits(devc, &val, &val, dev, channel, value); 522 oss_change_bits(devc, &val, &val, dev, channel, value);
523 523
524 spin_lock_irqsave(&devc->lock,flags); 524 spin_lock_irqsave(&devc->lock,flags);
525 ad_write(devc, regoffs, val); 525 ad_write(devc, regoffs, val);
diff --git a/sound/oss/sb_mixer.c b/sound/oss/sb_mixer.c
index 2039d31b7e22..f8f3b7a66b73 100644
--- a/sound/oss/sb_mixer.c
+++ b/sound/oss/sb_mixer.c
@@ -232,7 +232,7 @@ static int detect_mixer(sb_devc * devc)
232 return 1; 232 return 1;
233} 233}
234 234
235static void change_bits(sb_devc * devc, unsigned char *regval, int dev, int chn, int newval) 235static void oss_change_bits(sb_devc *devc, unsigned char *regval, int dev, int chn, int newval)
236{ 236{
237 unsigned char mask; 237 unsigned char mask;
238 int shift; 238 int shift;
@@ -284,7 +284,7 @@ int sb_common_mixer_set(sb_devc * devc, int dev, int left, int right)
284 return -EINVAL; 284 return -EINVAL;
285 285
286 val = sb_getmixer(devc, regoffs); 286 val = sb_getmixer(devc, regoffs);
287 change_bits(devc, &val, dev, LEFT_CHN, left); 287 oss_change_bits(devc, &val, dev, LEFT_CHN, left);
288 288
289 if ((*devc->iomap)[dev][RIGHT_CHN].regno != regoffs) /* 289 if ((*devc->iomap)[dev][RIGHT_CHN].regno != regoffs) /*
290 * Change register 290 * Change register
@@ -304,7 +304,7 @@ int sb_common_mixer_set(sb_devc * devc, int dev, int left, int right)
304 * Read the new one 304 * Read the new one
305 */ 305 */
306 } 306 }
307 change_bits(devc, &val, dev, RIGHT_CHN, right); 307 oss_change_bits(devc, &val, dev, RIGHT_CHN, right);
308 308
309 sb_setmixer(devc, regoffs, val); 309 sb_setmixer(devc, regoffs, val);
310 310