]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/i2s/pd.py
Probes, optional probes and annotations now take a tuple.
[libsigrokdecode.git] / decoders / i2s / pd.py
index 73bfa6f634bec9547fb387233ec469df59e1054c..af2af4170f5bc2e72bde7378898c423cc17a5cbb 100644 (file)
@@ -42,18 +42,16 @@ class Decoder(srd.Decoder):
     license = 'gplv2+'
     inputs = ['logic']
     outputs = ['i2s']
-    probes = [
+    probes = (
         {'id': 'sck', 'name': 'SCK', 'desc': 'Bit clock line'},
         {'id': 'ws', 'name': 'WS', 'desc': 'Word select line'},
         {'id': 'sd', 'name': 'SD', 'desc': 'Serial data line'},
-    ]
-    optional_probes = []
-    options = {}
-    annotations = [
-        ['left', 'Left channel'],
-        ['right', 'Right channel'],
-        ['warnings', 'Warnings'],
-    ]
+    )
+    annotations = (
+        ('left', 'Left channel'),
+        ('right', 'Right channel'),
+        ('warnings', 'Warnings'),
+    )
     binary = (
         ('wav', 'WAV file'),
     )