17 Jul
2009
17 Jul
'09
noon
The periods calculation was missing for initializing OSS fragments.
Signed-off-by: Takashi Iwai tiwai@suse.de --- oss/pcm_oss.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/oss/pcm_oss.c b/oss/pcm_oss.c index 8a2a672..d43b44c 100644 --- a/oss/pcm_oss.c +++ b/oss/pcm_oss.c @@ -181,6 +181,7 @@ static int oss_hw_params(snd_pcm_ioplug_t *io, fprintf(stderr, "*** OSS: invalid period size %d\n", (int)io->period_size); return -EINVAL; } + oss->periods = io->buffer_size / io->period_size;
_retry: tmp = oss->period_shift | (oss->periods << 16);
--
1.6.3.2