Ignore:
Timestamp:
Jul 20, 2010, 5:46:55 PM (15 years ago)
Author:
David Azarewicz
Message:

Some of my updates from the 2.1.x branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/lib32/soundmixer.c

    r485 r518  
    474474    }
    475475    if(idx == -1) {
    476         dprintf(("Unknown control %d", line));
     476        rprintf(("Unknown control %d", line));
    477477        ret = OSSERR_INVALID_PARAMETER;
    478478        goto fail;
     
    512512    }
    513513
    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",
    515515                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
    518521    // looking for more, then one opened streams to prevent of muting active stream
    519522    cnt = 0;
     
    522525            cnt++;
    523526
     527        dprintf(("OSS32_MixSetVolume old cnt=%X line=%x lVol=%x rVol=%x", cnt, line, lVol, rVol));
    524528    //    if (((cnt == 1 && (lVol==0 && rVol==0)) || (lVol>0 && rVol>0)) ||
    525529    if (cnt == 1 || line != OSS32_MIX_VOLUME_PCM)
    526530    {
     531                dprintf(("OSS32_MixSetVolume Ioctl"));
    527532        ret = pHandle->file.f_op->ioctl(&pHandle->inode, &pHandle->file, SNDRV_CTL_IOCTL_ELEM_WRITE, (ULONG)pElem);
    528533
     
    534539            pElem->value.integer.value[0] = FALSE;  //switch, not mute control (inversed)
    535540            pElem->value.integer.value[1] = FALSE;
     541                        dprintf(("OSS32_MixSetVolume Ioctl mute"));
    536542            ret = pHandle->file.f_op->ioctl(&pHandle->inode, &pHandle->file, SNDRV_CTL_IOCTL_ELEM_WRITE, (ULONG)pElem);
    537543        }
    538544    }
     545#endif
    539546
    540547    kfree(pElem);
    541548    pElem = NULL;
    542549    if(ret) {
    543         printk("ret = %i\n", ret);
     550        rprintf(("OSS32_MixSetVolume ret=%x", ret));
    544551        DebugInt3();
    545552        return UNIXToOSSError(ret);
Note: See TracChangeset for help on using the changeset viewer.