提交 a7bb29ba 编写于 作者: M malc

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
上级 266910c4
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册