85 lines · plain
1#2# Example configuration for Lenovo ThinkPad P1 Gen23#4 5#6# Use regex match for the string read from the given sysfs path7#8# The sysfs root directory (/sys) is hardwired in the test code9# (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 configuration37 #38 # pcm.0.0 - device 0 subdevice 039 #40 pcm.0.0 {41 PLAYBACK {42 test.time1 {43 access RW_INTERLEAVED # can be omitted - default44 format S16_LE # can be omitted - default45 rate 48000 # can be omitted - default46 channels 2 # can be omitted - default47 period_size 51248 buffer_size 409649 }50 test.time2 {51 access RW_INTERLEAVED52 format S16_LE53 rate 4800054 channels 255 period_size 2400056 buffer_size 19200057 }58 test.time3 {59 access RW_INTERLEAVED60 format S16_LE61 rate 4410062 channels 263 period_size 2400064 buffer_size 19200065 }66 }67 CAPTURE {68 # use default tests, check for the presence69 }70 }71 #72 # uncomment to force the missing device checks73 #74 #pcm.0.2 {75 # PLAYBACK {76 # # check for the presence77 # }78 #}79 #pcm.0.3 {80 # CAPTURE {81 # # check for the presence82 # }83 #}84}85