Changeset 446
- Timestamp:
- Jun 8, 2009, 11:00:24 PM (16 years ago)
- Location:
- GPL/trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/core/control.c
r445 r446 51 51 int err; 52 52 53 #ifndef TARGET_OS254 53 card = snd_lookup_minor_data(iminor(inode), SNDRV_DEVICE_TYPE_CONTROL); 55 #else56 card = snd_lookup_minor_data(MINOR(inode->i_rdev), SNDRV_DEVICE_TYPE_CONTROL);57 #endif58 54 if (!card) { 59 55 err = -ENODEV; -
GPL/trunk/alsa-kernel/core/hwdep.c
r445 r446 85 85 static int snd_hwdep_open(struct inode *inode, struct file * file) 86 86 { 87 #ifndef TARGET_OS288 87 int major = imajor(inode); 89 #else90 int major = MAJOR(inode->i_rdev);91 #endif92 88 struct snd_hwdep *hw; 93 89 int err; … … 95 91 96 92 if (major == snd_major) { 97 #ifndef TARGET_OS298 93 hw = snd_lookup_minor_data(iminor(inode), 99 #else100 hw = snd_lookup_minor_data(MINOR(inode->i_rdev),101 #endif102 94 SNDRV_DEVICE_TYPE_HWDEP); 103 95 #ifdef CONFIG_SND_OSSEMUL 104 96 } else if (major == SOUND_MAJOR) { 105 #ifndef TARGET_OS2106 97 hw = snd_lookup_oss_minor_data(iminor(inode), 107 #else108 hw = snd_lookup_oss_minor_data(MINOR(inode->i_rdev),109 #endif110 98 SNDRV_OSS_DEVICE_TYPE_DMFM); 111 99 #endif -
GPL/trunk/alsa-kernel/core/oss/mixer_oss.c
r445 r446 44 44 int err; 45 45 46 #ifndef TARGET_OS247 46 card = snd_lookup_oss_minor_data(iminor(inode), 48 #else49 card = snd_lookup_oss_minor_data(MINOR(inode->i_rdev),50 #endif51 47 SNDRV_OSS_DEVICE_TYPE_MIXER); 52 48 if (card == NULL) -
GPL/trunk/alsa-kernel/core/oss/pcm_oss.c
r445 r446 2383 2383 wait_queue_t wait; 2384 2384 2385 #ifndef TARGET_OS22386 2385 pcm = snd_lookup_oss_minor_data(iminor(inode), 2387 #else2388 pcm = snd_lookup_oss_minor_data(MINOR(inode->i_rdev),2389 #endif2390 2386 SNDRV_OSS_DEVICE_TYPE_PCM); 2391 2387 if (pcm == NULL) { … … 2421 2417 while (1) { 2422 2418 err = snd_pcm_oss_open_file(file, pcm, &pcm_oss_file, 2423 #ifndef TARGET_OS22424 2419 iminor(inode), setup); 2425 #else2426 MINOR(inode->i_rdev), setup);2427 #endif2428 2420 if (err >= 0) 2429 2421 break; -
GPL/trunk/alsa-kernel/core/pcm_native.c
r445 r446 2103 2103 struct snd_pcm *pcm; 2104 2104 2105 #ifndef TARGET_OS22106 2105 pcm = snd_lookup_minor_data(iminor(inode), 2107 #else2108 pcm = snd_lookup_minor_data(MINOR(inode->i_rdev),2109 #endif2110 2106 SNDRV_DEVICE_TYPE_PCM_PLAYBACK); 2111 2107 return snd_pcm_open(file, pcm, SNDRV_PCM_STREAM_PLAYBACK); … … 2116 2112 struct snd_pcm *pcm; 2117 2113 2118 #ifndef TARGET_OS22119 2114 pcm = snd_lookup_minor_data(iminor(inode), 2120 #else2121 pcm = snd_lookup_minor_data(MINOR(inode->i_rdev),2122 #endif2123 2115 SNDRV_DEVICE_TYPE_PCM_CAPTURE); 2124 2116 return snd_pcm_open(file, pcm, SNDRV_PCM_STREAM_CAPTURE); -
GPL/trunk/alsa-kernel/core/rawmidi.c
r445 r446 375 375 static int snd_rawmidi_open(struct inode *inode, struct file *file) 376 376 { 377 #ifndef TARGET_OS2378 377 int maj = imajor(inode); 379 #else380 int maj = MAJOR(inode->i_rdev);381 #endif382 378 struct snd_card *card; 383 379 int subdevice; … … 393 389 394 390 if (maj == snd_major) { 395 #ifndef TARGET_OS2396 391 rmidi = snd_lookup_minor_data(iminor(inode), 397 #else398 rmidi = snd_lookup_minor_data(MINOR(inode->i_rdev),399 #endif400 392 SNDRV_DEVICE_TYPE_RAWMIDI); 401 393 #ifdef CONFIG_SND_OSSEMUL 402 394 } else if (maj == SOUND_MAJOR) { 403 #ifndef TARGET_OS2404 395 rmidi = snd_lookup_oss_minor_data(iminor(inode), 405 #else406 rmidi = snd_lookup_oss_minor_data(MINOR(inode->i_rdev),407 #endif408 396 SNDRV_OSS_DEVICE_TYPE_MIDI); 409 397 #endif -
GPL/trunk/alsa-kernel/core/sound.c
r445 r446 123 123 static int __snd_open(struct inode *inode, struct file *file) 124 124 { 125 #ifndef TARGET_OS2126 125 unsigned int minor = iminor(inode); 127 #else128 unsigned int minor = MINOR(inode->i_rdev);129 #endif130 126 struct snd_minor *mptr = NULL; 131 127 #ifndef TARGET_OS2 -
GPL/trunk/include/linux/fs.h
r445 r446 267 267 #define fops_get(x) (x) 268 268 #define fops_put(x) do { ; } while (0) 269 270 #define minor(a) MINOR(a) 271 #define major(a) MAJOR(a) 272 #define iminor(x) minor((x)->i_rdev) 269 273 #define imajor(x) major((x)->i_rdev) 270 274
Note:
See TracChangeset
for help on using the changeset viewer.