All of lore.kernel.org
 help / color / mirror / Atom feed
* Application hangs with different period sizes
@ 2008-07-03  7:19 anuj aggarwal
  2008-07-03 11:41 ` Gustavo da Silva Serra
  0 siblings, 1 reply; 8+ messages in thread
From: anuj aggarwal @ 2008-07-03  7:19 UTC (permalink / raw)
  To: alsa-devel

My audio driver supports buffer sizes from 128 to 32768 and period sizes
from 8 to 2048. I am trying to set the period size as 1030 (just a random
number between 8 & 2048, but not multiple of 2^n) and buffer size as
16*buffer_size (i.e. 16480). The output is as follows:

Buffer size range from 128 to 32768
Period size range from 8 to 2048
Request period size 1030 and got 1030
Plug PCM: Hardware PCM card 0 'TWL4030' device 0 subdevice 0
Its setup is:
  stream       : PLAYBACK
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 44100
  exact rate   : 44100 (44100/1)
  msbits       : 16
  buffer_size  : 16480
  period_size  : 1030
  period_time  : 23356
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 1030
  start_threshold  : 16480
  stop_threshold   : 16480
  silence_threshold: 0
  silence_size : 0
  boundary     : 1080033280

The problem with this setup is the application just hangs without playing
anything. If I use period size as 2048, the app plays the song but clips the
last part of it. If I use 1024/512, it works fine.

I have tried alsa lib version 1.0.15 & 1.0.16 but the problem persists. Is
there anything wrong with my app or audio driver?

Please help.

Thanks in advance,
Anuj Aggarwal

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-08-08  6:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-03  7:19 Application hangs with different period sizes anuj aggarwal
2008-07-03 11:41 ` Gustavo da Silva Serra
2008-07-03 12:54   ` anuj aggarwal
2008-07-03 13:00     ` Gustavo da Silva Serra
2008-07-03 13:41       ` anuj aggarwal
2008-07-03 15:31         ` Gustavo da Silva Serra
2008-08-07 10:18           ` anuj aggarwal
2008-08-08  6:18             ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.