[alsa-devel] [PATCH v2] ALSA: hda - Apply codec delay to wallclock.
pierre-louis.bossart at linux.intel.com
Wed Apr 10 05:55:59 CEST 2013
On 4/8/13 6:20 PM, Dylan Reid wrote:
> For playback add the codec-side delay to the timestamp, for capture
> subtract it. This brings the timestamps in line with the time that
> was recently added to the delay reporting.
> Signed-off-by: Dylan Reid <dgreid at chromium.org>
> Changes since v1:
> Calculate nsec from frames, subtract delay for playback as well as
> + return (nsec > codec_nsecs) ? nsec - codec_nsecs : 0;
Is this correct? I would think for capture you need to add the delay,
and subtract it for playback?
More information about the Alsa-devel