Changeset 445 for GPL/trunk/alsa-kernel
- Timestamp:
- Jun 8, 2009, 11:51:32 AM (16 years ago)
- Location:
- GPL/trunk/alsa-kernel
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/core/control.c
r426 r445 1410 1410 #endif 1411 1411 { 1412 #ifndef TARGET_OS21413 1412 .owner = THIS_MODULE, 1414 #endif1415 1413 .read = snd_ctl_read, 1416 1414 .open = snd_ctl_open, -
GPL/trunk/alsa-kernel/core/hwdep.c
r426 r445 268 268 } 269 269 270 #ifndef TARGET_OS2x271 270 static int snd_hwdep_mmap(struct file * file, struct vm_area_struct * vma) 272 271 { … … 276 275 return -ENXIO; 277 276 } 278 #endif 277 279 278 static int snd_hwdep_control_ioctl(struct snd_card *card, 280 279 struct snd_ctl_file * control, … … 350 349 #endif 351 350 { 352 #ifndef TARGET_OS2353 351 .owner = THIS_MODULE, 354 #endif355 352 .llseek = snd_hwdep_llseek, 356 353 .read = snd_hwdep_read, … … 365 362 .ioctl = snd_hwdep_ioctl_old, 366 363 #endif 367 #ifndef TARGET_OS2x368 364 .mmap = snd_hwdep_mmap, 369 #endif370 365 }; 371 366 -
GPL/trunk/alsa-kernel/core/info.c
r426 r445 172 172 data = file->private_data; 173 173 entry = data->entry; 174 #ifndef TARGET_OS2175 174 lock_kernel(); 176 #endif177 175 switch (entry->content) { 178 176 case SNDRV_INFO_CONTENT_TEXT: … … 203 201 ret = -ENXIO; 204 202 out: 205 #ifndef TARGET_OS2206 203 unlock_kernel(); 207 #endif208 204 return ret; 209 205 } … … 528 524 static const struct file_operations snd_info_entry_operations = 529 525 { 530 #ifndef TARGET_OS2531 526 .owner = THIS_MODULE, 532 #endif533 527 .llseek = snd_info_entry_llseek, 534 528 .read = snd_info_entry_read, -
GPL/trunk/alsa-kernel/core/init.c
r426 r445 344 344 #endif 345 345 { 346 #ifndef TARGET_OS2347 346 .owner = THIS_MODULE, 348 #endif349 347 .llseek = snd_disconnect_llseek, 350 348 .read = snd_disconnect_read, -
GPL/trunk/alsa-kernel/core/oss/mixer_oss.c
r426 r445 36 36 MODULE_DESCRIPTION("Mixer OSS emulation for ALSA."); 37 37 MODULE_LICENSE("GPL"); 38 #ifndef TARGET_OS239 38 MODULE_ALIAS_SNDRV_MINOR(SNDRV_MINOR_OSS_MIXER); 40 #endif41 39 42 40 static int snd_mixer_oss_open(struct inode *inode, struct file *file) … … 412 410 static const struct file_operations snd_mixer_oss_f_ops = 413 411 { 414 #ifndef TARGET_OS2415 412 .owner = THIS_MODULE, 416 #endif417 413 .open = snd_mixer_oss_open, 418 414 .release = snd_mixer_oss_release, -
GPL/trunk/alsa-kernel/core/oss/pcm_oss.c
r426 r445 61 61 module_param(nonblock_open, bool, 0644); 62 62 MODULE_PARM_DESC(nonblock_open, "Don't block opening busy PCM devices."); 63 #ifndef TARGET_OS264 63 MODULE_ALIAS_SNDRV_MINOR(SNDRV_MINOR_OSS_PCM); 65 64 MODULE_ALIAS_SNDRV_MINOR(SNDRV_MINOR_OSS_PCM1); 66 #endif67 65 68 66 extern int snd_mixer_oss_ioctl_card(struct snd_card *card, unsigned int cmd, unsigned long arg); … … 2996 2994 #endif 2997 2995 { 2998 #ifndef TARGET_OS22999 2996 .owner = THIS_MODULE, 3000 #endif3001 2997 .read = snd_pcm_oss_read, 3002 2998 .write = snd_pcm_oss_write, -
GPL/trunk/alsa-kernel/core/pcm_native.c
r426 r445 3276 3276 int err = -ENXIO; 3277 3277 3278 #ifndef TARGET_OS23279 3278 lock_kernel(); 3280 #endif3281 3279 pcm_file = file->private_data; 3282 3280 substream = pcm_file->substream; … … 3286 3284 err = fasync_helper(fd, file, on, &runtime->fasync); 3287 3285 out: 3288 #ifndef TARGET_OS23289 3286 unlock_kernel(); 3290 #endif3291 3287 return err; 3292 3288 } … … 3447 3443 #endif 3448 3444 { 3449 #ifndef TARGET_OS23450 3445 .owner = THIS_MODULE, 3451 #endif3452 3446 .write = snd_pcm_write, 3453 3447 #ifdef SND_PCM_USE_AIO … … 3474 3468 }, 3475 3469 { 3476 #ifndef TARGET_OS23477 3470 .owner = THIS_MODULE, 3478 #endif3479 3471 .read = snd_pcm_read, 3480 3472 #ifdef SND_PCM_USE_AIO -
GPL/trunk/alsa-kernel/core/rawmidi.c
r426 r445 1407 1407 #endif 1408 1408 { 1409 #ifndef TARGET_OS21410 1409 .owner = THIS_MODULE, 1411 #endif1412 1410 .read = snd_rawmidi_read, 1413 1411 .write = snd_rawmidi_write, -
GPL/trunk/alsa-kernel/core/seq/oss/seq_oss.c
r399 r445 37 37 MODULE_LICENSE("GPL"); 38 38 /* Takashi says this is really only for sound-service-0-, but this is OK. */ 39 #ifndef TARGET_OS240 39 MODULE_ALIAS_SNDRV_MINOR(SNDRV_MINOR_OSS_SEQUENCER); 41 40 MODULE_ALIAS_SNDRV_MINOR(SNDRV_MINOR_OSS_MUSIC); 42 #endif43 41 44 42 #ifdef SNDRV_SEQ_OSS_DEBUG … … 226 224 static const struct file_operations seq_oss_f_ops = 227 225 { 228 #ifndef TARGET_OS2229 226 .owner = THIS_MODULE, 230 #endif231 227 .read = odev_read, 232 228 .write = odev_write, -
GPL/trunk/alsa-kernel/core/seq/oss/seq_oss_init.c
r399 r445 21 21 */ 22 22 23 #ifdef TARGET_OS224 #include <sound/initval.h>25 #endif26 23 #include "seq_oss_device.h" 27 24 #include "seq_oss_synth.h" -
GPL/trunk/alsa-kernel/core/seq/seq_clientmgr.c
r399 r445 2223 2223 { 2224 2224 int err; 2225 #ifndef TARGET_OS22226 2225 unlock_kernel(); 2227 #endif2228 2226 err = snd_seq_ioctl(file, cmd, arg); 2229 #ifndef TARGET_OS22230 2227 lock_kernel(); 2231 #endif2232 2228 return err; 2233 2229 } … … 2571 2567 #endif 2572 2568 { 2573 #ifndef TARGET_OS22574 2569 .owner = THIS_MODULE, 2575 #endif2576 2570 .read = snd_seq_read, 2577 2571 .write = snd_seq_write, -
GPL/trunk/alsa-kernel/core/seq/seq_memory.c
r399 r445 434 434 break; 435 435 } 436 #ifndef TARGET_OS2437 436 schedule_timeout_uninterruptible(1); 438 #else439 set_current_state(TASK_UNINTERRUPTIBLE);440 schedule_timeout(1);441 #endif442 437 max_count--; 443 438 } -
GPL/trunk/alsa-kernel/core/sound.c
r410 r445 181 181 int ret; 182 182 183 #ifndef TARGET_OS2184 183 lock_kernel(); 185 #endif186 184 ret = __snd_open(inode, file); 187 #ifndef TARGET_OS2188 185 unlock_kernel(); 189 #endif190 186 return ret; 191 187 } … … 197 193 #endif 198 194 { 199 #ifndef TARGET_OS2200 195 .owner = THIS_MODULE, 201 #endif202 196 .open = snd_open 203 197 }; -
GPL/trunk/alsa-kernel/core/timer.c
r426 r445 1949 1949 #endif 1950 1950 { 1951 #ifndef TARGET_OS21952 1951 .owner = THIS_MODULE, 1953 #endif1954 1952 .read = snd_timer_user_read, 1955 1953 .open = snd_timer_user_open, -
GPL/trunk/alsa-kernel/include/sound/config.h
r442 r445 62 62 #include <linux/init.h> 63 63 #include <linux/lockdep.h> 64 #include <linux/smp_lock.h> 64 65 #include "compat_22.h" 65 66 -
GPL/trunk/alsa-kernel/include/sound/minors.h
r399 r445 103 103 #define SNDRV_OSS_DEVICE_TYPE_MUSIC 6 104 104 105 #ifndef TARGET_OS2 105 106 #define MODULE_ALIAS_SNDRV_MINOR(type) \ 106 107 MODULE_ALIAS("sound-service-?-" __stringify(type)) 107 108 #else 109 #define MODULE_ALIAS_SNDRV_MINOR(a) 110 #endif 108 111 #endif 109 112 -
GPL/trunk/alsa-kernel/pci/bt87x.c
r410 r445 22 22 */ 23 23 24 #ifdef TARGET_OS225 #include <asm/bitops.h>26 #endif27 24 #include <linux/init.h> 28 25 #include <linux/interrupt.h> -
GPL/trunk/alsa-kernel/pci/hda/hda_intel.c
r434 r445 1938 1938 printk(KERN_ERR "hda-intel: unable to grab IRQ %d, " 1939 1939 "disabling device\n", chip->pci->irq); 1940 #ifndef TARGE t_OS21940 #ifndef TARGET_OS2 1941 1941 if (do_disconnect) 1942 1942 snd_card_disconnect(chip->card); -
GPL/trunk/alsa-kernel/pci/hda/makefile.os2
r433 r445 16 16 FILE2 = patch_realtek.obj patch_cmedia.obj patch_analog.obj patch_sigmatel.obj 17 17 FILE3 = patch_si3054.obj patch_atihdmi.obj patch_conexant.obj patch_via.obj 18 FILE4 = 18 FILE4 = 19 19 FILE5 = 20 20 FILE6 = -
GPL/trunk/alsa-kernel/pci/intel8x0.c
r426 r445 41 41 /* for 440MX workaround */ 42 42 #include <asm/pgtable.h> 43 #ifndef TARGET_OS244 43 #include <asm/cacheflush.h> 45 #endif46 44 47 45 MODULE_AUTHOR("Jaroslav Kysela <perex@perex.cz>"); -
GPL/trunk/alsa-kernel/pci/ymfpci/ymfpci_main.c
r426 r445 85 85 if ((snd_ymfpci_readw(chip, reg) & 0x8000) == 0) 86 86 return 0; 87 #ifndef TARGET_OS288 87 schedule_timeout_uninterruptible(1); 89 #else90 set_current_state(TASK_UNINTERRUPTIBLE);91 schedule_timeout(1);92 #endif93 88 } while (time_before(jiffies, end_time)); 94 89 snd_printk(KERN_ERR "codec_ready: codec %i is not ready [0x%x]\n", secondary, snd_ymfpci_readw(chip, reg)); … … 794 789 add_wait_queue(&chip->interrupt_sleep, &wait); 795 790 atomic_inc(&chip->interrupt_sleep_count); 796 #ifndef TARGET_OS2797 791 schedule_timeout_uninterruptible(msecs_to_jiffies(50)); 798 #else799 set_current_state(TASK_UNINTERRUPTIBLE);800 schedule_timeout(msecs_to_jiffies(50));801 #endif802 803 792 remove_wait_queue(&chip->interrupt_sleep, &wait); 804 793 }
Note:
See TracChangeset
for help on using the changeset viewer.