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.

alsa latency error when executed on am335x board

Dear Ti e2e community,

Am facing the below error, when I tried to execute 

ferryzhou.wordpress.com/.../linux-alsa-latency-test

Even am using the above latency test app , when I run the app am facing the below error in ti sdk 8, could you please test from your end & let us know

root@am335x-evm:/# ./latency -P hw:0,0 -C hw:0,0 -r 8000 -m 128 -M 128 -p -s 1
Scheduler set to Round Robin with priority 99...
Playback device is hw:0,0
Capture device is hw:0,0
Parameters are 8000Hz, S16_LE, 2 channels, non-blocking mode
Poll mode: yes
Loop limit is 8000 frames, minimum latency = 128, maximum latency = 128
Record open error: Invalid argument
root@am335x-evm:/#

Please help me out in resolving this issue as early as possible

Many Thanks in advance
 
  • Hi,

    I will forward this to the SW team.

  • Hello Srini,

    This is the test result from our side.

    root@am335x-evm:~# ./latency -P hw:0,0 -C hw:0,0 -r 8000 -m 128 -M 128 -p -s 1                                                                                  
    Scheduler set to Round Robin with priority 99...                                                                                                                
    Playback device is hw:0,0                                                                                                                                       
    Capture device is hw:0,0                                                                                                                                        
    Parameters are 8000Hz, S16_LE, 2 channels, non-blocking mode                                                                                                    
    Poll mode: yes                                                                                                                                                  
    Loop limit is 8000 frames, minimum latency = 128, maximum latency = 128                                                                                         
    Hardware PCM card 0 'AM335x-EVMSK' device 0 subdevice 0                                                                                                         
    Its setup is:                                                                                                                                                   
      stream       : PLAYBACK                                                                                                                                       
      access       : RW_INTERLEAVED                                                                                                                                 
      format       : S16_LE                                                                                                                                         
      subformat    : STD                                                                                                                                            
      channels     : 2                                                                                                                                              
      rate         : 8000                                                                                                                                           
      exact rate   : 8000 (8000/1)                                                                                                                                  
      msbits       : 16                                                                                                                                             
      buffer_size  : 256                                                                                                                                            
      period_size  : 128                                                                                                                                            
      period_time  : 16000                                                                                                                                          
      tstamp_mode  : NONE                                                                                                                                           
      period_step  : 1                                                                                                                                              
      avail_min    : 128                                                                                                                                            
      period_event : 0                                                                                                                                              
      start_threshold  : 2147483647                                                                                                                                 
      stop_threshold   : 256                                                                                                                                        
      silence_threshold: 0                                                                                                                                          
      silence_size : 0                                                                                                                                              
      boundary     : 1073741824                                                                                                                                     
      appl_ptr     : 0                                                                                                                                              
      hw_ptr       : 0                                                                                                                                              
    Hardware PCM card 0 'AM335x-EVMSK' device 0 subdevice 0                                                                                                         
    Its setup is:                                                                                                                                                   
      stream       : CAPTURE                                                                                                                                        
      access       : RW_INTERLEAVED                                                                                                                                 
      format       : S16_LE                                                                                                                                         
      subformat    : STD                                                                                                                                            
      channels     : 2                                                                                                                                              
      rate         : 8000                                                                                                                                           
      exact rate   : 8000 (8000/1)                                                                                                                                  
      msbits       : 16                                                                                                                                             
      buffer_size  : 256                                                                                                                                            
      period_size  : 128                                                                                                                                            
      period_time  : 16000                                                                                                                                          
      tstamp_mode  : NONE                                                                                                                                           
      period_step  : 1                                                                                                                                              
      avail_min    : 128                                                                                                                                            
      period_event : 0                                                                                                                                              
      start_threshold  : 2147483647                                                                                                                                 
      stop_threshold   : 256                                                                                                                                        
      silence_threshold: 0                                                                                                                                          
      silence_size : 0                                                                                                                                              
      boundary     : 1073741824                                                                                                                                     
      appl_ptr     : 0                                                                                                                                              
      hw_ptr       : 0                                                                                                                                              
    Trying latency 256 frames, 32000.000us, 32.000000ms (31.2500Hz)                                                                                                 
    Success                                                                                                                                                         
    Playback:                                                                                                                                                       
    *** frames = 8320 ***                                                                                                                                           
      state       : RUNNING                                                                                                                                         
      trigger_time: 1423939116.998609634                                                                                                                            
      tstamp      : 1423939118.8859176                                                                                                                              
      delay       : 224                                                                                                                                             
      avail       : 32                                                                                                                                              
      avail_max   : 160                                                                                                                                             
    Capture:                                                                                                                                                        
    *** frames = 8064 ***                                                                                                                                           
      state       : RUNNING                                                                                                                                         
      trigger_time: 1423939116.998602676                                                                                                                            
      tstamp      : 1423939118.9239968                                                                                                                              
      delay       : 0                                                                                                                                               
      avail       : 0                                                                                                                                               
      avail_max   : 128                                                                                                                                             
    Maximum read: 128 frames                                                                                                                                        
    Maximum read latency: 16000.000us, 16.000000ms (62.5000Hz)                                                                                                      
    Playback time = 1423939116.998609, Record time = 1423939116.998602, diff = 7                                                                                    
    Segmentation fault                                                                                                                                              
    root@am335x-evm:~# 
    

    Best regards,
    Kemal