[autotest] Add ECHO_REFERENCE to CRAS_INPUT_NODE_TYPES

ECHO_REFERENCE is a new node type introduced by chromium:1880355.
Also relax the check to log the anonymous instead of breaking the test.

BUG=chromium:1030707
TEST=test_that --board=nocturne --fast --debug
chromeos15-row14b-rack7-host8.cros audio_AudioBasicUSBPlayback

Change-Id: I3ee36994da3fb270f4a3e94198b1b8c3a8c66b16
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/1951945
Tested-by: En-Shuo Hsu <enshuo@chromium.org>
Auto-Submit: En-Shuo Hsu <enshuo@chromium.org>
Commit-Queue: Yu-Hsuan Hsu <yuhsuan@chromium.org>
Reviewed-by: Yu-Hsuan Hsu <yuhsuan@chromium.org>
diff --git a/client/cros/audio/cras_utils.py b/client/cros/audio/cras_utils.py
index f9b83a2..5f2df6a 100644
--- a/client/cros/audio/cras_utils.py
+++ b/client/cros/audio/cras_utils.py
@@ -321,7 +321,8 @@
                           'BLUETOOTH', 'LINEOUT', 'UNKNOWN']
 CRAS_INPUT_NODE_TYPES = ['MIC', 'INTERNAL_MIC', 'USB', 'BLUETOOTH',
                          'POST_DSP_LOOPBACK', 'POST_MIX_LOOPBACK', 'UNKNOWN',
-                         'KEYBOARD_MIC', 'HOTWORD', 'FRONT_MIC', 'REAR_MIC']
+                         'KEYBOARD_MIC', 'HOTWORD', 'FRONT_MIC', 'REAR_MIC',
+                         'ECHO_REFERENCE']
 CRAS_NODE_TYPES = CRAS_OUTPUT_NODE_TYPES + CRAS_INPUT_NODE_TYPES
 
 
@@ -343,8 +344,8 @@
         if callback(node):
             node_type = str(node['Type'])
             if node_type not in CRAS_NODE_TYPES:
-                raise RuntimeError(
-                        'node type %s is not valid' % node_type)
+                logging.warning('node type %s is not in known CRAS_NODE_TYPES',
+                                node_type)
             if node['IsInput']:
                 input_node_types.append(node_type)
             else: