Changeset 353
- Timestamp:
- 04/28/08 09:38:30 (7 months ago)
- Files:
-
- 1 modified
-
GPL/branches/uniaud32-2.0/lib32/sound.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-2.0/lib32/sound.c
r352 r353 809 809 pHandle->doublesamplesize = samplesize * 2; 810 810 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); 815 813 // checking number of channels 816 814 … … 948 946 bufsize = hw_param_interval((¶ms), SNDRV_PCM_HW_PARAM_BUFFER_BYTES)->max; 949 947 950 #if 0951 948 if(periodsize) { 952 949 nrperiods = bufsize/periodbytes; … … 958 955 return OSSERR_INVALID_PARAMETER; 959 956 } 960 #else 961 nrperiods = 3; 962 #endif 957 963 958 //check nr of periods against lower and upper boundaries 964 959 minnrperiods = hw_param_interval((¶ms), SNDRV_PCM_HW_PARAM_PERIODS)->min;
