Changeset 644 for GPL/branches/uniaud32-next/lib32/ioctl.c
- Timestamp:
- Jan 16, 2021, 10:20:04 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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;
Note:
See TracChangeset
for help on using the changeset viewer.