5 Sep
                
                    2011
                
            
            
                5 Sep
                
                '11
                
            
            
            
        
    
                9:53 a.m.
            
        Pierre-Louis Bossart wrote:
... This should improve audio/video sync
It does indeed; mplayer's A-V difference gets lowered from up to nrpacks ms down to at most 1 ms.
- est_delay = subs->last_delay-(frame_diff*rate/1000L);
 
Why a long dividend?
The spacing around operators is inconsistent; please use checkpatch.
snd_printk(KERN_DEBUG "ALSA usb.c: Delay %d actual delay %d\n",est_delay, subs->last_delay);
snd_printk already can print the "ALSA" and file name prefixes. (And it uses the correct file name. ;-)
Regards, Clemens