1#
2# Example configuration for Lenovo ThinkPad P1 Gen2
3#
4
5#
6# Use regex match for the string read from the given sysfs path
7#
8# The sysfs root directory (/sys) is hardwired in the test code
9# (may be changed on demand).
10#
11# All strings must match.
12#
13sysfs [
14	{
15		path "class/dmi/id/product_sku"
16		regex "LENOVO_MT_20QU_BU_Think_FM_ThinkPad P1 Gen 2"
17	}
18]
19
20card.hda {
21	#
22	# Use regex match for the /sys/class/sound/card*/ tree (relative)
23	#
24	sysfs [
25		{
26			path "device/subsystem_device"
27			regex "0x229e"
28		}
29		{
30			path "device/subsystem_vendor"
31			regex "0x17aa"
32		}
33	]
34
35	#
36	# PCM configuration
37	#
38	# pcm.0.0 - device 0 subdevice 0
39	#
40	pcm.0.0 {
41		PLAYBACK {
42			#
43			# Uncomment to override values for specific tests
44			#
45			#test_name1 {
46			#	access RW_INTERLEAVED
47			#	format S16_LE
48			#	rate 48000
49			#	channels 2
50			#	period_size 512
51			#	buffer_size 4096
52			#}
53			#test_name2 {
54			#	access RW_INTERLEAVED
55			#	format S16_LE
56			#	rate 48000
57			#	channels 2
58			#	period_size 24000
59			#	buffer_size 192000
60			#}
61		}
62		CAPTURE {
63			# use default tests, check for the presence
64		}
65	}
66	#
67	# uncomment to force the missing device checks
68	#
69	#pcm.0.2 {
70	#	PLAYBACK {
71	#		# check for the presence
72	#	}
73	#}
74	#pcm.0.3 {
75	#	CAPTURE {
76	#		# check for the presence
77	#	}
78	#}
79}
80