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/soundmixer.c

    r604 r679  
    148148  }
    149149  //retrieve mixer information
    150   ret = pHandle->file.f_op->ioctl(&pHandle->inode, &pHandle->file,
     150  ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file,
    151151                  SNDRV_CTL_IOCTL_CARD_INFO,
    152152                  (ULONG)&pHandle->info);
     
    157157  pHandle->list.offset = 0;
    158158  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,
    160160                  SNDRV_CTL_IOCTL_ELEM_LIST,
    161161                  (ULONG)&pHandle->list);
     
    172172  pHandle->list.space  = pHandle->list.count;
    173173  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,
    175175                  SNDRV_CTL_IOCTL_ELEM_LIST,
    176176                  (ULONG)&pHandle->list);
     
    271271      pElemInfo->value.enumerated.item = i;
    272272      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);
    274274      if(ret) {
    275275        DebugInt3();
     
    484484    pElem->value.integer.value[0] = TRUE;  //switch, not mute control (inversed)
    485485    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);
    487487  }
    488488  //request information about mixer control
    489489  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);
    491491  if(ret) {
    492492    ret = UNIXToOSSError(ret);
     
    515515
    516516#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);
    518518#else
    519519  // looking for more, then one opened streams to prevent of muting active stream
     
    528528  {
    529529    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);
    531531
    532532    if(idxMute != -1 && volume == 0) {
     
    538538      pElem->value.integer.value[1] = FALSE;
    539539      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);
    541541    }
    542542  }
     
    603603          //request information about mixer control
    604604          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);
    606606          if(ret) {
    607607            ret = UNIXToOSSError(ret);
     
    621621          }
    622622
    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);
    624624          if(ret) {
    625625            ret = UNIXToOSSError(ret);
     
    631631      //request information about mixer control
    632632      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);
    634634      if(ret) {
    635635        ret = UNIXToOSSError(ret);
     
    678678    //request information about mixer control
    679679    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);
    681681    if(ret) {
    682682      ret = UNIXToOSSError(ret);
     
    707707
    708708  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);
    710710
    711711  kfree(pElem);
     
    849849  }
    850850  //retrieve mixer information
    851   ret = pHandle->file.f_op->ioctl(&pHandle->inode, &pHandle->file,
     851  ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file,
    852852                  SNDRV_CTL_IOCTL_CARD_INFO,
    853853                  (ULONG)&pHandle->info);
     
    911911  }
    912912  //retrieve mixer information
    913   ret = pHandle->file.f_op->ioctl(&pHandle->inode, &pHandle->file,
     913  ret = pHandle->file.f_op->unlocked_ioctl(&pHandle->file,
    914914                  SNDRV_CTL_IOCTL_CARD_INFO,
    915915                  (ULONG)&pHandle->info);
Note: See TracChangeset for help on using the changeset viewer.