Changeset 518 for GPL/trunk/lib32/soundmixer.c
- Timestamp:
- Jul 20, 2010, 5:46:55 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/lib32/soundmixer.c
r485 r518 474 474 } 475 475 if(idx == -1) { 476 dprintf(("Unknown control %d", line));476 rprintf(("Unknown control %d", line)); 477 477 ret = OSSERR_INVALID_PARAMETER; 478 478 goto fail; … … 512 512 } 513 513 514 printk("OSS32_MixSetVolume of %s streamid %X to (%d,%d)(%d,%d) caps %d\n",514 dprintf(("OSS32_MixSetVolume of %s streamid %X to (%d,%d)(%d,%d) caps %d", 515 515 pHandle->pids[idx].name, (ULONG)pHandle, 516 GET_VOLUME_L(volume), GET_VOLUME_R(volume), lVol, rVol, pElemInfo->value.integer.max); 517 516 GET_VOLUME_L(volume), GET_VOLUME_R(volume), lVol, rVol, pElemInfo->value.integer.max)); 517 518 #if 1 519 ret = pHandle->file.f_op->ioctl(&pHandle->inode, &pHandle->file, SNDRV_CTL_IOCTL_ELEM_WRITE, (ULONG)pElem); 520 #else 518 521 // looking for more, then one opened streams to prevent of muting active stream 519 522 cnt = 0; … … 522 525 cnt++; 523 526 527 dprintf(("OSS32_MixSetVolume old cnt=%X line=%x lVol=%x rVol=%x", cnt, line, lVol, rVol)); 524 528 // if (((cnt == 1 && (lVol==0 && rVol==0)) || (lVol>0 && rVol>0)) || 525 529 if (cnt == 1 || line != OSS32_MIX_VOLUME_PCM) 526 530 { 531 dprintf(("OSS32_MixSetVolume Ioctl")); 527 532 ret = pHandle->file.f_op->ioctl(&pHandle->inode, &pHandle->file, SNDRV_CTL_IOCTL_ELEM_WRITE, (ULONG)pElem); 528 533 … … 534 539 pElem->value.integer.value[0] = FALSE; //switch, not mute control (inversed) 535 540 pElem->value.integer.value[1] = FALSE; 541 dprintf(("OSS32_MixSetVolume Ioctl mute")); 536 542 ret = pHandle->file.f_op->ioctl(&pHandle->inode, &pHandle->file, SNDRV_CTL_IOCTL_ELEM_WRITE, (ULONG)pElem); 537 543 } 538 544 } 545 #endif 539 546 540 547 kfree(pElem); 541 548 pElem = NULL; 542 549 if(ret) { 543 printk("ret = %i\n", ret);550 rprintf(("OSS32_MixSetVolume ret=%x", ret)); 544 551 DebugInt3(); 545 552 return UNIXToOSSError(ret);
Note:
See TracChangeset
for help on using the changeset viewer.