tools/testing/selftests/alsa/conf.d/Lenovo_ThinkPad_P1_Gen2.conf
Source file repositories/reference/linux-study-clean/tools/testing/selftests/alsa/conf.d/Lenovo_ThinkPad_P1_Gen2.conf
File Facts
- System
- Linux kernel
- Corpus path
tools/testing/selftests/alsa/conf.d/Lenovo_ThinkPad_P1_Gen2.conf- Extension
.conf- Size
- 1440 bytes
- Lines
- 85
- Domain
- Support Tooling And Documentation
- Bucket
- tools
- Inferred role
- Support Tooling And Documentation: tools
- Status
- atlas-only
Why This File Exists
Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
#
# 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 {
test.time1 {
access RW_INTERLEAVED # can be omitted - default
format S16_LE # can be omitted - default
rate 48000 # can be omitted - default
channels 2 # can be omitted - default
period_size 512
buffer_size 4096
}
test.time2 {
access RW_INTERLEAVED
format S16_LE
rate 48000
channels 2
period_size 24000
buffer_size 192000
}
test.time3 {
access RW_INTERLEAVED
format S16_LE
rate 44100
channels 2
period_size 24000
buffer_size 192000
}
}
CAPTURE {
# use default tests, check for the presence
}
}
Annotation
- Atlas domain: Support Tooling And Documentation / tools.
- Implementation status: atlas-only.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.