Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: how to modify alsa peiod_time (Read 864 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

how to modify alsa peiod_time

Hi all,
when i run an arecord command with verbiose -v on my machine (an ARM embedded system with an audio card, i get following print out:
//////////////////////////////////
Its setup is:
  stream       : CAPTURE
  access       : MMAP_INTERLEAVED
  format       : S32_LE
  subformat    : STD
  channels     : 8
  rate         : 24000
  exact rate   : 24000 (24000/1)
  msbits       : 32
  buffer_size  : 4096
  period_size  : 256
  period_time  : 10666
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 256
  period_event : 0
  start_threshold  : 3
  stop_threshold   : 4096
  silence_threshold: 0
  silence_size : 0
  boundary     : 1073741824
  appl_ptr     : 0
  hw_ptr       : 0
////////////////////////////////

I know these info are coming from libasound library, but I am looking for a way to modify the period_time to a fix value I wanted. (~20ms instead of the current 10.666ms). Is there a way to do that with an alsa confguration file such as asoundrc or else? if so, how to define this parameter (period_time) and how.

Thanks,