~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/tools/testing/selftests/alsa/conf.d/Lenovo_ThinkPad_P1_Gen2.conf

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  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 #
 13 sysfs [
 14         {
 15                 path "class/dmi/id/product_sku"
 16                 regex "LENOVO_MT_20QU_BU_Think_FM_ThinkPad P1 Gen 2"
 17         }
 18 ]
 19 
 20 card.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 }

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php