sound/soc/codecs/wcd-common.h
Source file repositories/reference/linux-study-clean/sound/soc/codecs/wcd-common.h
File Facts
- System
- Linux kernel
- Corpus path
sound/soc/codecs/wcd-common.h- Extension
.h- Size
- 1198 bytes
- Lines
- 47
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
struct devicestruct sdw_slavestruct sdw_bus_paramsstruct irq_domainstruct wcd_sdw_ch_infostruct wcd_commonenum sdw_slave_status
Annotated Snippet
struct wcd_sdw_ch_info {
int port_num;
unsigned int ch_mask;
unsigned int master_ch_mask;
};
#define WCD_SDW_CH(id, pn, cmask) \
[id] = { \
.port_num = pn, \
.ch_mask = cmask, \
.master_ch_mask = cmask, \
}
struct wcd_common {
struct device *dev;
int max_bias;
u32 micb_mv[WCD_MAX_MICBIAS];
u32 micb_vout[WCD_MAX_MICBIAS];
};
extern const struct component_ops wcd_sdw_component_ops;
int wcd_get_micb_vout_ctl_val(struct device *dev, u32 micb_mv);
int wcd_dt_parse_micbias_info(struct wcd_common *common);
int wcd_update_status(struct sdw_slave *slave, enum sdw_slave_status status);
int wcd_bus_config(struct sdw_slave *slave, struct sdw_bus_params *params);
int wcd_interrupt_callback(struct sdw_slave *slave, struct irq_domain *slave_irq,
unsigned int wcd_intr_status0, unsigned int wcd_intr_status1,
unsigned int wcd_intr_status2);
#endif /* __WCD_COMMON_H__ */
Annotation
- Detected declarations: `struct device`, `struct sdw_slave`, `struct sdw_bus_params`, `struct irq_domain`, `struct wcd_sdw_ch_info`, `struct wcd_common`, `enum sdw_slave_status`.
- 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.