Hi,
On 01/31/2013 05:51 PM, Brent Weatherall wrote:
Here is a log of the high level test program:
snd_pcm_hw_params_set_rate_near succeeded. Rate set to 44100. snd_pcm_hw_params_set_channels succeeded. cannot set buffer time (Invalid argument) cannot set buffer period time (Invalid argument) Before commit, state is: SND_PCM_STATE_OPEN cannot set parameters (Invalid argument) After failure, state is: SND_PCM_STATE_OPEN Trying to re-configure rate param. Before calling 'snd_pcm_drop', state is: SND_PCM_STATE_OPEN cannot drop (Input/output error) After calling 'snd_pcm_drop', state is: SND_PCM_STATE_OPEN Trying rate 8000. snd_pcm_hw_params_set_rate_near succeeded. Rate set to 44100. snd_pcm_hw_params_set_buffer_time_near succeeded. Buffer size actually set to 22050. cannot set buffer period time (Invalid argument) cannot set parameters (Invalid argument) cannot prepare audio interface for use (Input/output error) Rate 44100 supported: FAIL
Which PCM you are opening? My guess is pcm0 which supports 44.1 and 48. You seams to be failing with the period size here. I know we have constraint for the period size, but can not recall what it is and why it has not been applied to the stream. Sebastien: can you comment?