Ignore:
Timestamp:
Jan 16, 2021, 10:20:04 PM (5 years ago)
Author:
Paul Smedley
Message:

More code cleanups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/lib32/soundmidi.c

    r598 r644  
    120120    {
    121121        //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);
    123123        if(ret) {
    124124            rprintf(("Get client id failed with error %d", ret));
     
    133133            clientinfo.client = i;
    134134            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));
    136136            if(ret) {
    137137                continue;
     
    157157        portinfo.addr.client = pHandle->clientid;
    158158        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));
    160160        if(ret) {
    161161            rprintf(("subscribe error %d", ret));
     
    172172        subs.sender.client = pHandle->clientid;
    173173        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));
    175175        if(ret) {
    176176            rprintf(("subscribe error %d", ret));
     
    212212        subs.sender.client = pHandle->clientid;
    213213        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));
    215215        if(ret) {
    216216            rprintf(("unsubscribe error %d", ret));
     
    227227        portinfo.addr.client = pHandle->clientid;
    228228        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));
    230230        if(ret) {
    231231            dprintf(("delete port error %d", ret));
Note: See TracChangeset for help on using the changeset viewer.