Changeset 679 for GPL/trunk/lib32/soundmidi.c
- Timestamp:
- Mar 18, 2021, 8:57:36 PM (4 years ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-linux-3.2.102 (added) merged: 611-614 /GPL/branches/uniaud32-next (added) merged: 615-678
- Property svn:mergeinfo changed
-
GPL/trunk/lib32/soundmidi.c
r598 r679 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)); … … 130 130 for(i=64;i<64+((deviceid+1)<<3);i++) 131 131 { 132 memset( (PVOID)__Stack32ToFlat(&clientinfo), 0, sizeof(clientinfo));132 memset(&clientinfo, 0, sizeof(clientinfo)); 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)&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)&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)&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)&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)&portinfo); 230 230 if(ret) { 231 231 dprintf(("delete port error %d", ret)); … … 300 300 pHandle->file.f_flags = O_NONBLOCK; 301 301 302 memset( (PVOID)__Stack32ToFlat(&fmevent), 0, sizeof(fmevent));302 memset(&fmevent, 0, sizeof(fmevent)); 303 303 switch(Cmd) { 304 304 case IDC32_MIDI_NOTEON: … … 331 331 fmevent.dest.port = pHandle->destport; 332 332 333 transferred = pHandle->file.f_op->write(&pHandle->file, (char *) __Stack32ToFlat(&fmevent), sizeof(fmevent), &pHandle->file.f_pos);333 transferred = pHandle->file.f_op->write(&pHandle->file, (char *)&fmevent, sizeof(fmevent), &pHandle->file.f_pos); 334 334 335 335 if(transferred < 0) {
Note:
See TracChangeset
for help on using the changeset viewer.