Changeset 644 for GPL/branches
- Timestamp:
- Jan 16, 2021, 10:20:04 PM (5 years ago)
- Location:
- GPL/branches/uniaud32-next
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/alsa-kernel/core/control.c
r637 r644 1989 1989 #endif 1990 1990 1991 #ifndef CONFIG_SND_HAVE_NEW_IOCTL1992 /* need to unlock BKL to allow preemption */1993 static int snd_ctl_ioctl_old(struct inode *inode, struct file * file,1994 unsigned int cmd, unsigned long arg)1995 {1996 int err;1997 err = snd_ctl_ioctl(file, cmd, arg);1998 return err;1999 }2000 #endif2001 2002 1991 /* 2003 1992 * INIT PART … … 2012 2001 .llseek = no_llseek, 2013 2002 .poll = snd_ctl_poll, 2014 #ifdef CONFIG_SND_HAVE_NEW_IOCTL2015 2003 .unlocked_ioctl = snd_ctl_ioctl, 2016 2004 .compat_ioctl = snd_ctl_ioctl_compat, 2017 #else2018 .ioctl = snd_ctl_ioctl_old,2019 #endif2020 2005 .fasync = snd_ctl_fasync, 2021 2006 }; -
GPL/branches/uniaud32-next/alsa-kernel/core/hwdep.c
r629 r644 320 320 #endif 321 321 322 #ifndef CONFIG_SND_HAVE_NEW_IOCTL323 /* need to unlock BKL to allow preemption */324 static int snd_hwdep_ioctl_old(struct inode *inode, struct file * file,325 unsigned int cmd, unsigned long arg)326 {327 int err;328 err = snd_hwdep_ioctl(file, cmd, arg);329 return err;330 }331 #endif332 333 322 /* 334 323 … … 344 333 .release = snd_hwdep_release, 345 334 .poll = snd_hwdep_poll, 346 #ifdef CONFIG_SND_HAVE_NEW_IOCTL347 335 .unlocked_ioctl = snd_hwdep_ioctl, 348 336 .compat_ioctl = snd_hwdep_ioctl_compat, 349 #else350 .ioctl = snd_hwdep_ioctl_old,351 #endif352 337 .mmap = snd_hwdep_mmap, 353 338 }; -
GPL/branches/uniaud32-next/alsa-kernel/core/init.c
r639 r644 341 341 } 342 342 343 #ifdef CONFIG_SND_HAVE_NEW_IOCTL344 343 static long snd_disconnect_ioctl(struct file *file, 345 344 unsigned int cmd, unsigned long arg) … … 347 346 return -ENODEV; 348 347 } 349 #else350 static int snd_disconnect_ioctl_old(struct inode *inode, struct file *file,351 unsigned int cmd, unsigned long arg)352 {353 return -ENODEV;354 }355 #endif356 348 357 349 static int snd_disconnect_mmap(struct file *file, struct vm_area_struct *vma) … … 373 365 .release = snd_disconnect_release, 374 366 .poll = snd_disconnect_poll, 375 #ifdef CONFIG_SND_HAVE_NEW_IOCTL376 367 .unlocked_ioctl = snd_disconnect_ioctl, 377 368 #ifdef CONFIG_COMPAT 378 369 .compat_ioctl = snd_disconnect_ioctl, 379 #endif380 #else381 .ioctl = snd_disconnect_ioctl_old,382 370 #endif 383 371 .mmap = snd_disconnect_mmap, -
GPL/branches/uniaud32-next/alsa-kernel/core/oss/mixer_oss.c
r629 r644 395 395 #endif 396 396 397 #ifndef CONFIG_SND_HAVE_NEW_IOCTL398 /* need to unlock BKL to allow preemption */399 static int snd_mixer_oss_ioctl_old(struct inode *inode, struct file * file,400 unsigned int cmd, unsigned long arg)401 {402 int err;403 err = snd_mixer_oss_ioctl(file, cmd, arg);404 return err;405 }406 #endif407 408 397 /* 409 398 * REGISTRATION PART … … 416 405 .release = snd_mixer_oss_release, 417 406 .llseek = no_llseek, 418 #ifdef CONFIG_SND_HAVE_NEW_IOCTL419 407 .unlocked_ioctl = snd_mixer_oss_ioctl, 420 408 .compat_ioctl = snd_mixer_oss_ioctl_compat, 421 #else422 .ioctl = snd_mixer_oss_ioctl_old,423 #endif424 409 }; 425 410 -
GPL/branches/uniaud32-next/alsa-kernel/core/oss/pcm_oss.c
r629 r644 2790 2790 #endif 2791 2791 2792 #ifndef CONFIG_SND_HAVE_NEW_IOCTL2793 /* need to unlock BKL to allow preemption */2794 static int snd_pcm_oss_ioctl_old(struct inode *inode, struct file * file,2795 unsigned int cmd, unsigned long arg)2796 {2797 int err;2798 err = snd_pcm_oss_ioctl(file, cmd, arg);2799 return err;2800 }2801 #endif2802 2803 2792 static ssize_t snd_pcm_oss_read(struct file *file, char __user *buf, size_t count, loff_t *offset) 2804 2793 { … … 3151 3140 .llseek = no_llseek, 3152 3141 .poll = snd_pcm_oss_poll, 3153 #ifdef CONFIG_SND_HAVE_NEW_IOCTL3154 3142 .unlocked_ioctl = snd_pcm_oss_ioctl, 3155 3143 .compat_ioctl = snd_pcm_oss_ioctl_compat, 3156 #else3157 .ioctl = snd_pcm_oss_ioctl_old,3158 #endif3159 3144 #ifndef TARGET_OS2 3160 3145 .mmap = snd_pcm_oss_mmap, -
GPL/branches/uniaud32-next/alsa-kernel/core/pcm_native.c
r642 r644 3914 3914 #endif 3915 3915 3916 #ifndef CONFIG_SND_HAVE_NEW_IOCTL3917 /* need to unlock BKL to allow preemption */3918 static int snd_pcm_playback_ioctl_old(struct inode *inode, struct file * file,3919 unsigned int cmd, unsigned long arg)3920 {3921 int err;3922 err = snd_pcm_ioctl(file, cmd, arg);3923 return err;3924 }3925 static int snd_pcm_capture_ioctl_old(struct inode *inode, struct file * file,3926 unsigned int cmd, unsigned long arg)3927 {3928 int err;3929 err = snd_pcm_ioctl(file, cmd, arg);3930 return err;3931 }3932 #endif3933 3934 3916 /* 3935 3917 * To be removed helpers to keep binary compatibility … … 4086 4068 .llseek = no_llseek, 4087 4069 .poll = snd_pcm_poll, 4088 #ifndef TARGET_OS24089 4070 .unlocked_ioctl = snd_pcm_ioctl, 4090 4071 .compat_ioctl = snd_pcm_ioctl_compat, 4091 #else4092 .ioctl = snd_pcm_playback_ioctl_old,4093 #endif4094 4072 #ifndef TARGET_OS2 4095 4073 .mmap = snd_pcm_mmap, … … 4108 4086 .llseek = no_llseek, 4109 4087 .poll = snd_pcm_poll, 4110 #ifndef TARGET_OS24111 4088 .unlocked_ioctl = snd_pcm_ioctl, 4112 4089 .compat_ioctl = snd_pcm_ioctl_compat, 4113 #else4114 .ioctl = snd_pcm_capture_ioctl_old,4115 #endif4116 4090 #ifndef TARGET_OS2 4117 4091 .mmap = snd_pcm_mmap, -
GPL/branches/uniaud32-next/alsa-kernel/core/seq/oss/seq_oss.c
r615 r644 194 194 #endif 195 195 196 #ifndef CONFIG_SND_HAVE_NEW_IOCTL197 /* need to unlock BKL to allow preemption */198 static int odev_ioctl_old(struct inode *inode, struct file * file,199 unsigned int cmd, unsigned long arg)200 {201 int err;202 err = odev_ioctl(file, cmd, arg);203 return err;204 }205 #endif206 207 196 static __poll_t 208 197 odev_poll(struct file *file, poll_table * wait) … … 227 216 .release = odev_release, 228 217 .poll = odev_poll, 229 #ifdef CONFIG_SND_HAVE_NEW_IOCTL230 218 .unlocked_ioctl = odev_ioctl, 231 219 .compat_ioctl = odev_ioctl_compat, 232 #else233 .ioctl = odev_ioctl_old,234 #endif235 220 .llseek = noop_llseek, 236 221 }; -
GPL/branches/uniaud32-next/alsa-kernel/core/seq/seq_clientmgr.c
r639 r644 2175 2175 #endif 2176 2176 2177 #ifndef CONFIG_SND_HAVE_NEW_IOCTL2178 /* need to unlock BKL to allow preemption */2179 static int snd_seq_ioctl_old(struct inode *inode, struct file * file,2180 unsigned int cmd, unsigned long arg)2181 {2182 int err;2183 unlock_kernel();2184 err = snd_seq_ioctl(file, cmd, arg);2185 lock_kernel();2186 return err;2187 }2188 #endif2189 2190 2177 /* -------------------------------------------------------- */ 2191 2178 … … 2512 2499 .llseek = no_llseek, 2513 2500 .poll = snd_seq_poll, 2514 #ifdef CONFIG_SND_HAVE_NEW_IOCTL2515 2501 .unlocked_ioctl = snd_seq_ioctl, 2516 2502 .compat_ioctl = snd_seq_ioctl_compat, 2517 #else2518 .ioctl = snd_seq_ioctl_old,2519 #endif2520 2503 }; 2521 2504 -
GPL/branches/uniaud32-next/alsa-kernel/core/timer.c
r637 r644 2295 2295 #endif 2296 2296 2297 #ifndef CONFIG_SND_HAVE_NEW_IOCTL2298 /* need to unlock BKL to allow preemption */2299 static int snd_timer_user_ioctl_old(struct inode *inode, struct file * file,2300 unsigned int cmd, unsigned long arg)2301 {2302 int err;2303 err = snd_timer_user_ioctl(file, cmd, arg);2304 return err;2305 }2306 #endif2307 2308 2297 static const struct file_operations snd_timer_f_ops = 2309 2298 { … … 2314 2303 .llseek = no_llseek, 2315 2304 .poll = snd_timer_user_poll, 2316 #ifdef CONFIG_SND_HAVE_NEW_IOCTL2317 2305 .unlocked_ioctl = snd_timer_user_ioctl, 2318 2306 .compat_ioctl = snd_timer_user_ioctl_compat, 2319 #else2320 .ioctl = snd_timer_user_ioctl_old,2321 #endif2322 2307 .fasync = snd_timer_user_fasync, 2323 2308 }; -
GPL/branches/uniaud32-next/include/linux/fs.h
r625 r644 231 231 int (*readdir) (struct file *, void *, filldir_t); 232 232 unsigned int (*poll) (struct file *, struct poll_table_struct *); 233 int (*ioctl) (struct inode *, struct file *, unsigned int, unsigned long); 233 long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long); 234 long (*compat_ioctl) (struct file *, unsigned int, unsigned long); 234 235 int (*mmap) (struct file *, struct vm_area_struct *); 235 236 int (*open) (struct inode *, struct file *); -
GPL/branches/uniaud32-next/lib32/ioctl.c
r625 r644 317 317 318 318 dprintf(("GetUniaudPcmCaps: cp1. pcm %i, phandle %x", i, pHandle)); 319 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_INFO, (ULONG)pcminfo);319 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_INFO, (ULONG)pcminfo); 320 320 if(ret != 0) { 321 321 rprintf(("GetUniaudPcmCaps: SNDRV_PCM_IOCTL_INFO error %i", ret)); … … 337 337 //get all hardware parameters 338 338 _snd_pcm_hw_params_any(params); 339 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_HW_REFINE, (ULONG)params);339 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_HW_REFINE, (ULONG)params); 340 340 if(ret != 0) { 341 341 dprintf(("GetUniaudPcmCaps: SNDRV_PCM_IOCTL_HW_REFINE error %i", ret)); … … 468 468 } 469 469 //retrieve mixer information 470 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file,470 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, 471 471 SNDRV_CTL_IOCTL_POWER_STATE, 472 472 (ULONG)state); … … 522 522 } 523 523 //retrieve mixer information 524 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file,524 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, 525 525 SNDRV_CTL_IOCTL_POWER, 526 526 (ULONG)state); … … 578 578 } 579 579 //retrieve mixer information 580 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file,580 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, 581 581 SNDRV_CTL_IOCTL_CARD_INFO, 582 582 (ULONG)(struct snd_ctl_card_info *)info); … … 635 635 } 636 636 //retrieve mixer information 637 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file,637 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, 638 638 SNDRV_CTL_IOCTL_CARD_INFO, 639 639 (ULONG)&pHandle->info); … … 645 645 pHandle->list.offset = 0; 646 646 pHandle->list.space = 0; 647 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file,647 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, 648 648 SNDRV_CTL_IOCTL_ELEM_LIST, 649 649 (ULONG)&pHandle->list); … … 703 703 } 704 704 //retrieve mixer information 705 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file,705 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, 706 706 SNDRV_CTL_IOCTL_CARD_INFO, 707 707 (ULONG)&pHandle->info); … … 713 713 pHandle->list.offset = 0; 714 714 pHandle->list.space = 0; 715 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file,715 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, 716 716 SNDRV_CTL_IOCTL_ELEM_LIST, 717 717 (ULONG)&pHandle->list); … … 732 732 pHandle->list.space = pHandle->list.count; 733 733 pHandle->list.pids = pHandle->pids; 734 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file,734 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, 735 735 SNDRV_CTL_IOCTL_ELEM_LIST, 736 736 (ULONG)&pHandle->list); … … 806 806 807 807 pElemInfo->id.numid = id; 808 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_CTL_IOCTL_ELEM_INFO, (ULONG)pElemInfo);808 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_CTL_IOCTL_ELEM_INFO, (ULONG)pElemInfo); 809 809 ret = pHandle->file.f_op->release(&pHandle->inode, &pHandle->file); 810 810 if(pHandle) kfree(pHandle); … … 864 864 pElem->id.numid = id; 865 865 pElem->indirect = 0; 866 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_CTL_IOCTL_ELEM_READ, (ULONG)pElem);866 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_CTL_IOCTL_ELEM_READ, (ULONG)pElem); 867 867 ret = pHandle->file.f_op->release(&pHandle->inode, &pHandle->file); 868 868 if(pHandle) kfree(pHandle); … … 924 924 pElem->indirect = 0; 925 925 926 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_CTL_IOCTL_ELEM_WRITE, (ULONG)pElem);926 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_CTL_IOCTL_ELEM_WRITE, (ULONG)pElem); 927 927 ret = pHandle->file.f_op->release(&pHandle->inode, &pHandle->file); 928 928 if(pHandle) kfree(pHandle); … … 952 952 953 953 pHandle->file.f_flags = O_NONBLOCK; 954 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_HW_REFINE, (ULONG)params);954 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_HW_REFINE, (ULONG)params); 955 955 return ret; 956 956 } … … 969 969 970 970 pHandle->file.f_flags = O_NONBLOCK; 971 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_HW_PARAMS, (ULONG)params);971 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_HW_PARAMS, (ULONG)params); 972 972 return ret; 973 973 } … … 988 988 pHandle->file.f_flags = O_NONBLOCK; 989 989 990 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_SW_PARAMS, (ULONG)params);990 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_SW_PARAMS, (ULONG)params); 991 991 return ret; 992 992 } … … 1005 1005 pHandle->file.f_flags = O_NONBLOCK; 1006 1006 1007 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_STATUS, (ULONG)status);1007 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_STATUS, (ULONG)status); 1008 1008 return ret; 1009 1009 } … … 1054 1054 pHandle->file.f_flags = O_NONBLOCK; 1055 1055 1056 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_PREPARE, 0);1056 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_PREPARE, 0); 1057 1057 return ret; 1058 1058 } … … 1069 1069 pHandle->file.f_flags = O_NONBLOCK; 1070 1070 1071 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_PAUSE, pause);1071 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_PAUSE, pause); 1072 1072 1073 1073 return ret; … … 1085 1085 pHandle->file.f_flags = O_NONBLOCK; 1086 1086 1087 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_START, 0);1087 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_START, 0); 1088 1088 1089 1089 return ret; … … 1101 1101 pHandle->file.f_flags = O_NONBLOCK; 1102 1102 1103 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_DROP, 0);1103 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_DROP, 0); 1104 1104 1105 1105 return ret; -
GPL/branches/uniaud32-next/lib32/sound.c
r621 r644 369 369 pHandle->file.f_flags = O_NONBLOCK; 370 370 371 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_INFO, (ULONG)pcminfo);371 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_INFO, (ULONG)pcminfo); 372 372 if(ret != 0) { 373 373 rprintf(("OSS32_QueryDevCaps: SNDRV_PCM_IOCTL_INFO error %i\n", ret)); … … 386 386 //get all hardware parameters 387 387 _snd_pcm_hw_params_any(params); 388 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_HW_REFINE, (ULONG)params);388 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_HW_REFINE, (ULONG)params); 389 389 if(ret != 0) { 390 390 rprintf(("OSS32_QueryDevCaps: SNDRV_PCM_IOCTL_HW_REFINE error %i\n", ret)); … … 630 630 { 631 631 /* prepare for reuse */ 632 pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_RESET, 0);633 pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_PREPARE, 0);632 pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_RESET, 0); 633 pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_PREPARE, 0); 634 634 } 635 635 break; … … 671 671 pHandle->file.f_flags = O_NONBLOCK; 672 672 673 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_PREPARE, 0);673 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_PREPARE, 0); 674 674 if (ret) 675 675 rprintf(("Wave prepare ret = %i, streamid %X\n",ret,(ULONG)pHandle)); … … 690 690 //set operation to non-blocking 691 691 pHandle->file.f_flags = O_NONBLOCK; 692 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_START, 0);692 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_START, 0); 693 693 if (ret) 694 694 rprintf(("Wave start ret = %i, streamid %X\n",ret,(ULONG)pHandle)); … … 710 710 pHandle->file.f_flags = O_NONBLOCK; 711 711 712 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_DROP, 0);712 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_DROP, 0); 713 713 if (ret) 714 714 rprintf(("Wave stop ret = %i. streamid %X\n",ret,(ULONG)pHandle)); … … 730 730 pHandle->file.f_flags = O_NONBLOCK; 731 731 732 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_PAUSE, 0);732 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_PAUSE, 0); 733 733 if (ret) 734 734 rprintf(("Wave pause ret = %i, streamid %X\n",ret,(ULONG)pHandle)); … … 750 750 pHandle->file.f_flags = O_NONBLOCK; 751 751 752 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_PAUSE, 1);752 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_PAUSE, 1); 753 753 if (ret) 754 754 rprintf(("Wave resume ret = %i, streamid %X\n",ret,(ULONG)pHandle)); … … 818 818 _snd_pcm_hw_param_set(¶ms, SNDRV_PCM_HW_PARAM_CHANNELS, 819 819 pHwParams->ulNumChannels, 0); 820 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_HW_REFINE, (ULONG)__Stack32ToFlat(¶ms));820 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_HW_REFINE, (ULONG)__Stack32ToFlat(¶ms)); 821 821 if (ret == 0) break; 822 822 pHwParams->ulNumChannels--; … … 831 831 _snd_pcm_hw_param_set(¶ms, SNDRV_PCM_HW_PARAM_FORMAT, 832 832 OSSToALSADataType[pHwParams->ulDataType], 0); 833 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_HW_REFINE, (ULONG)__Stack32ToFlat(¶ms));833 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_HW_REFINE, (ULONG)__Stack32ToFlat(¶ms)); 834 834 if(ret != 0) { 835 835 rprintf(("invalid format %lx\n", OSSToALSADataType[pHwParams->ulDataType])); … … 838 838 _snd_pcm_hw_param_set(¶ms, SNDRV_PCM_HW_PARAM_SAMPLE_BITS, 839 839 pHwParams->ulBitsPerSample, 0); 840 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_HW_REFINE, (ULONG)__Stack32ToFlat(¶ms));840 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_HW_REFINE, (ULONG)__Stack32ToFlat(¶ms)); 841 841 if(ret != 0) { 842 842 rprintf(("invalid number of sample bits %d\n", pHwParams->ulBitsPerSample)); … … 845 845 _snd_pcm_hw_param_set(¶ms, SNDRV_PCM_HW_PARAM_FRAME_BITS, 846 846 pHwParams->ulBitsPerSample*pHwParams->ulNumChannels, 0); 847 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_HW_REFINE, (ULONG)__Stack32ToFlat(¶ms));847 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_HW_REFINE, (ULONG)__Stack32ToFlat(¶ms)); 848 848 if(ret != 0) { 849 849 rprintf(("invalid number of frame bits %d\n", pHwParams->ulBitsPerSample*pHwParams->ulNumChannels)); … … 862 862 _snd_pcm_hw_param_set(¶ms, SNDRV_PCM_HW_PARAM_RATE, 863 863 pHwParams->ulSampleRate, 0); 864 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_HW_REFINE, (ULONG)__Stack32ToFlat(¶ms));864 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_HW_REFINE, (ULONG)__Stack32ToFlat(¶ms)); 865 865 if(ret != 0) { 866 866 rprintf(("32_WSetHwPms (first pass) error %d bps:%d fmt: %d ch: %d sr: %d\n", … … 881 881 _snd_pcm_hw_param_set(¶ms, SNDRV_PCM_HW_PARAM_RATE, 882 882 pHwParams->ulSampleRate, 0); 883 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_HW_REFINE, (ULONG)__Stack32ToFlat(¶ms));883 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_HW_REFINE, (ULONG)__Stack32ToFlat(¶ms)); 884 884 if(ret == 0) 885 885 { … … 895 895 _snd_pcm_hw_param_set(¶ms, SNDRV_PCM_HW_PARAM_RATE, 896 896 pHwParams->ulSampleRate, 0); 897 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_HW_REFINE, (ULONG)__Stack32ToFlat(¶ms));897 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_HW_REFINE, (ULONG)__Stack32ToFlat(¶ms)); 898 898 goto __next; 899 899 } … … 1003 1003 pHwParams->ulSampleRate, pHwParams->ulBitsPerSample, pHwParams->ulNumChannels, periodsize, nrperiods)); 1004 1004 1005 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_HW_PARAMS, (ULONG)__Stack32ToFlat(¶ms));1005 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_HW_PARAMS, (ULONG)__Stack32ToFlat(¶ms)); 1006 1006 if (ret == -77 && fTryAgain == FALSE) 1007 1007 { 1008 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_PREPARE, 0);1008 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_PREPARE, 0); 1009 1009 fTryAgain = TRUE; 1010 1010 rprintf((" Error -77 from first IOCTL HW Parms")); … … 1048 1048 swparams.xfer_align = periodsize; 1049 1049 1050 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_SW_PARAMS, (ULONG)__Stack32ToFlat(&swparams));1050 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_SW_PARAMS, (ULONG)__Stack32ToFlat(&swparams)); 1051 1051 } 1052 1052 1053 1053 total = 0; 1054 1054 per_bytes = periodbytes; 1055 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_STATUS, (ULONG)__Stack32ToFlat(&status));1055 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_STATUS, (ULONG)__Stack32ToFlat(&status)); 1056 1056 if ( ((status.state != SNDRV_PCM_STATE_PREPARED) && 1057 1057 (status.state != SNDRV_PCM_STATE_SETUP) && … … 1059 1059 (status.state != SNDRV_PCM_STATE_DRAINING))) { 1060 1060 rprintf(("Device is not in proper state: %lx. Calling prepare\n", status.state)); 1061 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_PREPARE, 0);1061 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_PREPARE, 0); 1062 1062 } 1063 1063 return UNIXToOSSError(ret); … … 1097 1097 1098 1098 /* get the status of the circular dma buffer */ 1099 iRet = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_STATUS, (ULONG)__Stack32ToFlat(&status));1099 iRet = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_STATUS, (ULONG)__Stack32ToFlat(&status)); 1100 1100 1101 1101 if(iRet) { … … 1129 1129 if (status.state == SNDRV_PCM_STATE_XRUN) { 1130 1130 rprintf(("Internal Error: Xrun")); 1131 iRet = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_PREPARE, 0);1131 iRet = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_PREPARE, 0); 1132 1132 if (iRet < 0) { 1133 1133 rprintf(("Prepare failed: state=%x avail=%x ReqSize=%x", status.state, status.avail, ulReqSize)); 1134 1134 return UNIXToOSSError(iRet); 1135 1135 } 1136 iRet = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_STATUS, (ULONG)__Stack32ToFlat(&status));1136 iRet = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_STATUS, (ULONG)__Stack32ToFlat(&status)); 1137 1137 rprintf(("Xrun restarted: state=%x avail=%x ReqSize=%x", status.state, status.avail, ulReqSize)); 1138 1138 if (iRet < 0) return UNIXToOSSError(iRet); … … 1168 1168 while (ulSize && ulJ && iRet) { 1169 1169 for (ulI=0; ulI < 1000; ulI++) { 1170 iRet1 = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_STATUS, (ULONG)__Stack32ToFlat(&status));1170 iRet1 = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_STATUS, (ULONG)__Stack32ToFlat(&status)); 1171 1171 // If here any state and have free buffer to any byte 1172 1172 if ((status.state != SNDRV_PCM_STATE_XRUN ) && samples_to_bytes(status.avail) ) break; … … 1176 1176 if (ulI > 998) { 1177 1177 rprintf(("timeout state=%x avail=%d hw=%d app=%d",status.state,samples_to_bytes(status.avail),samples_to_bytes(status.hw_ptr), samples_to_bytes(status.appl_ptr))); 1178 iRet1 = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_PREPARE, 0);1178 iRet1 = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_PREPARE, 0); 1179 1179 } 1180 1180 } … … 1193 1193 if ( iRet != -11 ) { 1194 1194 rprintf(("Doing prepare")); 1195 iRet1 = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_PREPARE, 0);1195 iRet1 = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_PREPARE, 0); 1196 1196 } 1197 1197 continue; … … 1234 1234 // { 1235 1235 // printk("warning: ulTransferred [%d] less than requested [%d]", *pulTransferred, ulSize); 1236 // iRet1 = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_PREPARE, 0);1236 // iRet1 = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_PREPARE, 0); 1237 1237 // } 1238 1238 … … 1260 1260 1261 1261 //Get the status of the stream 1262 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_STATUS, (ULONG)__Stack32ToFlat(&status));1262 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_STATUS, (ULONG)__Stack32ToFlat(&status)); 1263 1263 1264 1264 if(ret) { … … 1292 1292 1293 1293 //Get the nr of bytes left in the audio buffer 1294 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_STATUS, (ULONG)__Stack32ToFlat(&status));1294 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_STATUS, (ULONG)__Stack32ToFlat(&status)); 1295 1295 1296 1296 if(ret) { … … 1324 1324 1325 1325 //Get the status of the stream 1326 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_STATUS, (ULONG)__Stack32ToFlat(&status));1326 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_STATUS, (ULONG)__Stack32ToFlat(&status)); 1327 1327 1328 1328 if(ret) { … … 1355 1355 1356 1356 //Get the status of the stream 1357 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_STATUS, (ULONG)__Stack32ToFlat(&status));1357 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_STATUS, (ULONG)__Stack32ToFlat(&status)); 1358 1358 if(ret) return UNIXToOSSError(ret); 1359 1359 *pStatus = status.state; … … 1387 1387 1388 1388 dprintf(("OSS32_WaveSetVolume %x to (%d,%d)", streamid, leftvol, rightvol)); 1389 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_PCM_IOCTL_SETVOLUME, (ULONG)__Stack32ToFlat(&pcm_volume));1389 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_PCM_IOCTL_SETVOLUME, (ULONG)__Stack32ToFlat(&pcm_volume)); 1390 1390 return UNIXToOSSError(ret); 1391 1391 } -
GPL/branches/uniaud32-next/lib32/soundmidi.c
r598 r644 120 120 { 121 121 //get the client id 122 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_SEQ_IOCTL_CLIENT_ID, (ULONG)&pHandle->clientid);122 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_SEQ_IOCTL_CLIENT_ID, (ULONG)&pHandle->clientid); 123 123 if(ret) { 124 124 rprintf(("Get client id failed with error %d", ret)); … … 133 133 clientinfo.client = i; 134 134 clientinfo.type = KERNEL_CLIENT; 135 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_SEQ_IOCTL_GET_CLIENT_INFO, (ULONG)__Stack32ToFlat(&clientinfo));135 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_SEQ_IOCTL_GET_CLIENT_INFO, (ULONG)__Stack32ToFlat(&clientinfo)); 136 136 if(ret) { 137 137 continue; … … 157 157 portinfo.addr.client = pHandle->clientid; 158 158 portinfo.flags = SNDRV_SEQ_PORT_TYPE_APPLICATION; 159 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_SEQ_IOCTL_CREATE_PORT, (ULONG)__Stack32ToFlat(&portinfo));159 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_SEQ_IOCTL_CREATE_PORT, (ULONG)__Stack32ToFlat(&portinfo)); 160 160 if(ret) { 161 161 rprintf(("subscribe error %d", ret)); … … 172 172 subs.sender.client = pHandle->clientid; 173 173 subs.sender.port = pHandle->clientport; 174 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_SEQ_IOCTL_SUBSCRIBE_PORT, (ULONG)__Stack32ToFlat(&subs));174 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_SEQ_IOCTL_SUBSCRIBE_PORT, (ULONG)__Stack32ToFlat(&subs)); 175 175 if(ret) { 176 176 rprintf(("subscribe error %d", ret)); … … 212 212 subs.sender.client = pHandle->clientid; 213 213 subs.sender.port = pHandle->clientport; 214 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_SEQ_IOCTL_UNSUBSCRIBE_PORT, (ULONG)__Stack32ToFlat(&subs));214 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_SEQ_IOCTL_UNSUBSCRIBE_PORT, (ULONG)__Stack32ToFlat(&subs)); 215 215 if(ret) { 216 216 rprintf(("unsubscribe error %d", ret)); … … 227 227 portinfo.addr.client = pHandle->clientid; 228 228 portinfo.addr.port = pHandle->clientport; 229 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_SEQ_IOCTL_DELETE_PORT, (ULONG)__Stack32ToFlat(&portinfo));229 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_SEQ_IOCTL_DELETE_PORT, (ULONG)__Stack32ToFlat(&portinfo)); 230 230 if(ret) { 231 231 dprintf(("delete port error %d", ret)); -
GPL/branches/uniaud32-next/lib32/soundmixer.c
r604 r644 148 148 } 149 149 //retrieve mixer information 150 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file,150 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, 151 151 SNDRV_CTL_IOCTL_CARD_INFO, 152 152 (ULONG)&pHandle->info); … … 157 157 pHandle->list.offset = 0; 158 158 pHandle->list.space = 0; 159 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file,159 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, 160 160 SNDRV_CTL_IOCTL_ELEM_LIST, 161 161 (ULONG)&pHandle->list); … … 172 172 pHandle->list.space = pHandle->list.count; 173 173 pHandle->list.pids = pHandle->pids; 174 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file,174 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, 175 175 SNDRV_CTL_IOCTL_ELEM_LIST, 176 176 (ULONG)&pHandle->list); … … 271 271 pElemInfo->value.enumerated.item = i; 272 272 pElemInfo->id.numid = pHandle->pids[idx].numid; 273 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_CTL_IOCTL_ELEM_INFO, (ULONG)pElemInfo);273 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_CTL_IOCTL_ELEM_INFO, (ULONG)pElemInfo); 274 274 if(ret) { 275 275 DebugInt3(); … … 484 484 pElem->value.integer.value[0] = TRUE; //switch, not mute control (inversed) 485 485 pElem->value.integer.value[1] = TRUE; 486 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_CTL_IOCTL_ELEM_WRITE, (ULONG)pElem);486 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_CTL_IOCTL_ELEM_WRITE, (ULONG)pElem); 487 487 } 488 488 //request information about mixer control 489 489 pElemInfo->id.numid = pHandle->pids[idx].numid; 490 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_CTL_IOCTL_ELEM_INFO, (ULONG)pElemInfo);490 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_CTL_IOCTL_ELEM_INFO, (ULONG)pElemInfo); 491 491 if(ret) { 492 492 ret = UNIXToOSSError(ret); … … 515 515 516 516 #if 1 517 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_CTL_IOCTL_ELEM_WRITE, (ULONG)pElem);517 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_CTL_IOCTL_ELEM_WRITE, (ULONG)pElem); 518 518 #else 519 519 // looking for more, then one opened streams to prevent of muting active stream … … 528 528 { 529 529 dprintf(("OSS32_MixSetVolume Ioctl")); 530 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_CTL_IOCTL_ELEM_WRITE, (ULONG)pElem);530 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_CTL_IOCTL_ELEM_WRITE, (ULONG)pElem); 531 531 532 532 if(idxMute != -1 && volume == 0) { … … 538 538 pElem->value.integer.value[1] = FALSE; 539 539 dprintf(("OSS32_MixSetVolume Ioctl mute")); 540 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_CTL_IOCTL_ELEM_WRITE, (ULONG)pElem);540 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_CTL_IOCTL_ELEM_WRITE, (ULONG)pElem); 541 541 } 542 542 } … … 603 603 //request information about mixer control 604 604 pElemInfo->id.numid = pHandle->pids[idx].numid; 605 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_CTL_IOCTL_ELEM_INFO, (ULONG)pElemInfo);605 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_CTL_IOCTL_ELEM_INFO, (ULONG)pElemInfo); 606 606 if(ret) { 607 607 ret = UNIXToOSSError(ret); … … 621 621 } 622 622 623 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_CTL_IOCTL_ELEM_WRITE, (ULONG)pElem);623 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_CTL_IOCTL_ELEM_WRITE, (ULONG)pElem); 624 624 if(ret) { 625 625 ret = UNIXToOSSError(ret); … … 631 631 //request information about mixer control 632 632 pElemInfo->id.numid = pHandle->pids[idx].numid; 633 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_CTL_IOCTL_ELEM_INFO, (ULONG)pElemInfo);633 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_CTL_IOCTL_ELEM_INFO, (ULONG)pElemInfo); 634 634 if(ret) { 635 635 ret = UNIXToOSSError(ret); … … 678 678 //request information about mixer control 679 679 pElemInfo->id.numid = pHandle->pids[idx].numid; 680 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_CTL_IOCTL_ELEM_INFO, (ULONG)pElemInfo);680 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_CTL_IOCTL_ELEM_INFO, (ULONG)pElemInfo); 681 681 if(ret) { 682 682 ret = UNIXToOSSError(ret); … … 707 707 708 708 dprintf(("OSS32_MixSetProperty of %s to %x", pHandle->pids[idx].name, ulValue)); 709 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file, SNDRV_CTL_IOCTL_ELEM_WRITE, (ULONG)pElem);709 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, SNDRV_CTL_IOCTL_ELEM_WRITE, (ULONG)pElem); 710 710 711 711 kfree(pElem); … … 849 849 } 850 850 //retrieve mixer information 851 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file,851 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, 852 852 SNDRV_CTL_IOCTL_CARD_INFO, 853 853 (ULONG)&pHandle->info); … … 911 911 } 912 912 //retrieve mixer information 913 ret = pHandle->file.f_op-> ioctl(&pHandle->inode,&pHandle->file,913 ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file, 914 914 SNDRV_CTL_IOCTL_CARD_INFO, 915 915 (ULONG)&pHandle->info);
Note:
See TracChangeset
for help on using the changeset viewer.