From: Uwe Hermann Date: Sun, 24 Nov 2019 18:18:28 +0000 (+0100) Subject: tdm_audio: Place each channel on its own annotation row. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3f6cc6ddd99b790c9d527a64b41055f57501e414;p=libsigrokdecode.git tdm_audio: Place each channel on its own annotation row. --- diff --git a/decoders/tdm_audio/pd.py b/decoders/tdm_audio/pd.py index 9c57d7a..6c5869b 100644 --- a/decoders/tdm_audio/pd.py +++ b/decoders/tdm_audio/pd.py @@ -42,6 +42,7 @@ class Decoder(srd.Decoder): {'id': 'edge', 'desc': 'Clock edge to sample on', 'default': 'rising', 'values': ('rising', 'falling') } ) annotations = tuple(('ch%d' % i, 'Ch%d' % i) for i in range(MAX_CHANNELS)) + annotation_rows = tuple(('ch%d' % i, 'Ch%d' % i, (i,)) for i in range(MAX_CHANNELS)) def __init__(self): self.reset()