sound/soc/generic/audio-graph-card2-custom-sample1.dtsi
Source file repositories/reference/linux-study-clean/sound/soc/generic/audio-graph-card2-custom-sample1.dtsi
File Facts
- System
- Linux kernel
- Corpus path
sound/soc/generic/audio-graph-card2-custom-sample1.dtsi- Extension
.dtsi- Size
- 12078 bytes
- Lines
- 397
- Domain
- Driver Families
- Bucket
- sound/soc
- Inferred role
- Driver Families: configuration, schema, or hardware description
- Status
- atlas-only
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
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
// SPDX-License-Identifier: GPL-2.0
/*
* audio-graph-card2-custom-sample1.dtsi
*
* Copyright (C) 2020 Renesas Electronics Corp.
* Copyright (C) 2020 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
*
* This sample indicates how to use audio-graph-card2 and its
* custom driver. "audio-graph-card2-custom-sample" is the custome driver
* which is using audio-graph-card2.
*
* You can easily use this sample by adding below line on your DT file,
* and add new CONFIG to your .config.
*
* #include "../../../../../sound/soc/generic/audio-graph-card2-custom-sample1.dtsi"
*
* CONFIG_SND_AUDIO_GRAPH_CARD2
* CONFIG_SND_AUDIO_GRAPH_CARD2_CUSTOM_SAMPLE
* CONFIG_SND_TEST_COMPONENT
*
*
* You can indicate more detail each device behavior as debug if you modify
* "compatible" on each test-component. see below
*
* test_cpu {
* - compatible = "test-cpu";
* + compatible = "test-cpu-verbose";
* ...
* };
*
* test_codec {
* - compatible = "test-codec";
* + compatible = "test-codec-verbose";
* ...
* };
*
*
* Below sample doesn't use "format" property,
* because test-component driver (test-cpu/test-codec) is supporting
* snd_soc_dai_ops :: .auto_selectable_formats.
* see
* snd_soc_runtime_get_dai_fmt()
* linux/sound/soc/generic/test-component.c :: test_dai_formats
*/
/ {
audio-graph-card2-custom-sample-1 {
/*
* You can use audio-graph-card2 directly by using
*
* compatible = "audio-graph-card2";
*/
compatible = "audio-graph-card2-custom-sample";
label = "card2-custom-sample-1";
/*
* @ : used at links
*/
links = <
/*
*
* [Normal]
*
* <cpu1_0>
* cpu1_0 <-@-----> codec1_0
*/
&cpu1_0 /* CPU side only */
/*
* [Semi-Multi]
*
Annotation
- Atlas domain: Driver Families / sound/soc.
- 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.