From 48ed9474fc6724dc1486d30e9a274ab27ec001da Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Wed, 30 Jul 2014 10:12:15 +0200 Subject: [PATCH] hda_analyzer: Parse "KAE" in Digital line Since it belongs to DIG3 bits, the value is ignored, so far. Signed-off-by: Takashi Iwai --- hda-analyzer/hda_proc.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hda-analyzer/hda_proc.py b/hda-analyzer/hda_proc.py index e1c16b1..91d1843 100644 --- a/hda-analyzer/hda_proc.py +++ b/hda-analyzer/hda_proc.py @@ -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): -- 2.47.1