Re: [Alsa-user] Error running arecord

2015-06-09 Thread Takashi Sakamoto
On Jun 6 2015 16:28, Rodolfo Medina wrote:
 Thanks.  Here's the output of `arecord -v test.wav':
 
 Recording WAVE 'test.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
 Plug PCM: Rate conversion PCM (48000, sformat=U8)
 ...
 Slave: Route conversion PCM (sformat=S16_LE)
 ...
 Slave: Direct Snoop PCM
 ...
 Hardware PCM card 0 'SiS SI7012' device 0 subdevice 0
 Its setup is:
   stream   : CAPTURE
   access   : MMAP_INTERLEAVED
   format   : S16_LE
   subformat: STD
   channels : 2
   rate : 48000
   exact rate   : 48000 (48000/1)
   msbits   : 16
   buffer_size  : 16384
   period_size  : 1024
   period_time  : 21333
   tstamp_mode  : ENABLE
   period_step  : 1
   avail_min: 1024
   period_event : 0
   start_threshold  : 1
   stop_threshold   : 1073741824
   silence_threshold: 0
   silence_size : 0
   boundary : 1073741824
   appl_ptr : 0
   hw_ptr   : 0

As long as seeing your log, arecord uses three userspace PCM plugins
before accessing hardware.

Can you see the same overruns when accessing hardware directly? Like:
$ arecord -v -D hw:0,0 -c 2 -r 48000 -f S16_LE test.wav


Regards

Takashi Sakamoto

--
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Error running arecord

2015-06-06 Thread Rodolfo Medina
Takashi Sakamoto o-taka...@sakamocchi.jp writes:

 Hi,

 On Jun 6 2015 15:16, Rodolfo Medina wrote:
 $ arecord test.wav
 Recording WAVE 'test.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
 overrun!!! (at least 3.709 ms long)

 Verbose option gives us more information to understand your issue, like:
 $ arecord -v test.wav

 Please report with it.

Thanks.  Here's the output of `arecord -v test.wav':

Recording WAVE 'test.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
Plug PCM: Rate conversion PCM (48000, sformat=U8)
Converter: libspeex (builtin)
Protocol version: 10002
Its setup is:
  stream   : CAPTURE
  access   : RW_INTERLEAVED
  format   : U8
  subformat: STD
  channels : 1
  rate : 8000
  exact rate   : 8000 (8000/1)
  msbits   : 8
  buffer_size  : 2730
  period_size  : 170
  period_time  : 21333
  tstamp_mode  : NONE
  period_step  : 1
  avail_min: 170
  period_event : 0
  start_threshold  : 1
  stop_threshold   : 2730
  silence_threshold: 0
  silence_size : 0
  boundary : 178913280
Slave: Route conversion PCM (sformat=S16_LE)
  Transformation table:
0 - 0*0.5 + 1*0.5
Its setup is:
  stream   : CAPTURE
  access   : MMAP_INTERLEAVED
  format   : U8
  subformat: STD
  channels : 1
  rate : 48000
  exact rate   : 48000 (48000/1)
  msbits   : 8
  buffer_size  : 16384
  period_size  : 1024
  period_time  : 21333
  tstamp_mode  : NONE
  period_step  : 1
  avail_min: 1024
  period_event : 0
  start_threshold  : 6
  stop_threshold   : 16384
  silence_threshold: 0
  silence_size : 0
  boundary : 1073741824
Slave: Direct Snoop PCM
Its setup is:
  stream   : CAPTURE
  access   : MMAP_INTERLEAVED
  format   : S16_LE
  subformat: STD
  channels : 2
  rate : 48000
  exact rate   : 48000 (48000/1)
  msbits   : 16
  buffer_size  : 16384
  period_size  : 1024
  period_time  : 21333
  tstamp_mode  : NONE
  period_step  : 1
  avail_min: 1024
  period_event : 0
  start_threshold  : 6
  stop_threshold   : 16384
  silence_threshold: 0
  silence_size : 0
  boundary : 1073741824
Hardware PCM card 0 'SiS SI7012' device 0 subdevice 0
Its setup is:
  stream   : CAPTURE
  access   : MMAP_INTERLEAVED
  format   : S16_LE
  subformat: STD
  channels : 2
  rate : 48000
  exact rate   : 48000 (48000/1)
  msbits   : 16
  buffer_size  : 16384
  period_size  : 1024
  period_time  : 21333
  tstamp_mode  : ENABLE
  period_step  : 1
  avail_min: 1024
  period_event : 0
  start_threshold  : 1
  stop_threshold   : 1073741824
  silence_threshold: 0
  silence_size : 0
  boundary : 1073741824
  appl_ptr : 0
  hw_ptr   : 0
overrun!!! (at least 2.878 ms long)
Status:
  state   : XRUN
  trigger_time: 4680.215819668
  tstamp  : 4680.215707921
  delay   : 2560
  avail   : 170
  avail_max   : 894
overrun!!! (at least 2.735 ms long)
Status:
  state   : XRUN
  trigger_time: 4690.288252727
  tstamp  : 4690.287918044
  delay   : 2560
  avail   : 170
  avail_max   : 851
overrun!!! (at least 2.800 ms long)
Status:
  state   : XRUN
  trigger_time: 4700.336684406
  tstamp  : 4700.336569307
  delay   : 2560
  avail   : 170
  avail_max   : 662
Aborted by signal Interrupt...
arecord: pcm_read:2031: read error: Interrupted system call


--
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Error running arecord

2015-06-06 Thread Takashi Sakamoto
Hi,

On Jun 6 2015 15:16, Rodolfo Medina wrote:
 $ arecord test.wav
 Recording WAVE 'test.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
 overrun!!! (at least 3.709 ms long)

Verbose option gives us more information to understand your issue, like:
$ arecord -v test.wav

Please report with it.


Regards

Takashi Sakamoto

--
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user