sound/soc/codecs/rt1305.c
Source file repositories/reference/linux-study-clean/sound/soc/codecs/rt1305.c
File Facts
- System
- Linux kernel
- Corpus path
sound/soc/codecs/rt1305.c- Extension
.c- Size
- 32262 bytes
- Lines
- 1180
- Domain
- Driver Families
- Bucket
- sound/soc
- Inferred role
- Driver Families: implementation source
- Status
- source 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.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/moduleparam.hlinux/init.hlinux/delay.hlinux/pm.hlinux/acpi.hlinux/i2c.hlinux/regmap.hlinux/platform_device.hlinux/firmware.hsound/core.hsound/pcm.hsound/pcm_params.hsound/soc.hsound/soc-dapm.hsound/initval.hsound/tlv.hrl6231.hrt1305.h
Detected Declarations
struct rt1305_privfunction rt1305_reg_initfunction rt1305_volatile_registerfunction rt1305_readable_registerfunction rt1305_resetfunction rt1305_is_rc_clk_from_pllfunction rt1305_is_sys_clk_from_pllfunction rt1305_classd_eventfunction rt1305_get_clk_infofunction rt1305_hw_paramsfunction rt1305_set_dai_fmtfunction rt1305_set_component_sysclkfunction rt1305_set_component_pllfunction rt1305_probefunction rt1305_removefunction rt1305_suspendfunction rt1305_resumefunction rt1305_calibratefunction rt1305_i2c_probefunction rt1305_i2c_shutdown
Annotated Snippet
struct rt1305_priv {
struct snd_soc_component *component;
struct regmap *regmap;
int sysclk;
int sysclk_src;
int lrck;
int bclk;
int master;
int pll_src;
int pll_in;
int pll_out;
};
static const struct reg_default rt1305_reg[] = {
{ 0x04, 0x0400 },
{ 0x05, 0x0880 },
{ 0x06, 0x0000 },
{ 0x07, 0x3100 },
{ 0x08, 0x8000 },
{ 0x09, 0x0000 },
{ 0x0a, 0x087e },
{ 0x0b, 0x0020 },
{ 0x0c, 0x0802 },
{ 0x0d, 0x0020 },
{ 0x10, 0x1d1d },
{ 0x11, 0x1d1d },
{ 0x12, 0xffff },
{ 0x14, 0x000c },
{ 0x16, 0x1717 },
{ 0x17, 0x4000 },
{ 0x18, 0x0019 },
{ 0x20, 0x0000 },
{ 0x22, 0x0000 },
{ 0x24, 0x0000 },
{ 0x26, 0x0000 },
{ 0x28, 0x0000 },
{ 0x2a, 0x4000 },
{ 0x2b, 0x3000 },
{ 0x2d, 0x6000 },
{ 0x2e, 0x0000 },
{ 0x2f, 0x8000 },
{ 0x32, 0x0000 },
{ 0x39, 0x0001 },
{ 0x3a, 0x0000 },
{ 0x3b, 0x1020 },
{ 0x3c, 0x0000 },
{ 0x3d, 0x0000 },
{ 0x3e, 0x4c00 },
{ 0x3f, 0x3000 },
{ 0x40, 0x000c },
{ 0x42, 0x0400 },
{ 0x46, 0xc22c },
{ 0x47, 0x0000 },
{ 0x4b, 0x0000 },
{ 0x4c, 0x0300 },
{ 0x4f, 0xf000 },
{ 0x50, 0xc200 },
{ 0x51, 0x1f1f },
{ 0x52, 0x01f0 },
{ 0x53, 0x407f },
{ 0x54, 0xffff },
{ 0x58, 0x4005 },
{ 0x5e, 0x0000 },
{ 0x5f, 0x0000 },
{ 0x60, 0xee13 },
{ 0x62, 0x0000 },
{ 0x63, 0x5f5f },
{ 0x64, 0x0040 },
{ 0x65, 0x4000 },
{ 0x66, 0x4004 },
{ 0x67, 0x0306 },
{ 0x68, 0x8c04 },
{ 0x69, 0xe021 },
{ 0x6a, 0x0000 },
{ 0x6c, 0xaaaa },
{ 0x70, 0x0333 },
{ 0x71, 0x3330 },
{ 0x72, 0x3333 },
{ 0x73, 0x3300 },
{ 0x74, 0x0000 },
{ 0x75, 0x0000 },
{ 0x76, 0x0000 },
{ 0x7a, 0x0003 },
{ 0x7c, 0x10ec },
{ 0x7e, 0x6251 },
{ 0x80, 0x0800 },
{ 0x81, 0x4000 },
Annotation
- Immediate include surface: `linux/module.h`, `linux/moduleparam.h`, `linux/init.h`, `linux/delay.h`, `linux/pm.h`, `linux/acpi.h`, `linux/i2c.h`, `linux/regmap.h`.
- Detected declarations: `struct rt1305_priv`, `function rt1305_reg_init`, `function rt1305_volatile_register`, `function rt1305_readable_register`, `function rt1305_reset`, `function rt1305_is_rc_clk_from_pll`, `function rt1305_is_sys_clk_from_pll`, `function rt1305_classd_event`, `function rt1305_get_clk_info`, `function rt1305_hw_params`.
- Atlas domain: Driver Families / sound/soc.
- Implementation status: source 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.