Skip to content

Commit 624891b

Browse files
afq984Chromeos LUCI
authored and
Chromeos LUCI
committedMar 24, 2025·
ucmlint: Warn for missing CaptureChannelMap on Internal Mic
BUG=b:382980984 BUG=b:405834519 TEST=../../../../overlays/overlay-volteer/chromeos-base/chromeos-bsp-volteer/files/lillipup/audio/ucm-config/sof-rt5682.lillipup Change-Id: Ieba152848d3a216d6e0190b98dadf504e57db31e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/6382056 Tested-by: [email protected] <[email protected]> Reviewed-by: Yu-Hsuan Hsu <[email protected]> Commit-Queue: Li-Yu Yu <[email protected]>
1 parent d057018 commit 624891b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎devtools/ucmlint/ucmlint.py

+5
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,11 @@ def lint_device(card_name: str, dev: Section):
443443
'See "Switch events" in include/uapi/linux/input-event-codes.h'
444444
)
445445

446+
# check CaptureChannelMap
447+
if t == DeviceType.InternalMic:
448+
if dev.value.get('CaptureChannelMap') is None:
449+
dev.value.warning(f'Value CaptureChannelMap is required for `{dev.name}`.')
450+
446451
# check EDIDFile
447452
if t == DeviceType.HDMI:
448453
if dev.value.get('EDIDFile') is None:

0 commit comments

Comments
 (0)
Please sign in to comment.