This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux timer

Hi,

We are using the custom 8148 board, when I say arecord -f cd -d 10 test.wav

It should actually record for 10seconds of time, but in reality if i compare to clock it records for 5secs~

time arecord -f cd -d 10 foo.wav                                                                                                                        
Recording WAVE 'foo.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

real    0m5.098s
user    0m0.010s
sys     0m0.030s
#

Can anyone help me out whats going wrong here ?

Thanks,

Mike

  • Hi Mike,

    Are you using EZSDK, what version? Can you try to reproduce on the TI EVM?

    When I try on the TI EVM, it works fine:

    root@dm814x-evm:~# time arecord -f cd -d 10 foo.wav

    Recording WAVE 'foo.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

    real 0m 10.31s

    user 0m 0.00s

    sys 0m 0.09s

    root@dm814x-evm:~# time arecord -f cd -d 10 foo.wav -v

    Recording WAVE 'foo.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

    Plug PCM: Hardware PCM card 0 'TI81XX EVM' device 0 subdevice 0

    Its setup is:

     stream       : CAPTURE

     access       : RW_INTERLEAVED

     format       : S16_LE

     subformat    : STD

     channels     : 2

     rate         : 44100

     exact rate   : 44100 (44100/1)

     msbits       : 16

     buffer_size  : 22528

     period_size  : 2048

     period_time  : 46439

     tstamp_mode  : NONE

     period_step  : 1

     avail_min    : 2048

     period_event : 0

     start_threshold  : 1

     stop_threshold   : 22528

     silence_threshold: 0

     silence_size : 0

     boundary     : 1476395008

     appl_ptr     : 0

     hw_ptr       : 0

    real 0m 10.25s

    user 0m 0.03s

    sys 0m 0.07s

    Regards,

    Pavel