8 Apr
2013
8 Apr
'13
6:31 p.m.
- if (hinfo->ops.get_delay) {
codec_nsec =
hinfo->ops.get_delay(hinfo, codec, substream) * 1000000;
if (stream == SNDRV_PCM_STREAM_CAPTURE)
nsec = (nsec > codec_nsec) ? nsec - codec_nsec : 0;
else if (stream == SNDRV_PCM_STREAM_PLAYBACK)
nsec += codec_nsec;
Can the .get_delay be modified to provide a better resolution than a ms? If you already convert to time, microseconds would seem like a better fit? Your codec seems to report frames (ie 20.83 us). -Pierre