summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/alsa/conf.d/Lenovo_ThinkPad_P1_Gen2.conf
blob: 9eca985e0c085dbe507b10bfe424460e0946e473 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#
# Example configuration for Lenovo ThinkPad P1 Gen2
#

#
# Use regex match for the string read from the given sysfs path
#
# The sysfs root directory (/sys) is hardwired in the test code
# (may be changed on demand).
#
# All strings must match.
#
sysfs [
	{
		path "class/dmi/id/product_sku"
		regex "LENOVO_MT_20QU_BU_Think_FM_ThinkPad P1 Gen 2"
	}
]

card.hda {
	#
	# Use regex match for the /sys/class/sound/card*/ tree (relative)
	#
	sysfs [
		{
			path "device/subsystem_device"
			regex "0x229e"
		}
		{
			path "device/subsystem_vendor"
			regex "0x17aa"
		}
	]

	#
	# PCM configuration
	#
	# pcm.0.0 - device 0 subdevice 0
	#
	pcm.0.0 {
		PLAYBACK {
			#
			# Uncomment to override values for specific tests
			#
			#test_name1 {
			#	access RW_INTERLEAVED
			#	format S16_LE
			#	rate 48000
			#	channels 2
			#	period_size 512
			#	buffer_size 4096
			#}
			#test_name2 {
			#	access RW_INTERLEAVED
			#	format S16_LE
			#	rate 48000
			#	channels 2
			#	period_size 24000
			#	buffer_size 192000
			#}
		}
		CAPTURE {
			# use default tests, check for the presence
		}
	}
	#
	# uncomment to force the missing device checks
	#
	#pcm.0.2 {
	#	PLAYBACK {
	#		# check for the presence
	#	}
	#}
	#pcm.0.3 {
	#	CAPTURE {
	#		# check for the presence
	#	}
	#}
}