Ticket #146: vpc2.diff
File vpc2.diff, 769 bytes (added by , 12 years ago) |
---|
-
lib32/sound.c
975 975 pHwParams->ulNumChannels, 0); 976 976 _snd_pcm_hw_param_set(¶ms, SNDRV_PCM_HW_PARAM_RATE, 977 977 pHwParams->ulSampleRate, 0); 978 if (periodsize > 16 * minperiodsize) 979 { 978 980 _snd_pcm_hw_param_set(¶ms, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, 979 981 periodsize, 0); 980 982 _snd_pcm_hw_param_set(¶ms, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, … … 985 987 periodsize*nrperiods, 0); 986 988 _snd_pcm_hw_param_set(¶ms, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 987 989 periodbytes*nrperiods, 0); 990 } 988 991 989 992 990 993 dprintf(("HWP: SR rate %ld, BPS %ld, CH %ld, PRSZ %lx, periods %lx",