diff options
author | Jiri Kosina <jkosina@suse.cz> | 2011-09-15 09:08:05 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-09-15 09:08:18 -0400 |
commit | e060c38434b2caa78efe7cedaff4191040b65a15 (patch) | |
tree | 407361230bf6733f63d8e788e4b5e6566ee04818 /sound/oss | |
parent | 10e4ac572eeffe5317019bd7330b6058a400dfc2 (diff) | |
parent | cc39c6a9bbdebfcf1a7dee64d83bf302bc38d941 (diff) |
Merge branch 'master' into for-next
Fast-forward merge with Linus to be able to merge patches
based on more recent version of the tree.
Diffstat (limited to 'sound/oss')
-rw-r--r-- | sound/oss/ad1848.c | 6 | ||||
-rw-r--r-- | sound/oss/pas2_pcm.c | 8 | ||||
-rw-r--r-- | sound/oss/pss.c | 6 | ||||
-rw-r--r-- | sound/oss/sb_mixer.c | 6 |
4 files changed, 14 insertions, 12 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 | ||
461 | static void change_bits(ad1848_info * devc, unsigned char *regval, | 461 | static 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/pas2_pcm.c b/sound/oss/pas2_pcm.c index 8f7d175767a2..6f13ab4afc6b 100644 --- a/sound/oss/pas2_pcm.c +++ b/sound/oss/pas2_pcm.c | |||
@@ -63,13 +63,13 @@ static int pcm_set_speed(int arg) | |||
63 | 63 | ||
64 | if (pcm_channels & 2) | 64 | if (pcm_channels & 2) |
65 | { | 65 | { |
66 | foo = ((CLOCK_TICK_RATE / 2) + (arg / 2)) / arg; | 66 | foo = ((PIT_TICK_RATE / 2) + (arg / 2)) / arg; |
67 | arg = ((CLOCK_TICK_RATE / 2) + (foo / 2)) / foo; | 67 | arg = ((PIT_TICK_RATE / 2) + (foo / 2)) / foo; |
68 | } | 68 | } |
69 | else | 69 | else |
70 | { | 70 | { |
71 | foo = (CLOCK_TICK_RATE + (arg / 2)) / arg; | 71 | foo = (PIT_TICK_RATE + (arg / 2)) / arg; |
72 | arg = (CLOCK_TICK_RATE + (foo / 2)) / foo; | 72 | arg = (PIT_TICK_RATE + (foo / 2)) / foo; |
73 | } | 73 | } |
74 | 74 | ||
75 | pcm_speed = arg; | 75 | pcm_speed = arg; |
diff --git a/sound/oss/pss.c b/sound/oss/pss.c index 9b800ce5100e..2fc0624024b5 100644 --- a/sound/oss/pss.c +++ b/sound/oss/pss.c | |||
@@ -673,7 +673,8 @@ static void configure_nonsound_components(void) | |||
673 | 673 | ||
674 | if (pss_cdrom_port == -1) { /* If cdrom port enablation wasn't requested */ | 674 | if (pss_cdrom_port == -1) { /* If cdrom port enablation wasn't requested */ |
675 | printk(KERN_INFO "PSS: CDROM port not enabled.\n"); | 675 | printk(KERN_INFO "PSS: CDROM port not enabled.\n"); |
676 | } else if (check_region(pss_cdrom_port, 2)) { | 676 | } else if (!request_region(pss_cdrom_port, 2, "PSS CDROM")) { |
677 | pss_cdrom_port = -1; | ||
677 | printk(KERN_ERR "PSS: CDROM I/O port conflict.\n"); | 678 | printk(KERN_ERR "PSS: CDROM I/O port conflict.\n"); |
678 | } else { | 679 | } else { |
679 | set_io_base(devc, CONF_CDROM, pss_cdrom_port); | 680 | set_io_base(devc, CONF_CDROM, pss_cdrom_port); |
@@ -1232,7 +1233,8 @@ static void __exit cleanup_pss(void) | |||
1232 | if(pssmpu) | 1233 | if(pssmpu) |
1233 | unload_pss_mpu(&cfg_mpu); | 1234 | unload_pss_mpu(&cfg_mpu); |
1234 | unload_pss(&cfg); | 1235 | unload_pss(&cfg); |
1235 | } | 1236 | } else if (pss_cdrom_port != -1) |
1237 | release_region(pss_cdrom_port, 2); | ||
1236 | 1238 | ||
1237 | if(!pss_keep_settings) /* Keep hardware settings if asked */ | 1239 | if(!pss_keep_settings) /* Keep hardware settings if asked */ |
1238 | { | 1240 | { |
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 | ||
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) |
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 | ||