Commit a7bb29ba877e4f80f0029b99256e974d87460cab

Authored by malc
1 parent 266910c4

Call proper function when trying to set period size

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4863 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 4 additions and 2 deletions
audio/alsaaudio.c
... ... @@ -385,12 +385,14 @@ static int alsa_open (int in, struct alsa_params_req *req,
385 385 obt = ptime;
386 386 }
387 387 else {
  388 + int dir = 0;
388 389 snd_pcm_uframes_t psize = req->period_size;
389 390  
390   - err = snd_pcm_hw_params_set_buffer_size_near (
  391 + err = snd_pcm_hw_params_set_period_size_near (
391 392 handle,
392 393 hw_params,
393   - &psize
  394 + &psize,
  395 + &dir
394 396 );
395 397 obt = psize;
396 398 }
... ...