projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
266910c
)
Call proper function when trying to set period size
author
malc
<malc@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 9 Jul 2008 19:25:24 +0000
(19:25 +0000)
committer
malc
<malc@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 9 Jul 2008 19:25:24 +0000
(19:25 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4863
c046a42c
-6fe2-441c-8c8c-
71466251a162
audio/alsaaudio.c
patch
|
blob
|
history
diff --git
a/audio/alsaaudio.c
b/audio/alsaaudio.c
index ba80deac1be87631cfabb8cf9c61a395a4ece803..4d47aa006beaee7098a4bb1436e6af69b59f3346 100644
(file)
--- a/
audio/alsaaudio.c
+++ b/
audio/alsaaudio.c
@@
-385,12
+385,14
@@
static int alsa_open (int in, struct alsa_params_req *req,
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;
}