@@ -14,7 +14,7 @@ provides a refined estimate with a delay.
14
14
event or application query.
15
15
The difference (tstamp - trigger_tstamp) defines the elapsed time.
16
16
17
- The ALSA API provides reports two basic pieces of information, avail
17
+ The ALSA API provides two basic pieces of information, avail
18
18
and delay, which combined with the trigger and current system
19
19
timestamps allow for applications to keep track of the 'fullness' of
20
20
the ring buffer and the amount of queued samples.
@@ -53,21 +53,21 @@ case):
53
53
The analog time is taken at the last stage of the playback, as close
54
54
as possible to the actual transducer
55
55
56
- The link time is taken at the output of the SOC /chipset as the samples
56
+ The link time is taken at the output of the SoC /chipset as the samples
57
57
are pushed on a link. The link time can be directly measured if
58
58
supported in hardware by sample counters or wallclocks (e.g. with
59
59
HDAudio 24MHz or PTP clock for networked solutions) or indirectly
60
60
estimated (e.g. with the frame counter in USB).
61
61
62
62
The DMA time is measured using counters - typically the least reliable
63
- of all measurements due to the bursty natured of DMA transfers.
63
+ of all measurements due to the bursty nature of DMA transfers.
64
64
65
65
The app time corresponds to the time tracked by an application after
66
66
writing in the ring buffer.
67
67
68
- The application can query what the hardware supports , define which
68
+ The application can query the hardware capabilities , define which
69
69
audio time it wants reported by selecting the relevant settings in
70
- audio_tstamp_config fields, get an estimate of the timestamp
70
+ audio_tstamp_config fields, thus get an estimate of the timestamp
71
71
accuracy. It can also request the delay-to-analog be included in the
72
72
measurement. Direct access to the link time is very interesting on
73
73
platforms that provide an embedded DSP; measuring directly the link
@@ -169,7 +169,7 @@ playback: systime: 938107562 nsec, audio time 938112708 nsec, systime delta -51
169
169
Example 1 shows that the timestamp at the DMA level is close to 1ms
170
170
ahead of the actual playback time (as a side time this sort of
171
171
measurement can help define rewind safeguards). Compensating for the
172
- DMA-link delay in example 2 helps remove the hardware buffering abut
172
+ DMA-link delay in example 2 helps remove the hardware buffering but
173
173
the information is still very jittery, with up to one sample of
174
174
error. In example 3 where the timestamps are measured with the link
175
175
wallclock, the timestamps show a monotonic behavior and a lower
0 commit comments