sound/soc/sdw_utils/soc_sdw_cs_amp.c
Source file repositories/reference/linux-study-clean/sound/soc/sdw_utils/soc_sdw_cs_amp.c
File Facts
- System
- Linux kernel
- Corpus path
sound/soc/sdw_utils/soc_sdw_cs_amp.c- Extension
.c- Size
- 3659 bytes
- Lines
- 126
- Domain
- Driver Families
- Bucket
- sound/soc
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration implementation candidate
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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/device.hlinux/errno.hsound/soc.hsound/soc-acpi.hsound/soc-dai.hsound/soc_sdw_utils.h
Detected Declarations
function asoc_sdw_cs35l56_volume_limitfunction asoc_sdw_cs_spk_rtd_initfunction for_each_rtd_codec_daisfunction asoc_sdw_cs_spk_feedback_rtd_initfunction for_each_rtd_ch_mapsfunction asoc_sdw_cs_amp_init
Annotated Snippet
if (ret < 0) {
dev_err(rtd->card->dev, "Failed to set TDM slot:%d\n", ret);
return ret;
}
ch_slot[ch_map->cpu] += ch_per_amp;
}
return 0;
}
EXPORT_SYMBOL_NS(asoc_sdw_cs_spk_feedback_rtd_init, "SND_SOC_SDW_UTILS");
int asoc_sdw_cs_amp_init(struct snd_soc_card *card,
struct snd_soc_dai_link *dai_links,
struct asoc_sdw_codec_info *info,
bool playback)
{
/* Do init on playback link only. */
if (!playback)
return 0;
info->amp_num++;
return 0;
}
EXPORT_SYMBOL_NS(asoc_sdw_cs_amp_init, "SND_SOC_SDW_UTILS");
Annotation
- Immediate include surface: `linux/device.h`, `linux/errno.h`, `sound/soc.h`, `sound/soc-acpi.h`, `sound/soc-dai.h`, `sound/soc_sdw_utils.h`.
- Detected declarations: `function asoc_sdw_cs35l56_volume_limit`, `function asoc_sdw_cs_spk_rtd_init`, `function for_each_rtd_codec_dais`, `function asoc_sdw_cs_spk_feedback_rtd_init`, `function for_each_rtd_ch_maps`, `function asoc_sdw_cs_amp_init`.
- Atlas domain: Driver Families / sound/soc.
- Implementation status: integration implementation candidate.
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.