[music-dsp] Clock drift and compensation

2018-01-23 Thread Benny Alexandar
Hi All, I have a problem to solve, I have a system which has a tuner chip and DSP chip, both are clocked by independent xtals. Tuner gives the baseband samples to DSP, and tuner is master and dsp is slave. Dsp does the demodulation of base band samples and does the audio decoding and generat

Re: [music-dsp] Clock drift and compensation

2018-01-23 Thread Andy Farnell
On Tue, Jan 23, 2018 at 04:17:40PM +, Benny Alexandar wrote: > How to design a control system such that a digital baseband frame of duration > 'T' ms is mapped to audio and adjust the drift ? A classic asynchronous resampling problem. Look at something like SMPTE drop frame resampling using

Re: [music-dsp] Clock drift and compensation

2018-01-23 Thread Bogac Topaktas
On Tue, January 23, 2018 7:17 pm, Benny Alexandar wrote: > Now if the tuner xtal is drifting then the dsp audio streaming needs to > adjust to that drift, else buffer overflow or underrun happens as the > sample rates doesn't match. Assuming you do not have the option of modifying the hardware, yo