Changeset 344 for GPL


Ignore:
Timestamp:
Apr 9, 2008, 9:53:10 AM (17 years ago)
Author:
Paul Smedley
Message:

Make device/mixer name available in OSS32_WaveSetHwParams to allow device specific hacks

Location:
GPL/branches/uniaud32-2.0/lib32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-2.0/lib32/ossidc.cpp

    r340 r344  
    110110        return OSSERR_INIT_FAILED;
    111111    }
    112     dprintf(("Uniaud version %s\n",UNIAUD_VERSION));
     112    dprintf(("\nUniaud version %s\n",UNIAUD_VERSION));
    113113    dprintf(("OSS32_Initialize. Start address: %X", OffsetBeginCS32));
    114114//    DebugInt3();
  • GPL/branches/uniaud32-2.0/lib32/sound.c

    r339 r344  
    778778    BOOL                fTryAgain = FALSE;
    779779    ULONG ulMinRate, ulMaxRate;
     780    struct snd_pcm_info      *pcminfo = NULL;
    780781
    781782#ifdef DEBUG
     
    802803        return OSSERR_INVALID_PARAMETER;
    803804    }
     805
     806    // Get pcminfo so that we have the device & mixer name so we can do chipset specific hacks
     807    pcminfo = (struct snd_pcm_info *)kmalloc(sizeof(struct snd_pcm_info)+sizeof(struct snd_pcm_hw_params), GFP_KERNEL);
     808    //set operation to non-blocking
     809    pHandle->file.f_flags = O_NONBLOCK;
     810   
     811    ret = pHandle->file.f_op->ioctl(&pHandle->inode, &pHandle->file, SNDRV_PCM_IOCTL_INFO, (ULONG)pcminfo);
     812
    804813tryagain:
    805814    //set operation to non-blocking
     
    10031012
    10041013//#ifdef DEBUG_PK
    1005     printk("Hardware parameters: sample rate %i, data type %i, channels %i, period size %i, periods %i\n",
     1014    printk("Hardware parameters: sample rate %i, data type %i, channels %i, period size %i, nrperiods %i\n",
    10061015             pHwParams->ulSampleRate, pHwParams->ulDataType, pHwParams->ulNumChannels, periodsize, nrperiods);
    10071016//#endif
Note: See TracChangeset for help on using the changeset viewer.