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			test.time1 {
43				access RW_INTERLEAVED	# can be omitted - default
44				format S16_LE		# can be omitted - default
45				rate 48000		# can be omitted - default
46				channels 2		# can be omitted - default
47				period_size 512
48				buffer_size 4096
49			}
50			test.time2 {
51				access RW_INTERLEAVED
52				format S16_LE
53				rate 48000
54				channels 2
55				period_size 24000
56				buffer_size 192000
57			}
58			test.time3 {
59				access RW_INTERLEAVED
60				format S16_LE
61				rate 44100
62				channels 2
63				period_size 24000
64				buffer_size 192000
65			}
66		}
67		CAPTURE {
68			# use default tests, check for the presence
69		}
70	}
71	#
72	# uncomment to force the missing device checks
73	#
74	#pcm.0.2 {
75	#	PLAYBACK {
76	#		# check for the presence
77	#	}
78	#}
79	#pcm.0.3 {
80	#	CAPTURE {
81	#		# check for the presence
82	#	}
83	#}
84}
85