sound/soc/codecs/rt1017-sdca-sdw.c
Source file repositories/reference/linux-study-clean/sound/soc/codecs/rt1017-sdca-sdw.c
File Facts
- System
- Linux kernel
- Corpus path
sound/soc/codecs/rt1017-sdca-sdw.c- Extension
.c- Size
- 19909 bytes
- Lines
- 811
- 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/delay.hlinux/device.hlinux/pm_runtime.hlinux/mod_devicetable.hlinux/module.hlinux/regmap.hsound/core.hsound/pcm.hsound/pcm_params.hsound/soc.hsound/soc-dapm.hsound/initval.hsound/tlv.hrt1017-sdca-sdw.h
Detected Declarations
function rt1017_sdca_readable_registerfunction rt1017_sdca_volatile_registerfunction rt1017_sdca_read_propfunction rt1017_sdca_io_initfunction rt1017_sdca_update_statusfunction rt1017_sdca_pde23_eventfunction rt1017_sdca_classd_eventfunction rt1017_sdca_feedback_eventfunction rt1017_sdca_component_probefunction rt1017_sdca_component_removefunction rt1017_sdca_set_sdw_streamfunction rt1017_sdca_shutdownfunction rt1017_sdca_pcm_hw_paramsfunction rt1017_sdca_pcm_hw_freefunction rt1017_sdca_initfunction rt1017_sdca_sdw_probefunction rt1017_sdca_sdw_removefunction rt1017_sdca_dev_suspendfunction rt1017_sdca_dev_resume
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0-only
//
// rt1017-sdca-sdw.c -- rt1017 SDCA ALSA SoC amplifier audio driver
//
// Copyright(c) 2023 Realtek Semiconductor Corp.
//
//
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/pm_runtime.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/regmap.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/soc-dapm.h>
#include <sound/initval.h>
#include <sound/tlv.h>
#include "rt1017-sdca-sdw.h"
static bool rt1017_sdca_readable_register(struct device *dev, unsigned int reg)
{
switch (reg) {
case 0x2f55:
case 0x3206:
case 0xc000:
case 0xc001:
case 0xc022:
case 0xc030:
case 0xc104:
case 0xc10b:
case 0xc10c:
case 0xc110:
case 0xc112:
case 0xc300:
case 0xc301:
case 0xc318:
case 0xc325 ... 0xc328:
case 0xc331:
case 0xc340:
case 0xc350 ... 0xc351:
case 0xc500:
case 0xc502:
case 0xc504:
case 0xc507:
case 0xc509:
case 0xc510:
case 0xc512:
case 0xc518:
case 0xc51b:
case 0xc51d:
case 0xc520:
case 0xc540 ... 0xc542:
case 0xc550 ... 0xc552:
case 0xc600:
case 0xc602:
case 0xc612:
case 0xc622:
case 0xc632:
case 0xc642:
case 0xc651:
case 0xca00:
case 0xca09 ... 0xca0c:
case 0xca0e ... 0xca0f:
case 0xca10 ... 0xca11:
case 0xca16 ... 0xca17:
case 0xcb00:
case 0xcc00:
case 0xcc02:
case 0xd017:
case 0xd01a ... 0xd01c:
case 0xd101:
case 0xd20c:
case 0xd300:
case 0xd370:
case 0xd500:
case 0xd545 ... 0xd548:
case 0xd5a5 ... 0xd5a8:
case 0xd5aa ... 0xd5ad:
case 0xda04 ... 0xda07:
case 0xda09 ... 0xda0a:
case 0xda0c ... 0xda0f:
case 0xda11 ... 0xda14:
case 0xda16 ... 0xda19:
case 0xdab6 ... 0xdabb:
case 0xdb09 ... 0xdb0a:
case 0xdb14:
Annotation
- Immediate include surface: `linux/delay.h`, `linux/device.h`, `linux/pm_runtime.h`, `linux/mod_devicetable.h`, `linux/module.h`, `linux/regmap.h`, `sound/core.h`, `sound/pcm.h`.
- Detected declarations: `function rt1017_sdca_readable_register`, `function rt1017_sdca_volatile_register`, `function rt1017_sdca_read_prop`, `function rt1017_sdca_io_init`, `function rt1017_sdca_update_status`, `function rt1017_sdca_pde23_event`, `function rt1017_sdca_classd_event`, `function rt1017_sdca_feedback_event`, `function rt1017_sdca_component_probe`, `function rt1017_sdca_component_remove`.
- 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.