qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [4863] Call proper function when trying to set period size


From: malc
Subject: [Qemu-devel] [4863] Call proper function when trying to set period size
Date: Wed, 09 Jul 2008 19:25:25 +0000

Revision: 4863
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4863
Author:   malc
Date:     2008-07-09 19:25:24 +0000 (Wed, 09 Jul 2008)

Log Message:
-----------
Call proper function when trying to set period size

Modified Paths:
--------------
    trunk/audio/alsaaudio.c

Modified: trunk/audio/alsaaudio.c
===================================================================
--- trunk/audio/alsaaudio.c     2008-07-09 15:31:50 UTC (rev 4862)
+++ trunk/audio/alsaaudio.c     2008-07-09 19:25:24 UTC (rev 4863)
@@ -385,12 +385,14 @@
             obt = ptime;
         }
         else {
+            int dir = 0;
             snd_pcm_uframes_t psize = req->period_size;
 
-            err = snd_pcm_hw_params_set_buffer_size_near (
+            err = snd_pcm_hw_params_set_period_size_near (
                 handle,
                 hw_params,
-                &psize
+                &psize,
+                &dir
                 );
             obt = psize;
         }






reply via email to

[Prev in Thread] Current Thread [Next in Thread]