]> git.alsa-project.org Git - alsa.git/commitdiff
hda_analyzer: Fix len(None) backtrace
authorJaroslav Kysela <perex@perex.cz>
Mon, 29 Apr 2013 07:09:33 +0000 (09:09 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 29 Apr 2013 07:09:33 +0000 (09:09 +0200)
From: Frank A Kingswood <frank@kingswood-consulting.co.uk>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
hda-analyzer/hda_codec.py

index ad9f5356defa358492c9f337c32e161f5a6b79d8..a09dc5e6f1d2d912b66b17b8b747f717fec22e47 100644 (file)
@@ -316,7 +316,17 @@ class HDAAmpVal:
     self.indices = 1
     self.origin_vals = None
     if dir == HDA_INPUT:
-      self.indices = node.wtype_id == 'PIN' and 1 or len(node.connections)
+      if node.wtype_id == 'PIN':
+        self.indices = 1
+      elif node.connections:
+        self.indices = len(node.connections)
+      else:
+        self.indices = 0
+      self.reread()
+    def __write_val(self, idx):
+
+
     self.reread()
 
   def __write_val(self, idx):