sound/soc/qcom/lpass-cdc-dma.c
Source file repositories/reference/linux-study-clean/sound/soc/qcom/lpass-cdc-dma.c
File Facts
- System
- Linux kernel
- Corpus path
sound/soc/qcom/lpass-cdc-dma.c- Extension
.c- Size
- 8465 bytes
- Lines
- 304
- 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
dt-bindings/sound/qcom,lpass.hlinux/clk.hlinux/module.hlinux/export.hsound/soc.hsound/soc-dai.hlpass-lpaif-reg.hlpass.h
Detected Declarations
enum codec_dma_interfacesfunction __lpass_get_dmactl_handlefunction __lpass_get_codec_dma_intf_typefunction __lpass_platform_codec_intf_initfunction lpass_cdc_dma_daiops_startupfunction lpass_cdc_dma_daiops_shutdownfunction lpass_cdc_dma_daiops_hw_paramsfunction lpass_cdc_dma_daiops_triggerexport asoc_qcom_lpass_cdc_dma_dai_ops
Annotated Snippet
if (ret) {
dev_err(soc_runtime->dev,
"error writing to dmactl codec_enable reg: %d\n", ret);
return ret;
}
break;
default:
ret = -EINVAL;
dev_err(soc_runtime->dev, "%s: invalid %d interface\n", __func__, cmd);
break;
}
return ret;
}
const struct snd_soc_dai_ops asoc_qcom_lpass_cdc_dma_dai_ops = {
.startup = lpass_cdc_dma_daiops_startup,
.shutdown = lpass_cdc_dma_daiops_shutdown,
.hw_params = lpass_cdc_dma_daiops_hw_params,
.trigger = lpass_cdc_dma_daiops_trigger,
};
EXPORT_SYMBOL_GPL(asoc_qcom_lpass_cdc_dma_dai_ops);
MODULE_DESCRIPTION("QTi LPASS CDC DMA Driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `dt-bindings/sound/qcom,lpass.h`, `linux/clk.h`, `linux/module.h`, `linux/export.h`, `sound/soc.h`, `sound/soc-dai.h`, `lpass-lpaif-reg.h`, `lpass.h`.
- Detected declarations: `enum codec_dma_interfaces`, `function __lpass_get_dmactl_handle`, `function __lpass_get_codec_dma_intf_type`, `function __lpass_platform_codec_intf_init`, `function lpass_cdc_dma_daiops_startup`, `function lpass_cdc_dma_daiops_shutdown`, `function lpass_cdc_dma_daiops_hw_params`, `function lpass_cdc_dma_daiops_trigger`, `export asoc_qcom_lpass_cdc_dma_dai_ops`.
- 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.