 
            
            
            
            
                6 Jan
                
                    2017
                
            
            
                6 Jan
                
                '17
                
            
            
            
        
    
                9:09 a.m.
            
        Ricardo Biehl wrote:
In this way, can I get the offset of hardware pointer in my pcm char device mmaped area with:
offset_in_buffer = hw_ptr % buffer_size; ?
Are you talking about code in your driver (where you are responsible for asking the hardware), or user space code (where you must not directly read hw_ptr)? What is the actual problem you're trying to solve?
Regards, Clemens