Changeset 353

Show
Ignore:
Timestamp:
04/28/08 09:38:30 (7 months ago)
Author:
psmedley
Message:

Revert changes to sound.c

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-2.0/lib32/sound.c

    r352 r353  
    809809    pHandle->doublesamplesize  = samplesize * 2; 
    810810    pHandle->doublesamplesize *= pHwParams->ulNumChannels; 
    811 //    periodbytes = pHwParams->ulPeriodSize; 
    812 //    periodsize  = bytes_to_samples(periodbytes); 
    813     periodsize = pHwParams->ulPeriodSize; 
    814     periodbytes = samples_to_bytes(periodsize); 
     811    periodbytes = pHwParams->ulPeriodSize; 
     812    periodsize  = bytes_to_samples(periodbytes); 
    815813    // checking number of channels 
    816814 
     
    948946    bufsize = hw_param_interval((&params), SNDRV_PCM_HW_PARAM_BUFFER_BYTES)->max; 
    949947 
    950 #if 0 
    951948    if(periodsize) { 
    952949        nrperiods = bufsize/periodbytes; 
     
    958955        return OSSERR_INVALID_PARAMETER; 
    959956    } 
    960 #else 
    961     nrperiods = 3; 
    962 #endif 
     957 
    963958    //check nr of periods against lower and upper boundaries 
    964959    minnrperiods = hw_param_interval((&params), SNDRV_PCM_HW_PARAM_PERIODS)->min;