]> git.alsa-project.org Git - alsa.git/commitdiff
hda_analyzer: Parse "KAE" in Digital line
authorTakashi Iwai <tiwai@suse.de>
Wed, 30 Jul 2014 08:12:15 +0000 (10:12 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 30 Jul 2014 08:44:37 +0000 (10:44 +0200)
Since it belongs to DIG3 bits, the value is ignored, so far.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
hda-analyzer/hda_proc.py

index e1c16b1131ab2c7acf031bd994d712e78be90258..91d184321f3b985911ac9b5197def666d692669b 100644 (file)
@@ -284,7 +284,8 @@ class ProcNode(HDABaseProc):
       'Non-Copyright': DIG1_BITS['COPYRIGHT'],
       'Non-Audio': DIG1_BITS['NONAUDIO'],
       'Pro': DIG1_BITS['PROFESSIONAL'],
-      'GenLevel': DIG1_BITS['LEVEL']
+      'GenLevel': DIG1_BITS['LEVEL'],
+      'KAE' : -1 # ignore, so far
     }
     xbits = 0
     a = line.split(' ')
@@ -294,7 +295,8 @@ class ProcNode(HDABaseProc):
         return
       if not b in bits:
         self.wrongfile('unknown dig1 bit %s' % repr(b))
-      xbits |= 1 << bits[b]
+      if bits[b] >= 0:
+        xbits |= 1 << bits[b]
     self.add_verb(VERBS['GET_DIGI_CONVERT_1'], xbits)
 
   def add_digitalcategory(self, line):