Ignore:
Timestamp:
Mar 18, 2021, 8:57:36 PM (4 years ago)
Author:
David Azarewicz
Message:

Merge changes from Paul's uniaud32next branch.

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/lib32/soundmidi.c

    r598 r679  
    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));
     
    130130        for(i=64;i<64+((deviceid+1)<<3);i++)
    131131        {
    132             memset((PVOID)__Stack32ToFlat(&clientinfo), 0, sizeof(clientinfo));
     132            memset(&clientinfo, 0, sizeof(clientinfo));
    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)&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)&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)&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)&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)&portinfo);
    230230        if(ret) {
    231231            dprintf(("delete port error %d", ret));
     
    300300    pHandle->file.f_flags = O_NONBLOCK;
    301301
    302     memset((PVOID)__Stack32ToFlat(&fmevent), 0, sizeof(fmevent));
     302    memset(&fmevent, 0, sizeof(fmevent));
    303303    switch(Cmd) {
    304304    case IDC32_MIDI_NOTEON:
     
    331331    fmevent.dest.port     = pHandle->destport;
    332332
    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);
    334334
    335335    if(transferred < 0) {
Note: See TracChangeset for help on using the changeset viewer.