http://bugs.winehq.org/show_bug.cgi?id=25633
--- Comment #16 from Raymond superquad.vortex2@gmail.com 2011-01-07 19:56:46 CST --- The easy fix for using "plughw" with chips is reverse the order of set_buffer_time() and set_period_time()
- dir=0; - EXIT_ON_ERROR( snd_pcm_hw_params_set_buffer_time_near(pcm, hw_params, &buffer_time, &dir), MMSYSERR_INVALPARAM, "unable to set buffer time"); dir=0; EXIT_ON_ERROR( snd_pcm_hw_params_set_period_time_near(pcm, hw_params, &period_time, &dir), MMSYSERR_INVALPARAM, "unable to set period time"); + dir=0; + EXIT_ON_ERROR( snd_pcm_hw_params_set_buffer_time_near(pcm, hw_params, &buffer_time, &dir), MMSYSERR_INVALPARAM, "unable to set buffer time");