| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/09/17 17:49 | flow | patch-triage |
4mArgs:null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"KMSANReasoning": "",
"NeedsKMSAN": false,
"Reasoning": "The patch adds missing pm_runtime_put() calls to error paths in wm8994_component_probe() in sound/soc/codecs/wm8994.c. The WM8994 is a physical audio codec IC used on ARM-based platforms (such as Samsung Exynos/S5PV210 and Freescale i.MX). It requires physical hardware or specific hardware emulation not present in standard virtualized environments (QEMU/GCE) on amd64, and the ASoC machine drivers that bind this codec are exclusive to ARM platforms. Therefore, the modified code is structurally unreachable on the target architecture (amd64).",
"WorthFuzzing": false
} |
| 1/1 | 2026/09/17 17:49 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit 92f3a946e2717740161e891214ecf1a55ca8cb1e\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Thu Sep 17 17:49:28 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c\nindex 1d64c7c42ed12..7a790f5e33f1a 100644\n--- a/sound/soc/codecs/wm8994.c\n+++ b/sound/soc/codecs/wm8994.c\n@@ -4354,6 +4354,7 @@ static int wm8994_component_probe(struct snd_soc_component *component)\n \tret = regmap_read(control-\u003eregmap, WM8994_GPIO_1, \u0026reg);\n \tif (ret \u003c 0) {\n \t\tdev_err(component-\u003edev, \"Failed to read GPIO1 state: %d\\n\", ret);\n+\t\tpm_runtime_put(component-\u003edev);\n \t\tgoto err_irq;\n \t}\n \tif ((reg \u0026 WM8994_GPN_FN_MASK) != WM8994_GP_FN_PIN_SPECIFIC) {\n@@ -4366,6 +4367,7 @@ static int wm8994_component_probe(struct snd_soc_component *component)\n \tret = regmap_read(control-\u003eregmap, WM8994_GPIO_6, \u0026reg);\n \tif (ret \u003c 0) {\n \t\tdev_err(component-\u003edev, \"Failed to read GPIO6 state: %d\\n\", ret);\n+\t\tpm_runtime_put(component-\u003edev);\n \t\tgoto err_irq;\n \t}\n \tif ((reg \u0026 WM8994_GPN_FN_MASK) != WM8994_GP_FN_PIN_SPECIFIC) {\n"
} |
| 2/1 | 2026/09/17 17:49 | agent | patch-evaluator |
4mModel:core Args: null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch adds missing pm_runtime_put() calls to error paths in wm8994_component_probe() in sound/soc/codecs/wm8994.c. The WM8994 is a physical audio codec IC used on ARM-based platforms (such as Samsung Exynos/S5PV210 and Freescale i.MX). It requires physical hardware or specific hardware emulation not present in standard virtualized environments (QEMU/GCE) on amd64, and the ASoC machine drivers that bind this codec are exclusive to ARM platforms. Therefore, the modified code is structurally unreachable on the target architecture (amd64).",
"WorthFuzzing": false
}Instruction: You are an expert Linux kernel maintainer and security engineer.
Your job is to review a provided patch series and evaluate whether it warrants fuzzing with syzkaller.
IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in
your workspace. Do NOT rely on internal assumptions. You must actively use your code access
tools to inspect the actual source code, callers, and surrounding context.
================================================================================
1. CORE TRIAGE PHILOSOPHY
================================================================================
The goal of patch fuzzing is to discover crashes, regressions, exposed latent bugs,
and newly triggered assertions introduced by the patch series.
- REACHABILITY IS THE PRIMARY GATE:
Fuzzing can only discover bugs in code that can actually execute in standard virtualized
environments (GCE or QEMU, utilizing software-emulated devices like USB gadgets, netdev, tun/tap).
If the modified code is structurally unreachable (see Section 2), it MUST NOT be fuzzed,
regardless of whether it adds assertions or complex logic.
- DO NOT BLINDLY TRUST "NO FUNCTIONAL CHANGE" (NFCI) OR "REFACTORING" CLAIMS:
Patch authors routinely label changes as "cleanups", "refactorings", or state
"No functional change intended". Do NOT take these claims at face value.
Code refactorings that rearrange logic, introduce helper functions, or alter state management
in core subsystems frequently introduce subtle semantic shifts or uncover latent kernel bugs.
If reachable executable code is modified or refactored, it MUST be fuzzed.
- NEW OR MODIFIED ASSERTIONS IN REACHABLE CODE MUST BE FUZZED:
When a patch introduces or modifies runtime checks or assertions (e.g., WARN_ON*, VM_WARN_ON*,
BUG_ON*, lockdep_assert*) in reachable code paths, it enforces new or stricter invariants.
Even if the author believes the invariant always holds, fuzzing is essential to verify whether
an unusual sequence of operations can violate it.
================================================================================
2. WHEN TO RETURN WorthFuzzing=false (NEGATIVE CRITERIA)
================================================================================
Return WorthFuzzing=false ONLY IF all modified code falls strictly into one or more of these categories:
- Non-kernel and non-executable changes:
* Modifications to Documentation/, comments, or spelling fixes.
* User-space directories, self-tests, samples, or scripts (e.g., tools/, samples/, scripts/, usr/)
that do not affect the compiled kernel image (vmlinux) or kernel modules.
* Purely decorative logging (e.g., message strings in pr_err, printk, dev_info) or tracepoints
that do not alter control flow or data structures.
* Build system or Kconfig changes that do not alter compiled C logic.
- Structurally unreachable hardware:
* Vendor-specific PCIe switches, SmartNICs, or GPU drivers (e.g., mlxsw, pds_core, qed,
ionic, amdgpu) requiring physical ASIC/PCIe cards not emulated in standard QEMU.
- Unreachable execution paths:
* Driver teardown callbacks (.remove, .shutdown, pci_unregister_driver) executed only during
physical PCI hot-unplug or manual sysfs driver unbinding.
* Code paths exclusive to architectures other than the target architecture.
================================================================================
3. WHEN TO RETURN WorthFuzzing=true (POSITIVE CRITERIA)
================================================================================
Return WorthFuzzing=true whenever the patch touches reachable executable code, including:
- Core Subsystems:
* Any logic modifications in memory management (mm/), synchronization/locking (kernel/locking/),
BPF, scheduler, core networking, VFS, or syscall handling.
- Refactorings and Code Cleanups:
* Any restructuring of reachable data structures, helper abstractions, or algorithm flows.
- Runtime Assertions and Defensive Checks:
* Any introduction or alteration of assertions (WARN_ON*, VM_WARN_ON*, BUG_ON*, etc.) in reachable paths.
- Reachable Drivers and Protocols:
* Drivers accessible via virtual buses (virtio, USB gadget, loopback, netlink, binder, sockets, etc.).
================================================================================
4. EXTRACTING FocusSymbols (PREVENTING DILUTION)
================================================================================
When WorthFuzzing=true, you must extract specific kernel functions into FocusSymbols to guide the fuzzer:
- AVOID UBIQUITOUS LIFECYCLE HOT-PATHS:
Do NOT list generic, ubiquitous functions called by almost every program in the corpus
(including, but not limited to: general memory allocators and deallocators, page fault
and trap handlers, or core synchronization primitives; this is not an exhaustive list).
Listing ubiquitous functions causes the fuzzer to classify thousands of unrelated tests as "focused",
which severely dilutes fuzzing effort away from the actual changes.
- TARGET SPECIFIC FEATURE LOGIC AND ENTRYPOINTS:
List functions that specifically implement the logic being added or altered, or direct API entrypoints
for the subsystem feature under review.
- HANDLING STATIC INLINE FUNCTIONS IN HEADERS (.h):
Compiler-inlined static functions (such as static inlines in mm/*.h or include/linux/*.h) lack
distinct symbol addresses in vmlinux and cannot be targeted directly by symbol coverage filters.
If the changes are primarily in static inline helpers, identify non-static, feature-specific caller
functions in .c files that exercise them (avoiding ubiquitous lifecycle wrappers).
================================================================================
5. IDENTIFYING EnableConfigs
================================================================================
Identify any specific CONFIG_ options required to properly compile and reach the modified code:
- Inspect Kconfig files and #ifdef guards; do not make assumptions.
- Check "depends on" lines in Kconfig to include any non-standard parent subsystem configs needed.
- Strip any 'CONFIG_' prefix (e.g., return "NET_IPV4" instead of "CONFIG_NET_IPV4").
Prefer calling several tools at the same time to save round-trips.
Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.
Prompt: Target architecture: amd64
For your convenience, here is the diff of the changes:
commit 92f3a946e2717740161e891214ecf1a55ca8cb1e
Author: syz-cluster <triage@syzkaller.com>
Date: Thu Sep 17 17:49:28 2026 +0000
syz-cluster: applied patch under review
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
index 1d64c7c42ed12..7a790f5e33f1a 100644
--- a/sound/soc/codecs/wm8994.c
+++ b/sound/soc/codecs/wm8994.c
@@ -4354,6 +4354,7 @@ static int wm8994_component_probe(struct snd_soc_component *component)
ret = regmap_read(control->regmap, WM8994_GPIO_1, ®);
if (ret < 0) {
dev_err(component->dev, "Failed to read GPIO1 state: %d\n", ret);
+ pm_runtime_put(component->dev);
goto err_irq;
}
if ((reg & WM8994_GPN_FN_MASK) != WM8994_GP_FN_PIN_SPECIFIC) {
@@ -4366,6 +4367,7 @@ static int wm8994_component_probe(struct snd_soc_component *component)
ret = regmap_read(control->regmap, WM8994_GPIO_6, ®);
if (ret < 0) {
dev_err(component->dev, "Failed to read GPIO6 state: %d\n", ret);
+ pm_runtime_put(component->dev);
goto err_irq;
}
if ((reg & WM8994_GPN_FN_MASK) != WM8994_GP_FN_PIN_SPECIFIC) {
|
| 3/2 | 2026/09/17 17:49 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 3103 output: 39 thoughts: 599 Thoughts: **Analyzing a syzkaller Patch for AMD64** Okay, so I'm looking at a patch for syzkaller, specifically targeting the amd64 architecture. The diff modifies `sound/soc/codecs/wm8994.c`, which tells me this is related to the ALSA SoC codec driver for the Wolfson Microelectronics WM8994 audio codec. My initial thought is to assess the patch's relevance to fuzzing. The key here is to determine if this codec is accessible or even used within a standard virtualized environment (QEMU, GCE) on amd64. If it's not present, the likelihood of this patch impacting fuzzing is low. The changes in the diff seem to add `pm_runtime_put(component->dev)` after failed `regmap_read` calls for GPIO registers. This suggests a potential power management issue during device probing. I need to understand *why* these reads might fail and if the `pm_runtime_put` is the appropriate fix, or if it is just a red herring being exposed by a deeper underlying problem. I'm going to dig into the `wm8994.c` file itself, checking the probe functions and how the codec is instantiated. I'll also use tools like `read-file` or `grepper` to quickly determine the bus interface (I2C, SPI, etc.) and driver interactions to get the full picture. My goal is to determine if syzkaller is likely to exercise this code path and if this fix is relevant to fuzzing. |
| 4/2 | 2026/09/17 17:50 | tool | grepper |
0mArgs:{
"Expression": "wm8994",
"PathPrefix": "sound/soc/codecs/wm8994.c"
}Results: {
"Output": "\nFull output is too long, showing 500 out of 1776 lines.\nUse more precise expression if possible.\n\nsound/soc/codecs/wm8994.c-2-/*\nsound/soc/codecs/wm8994.c:3: * wm8994.c -- WM8994 ALSA SoC Audio driver\nsound/soc/codecs/wm8994.c-4- *\n--\nsound/soc/codecs/wm8994.c-29-\nsound/soc/codecs/wm8994.c:30:#include \u003clinux/mfd/wm8994/core.h\u003e\nsound/soc/codecs/wm8994.c:31:#include \u003clinux/mfd/wm8994/registers.h\u003e\nsound/soc/codecs/wm8994.c:32:#include \u003clinux/mfd/wm8994/pdata.h\u003e\nsound/soc/codecs/wm8994.c:33:#include \u003clinux/mfd/wm8994/gpio.h\u003e\nsound/soc/codecs/wm8994.c-34-\nsound/soc/codecs/wm8994.c:35:#include \"wm8994.h\"\nsound/soc/codecs/wm8994.c-36-#include \"wm_hubs.h\"\n--\nsound/soc/codecs/wm8994.c-45-\nsound/soc/codecs/wm8994.c:46:struct wm8994_reg_mask {\nsound/soc/codecs/wm8994.c-47-\tunsigned int reg;\n--\nsound/soc/codecs/wm8994.c-50-\nsound/soc/codecs/wm8994.c:51:static struct wm8994_reg_mask wm8994_vu_bits[] = {\nsound/soc/codecs/wm8994.c-52-\t{ WM8994_LEFT_LINE_INPUT_1_2_VOLUME, WM8994_IN1_VU },\n--\nsound/soc/codecs/wm8994.c-77-/* VU bitfields for ADC2, DAC2 not available on WM1811 */\nsound/soc/codecs/wm8994.c:78:static struct wm8994_reg_mask wm8994_adc2_dac2_vu_bits[] = {\nsound/soc/codecs/wm8994.c-79-\t{ WM8994_AIF1_DAC2_LEFT_VOLUME, WM8994_AIF1DAC2_VU },\n--\nsound/soc/codecs/wm8994.c-84-\nsound/soc/codecs/wm8994.c:85:static int wm8994_drc_base[] = {\nsound/soc/codecs/wm8994.c-86-\tWM8994_AIF1_DRC1_1,\n--\nsound/soc/codecs/wm8994.c-90-\nsound/soc/codecs/wm8994.c:91:static int wm8994_retune_mobile_base[] = {\nsound/soc/codecs/wm8994.c-92-\tWM8994_AIF1_DAC1_EQ_GAINS_1,\n--\nsound/soc/codecs/wm8994.c=111=static void wm8958_micd_set_rate(struct snd_soc_component *component)\nsound/soc/codecs/wm8994.c-112-{\nsound/soc/codecs/wm8994.c:113:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8994.c:114:\tstruct wm8994 *control = wm8994-\u003ewm8994;\nsound/soc/codecs/wm8994.c-115-\tint best, i, sysclk, val;\n--\nsound/soc/codecs/wm8994.c-119-\nsound/soc/codecs/wm8994.c:120:\tidle = !wm8994-\u003ejack_mic;\nsound/soc/codecs/wm8994.c-121-\n--\nsound/soc/codecs/wm8994.c-123-\tif (sysclk \u0026 WM8994_SYSCLK_SRC)\nsound/soc/codecs/wm8994.c:124:\t\tsysclk = wm8994-\u003eaifclk[1];\nsound/soc/codecs/wm8994.c-125-\telse\nsound/soc/codecs/wm8994.c:126:\t\tsysclk = wm8994-\u003eaifclk[0];\nsound/soc/codecs/wm8994.c-127-\n--\nsound/soc/codecs/wm8994.c-130-\t\tnum_rates = control-\u003epdata.num_micd_rates;\nsound/soc/codecs/wm8994.c:131:\t} else if (wm8994-\u003ejackdet) {\nsound/soc/codecs/wm8994.c-132-\t\trates = jackdet_rates;\n--\nsound/soc/codecs/wm8994.c=162=static int configure_aif_clock(struct snd_soc_component *component, int aif)\nsound/soc/codecs/wm8994.c-163-{\nsound/soc/codecs/wm8994.c:164:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8994.c-165-\tint rate;\n--\nsound/soc/codecs/wm8994.c-173-\nsound/soc/codecs/wm8994.c:174:\tswitch (wm8994-\u003esysclk[aif]) {\nsound/soc/codecs/wm8994.c-175-\tcase WM8994_SYSCLK_MCLK1:\nsound/soc/codecs/wm8994.c:176:\t\trate = wm8994-\u003emclk_rate[0];\nsound/soc/codecs/wm8994.c-177-\t\tbreak;\n--\nsound/soc/codecs/wm8994.c-180-\t\treg1 |= 0x8;\nsound/soc/codecs/wm8994.c:181:\t\trate = wm8994-\u003emclk_rate[1];\nsound/soc/codecs/wm8994.c-182-\t\tbreak;\n--\nsound/soc/codecs/wm8994.c-185-\t\treg1 |= 0x10;\nsound/soc/codecs/wm8994.c:186:\t\trate = wm8994-\u003efll[0].out;\nsound/soc/codecs/wm8994.c-187-\t\tbreak;\n--\nsound/soc/codecs/wm8994.c-190-\t\treg1 |= 0x18;\nsound/soc/codecs/wm8994.c:191:\t\trate = wm8994-\u003efll[1].out;\nsound/soc/codecs/wm8994.c-192-\t\tbreak;\n--\nsound/soc/codecs/wm8994.c-205-\nsound/soc/codecs/wm8994.c:206:\twm8994-\u003eaifclk[aif] = rate;\nsound/soc/codecs/wm8994.c-207-\n--\nsound/soc/codecs/wm8994.c=215=static int configure_clock(struct snd_soc_component *component)\n--\nsound/soc/codecs/wm8994.c-217-\tstruct snd_soc_dapm_context *dapm = snd_soc_component_to_dapm(component);\nsound/soc/codecs/wm8994.c:218:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8994.c-219-\tint change, new;\n--\nsound/soc/codecs/wm8994.c-231-\t/* If they're equal it doesn't matter which is used */\nsound/soc/codecs/wm8994.c:232:\tif (wm8994-\u003eaifclk[0] == wm8994-\u003eaifclk[1]) {\nsound/soc/codecs/wm8994.c-233-\t\twm8958_micd_set_rate(component);\n--\nsound/soc/codecs/wm8994.c-236-\nsound/soc/codecs/wm8994.c:237:\tif (wm8994-\u003eaifclk[0] \u003c wm8994-\u003eaifclk[1])\nsound/soc/codecs/wm8994.c-238-\t\tnew = WM8994_SYSCLK_SRC;\n--\nsound/soc/codecs/wm8994.c=290=static const DECLARE_TLV_DB_SCALE(st_tlv, -3600, 300, 0);\nsound/soc/codecs/wm8994.c:291:static const DECLARE_TLV_DB_SCALE(wm8994_3d_tlv, -1600, 183, 0);\nsound/soc/codecs/wm8994.c-292-static const DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0);\nsound/soc/codecs/wm8994.c=293=static const DECLARE_TLV_DB_SCALE(ng_tlv, -10200, 600, 0);\n--\nsound/soc/codecs/wm8994.c-296-\tSOC_SINGLE_EXT(xname, reg, shift, 1, 0, \\\nsound/soc/codecs/wm8994.c:297:\t\tsnd_soc_get_volsw, wm8994_put_drc_sw)\nsound/soc/codecs/wm8994.c-298-\nsound/soc/codecs/wm8994.c:299:static int wm8994_put_drc_sw(struct snd_kcontrol *kcontrol,\nsound/soc/codecs/wm8994.c-300-\t\t\t struct snd_ctl_elem_value *ucontrol)\n--\nsound/soc/codecs/wm8994.c-322-\nsound/soc/codecs/wm8994.c:323:static void wm8994_set_drc(struct snd_soc_component *component, int drc)\nsound/soc/codecs/wm8994.c-324-{\nsound/soc/codecs/wm8994.c:325:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8994.c:326:\tstruct wm8994 *control = wm8994-\u003ewm8994;\nsound/soc/codecs/wm8994.c:327:\tstruct wm8994_pdata *pdata = \u0026control-\u003epdata;\nsound/soc/codecs/wm8994.c:328:\tint base = wm8994_drc_base[drc];\nsound/soc/codecs/wm8994.c:329:\tint cfg = wm8994-\u003edrc_cfg[drc];\nsound/soc/codecs/wm8994.c-330-\tint save, i;\n--\nsound/soc/codecs/wm8994.c-346-/* Icky as hell but saves code duplication */\nsound/soc/codecs/wm8994.c:347:static int wm8994_get_drc(const char *name)\nsound/soc/codecs/wm8994.c-348-{\n--\nsound/soc/codecs/wm8994.c-357-\nsound/soc/codecs/wm8994.c:358:static int wm8994_put_drc_enum(struct snd_kcontrol *kcontrol,\nsound/soc/codecs/wm8994.c-359-\t\t\t struct snd_ctl_elem_value *ucontrol)\n--\nsound/soc/codecs/wm8994.c-361-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8994.c:362:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8994.c:363:\tstruct wm8994 *control = wm8994-\u003ewm8994;\nsound/soc/codecs/wm8994.c:364:\tstruct wm8994_pdata *pdata = \u0026control-\u003epdata;\nsound/soc/codecs/wm8994.c:365:\tint drc = wm8994_get_drc(kcontrol-\u003eid.name);\nsound/soc/codecs/wm8994.c-366-\tint value = ucontrol-\u003evalue.enumerated.item[0];\n--\nsound/soc/codecs/wm8994.c-373-\nsound/soc/codecs/wm8994.c:374:\twm8994-\u003edrc_cfg[drc] = value;\nsound/soc/codecs/wm8994.c-375-\nsound/soc/codecs/wm8994.c:376:\twm8994_set_drc(component, drc);\nsound/soc/codecs/wm8994.c-377-\n--\nsound/soc/codecs/wm8994.c-380-\nsound/soc/codecs/wm8994.c:381:static int wm8994_get_drc_enum(struct snd_kcontrol *kcontrol,\nsound/soc/codecs/wm8994.c-382-\t\t\t struct snd_ctl_elem_value *ucontrol)\n--\nsound/soc/codecs/wm8994.c-384-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8994.c:385:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8994.c:386:\tint drc = wm8994_get_drc(kcontrol-\u003eid.name);\nsound/soc/codecs/wm8994.c-387-\n--\nsound/soc/codecs/wm8994.c-389-\t\treturn drc;\nsound/soc/codecs/wm8994.c:390:\tucontrol-\u003evalue.enumerated.item[0] = wm8994-\u003edrc_cfg[drc];\nsound/soc/codecs/wm8994.c-391-\n--\nsound/soc/codecs/wm8994.c-394-\nsound/soc/codecs/wm8994.c:395:static void wm8994_set_retune_mobile(struct snd_soc_component *component, int block)\nsound/soc/codecs/wm8994.c-396-{\nsound/soc/codecs/wm8994.c:397:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8994.c:398:\tstruct wm8994 *control = wm8994-\u003ewm8994;\nsound/soc/codecs/wm8994.c:399:\tstruct wm8994_pdata *pdata = \u0026control-\u003epdata;\nsound/soc/codecs/wm8994.c:400:\tint base = wm8994_retune_mobile_base[block];\nsound/soc/codecs/wm8994.c-401-\tint iface, best, best_val, save, i, cfg;\nsound/soc/codecs/wm8994.c-402-\nsound/soc/codecs/wm8994.c:403:\tif (!pdata || !wm8994-\u003enum_retune_mobile_texts)\nsound/soc/codecs/wm8994.c-404-\t\treturn;\n--\nsound/soc/codecs/wm8994.c-419-\t * with the nearest sample rate. */\nsound/soc/codecs/wm8994.c:420:\tcfg = wm8994-\u003eretune_mobile_cfg[block];\nsound/soc/codecs/wm8994.c-421-\tbest = 0;\n--\nsound/soc/codecs/wm8994.c-424-\t\tif (strcmp(pdata-\u003eretune_mobile_cfgs[i].name,\nsound/soc/codecs/wm8994.c:425:\t\t\t wm8994-\u003eretune_mobile_texts[cfg]) == 0 \u0026\u0026\nsound/soc/codecs/wm8994.c-426-\t\t abs(pdata-\u003eretune_mobile_cfgs[i].rate\nsound/soc/codecs/wm8994.c:427:\t\t\t- wm8994-\u003edac_rates[iface]) \u003c best_val) {\nsound/soc/codecs/wm8994.c-428-\t\t\tbest = i;\nsound/soc/codecs/wm8994.c-429-\t\t\tbest_val = abs(pdata-\u003eretune_mobile_cfgs[i].rate\nsound/soc/codecs/wm8994.c:430:\t\t\t\t - wm8994-\u003edac_rates[iface]);\nsound/soc/codecs/wm8994.c-431-\t\t}\n--\nsound/soc/codecs/wm8994.c-437-\t\tpdata-\u003eretune_mobile_cfgs[best].rate,\nsound/soc/codecs/wm8994.c:438:\t\twm8994-\u003edac_rates[iface]);\nsound/soc/codecs/wm8994.c-439-\n--\nsound/soc/codecs/wm8994.c-453-/* Icky as hell but saves code duplication */\nsound/soc/codecs/wm8994.c:454:static int wm8994_get_retune_mobile_block(const char *name)\nsound/soc/codecs/wm8994.c-455-{\n--\nsound/soc/codecs/wm8994.c-464-\nsound/soc/codecs/wm8994.c:465:static int wm8994_put_retune_mobile_enum(struct snd_kcontrol *kcontrol,\nsound/soc/codecs/wm8994.c-466-\t\t\t\t\t struct snd_ctl_elem_value *ucontrol)\n--\nsound/soc/codecs/wm8994.c-468-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8994.c:469:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8994.c:470:\tstruct wm8994 *control = wm8994-\u003ewm8994;\nsound/soc/codecs/wm8994.c:471:\tstruct wm8994_pdata *pdata = \u0026control-\u003epdata;\nsound/soc/codecs/wm8994.c:472:\tint block = wm8994_get_retune_mobile_block(kcontrol-\u003eid.name);\nsound/soc/codecs/wm8994.c-473-\tint value = ucontrol-\u003evalue.enumerated.item[0];\n--\nsound/soc/codecs/wm8994.c-480-\nsound/soc/codecs/wm8994.c:481:\twm8994-\u003eretune_mobile_cfg[block] = value;\nsound/soc/codecs/wm8994.c-482-\nsound/soc/codecs/wm8994.c:483:\twm8994_set_retune_mobile(component, block);\nsound/soc/codecs/wm8994.c-484-\n--\nsound/soc/codecs/wm8994.c-487-\nsound/soc/codecs/wm8994.c:488:static int wm8994_get_retune_mobile_enum(struct snd_kcontrol *kcontrol,\nsound/soc/codecs/wm8994.c-489-\t\t\t\t\t struct snd_ctl_elem_value *ucontrol)\n--\nsound/soc/codecs/wm8994.c-491-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8994.c:492:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8994.c:493:\tint block = wm8994_get_retune_mobile_block(kcontrol-\u003eid.name);\nsound/soc/codecs/wm8994.c-494-\n--\nsound/soc/codecs/wm8994.c-497-\nsound/soc/codecs/wm8994.c:498:\tucontrol-\u003evalue.enumerated.item[0] = wm8994-\u003eretune_mobile_cfg[block];\nsound/soc/codecs/wm8994.c-499-\n--\nsound/soc/codecs/wm8994.c=538=static SOC_ENUM_SINGLE_DECL(adc_osr,\n--\nsound/soc/codecs/wm8994.c-540-\nsound/soc/codecs/wm8994.c:541:static const struct snd_kcontrol_new wm8994_common_snd_controls[] = {\nsound/soc/codecs/wm8994.c-542-SOC_DOUBLE_R_TLV(\"AIF1ADC1 Volume\", WM8994_AIF1_ADC1_LEFT_VOLUME,\n--\nsound/soc/codecs/wm8994.c=618=SOC_SINGLE_TLV(\"AIF1DAC1 3D Stereo Volume\", WM8994_AIF1_DAC1_FILTERS_2,\nsound/soc/codecs/wm8994.c:619:\t 10, 15, 0, wm8994_3d_tlv),\nsound/soc/codecs/wm8994.c-620-SOC_SINGLE(\"AIF1DAC1 3D Stereo Switch\", WM8994_AIF1_DAC1_FILTERS_2,\n--\nsound/soc/codecs/wm8994.c=622=SOC_SINGLE_TLV(\"AIF1DAC2 3D Stereo Volume\", WM8994_AIF1_DAC2_FILTERS_2,\nsound/soc/codecs/wm8994.c:623:\t 10, 15, 0, wm8994_3d_tlv),\nsound/soc/codecs/wm8994.c-624-SOC_SINGLE(\"AIF1DAC2 3D Stereo Switch\", WM8994_AIF1_DAC2_FILTERS_2,\n--\nsound/soc/codecs/wm8994.c=626=SOC_SINGLE_TLV(\"AIF2DAC 3D Stereo Volume\", WM8994_AIF2_DAC_FILTERS_2,\nsound/soc/codecs/wm8994.c:627:\t 10, 15, 0, wm8994_3d_tlv),\nsound/soc/codecs/wm8994.c-628-SOC_SINGLE(\"AIF2DAC 3D Stereo Switch\", WM8994_AIF2_DAC_FILTERS_2,\n--\nsound/soc/codecs/wm8994.c-632-/* Controls not available on WM1811 */\nsound/soc/codecs/wm8994.c:633:static const struct snd_kcontrol_new wm8994_snd_controls[] = {\nsound/soc/codecs/wm8994.c-634-SOC_DOUBLE_R_TLV(\"AIF1ADC2 Volume\", WM8994_AIF1_ADC2_LEFT_VOLUME,\n--\nsound/soc/codecs/wm8994.c=647=SOC_DOUBLE(\"AIF1ADC2 HPF Switch\", WM8994_AIF1_ADC2_FILTERS, 12, 11, 1, 0),\n--\nsound/soc/codecs/wm8994.c-649-\nsound/soc/codecs/wm8994.c:650:static const struct snd_kcontrol_new wm8994_eq_controls[] = {\nsound/soc/codecs/wm8994.c-651-SOC_SINGLE_TLV(\"AIF1DAC1 EQ1 Volume\", WM8994_AIF1_DAC1_EQ_GAINS_1, 11, 31, 0,\n--\nsound/soc/codecs/wm8994.c=681=SOC_SINGLE_TLV(\"AIF2 EQ5 Volume\", WM8994_AIF2_EQ_GAINS_2, 6, 31, 0,\n--\nsound/soc/codecs/wm8994.c-684-\nsound/soc/codecs/wm8994.c:685:static const struct snd_kcontrol_new wm8994_drc_controls[] = {\nsound/soc/codecs/wm8994.c-686-SND_SOC_BYTES_MASK(\"AIF1.1 DRC\", WM8994_AIF1_DRC1_1, 5,\n--\nsound/soc/codecs/wm8994.c=742=static void wm1811_jackdet_set_mode(struct snd_soc_component *component, u16 mode)\nsound/soc/codecs/wm8994.c-743-{\nsound/soc/codecs/wm8994.c:744:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8994.c-745-\nsound/soc/codecs/wm8994.c:746:\tif (!wm8994-\u003ejackdet || !wm8994-\u003emicdet[0].jack)\nsound/soc/codecs/wm8994.c-747-\t\treturn;\nsound/soc/codecs/wm8994.c-748-\nsound/soc/codecs/wm8994.c:749:\tif (wm8994-\u003eactive_refcount)\nsound/soc/codecs/wm8994.c-750-\t\tmode = WM1811_JACKDET_MODE_AUDIO;\nsound/soc/codecs/wm8994.c-751-\nsound/soc/codecs/wm8994.c:752:\tif (mode == wm8994-\u003ejackdet_mode)\nsound/soc/codecs/wm8994.c-753-\t\treturn;\nsound/soc/codecs/wm8994.c-754-\nsound/soc/codecs/wm8994.c:755:\twm8994-\u003ejackdet_mode = mode;\nsound/soc/codecs/wm8994.c-756-\n--\nsound/soc/codecs/wm8994.c=765=static void active_reference(struct snd_soc_component *component)\nsound/soc/codecs/wm8994.c-766-{\nsound/soc/codecs/wm8994.c:767:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8994.c-768-\nsound/soc/codecs/wm8994.c:769:\tmutex_lock(\u0026wm8994-\u003eaccdet_lock);\nsound/soc/codecs/wm8994.c-770-\nsound/soc/codecs/wm8994.c:771:\twm8994-\u003eactive_refcount++;\nsound/soc/codecs/wm8994.c-772-\nsound/soc/codecs/wm8994.c-773-\tdev_dbg(component-\u003edev, \"Active refcount incremented, now %d\\n\",\nsound/soc/codecs/wm8994.c:774:\t\twm8994-\u003eactive_refcount);\nsound/soc/codecs/wm8994.c-775-\n--\nsound/soc/codecs/wm8994.c-778-\nsound/soc/codecs/wm8994.c:779:\tmutex_unlock(\u0026wm8994-\u003eaccdet_lock);\nsound/soc/codecs/wm8994.c-780-}\n--\nsound/soc/codecs/wm8994.c=782=static void active_dereference(struct snd_soc_component *component)\nsound/soc/codecs/wm8994.c-783-{\nsound/soc/codecs/wm8994.c:784:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8994.c-785-\tu16 mode;\nsound/soc/codecs/wm8994.c-786-\nsound/soc/codecs/wm8994.c:787:\tmutex_lock(\u0026wm8994-\u003eaccdet_lock);\nsound/soc/codecs/wm8994.c-788-\nsound/soc/codecs/wm8994.c:789:\twm8994-\u003eactive_refcount--;\nsound/soc/codecs/wm8994.c-790-\nsound/soc/codecs/wm8994.c-791-\tdev_dbg(component-\u003edev, \"Active refcount decremented, now %d\\n\",\nsound/soc/codecs/wm8994.c:792:\t\twm8994-\u003eactive_refcount);\nsound/soc/codecs/wm8994.c-793-\nsound/soc/codecs/wm8994.c:794:\tif (wm8994-\u003eactive_refcount == 0) {\nsound/soc/codecs/wm8994.c-795-\t\t/* Go into appropriate detection only mode */\nsound/soc/codecs/wm8994.c:796:\t\tif (wm8994-\u003ejack_mic || wm8994-\u003emic_detecting)\nsound/soc/codecs/wm8994.c-797-\t\t\tmode = WM1811_JACKDET_MODE_MIC;\n--\nsound/soc/codecs/wm8994.c-803-\nsound/soc/codecs/wm8994.c:804:\tmutex_unlock(\u0026wm8994-\u003eaccdet_lock);\nsound/soc/codecs/wm8994.c-805-}\n--\nsound/soc/codecs/wm8994.c=807=static int clk_sys_event(struct snd_soc_dapm_widget *w,\n--\nsound/soc/codecs/wm8994.c-810-\tstruct snd_soc_component *component = snd_soc_dapm_to_component(w-\u003edapm);\nsound/soc/codecs/wm8994.c:811:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8994.c-812-\n--\nsound/soc/codecs/wm8994.c-824-\t\t */\nsound/soc/codecs/wm8994.c:825:\t\tif (wm8994-\u003ejackdet \u0026\u0026 !wm8994-\u003eclk_has_run) {\nsound/soc/codecs/wm8994.c-826-\t\t\tqueue_delayed_work(system_power_efficient_wq,\nsound/soc/codecs/wm8994.c:827:\t\t\t\t\t \u0026wm8994-\u003ejackdet_bootstrap,\nsound/soc/codecs/wm8994.c-828-\t\t\t\t\t msecs_to_jiffies(1000));\nsound/soc/codecs/wm8994.c:829:\t\t\twm8994-\u003eclk_has_run = true;\nsound/soc/codecs/wm8994.c-830-\t\t}\n--\nsound/soc/codecs/wm8994.c=841=static void vmid_reference(struct snd_soc_component *component)\nsound/soc/codecs/wm8994.c-842-{\nsound/soc/codecs/wm8994.c:843:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8994.c-844-\n--\nsound/soc/codecs/wm8994.c-846-\nsound/soc/codecs/wm8994.c:847:\twm8994-\u003evmid_refcount++;\nsound/soc/codecs/wm8994.c-848-\nsound/soc/codecs/wm8994.c-849-\tdev_dbg(component-\u003edev, \"Referencing VMID, refcount is now %d\\n\",\nsound/soc/codecs/wm8994.c:850:\t\twm8994-\u003evmid_refcount);\nsound/soc/codecs/wm8994.c-851-\nsound/soc/codecs/wm8994.c:852:\tif (wm8994-\u003evmid_refcount == 1) {\nsound/soc/codecs/wm8994.c-853-\t\tsnd_soc_component_update_bits(component, WM8994_ANTIPOP_1,\n--\nsound/soc/codecs/wm8994.c-858-\nsound/soc/codecs/wm8994.c:859:\t\tswitch (wm8994-\u003evmid_mode) {\nsound/soc/codecs/wm8994.c-860-\t\tdefault:\n--\nsound/soc/codecs/wm8994.c=920=static void vmid_dereference(struct snd_soc_component *component)\nsound/soc/codecs/wm8994.c-921-{\nsound/soc/codecs/wm8994.c:922:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8994.c-923-\nsound/soc/codecs/wm8994.c:924:\twm8994-\u003evmid_refcount--;\nsound/soc/codecs/wm8994.c-925-\nsound/soc/codecs/wm8994.c-926-\tdev_dbg(component-\u003edev, \"Dereferencing VMID, refcount is now %d\\n\",\nsound/soc/codecs/wm8994.c:927:\t\twm8994-\u003evmid_refcount);\nsound/soc/codecs/wm8994.c-928-\nsound/soc/codecs/wm8994.c:929:\tif (wm8994-\u003evmid_refcount == 0) {\nsound/soc/codecs/wm8994.c:930:\t\tif (wm8994-\u003ehubs.lineout1_se)\nsound/soc/codecs/wm8994.c-931-\t\t\tsnd_soc_component_update_bits(component, WM8994_POWER_MANAGEMENT_3,\n--\nsound/soc/codecs/wm8994.c-936-\nsound/soc/codecs/wm8994.c:937:\t\tif (wm8994-\u003ehubs.lineout2_se)\nsound/soc/codecs/wm8994.c-938-\t\t\tsnd_soc_component_update_bits(component, WM8994_POWER_MANAGEMENT_3,\n--\nsound/soc/codecs/wm8994.c=983=static int vmid_event(struct snd_soc_dapm_widget *w,\n--\nsound/soc/codecs/wm8994.c-1000-\nsound/soc/codecs/wm8994.c:1001:static bool wm8994_check_class_w_digital(struct snd_soc_component *component)\nsound/soc/codecs/wm8994.c-1002-{\n--\nsound/soc/codecs/wm8994.c-1038-\nsound/soc/codecs/wm8994.c:1039:static void wm8994_update_vu_bits(struct snd_soc_component *component)\nsound/soc/codecs/wm8994.c-1040-{\nsound/soc/codecs/wm8994.c:1041:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8994.c:1042:\tstruct wm8994 *control = wm8994-\u003ewm8994;\nsound/soc/codecs/wm8994.c-1043-\tint i;\nsound/soc/codecs/wm8994.c-1044-\nsound/soc/codecs/wm8994.c:1045:\tfor (i = 0; i \u003c ARRAY_SIZE(wm8994_vu_bits); i++)\nsound/soc/codecs/wm8994.c:1046:\t\tsnd_soc_component_write(component, wm8994_vu_bits[i].reg,\nsound/soc/codecs/wm8994.c-1047-\t\t\t\t\tsnd_soc_component_read(component,\nsound/soc/codecs/wm8994.c:1048:\t\t\t\t\t\t wm8994_vu_bits[i].reg));\nsound/soc/codecs/wm8994.c-1049-\tif (control-\u003etype == WM1811)\n--\nsound/soc/codecs/wm8994.c-1051-\nsound/soc/codecs/wm8994.c:1052:\tfor (i = 0; i \u003c ARRAY_SIZE(wm8994_adc2_dac2_vu_bits); i++)\nsound/soc/codecs/wm8994.c-1053-\t\tsnd_soc_component_write(component,\nsound/soc/codecs/wm8994.c:1054:\t\t\t\twm8994_adc2_dac2_vu_bits[i].reg,\nsound/soc/codecs/wm8994.c-1055-\t\t\t\tsnd_soc_component_read(component,\nsound/soc/codecs/wm8994.c:1056:\t\t\t\t\twm8994_adc2_dac2_vu_bits[i].reg));\nsound/soc/codecs/wm8994.c-1057-}\n--\nsound/soc/codecs/wm8994.c=1059=static int aif_mclk_set(struct snd_soc_component *component, int aif, bool enable)\nsound/soc/codecs/wm8994.c-1060-{\nsound/soc/codecs/wm8994.c:1061:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8994.c-1062-\tunsigned int offset, val, clk_idx;\n--\nsound/soc/codecs/wm8994.c-1084-\tif (enable) {\nsound/soc/codecs/wm8994.c:1085:\t\tret = clk_prepare_enable(wm8994-\u003emclk[clk_idx].clk);\nsound/soc/codecs/wm8994.c-1086-\t\tif (ret \u003c 0) {\n--\nsound/soc/codecs/wm8994.c-1091-\t} else {\nsound/soc/codecs/wm8994.c:1092:\t\tclk_disable_unprepare(wm8994-\u003emclk[clk_idx].clk);\nsound/soc/codecs/wm8994.c-1093-\t}\n--\nsound/soc/codecs/wm8994.c=1098=static int aif1clk_ev(struct snd_soc_dapm_widget *w,\n--\nsound/soc/codecs/wm8994.c-1101-\tstruct snd_soc_component *component = snd_soc_dapm_to_component(w-\u003edapm);\nsound/soc/codecs/wm8994.c:1102:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8994.c:1103:\tstruct wm8994 *control = wm8994-\u003ewm8994;\nsound/soc/codecs/wm8994.c-1104-\tint mask = WM8994_AIF1DAC1L_ENA | WM8994_AIF1DAC1R_ENA;\n--\nsound/soc/codecs/wm8994.c-1125-\t\t/* Don't enable timeslot 2 if not in use */\nsound/soc/codecs/wm8994.c:1126:\t\tif (wm8994-\u003echannels[0] \u003c= 2)\nsound/soc/codecs/wm8994.c-1127-\t\t\tmask \u0026= ~(WM8994_AIF1DAC2L_ENA | WM8994_AIF1DAC2R_ENA);\n--\nsound/soc/codecs/wm8994.c-1172-\tcase SND_SOC_DAPM_POST_PMU:\nsound/soc/codecs/wm8994.c:1173:\t\twm8994_update_vu_bits(component);\nsound/soc/codecs/wm8994.c-1174-\t\tbreak;\n--\nsound/soc/codecs/wm8994.c=1203=static int aif2clk_ev(struct snd_soc_dapm_widget *w,\n--\nsound/soc/codecs/wm8994.c-1262-\tcase SND_SOC_DAPM_POST_PMU:\nsound/soc/codecs/wm8994.c:1263:\t\twm8994_update_vu_bits(component);\nsound/soc/codecs/wm8994.c-1264-\t\tbreak;\n--\nsound/soc/codecs/wm8994.c=1295=static int aif1clk_late_ev(struct snd_soc_dapm_widget *w,\n--\nsound/soc/codecs/wm8994.c-1298-\tstruct snd_soc_component *component = snd_soc_dapm_to_component(w-\u003edapm);\nsound/soc/codecs/wm8994.c:1299:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8994.c-1300-\n--\nsound/soc/codecs/wm8994.c-1302-\tcase SND_SOC_DAPM_PRE_PMU:\nsound/soc/codecs/wm8994.c:1303:\t\twm8994-\u003eaif1clk_enable = 1;\nsound/soc/codecs/wm8994.c-1304-\t\tbreak;\nsound/soc/codecs/wm8994.c-1305-\tcase SND_SOC_DAPM_POST_PMD:\nsound/soc/codecs/wm8994.c:1306:\t\twm8994-\u003eaif1clk_disable = 1;\nsound/soc/codecs/wm8994.c-1307-\t\tbreak;\n--\nsound/soc/codecs/wm8994.c=1313=static int aif2clk_late_ev(struct snd_soc_dapm_widget *w,\n--\nsound/soc/codecs/wm8994.c-1316-\tstruct snd_soc_component *component = snd_soc_dapm_to_component(w-\u003edapm);\nsound/soc/codecs/wm8994.c:1317:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8994.c-1318-\n--\nsound/soc/codecs/wm8994.c-1320-\tcase SND_SOC_DAPM_PRE_PMU:\nsound/soc/codecs/wm8994.c:1321:\t\twm8994-\u003eaif2clk_enable = 1;\nsound/soc/codecs/wm8994.c-1322-\t\tbreak;\nsound/soc/codecs/wm8994.c-1323-\tcase SND_SOC_DAPM_POST_PMD:\nsound/soc/codecs/wm8994.c:1324:\t\twm8994-\u003eaif2clk_disable = 1;\nsound/soc/codecs/wm8994.c-1325-\t\tbreak;\n--\nsound/soc/codecs/wm8994.c=1331=static int late_enable_ev(struct snd_soc_dapm_widget *w,\n--\nsound/soc/codecs/wm8994.c-1334-\tstruct snd_soc_component *component = snd_soc_dapm_to_component(w-\u003edapm);\nsound/soc/codecs/wm8994.c:1335:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8994.c-1336-\n--\nsound/soc/codecs/wm8994.c-1338-\tcase SND_SOC_DAPM_PRE_PMU:\nsound/soc/codecs/wm8994.c:1339:\t\tif (wm8994-\u003eaif1clk_enable) {\nsound/soc/codecs/wm8994.c-1340-\t\t\taif1clk_ev(w, kcontrol, SND_SOC_DAPM_PRE_PMU);\n--\nsound/soc/codecs/wm8994.c-1344-\t\t\taif1clk_ev(w, kcontrol, SND_SOC_DAPM_POST_PMU);\nsound/soc/codecs/wm8994.c:1345:\t\t\twm8994-\u003eaif1clk_enable = 0;\nsound/soc/codecs/wm8994.c-1346-\t\t}\nsound/soc/codecs/wm8994.c:1347:\t\tif (wm8994-\u003eaif2clk_enable) {\nsound/soc/codecs/wm8994.c-1348-\t\t\taif2clk_ev(w, kcontrol, SND_SOC_DAPM_PRE_PMU);\n--\nsound/soc/codecs/wm8994.c-1352-\t\t\taif2clk_ev(w, kcontrol, SND_SOC_DAPM_POST_PMU);\nsound/soc/codecs/wm8994.c:1353:\t\t\twm8994-\u003eaif2clk_enable = 0;\nsound/soc/codecs/wm8994.c-1354-\t\t}\n--\nsound/soc/codecs/wm8994.c=1364=static int late_disable_ev(struct snd_soc_dapm_widget *w,\n--\nsound/soc/codecs/wm8994.c-1367-\tstruct snd_soc_component *component = snd_soc_dapm_to_component(w-\u003edapm);\nsound/soc/codecs/wm8994.c:1368:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8994.c-1369-\n--\nsound/soc/codecs/wm8994.c-1371-\tcase SND_SOC_DAPM_POST_PMD:\nsound/soc/codecs/wm8994.c:1372:\t\tif (wm8994-\u003eaif1clk_disable) {\nsound/soc/codecs/wm8994.c-1373-\t\t\taif1clk_ev(w, kcontrol, SND_SOC_DAPM_PRE_PMD);\n--\nsound/soc/codecs/wm8994.c-1376-\t\t\taif1clk_ev(w, kcontrol, SND_SOC_DAPM_POST_PMD);\nsound/soc/codecs/wm8994.c:1377:\t\t\twm8994-\u003eaif1clk_disable = 0;\nsound/soc/codecs/wm8994.c-1378-\t\t}\nsound/soc/codecs/wm8994.c:1379:\t\tif (wm8994-\u003eaif2clk_disable) {\nsound/soc/codecs/wm8994.c-1380-\t\t\taif2clk_ev(w, kcontrol, SND_SOC_DAPM_PRE_PMD);\n--\nsound/soc/codecs/wm8994.c-1383-\t\t\taif2clk_ev(w, kcontrol, SND_SOC_DAPM_POST_PMD);\nsound/soc/codecs/wm8994.c:1384:\t\t\twm8994-\u003eaif2clk_disable = 0;\nsound/soc/codecs/wm8994.c-1385-\t\t}\n--\nsound/soc/codecs/wm8994.c=1507=SOC_DAPM_SINGLE(\"AIF1.1 Switch\", WM8994_DAC2_RIGHT_MIXER_ROUTING,\n--\nsound/soc/codecs/wm8994.c-1512-\tSOC_SINGLE_EXT(xname, reg, shift, max, invert, \\\nsound/soc/codecs/wm8994.c:1513:\t\tsnd_soc_dapm_get_volsw, wm8994_put_class_w)\nsound/soc/codecs/wm8994.c-1514-\nsound/soc/codecs/wm8994.c:1515:static int wm8994_put_class_w(struct snd_kcontrol *kcontrol,\nsound/soc/codecs/wm8994.c-1516-\t\t\t struct snd_ctl_elem_value *ucontrol)\n--\nsound/soc/codecs/wm8994.c=1620=static const char *aif3adc_text[] = {\n--\nsound/soc/codecs/wm8994.c-1623-\nsound/soc/codecs/wm8994.c:1624:static SOC_ENUM_SINGLE_DECL(wm8994_aif3adc_enum,\nsound/soc/codecs/wm8994.c-1625-\t\t\t WM8994_POWER_MANAGEMENT_6, 3, aif3adc_text);\nsound/soc/codecs/wm8994.c-1626-\nsound/soc/codecs/wm8994.c:1627:static const struct snd_kcontrol_new wm8994_aif3adc_mux =\nsound/soc/codecs/wm8994.c:1628:\tSOC_DAPM_ENUM(\"AIF3ADC Mux\", wm8994_aif3adc_enum);\nsound/soc/codecs/wm8994.c-1629-\n--\nsound/soc/codecs/wm8994.c=1660=static const struct snd_kcontrol_new aif2dacr_src_mux =\n--\nsound/soc/codecs/wm8994.c-1662-\nsound/soc/codecs/wm8994.c:1663:static const struct snd_soc_dapm_widget wm8994_lateclk_revd_widgets[] = {\nsound/soc/codecs/wm8994.c-1664-SND_SOC_DAPM_SUPPLY(\"AIF1CLK\", SND_SOC_NOPM, 0, 0, aif1clk_late_ev,\n--\nsound/soc/codecs/wm8994.c=1691=SND_SOC_DAPM_POST(\"Late Disable PGA\", late_disable_ev)\n\n"
} |
| 5/2 | 2026/09/17 17:50 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 18269 output: 44 thoughts: 39 Thoughts: Here's my take on the thought process, as requested: **Diving into the WM8994 Code Registration** Okay, so I need to understand how the WM8994 codec is integrated within the system. I'm going to jump straight to the end of `sound/soc/codecs/wm8994.c`. I need to see how the driver itself is brought into the kernel's audio subsystem. The specifics of the initialization are what I'm after. Is this a standard platform driver? Does it rely on an MFD (Multi-Function Device) cell arrangement? I'll quickly scan the registration code to get the lay of the land – that's where the real architecture details are. I should be able to deduce the binding strategy directly from the driver’s registration. This will quickly tell me about the hardware configuration, and therefore, it will guide my further investigation. |
| 6/2 | 2026/09/17 17:50 | tool | read-file |
0mArgs:{
"File": "sound/soc/codecs/wm8994.c",
"FirstLine": 4300,
"LineCount": 100
}Results: {
"Contents": "4300:\t\t\tbreak;\n4301:\t\n4302:\t\tcase WM8958:\n4303:\t\tcase WM1811:\n4304:\t\t\tif (wm8994-\u003emicdet_irq) {\n4305:\t\t\t\tret = request_threaded_irq(wm8994-\u003emicdet_irq, NULL,\n4306:\t\t\t\t\t\t\t wm8958_mic_irq,\n4307:\t\t\t\t\t\t\t IRQF_TRIGGER_RISING |\n4308:\t\t\t\t\t\t\t IRQF_ONESHOT,\n4309:\t\t\t\t\t\t\t \"Mic detect\",\n4310:\t\t\t\t\t\t\t wm8994);\n4311:\t\t\t\tif (ret != 0)\n4312:\t\t\t\t\tdev_warn(component-\u003edev,\n4313:\t\t\t\t\t\t \"Failed to request Mic detect IRQ: %d\\n\",\n4314:\t\t\t\t\t\t ret);\n4315:\t\t\t} else {\n4316:\t\t\t\twm8994_request_irq(wm8994-\u003ewm8994, WM8994_IRQ_MIC1_DET,\n4317:\t\t\t\t\t\t wm8958_mic_irq, \"Mic detect\",\n4318:\t\t\t\t\t\t wm8994);\n4319:\t\t\t}\n4320:\t\t}\n4321:\t\n4322:\t\tswitch (control-\u003etype) {\n4323:\t\tcase WM1811:\n4324:\t\t\tif (control-\u003ecust_id \u003e 1 || control-\u003erevision \u003e 1) {\n4325:\t\t\t\tret = wm8994_request_irq(wm8994-\u003ewm8994,\n4326:\t\t\t\t\t\t\t WM8994_IRQ_GPIO(6),\n4327:\t\t\t\t\t\t\t wm1811_jackdet_irq, \"JACKDET\",\n4328:\t\t\t\t\t\t\t wm8994);\n4329:\t\t\t\tif (ret == 0)\n4330:\t\t\t\t\twm8994-\u003ejackdet = true;\n4331:\t\t\t}\n4332:\t\t\tbreak;\n4333:\t\tdefault:\n4334:\t\t\tbreak;\n4335:\t\t}\n4336:\t\n4337:\t\twm8994-\u003efll_locked_irq = true;\n4338:\t\tfor (i = 0; i \u003c ARRAY_SIZE(wm8994-\u003efll_locked); i++) {\n4339:\t\t\tret = wm8994_request_irq(wm8994-\u003ewm8994,\n4340:\t\t\t\t\t\t WM8994_IRQ_FLL1_LOCK + i,\n4341:\t\t\t\t\t\t wm8994_fll_locked_irq, \"FLL lock\",\n4342:\t\t\t\t\t\t \u0026wm8994-\u003efll_locked[i]);\n4343:\t\t\tif (ret != 0)\n4344:\t\t\t\twm8994-\u003efll_locked_irq = false;\n4345:\t\t}\n4346:\t\n4347:\t\t/* Make sure we can read from the GPIOs if they're inputs */\n4348:\t\tpm_runtime_get_sync(component-\u003edev);\n4349:\t\n4350:\t\t/* Remember if AIFnLRCLK is configured as a GPIO. This should be\n4351:\t\t * configured on init - if a system wants to do this dynamically\n4352:\t\t * at runtime we can deal with that then.\n4353:\t\t */\n4354:\t\tret = regmap_read(control-\u003eregmap, WM8994_GPIO_1, \u0026reg);\n4355:\t\tif (ret \u003c 0) {\n4356:\t\t\tdev_err(component-\u003edev, \"Failed to read GPIO1 state: %d\\n\", ret);\n4357:\t\t\tpm_runtime_put(component-\u003edev);\n4358:\t\t\tgoto err_irq;\n4359:\t\t}\n4360:\t\tif ((reg \u0026 WM8994_GPN_FN_MASK) != WM8994_GP_FN_PIN_SPECIFIC) {\n4361:\t\t\twm8994-\u003elrclk_shared[0] = 1;\n4362:\t\t\twm8994_dai[0].symmetric_rate = 1;\n4363:\t\t} else {\n4364:\t\t\twm8994-\u003elrclk_shared[0] = 0;\n4365:\t\t}\n4366:\t\n4367:\t\tret = regmap_read(control-\u003eregmap, WM8994_GPIO_6, \u0026reg);\n4368:\t\tif (ret \u003c 0) {\n4369:\t\t\tdev_err(component-\u003edev, \"Failed to read GPIO6 state: %d\\n\", ret);\n4370:\t\t\tpm_runtime_put(component-\u003edev);\n4371:\t\t\tgoto err_irq;\n4372:\t\t}\n4373:\t\tif ((reg \u0026 WM8994_GPN_FN_MASK) != WM8994_GP_FN_PIN_SPECIFIC) {\n4374:\t\t\twm8994-\u003elrclk_shared[1] = 1;\n4375:\t\t\twm8994_dai[1].symmetric_rate = 1;\n4376:\t\t} else {\n4377:\t\t\twm8994-\u003elrclk_shared[1] = 0;\n4378:\t\t}\n4379:\t\n4380:\t\tpm_runtime_put(component-\u003edev);\n4381:\t\n4382:\t\t/* Latch volume update bits */\n4383:\t\tfor (i = 0; i \u003c ARRAY_SIZE(wm8994_vu_bits); i++)\n4384:\t\t\tsnd_soc_component_update_bits(component, wm8994_vu_bits[i].reg,\n4385:\t\t\t\t\t wm8994_vu_bits[i].mask,\n4386:\t\t\t\t\t wm8994_vu_bits[i].mask);\n4387:\t\n4388:\t\tif (control-\u003etype != WM1811) {\n4389:\t\t\tfor (i = 0; i \u003c ARRAY_SIZE(wm8994_adc2_dac2_vu_bits); i++)\n4390:\t\t\t\tsnd_soc_component_update_bits(component,\n4391:\t\t\t\t\t\twm8994_adc2_dac2_vu_bits[i].reg,\n4392:\t\t\t\t\t\twm8994_adc2_dac2_vu_bits[i].mask,\n4393:\t\t\t\t\t\twm8994_adc2_dac2_vu_bits[i].mask);\n4394:\t\t}\n4395:\t\n4396:\t\t/* Set the low bit of the 3D stereo depth so TLV matches */\n4397:\t\tsnd_soc_component_update_bits(component, WM8994_AIF1_DAC1_FILTERS_2,\n4398:\t\t\t\t 1 \u003c\u003c WM8994_AIF1DAC1_3D_GAIN_SHIFT,\n4399:\t\t\t\t 1 \u003c\u003c WM8994_AIF1DAC1_3D_GAIN_SHIFT);\n"
} |
| 7/2 | 2026/09/17 17:50 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 20407 output: 44 thoughts: 24 Thoughts: Here's my attempt at summarizing the thought process, tailored for an expert audience: **Diving Back into wm8994.c** Okay, so I've been working through the wm8994 driver, and I need to pick up where I left off. Specifically, I was at line 4400, and I need to continue my analysis from there. Let's get a look at the rest of this file. Time to see what's going on downstream from that point. |
| 8/2 | 2026/09/17 17:50 | tool | read-file |
0mArgs:{
"File": "sound/soc/codecs/wm8994.c",
"FirstLine": 4400,
"LineCount": 100
}Results: {
"Contents": "4400:\t\tsnd_soc_component_update_bits(component, WM8994_AIF1_DAC2_FILTERS_2,\n4401:\t\t\t\t 1 \u003c\u003c WM8994_AIF1DAC2_3D_GAIN_SHIFT,\n4402:\t\t\t\t 1 \u003c\u003c WM8994_AIF1DAC2_3D_GAIN_SHIFT);\n4403:\t\tsnd_soc_component_update_bits(component, WM8994_AIF2_DAC_FILTERS_2,\n4404:\t\t\t\t 1 \u003c\u003c WM8994_AIF2DAC_3D_GAIN_SHIFT,\n4405:\t\t\t\t 1 \u003c\u003c WM8994_AIF2DAC_3D_GAIN_SHIFT);\n4406:\t\n4407:\t\t/* Unconditionally enable AIF1 ADC TDM mode on chips which can\n4408:\t\t * use this; it only affects behaviour on idle TDM clock\n4409:\t\t * cycles. */\n4410:\t\tswitch (control-\u003etype) {\n4411:\t\tcase WM8994:\n4412:\t\tcase WM8958:\n4413:\t\t\tsnd_soc_component_update_bits(component, WM8994_AIF1_CONTROL_1,\n4414:\t\t\t\t\t WM8994_AIF1ADC_TDM, WM8994_AIF1ADC_TDM);\n4415:\t\t\tbreak;\n4416:\t\tdefault:\n4417:\t\t\tbreak;\n4418:\t\t}\n4419:\t\n4420:\t\t/* Put MICBIAS into bypass mode by default on newer devices */\n4421:\t\tswitch (control-\u003etype) {\n4422:\t\tcase WM8958:\n4423:\t\tcase WM1811:\n4424:\t\t\tsnd_soc_component_update_bits(component, WM8958_MICBIAS1,\n4425:\t\t\t\t\t WM8958_MICB1_MODE, WM8958_MICB1_MODE);\n4426:\t\t\tsnd_soc_component_update_bits(component, WM8958_MICBIAS2,\n4427:\t\t\t\t\t WM8958_MICB2_MODE, WM8958_MICB2_MODE);\n4428:\t\t\tbreak;\n4429:\t\tdefault:\n4430:\t\t\tbreak;\n4431:\t\t}\n4432:\t\n4433:\t\twm8994-\u003ehubs.check_class_w_digital = wm8994_check_class_w_digital;\n4434:\t\twm_hubs_update_class_w(component);\n4435:\t\n4436:\t\twm8994_handle_pdata(wm8994);\n4437:\t\n4438:\t\twm_hubs_add_analogue_controls(component);\n4439:\t\tsnd_soc_add_component_controls(component, wm8994_common_snd_controls,\n4440:\t\t\t\t\t ARRAY_SIZE(wm8994_common_snd_controls));\n4441:\t\tsnd_soc_dapm_new_controls(dapm, wm8994_dapm_widgets,\n4442:\t\t\t\t\t ARRAY_SIZE(wm8994_dapm_widgets));\n4443:\t\n4444:\t\tswitch (control-\u003etype) {\n4445:\t\tcase WM8994:\n4446:\t\t\tsnd_soc_add_component_controls(component, wm8994_snd_controls,\n4447:\t\t\t\t\t\t ARRAY_SIZE(wm8994_snd_controls));\n4448:\t\t\tsnd_soc_dapm_new_controls(dapm, wm8994_specific_dapm_widgets,\n4449:\t\t\t\t\t\t ARRAY_SIZE(wm8994_specific_dapm_widgets));\n4450:\t\t\tif (control-\u003erevision \u003c 4) {\n4451:\t\t\t\tsnd_soc_dapm_new_controls(dapm, wm8994_lateclk_revd_widgets,\n4452:\t\t\t\t\t\t\t ARRAY_SIZE(wm8994_lateclk_revd_widgets));\n4453:\t\t\t\tsnd_soc_dapm_new_controls(dapm, wm8994_adc_revd_widgets,\n4454:\t\t\t\t\t\t\t ARRAY_SIZE(wm8994_adc_revd_widgets));\n4455:\t\t\t\tsnd_soc_dapm_new_controls(dapm, wm8994_dac_revd_widgets,\n4456:\t\t\t\t\t\t\t ARRAY_SIZE(wm8994_dac_revd_widgets));\n4457:\t\t\t} else {\n4458:\t\t\t\tsnd_soc_dapm_new_controls(dapm, wm8994_lateclk_widgets,\n4459:\t\t\t\t\t\t\t ARRAY_SIZE(wm8994_lateclk_widgets));\n4460:\t\t\t\tsnd_soc_dapm_new_controls(dapm, wm8994_adc_widgets,\n4461:\t\t\t\t\t\t\t ARRAY_SIZE(wm8994_adc_widgets));\n4462:\t\t\t\tsnd_soc_dapm_new_controls(dapm, wm8994_dac_widgets,\n4463:\t\t\t\t\t\t\t ARRAY_SIZE(wm8994_dac_widgets));\n4464:\t\t\t}\n4465:\t\t\tbreak;\n4466:\t\tcase WM8958:\n4467:\t\t\tsnd_soc_add_component_controls(component, wm8994_snd_controls,\n4468:\t\t\t\t\t\t ARRAY_SIZE(wm8994_snd_controls));\n4469:\t\t\tsnd_soc_add_component_controls(component, wm8958_snd_controls,\n4470:\t\t\t\t\t\t ARRAY_SIZE(wm8958_snd_controls));\n4471:\t\t\tsnd_soc_dapm_new_controls(dapm, wm8958_dapm_widgets,\n4472:\t\t\t\t\t\t ARRAY_SIZE(wm8958_dapm_widgets));\n4473:\t\t\tif (control-\u003erevision \u003c 1) {\n4474:\t\t\t\tsnd_soc_dapm_new_controls(dapm, wm8994_lateclk_revd_widgets,\n4475:\t\t\t\t\t\t\t ARRAY_SIZE(wm8994_lateclk_revd_widgets));\n4476:\t\t\t\tsnd_soc_dapm_new_controls(dapm, wm8994_adc_revd_widgets,\n4477:\t\t\t\t\t\t\t ARRAY_SIZE(wm8994_adc_revd_widgets));\n4478:\t\t\t\tsnd_soc_dapm_new_controls(dapm, wm8994_dac_revd_widgets,\n4479:\t\t\t\t\t\t\t ARRAY_SIZE(wm8994_dac_revd_widgets));\n4480:\t\t\t} else {\n4481:\t\t\t\tsnd_soc_dapm_new_controls(dapm, wm8994_lateclk_widgets,\n4482:\t\t\t\t\t\t\t ARRAY_SIZE(wm8994_lateclk_widgets));\n4483:\t\t\t\tsnd_soc_dapm_new_controls(dapm, wm8994_adc_widgets,\n4484:\t\t\t\t\t\t\t ARRAY_SIZE(wm8994_adc_widgets));\n4485:\t\t\t\tsnd_soc_dapm_new_controls(dapm, wm8994_dac_widgets,\n4486:\t\t\t\t\t\t\t ARRAY_SIZE(wm8994_dac_widgets));\n4487:\t\t\t}\n4488:\t\t\tbreak;\n4489:\t\n4490:\t\tcase WM1811:\n4491:\t\t\tsnd_soc_add_component_controls(component, wm8958_snd_controls,\n4492:\t\t\t\t\t ARRAY_SIZE(wm8958_snd_controls));\n4493:\t\t\tsnd_soc_dapm_new_controls(dapm, wm8958_dapm_widgets,\n4494:\t\t\t\t\t\t ARRAY_SIZE(wm8958_dapm_widgets));\n4495:\t\t\tsnd_soc_dapm_new_controls(dapm, wm8994_lateclk_widgets,\n4496:\t\t\t\t\t\t ARRAY_SIZE(wm8994_lateclk_widgets));\n4497:\t\t\tsnd_soc_dapm_new_controls(dapm, wm8994_adc_widgets,\n4498:\t\t\t\t\t\t ARRAY_SIZE(wm8994_adc_widgets));\n4499:\t\t\tsnd_soc_dapm_new_controls(dapm, wm8994_dac_widgets,\n"
} |
| 9/2 | 2026/09/17 17:50 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 22804 output: 43 thoughts: 11 Thoughts: Okay, here's my interpretation of that thought process, tailored for an expert audience, and written in the first person: **Initial Assessment: Driver Registration Section** Alright, my immediate thought is to delve deeper into that driver registration section. We're clearly looking at a system or process that incorporates a driver component, so it's time to assess its intricacies. I need to understand what's happening here – is this a standard API call, a data input form, or something more complex? I need to know the context of this driver registration. What specific technologies or data structures are relevant here? Are we talking about driver authentication, vehicle pairing, compliance protocols, or something else entirely? A quick dive into this will likely reveal a lot about the architecture. My primary goal is to identify dependencies and potential bottlenecks. |
| 10/2 | 2026/09/17 17:50 | tool | read-file |
0mArgs:{
"File": "sound/soc/codecs/wm8994.c",
"FirstLine": 4500,
"LineCount": 80
}Results: {
"Contents": "4500:\t\t\t\t\t\t ARRAY_SIZE(wm8994_dac_widgets));\n4501:\t\t\tbreak;\n4502:\t\t}\n4503:\t\n4504:\t\twm_hubs_add_analogue_routes(component, 0, 0);\n4505:\t\tret = wm8994_request_irq(wm8994-\u003ewm8994, WM8994_IRQ_DCS_DONE,\n4506:\t\t\t\t\t wm_hubs_dcs_done, \"DC servo done\",\n4507:\t\t\t\t\t \u0026wm8994-\u003ehubs);\n4508:\t\tif (ret == 0)\n4509:\t\t\twm8994-\u003ehubs.dcs_done_irq = true;\n4510:\t\tsnd_soc_dapm_add_routes(dapm, intercon, ARRAY_SIZE(intercon));\n4511:\t\n4512:\t\tswitch (control-\u003etype) {\n4513:\t\tcase WM8994:\n4514:\t\t\tsnd_soc_dapm_add_routes(dapm, wm8994_intercon,\n4515:\t\t\t\t\t\tARRAY_SIZE(wm8994_intercon));\n4516:\t\n4517:\t\t\tif (control-\u003erevision \u003c 4) {\n4518:\t\t\t\tsnd_soc_dapm_add_routes(dapm, wm8994_revd_intercon,\n4519:\t\t\t\t\t\t\tARRAY_SIZE(wm8994_revd_intercon));\n4520:\t\t\t\tsnd_soc_dapm_add_routes(dapm, wm8994_lateclk_revd_intercon,\n4521:\t\t\t\t\t\t\tARRAY_SIZE(wm8994_lateclk_revd_intercon));\n4522:\t\t\t} else {\n4523:\t\t\t\tsnd_soc_dapm_add_routes(dapm, wm8994_lateclk_intercon,\n4524:\t\t\t\t\t\t\tARRAY_SIZE(wm8994_lateclk_intercon));\n4525:\t\t\t}\n4526:\t\t\tbreak;\n4527:\t\tcase WM8958:\n4528:\t\t\tif (control-\u003erevision \u003c 1) {\n4529:\t\t\t\tsnd_soc_dapm_add_routes(dapm, wm8994_intercon,\n4530:\t\t\t\t\t\t\tARRAY_SIZE(wm8994_intercon));\n4531:\t\t\t\tsnd_soc_dapm_add_routes(dapm, wm8994_revd_intercon,\n4532:\t\t\t\t\t\t\tARRAY_SIZE(wm8994_revd_intercon));\n4533:\t\t\t\tsnd_soc_dapm_add_routes(dapm, wm8994_lateclk_revd_intercon,\n4534:\t\t\t\t\t\t\tARRAY_SIZE(wm8994_lateclk_revd_intercon));\n4535:\t\t\t} else {\n4536:\t\t\t\tsnd_soc_dapm_add_routes(dapm, wm8994_lateclk_intercon,\n4537:\t\t\t\t\t\t\tARRAY_SIZE(wm8994_lateclk_intercon));\n4538:\t\t\t\tsnd_soc_dapm_add_routes(dapm, wm8958_intercon,\n4539:\t\t\t\t\t\t\tARRAY_SIZE(wm8958_intercon));\n4540:\t\t\t}\n4541:\t\n4542:\t\t\twm8958_dsp2_init(component);\n4543:\t\t\tbreak;\n4544:\t\tcase WM1811:\n4545:\t\t\tsnd_soc_dapm_add_routes(dapm, wm8994_lateclk_intercon,\n4546:\t\t\t\t\t\tARRAY_SIZE(wm8994_lateclk_intercon));\n4547:\t\t\tsnd_soc_dapm_add_routes(dapm, wm8958_intercon,\n4548:\t\t\t\t\t\tARRAY_SIZE(wm8958_intercon));\n4549:\t\t\tbreak;\n4550:\t\t}\n4551:\t\n4552:\t\treturn 0;\n4553:\t\n4554:\terr_irq:\n4555:\t\tif (wm8994-\u003ejackdet)\n4556:\t\t\twm8994_free_irq(wm8994-\u003ewm8994, WM8994_IRQ_GPIO(6), wm8994);\n4557:\t\twm8994_free_irq(wm8994-\u003ewm8994, WM8994_IRQ_MIC2_SHRT, wm8994);\n4558:\t\twm8994_free_irq(wm8994-\u003ewm8994, WM8994_IRQ_MIC2_DET, wm8994);\n4559:\t\twm8994_free_irq(wm8994-\u003ewm8994, WM8994_IRQ_MIC1_SHRT, wm8994);\n4560:\t\tif (wm8994-\u003emicdet_irq)\n4561:\t\t\tfree_irq(wm8994-\u003emicdet_irq, wm8994);\n4562:\t\tfor (i = 0; i \u003c ARRAY_SIZE(wm8994-\u003efll_locked); i++)\n4563:\t\t\twm8994_free_irq(wm8994-\u003ewm8994, WM8994_IRQ_FLL1_LOCK + i,\n4564:\t\t\t\t\t\u0026wm8994-\u003efll_locked[i]);\n4565:\t\twm8994_free_irq(wm8994-\u003ewm8994, WM8994_IRQ_DCS_DONE,\n4566:\t\t\t\t\u0026wm8994-\u003ehubs);\n4567:\t\twm8994_free_irq(wm8994-\u003ewm8994, WM8994_IRQ_FIFOS_ERR, component);\n4568:\t\twm8994_free_irq(wm8994-\u003ewm8994, WM8994_IRQ_TEMP_SHUT, component);\n4569:\t\twm8994_free_irq(wm8994-\u003ewm8994, WM8994_IRQ_TEMP_WARN, component);\n4570:\t\n4571:\t\treturn ret;\n4572:\t}\n4573:\t\n4574:\tstatic void wm8994_component_remove(struct snd_soc_component *component)\n4575:\t{\n4576:\t\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\n4577:\t\tstruct wm8994 *control = wm8994-\u003ewm8994;\n4578:\t\tint i;\n4579:\t\n"
} |
| 11/2 | 2026/09/17 17:50 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 24816 output: 43 thoughts: 14 Thoughts: Okay, here's the summary, rendered as a first-person thought process, designed for an expert user, starting from after line 4580: **Reviewing the Analysis - The Point of Divergence** Alright, after line 4580... okay, I need to get back into the rhythm here. Let's see. My mental map needs to recalibrate. I can see the argument's trajectory, the underlying assumptions, and the potential weak points. Now, after that specific point, I'm expecting a shift – a branching pathway in the logic, or maybe a deeper dive into the supporting data for a specific claim. What am I looking for? The critical juncture. The moment where the narrative either strengthens its position with solid evidence, or falters, revealing inherent inconsistencies. My intuition tells me that specific point can determine if the argument will work for a higher-level framework. |
| 12/2 | 2026/09/17 17:50 | tool | read-file |
0mArgs:{
"File": "sound/soc/codecs/wm8994.c",
"FirstLine": 4580,
"LineCount": 80
}Results: {
"Contents": "4580:\t\tfor (i = 0; i \u003c ARRAY_SIZE(wm8994-\u003efll_locked); i++)\n4581:\t\t\twm8994_free_irq(wm8994-\u003ewm8994, WM8994_IRQ_FLL1_LOCK + i,\n4582:\t\t\t\t\t\u0026wm8994-\u003efll_locked[i]);\n4583:\t\n4584:\t\twm8994_free_irq(wm8994-\u003ewm8994, WM8994_IRQ_DCS_DONE,\n4585:\t\t\t\t\u0026wm8994-\u003ehubs);\n4586:\t\twm8994_free_irq(wm8994-\u003ewm8994, WM8994_IRQ_FIFOS_ERR, component);\n4587:\t\twm8994_free_irq(wm8994-\u003ewm8994, WM8994_IRQ_TEMP_SHUT, component);\n4588:\t\twm8994_free_irq(wm8994-\u003ewm8994, WM8994_IRQ_TEMP_WARN, component);\n4589:\t\n4590:\t\tif (wm8994-\u003ejackdet)\n4591:\t\t\twm8994_free_irq(wm8994-\u003ewm8994, WM8994_IRQ_GPIO(6), wm8994);\n4592:\t\n4593:\t\tswitch (control-\u003etype) {\n4594:\t\tcase WM8994:\n4595:\t\t\tif (wm8994-\u003emicdet_irq)\n4596:\t\t\t\tfree_irq(wm8994-\u003emicdet_irq, wm8994);\n4597:\t\t\twm8994_free_irq(wm8994-\u003ewm8994, WM8994_IRQ_MIC2_DET,\n4598:\t\t\t\t\twm8994);\n4599:\t\t\twm8994_free_irq(wm8994-\u003ewm8994, WM8994_IRQ_MIC1_SHRT,\n4600:\t\t\t\t\twm8994);\n4601:\t\t\twm8994_free_irq(wm8994-\u003ewm8994, WM8994_IRQ_MIC1_DET,\n4602:\t\t\t\t\twm8994);\n4603:\t\t\tbreak;\n4604:\t\n4605:\t\tcase WM1811:\n4606:\t\tcase WM8958:\n4607:\t\t\tif (wm8994-\u003emicdet_irq)\n4608:\t\t\t\tfree_irq(wm8994-\u003emicdet_irq, wm8994);\n4609:\t\t\tbreak;\n4610:\t\t}\n4611:\t\trelease_firmware(wm8994-\u003embc);\n4612:\t\trelease_firmware(wm8994-\u003embc_vss);\n4613:\t\trelease_firmware(wm8994-\u003eenh_eq);\n4614:\t\tkfree(wm8994-\u003eretune_mobile_texts);\n4615:\t}\n4616:\t\n4617:\tstatic const struct snd_soc_component_driver soc_component_dev_wm8994 = {\n4618:\t\t.probe\t\t\t= wm8994_component_probe,\n4619:\t\t.remove\t\t\t= wm8994_component_remove,\n4620:\t\t.suspend\t\t= wm8994_component_suspend,\n4621:\t\t.resume\t\t\t= wm8994_component_resume,\n4622:\t\t.set_bias_level\t\t= wm8994_set_bias_level,\n4623:\t\t.idle_bias_on\t\t= 1,\n4624:\t\t.use_pmdown_time\t= 1,\n4625:\t\t.endianness\t\t= 1,\n4626:\t};\n4627:\t\n4628:\tstatic int wm8994_probe(struct platform_device *pdev)\n4629:\t{\n4630:\t\tstruct wm8994_priv *wm8994;\n4631:\t\tint ret;\n4632:\t\n4633:\t\twm8994 = devm_kzalloc(\u0026pdev-\u003edev, sizeof(struct wm8994_priv),\n4634:\t\t\t\t GFP_KERNEL);\n4635:\t\tif (wm8994 == NULL)\n4636:\t\t\treturn -ENOMEM;\n4637:\t\tplatform_set_drvdata(pdev, wm8994);\n4638:\t\n4639:\t\tmutex_init(\u0026wm8994-\u003efw_lock);\n4640:\t\n4641:\t\twm8994-\u003ewm8994 = dev_get_drvdata(pdev-\u003edev.parent);\n4642:\t\n4643:\t\twm8994-\u003emclk[WM8994_MCLK1].id = \"MCLK1\";\n4644:\t\twm8994-\u003emclk[WM8994_MCLK2].id = \"MCLK2\";\n4645:\t\n4646:\t\tret = devm_clk_bulk_get_optional(pdev-\u003edev.parent, ARRAY_SIZE(wm8994-\u003emclk),\n4647:\t\t\t\t\t\t wm8994-\u003emclk);\n4648:\t\tif (ret \u003c 0) {\n4649:\t\t\tdev_err(\u0026pdev-\u003edev, \"Failed to get clocks: %d\\n\", ret);\n4650:\t\t\treturn ret;\n4651:\t\t}\n4652:\t\n4653:\t\tpm_runtime_enable(\u0026pdev-\u003edev);\n4654:\t\tpm_runtime_idle(\u0026pdev-\u003edev);\n4655:\t\n4656:\t\tret = devm_snd_soc_register_component(\u0026pdev-\u003edev, \u0026soc_component_dev_wm8994,\n4657:\t\t\t\twm8994_dai, ARRAY_SIZE(wm8994_dai));\n4658:\t\tif (ret \u003c 0)\n4659:\t\t\tpm_runtime_disable(\u0026pdev-\u003edev);\n"
} |
| 13/2 | 2026/09/17 17:50 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 26716 output: 43 thoughts: 20 Thoughts: Okay, let's dive into this. I need to get a handle on the bigger picture here. I want to understand how the `wm8994` driver works, so I'll start by looking at the rest of the `wm8994_probe` function. I have to see how it's defined and what the driver itself is doing. What's it connecting to? What resources are being allocated? What is the overall structure of the setup? I'm hoping I can piece together the sequence of operations for probing and driver initialization. I need to trace the control flow to understand the complete execution path. From there I can assess the design choices and the trade-offs that have been made. |
| 14/2 | 2026/09/17 17:50 | tool | read-file |
0mArgs:{
"File": "sound/soc/codecs/wm8994.c",
"FirstLine": 4660,
"LineCount": 40
}Results: {
"Contents": "4660:\t\n4661:\t\treturn ret;\n4662:\t}\n4663:\t\n4664:\tstatic void wm8994_remove(struct platform_device *pdev)\n4665:\t{\n4666:\t\tpm_runtime_disable(\u0026pdev-\u003edev);\n4667:\t}\n4668:\t\n4669:\tstatic int wm8994_suspend(struct device *dev)\n4670:\t{\n4671:\t\tstruct wm8994_priv *wm8994 = dev_get_drvdata(dev);\n4672:\t\n4673:\t\t/* Drop down to power saving mode when system is suspended */\n4674:\t\tif (wm8994-\u003ejackdet \u0026\u0026 !wm8994-\u003eactive_refcount)\n4675:\t\t\tregmap_update_bits(wm8994-\u003ewm8994-\u003eregmap, WM8994_ANTIPOP_2,\n4676:\t\t\t\t\t WM1811_JACKDET_MODE_MASK,\n4677:\t\t\t\t\t wm8994-\u003ejackdet_mode);\n4678:\t\n4679:\t\treturn 0;\n4680:\t}\n4681:\t\n4682:\tstatic int wm8994_resume(struct device *dev)\n4683:\t{\n4684:\t\tstruct wm8994_priv *wm8994 = dev_get_drvdata(dev);\n4685:\t\n4686:\t\tif (wm8994-\u003ejackdet \u0026\u0026 wm8994-\u003ejackdet_mode)\n4687:\t\t\tregmap_update_bits(wm8994-\u003ewm8994-\u003eregmap, WM8994_ANTIPOP_2,\n4688:\t\t\t\t\t WM1811_JACKDET_MODE_MASK,\n4689:\t\t\t\t\t WM1811_JACKDET_MODE_AUDIO);\n4690:\t\n4691:\t\treturn 0;\n4692:\t}\n4693:\t\n4694:\tstatic const struct dev_pm_ops wm8994_pm_ops = {\n4695:\t\tSYSTEM_SLEEP_PM_OPS(wm8994_suspend, wm8994_resume)\n4696:\t};\n4697:\t\n4698:\tstatic struct platform_driver wm8994_codec_driver = {\n4699:\t\t.driver = {\n"
} |
| 15/2 | 2026/09/17 17:50 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 27591 output: 43 thoughts: 14 Thoughts: Okay, here's my attempt at summarizing the thought process, as requested, in the first person and targeted towards an expert: **Navigating the Labyrinth: Focusing Downstream** Alright, so I'm at line 4699, which is often the point where you start to feel the drag... the beginning of the end of something substantial. No need to look back, the critical piece is where it *currently* is. Let's see what comes next. I need to be sure to get the broader context from the upcoming text. This late in the process, and considering the volume of information I've absorbed up to this point, I'm less interested in recapitulating what's already been examined. My aim, after reviewing line 4699, is to see what additional details are offered. |
| 16/2 | 2026/09/17 17:50 | tool | read-file |
0mArgs:{
"File": "sound/soc/codecs/wm8994.c",
"FirstLine": 4700,
"LineCount": 30
}Results: {
"Contents": "4700:\t\t\t.name = \"wm8994-codec\",\n4701:\t\t\t.pm = pm_ptr(\u0026wm8994_pm_ops),\n4702:\t\t},\n4703:\t\t.probe = wm8994_probe,\n4704:\t\t.remove = wm8994_remove,\n4705:\t};\n4706:\t\n4707:\tmodule_platform_driver(wm8994_codec_driver);\n4708:\t\n4709:\tMODULE_DESCRIPTION(\"ASoC WM8994 driver\");\n4710:\tMODULE_AUTHOR(\"Mark Brown \u003cbroonie@opensource.wolfsonmicro.com\u003e\");\n4711:\tMODULE_LICENSE(\"GPL\");\n4712:\tMODULE_ALIAS(\"platform:wm8994-codec\");\n"
} |
| 17/2 | 2026/09/17 17:50 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 28046 output: 21 thoughts: 99 Thoughts: **Analyzing the Audio Codec Driver** Okay, so I'm looking at this `wm8994-codec` driver. Right off the bat, I see it's a platform driver, nothing unusual there. But, hold on a second... where does this `wm8994` structure actually come from? Ah, here it is: `wm8994->wm8994 = dev_get_drvdata(pdev->dev.parent);`. That's interesting, the `parent` device for this codec driver is actually an MFD device, the `wm8994-core`. So, to understand the relationship and how this all fits together, I need to figure out where and how this `wm8994-core` device is being created and probed. That's the next step; let's go find that code. |
| 18/2 | 2026/09/17 17:50 | tool | grepper |
0mArgs:{
"Expression": "wm8994-codec"
}Results: {
"Output": "drivers/mfd/wm8994-core.c=58=static const struct mfd_cell wm8994_devs[] = {\ndrivers/mfd/wm8994-core.c-59-\t{\ndrivers/mfd/wm8994-core.c:60:\t\t.name = \"wm8994-codec\",\ndrivers/mfd/wm8994-core.c-61-\t\t.num_resources = ARRAY_SIZE(wm8994_codec_resources),\n--\nsound/soc/codecs/wm8994.c=4698=static struct platform_driver wm8994_codec_driver = {\nsound/soc/codecs/wm8994.c-4699-\t.driver = {\nsound/soc/codecs/wm8994.c:4700:\t\t.name = \"wm8994-codec\",\nsound/soc/codecs/wm8994.c-4701-\t\t.pm = pm_ptr(\u0026wm8994_pm_ops),\n--\nsound/soc/codecs/wm8994.c=4711=MODULE_LICENSE(\"GPL\");\nsound/soc/codecs/wm8994.c:4712:MODULE_ALIAS(\"platform:wm8994-codec\");\n--\nsound/soc/samsung/littlemill.c=142=SND_SOC_DAILINK_DEFS(cpu,\nsound/soc/samsung/littlemill.c-143-\tDAILINK_COMP_ARRAY(COMP_CPU(\"samsung-i2s.0\")),\nsound/soc/samsung/littlemill.c:144:\tDAILINK_COMP_ARRAY(COMP_CODEC(\"wm8994-codec\", \"wm8994-aif1\")),\nsound/soc/samsung/littlemill.c-145-\tDAILINK_COMP_ARRAY(COMP_PLATFORM(\"samsung-i2s.0\")));\n--\nsound/soc/samsung/smdk_wm8994.c=93=SND_SOC_DAILINK_DEFS(aif1,\nsound/soc/samsung/smdk_wm8994.c-94-\tDAILINK_COMP_ARRAY(COMP_CPU(\"samsung-i2s.0\")),\nsound/soc/samsung/smdk_wm8994.c:95:\tDAILINK_COMP_ARRAY(COMP_CODEC(\"wm8994-codec\", \"wm8994-aif1\")),\nsound/soc/samsung/smdk_wm8994.c-96-\tDAILINK_COMP_ARRAY(COMP_PLATFORM(\"samsung-i2s.0\")));\n--\nsound/soc/samsung/smdk_wm8994.c=98=SND_SOC_DAILINK_DEFS(fifo_tx,\nsound/soc/samsung/smdk_wm8994.c-99-\tDAILINK_COMP_ARRAY(COMP_CPU(\"samsung-i2s-sec\")),\nsound/soc/samsung/smdk_wm8994.c:100:\tDAILINK_COMP_ARRAY(COMP_CODEC(\"wm8994-codec\", \"wm8994-aif1\")),\nsound/soc/samsung/smdk_wm8994.c-101-\tDAILINK_COMP_ARRAY(COMP_PLATFORM(\"samsung-i2s-sec\")));\n--\nsound/soc/samsung/smdk_wm8994pcm.c=92=SND_SOC_DAILINK_DEFS(paif_pcm,\nsound/soc/samsung/smdk_wm8994pcm.c-93-\tDAILINK_COMP_ARRAY(COMP_CPU(\"samsung-pcm.0\")),\nsound/soc/samsung/smdk_wm8994pcm.c:94:\tDAILINK_COMP_ARRAY(COMP_CODEC(\"wm8994-codec\", \"wm8994-aif1\")),\nsound/soc/samsung/smdk_wm8994pcm.c-95-\tDAILINK_COMP_ARRAY(COMP_PLATFORM(\"samsung-pcm.0\")));\n"
} |
| 19/2 | 2026/09/17 17:50 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 29427 output: 30 thoughts: 44 Thoughts: Okay, let's dive into this. I need to understand how this wm8994 audio codec is initialized and accessed within the kernel. My initial thought is to examine the driver code. I'll start by taking a look at `drivers/mfd/wm8994-core.c` and `wm8994-i2c.c`. That's where I would expect to find the core initialization and likely the I2C communication setup, which is the standard protocol for this kind of peripheral. I need to see how the probing is done, how the device is registered, and how the driver interacts with the hardware registers. The core file should have the main driver functions, while the i2c file may have i2c-specific functions. This should give me a good overview of the driver's structure. |
| 20/2 | 2026/09/17 17:50 | tool | grepper |
0mArgs:{
"Expression": "wm8994",
"PathPrefix": "drivers/mfd/"
}Results: {
"Output": "\nFull output is too long, showing 500 out of 609 lines.\nUse more precise expression if possible.\n\ndrivers/mfd/Makefile=69=obj-$(CONFIG_MFD_WM8350_I2C)\t+= wm8350-i2c.o\ndrivers/mfd/Makefile:70:wm8994-objs\t\t\t:= wm8994-core.o wm8994-irq.o wm8994-regmap.o\ndrivers/mfd/Makefile:71:obj-$(CONFIG_MFD_WM8994)\t+= wm8994.o\ndrivers/mfd/Makefile-72-obj-$(CONFIG_MFD_WM97xx)\t+= wm97xx-core.o\n--\ndrivers/mfd/wm8994-core.c-2-/*\ndrivers/mfd/wm8994-core.c:3: * wm8994-core.c -- Device access for Wolfson WM8994\ndrivers/mfd/wm8994-core.c-4- *\n--\ndrivers/mfd/wm8994-core.c-22-\ndrivers/mfd/wm8994-core.c:23:#include \u003clinux/mfd/wm8994/core.h\u003e\ndrivers/mfd/wm8994-core.c:24:#include \u003clinux/mfd/wm8994/pdata.h\u003e\ndrivers/mfd/wm8994-core.c:25:#include \u003clinux/mfd/wm8994/registers.h\u003e\ndrivers/mfd/wm8994-core.c-26-\ndrivers/mfd/wm8994-core.c:27:#include \"wm8994.h\"\ndrivers/mfd/wm8994-core.c-28-\ndrivers/mfd/wm8994-core.c:29:static const struct mfd_cell wm8994_regulator_devs[] = {\ndrivers/mfd/wm8994-core.c-30-\t{\ndrivers/mfd/wm8994-core.c:31:\t\t.name = \"wm8994-ldo\",\ndrivers/mfd/wm8994-core.c-32-\t\t.id = 0,\n--\ndrivers/mfd/wm8994-core.c-35-\t{\ndrivers/mfd/wm8994-core.c:36:\t\t.name = \"wm8994-ldo\",\ndrivers/mfd/wm8994-core.c-37-\t\t.id = 1,\n--\ndrivers/mfd/wm8994-core.c-41-\ndrivers/mfd/wm8994-core.c:42:static const struct resource wm8994_codec_resources[] = {\ndrivers/mfd/wm8994-core.c-43-\t{\n--\ndrivers/mfd/wm8994-core.c-49-\ndrivers/mfd/wm8994-core.c:50:static const struct resource wm8994_gpio_resources[] = {\ndrivers/mfd/wm8994-core.c-51-\t{\n--\ndrivers/mfd/wm8994-core.c-57-\ndrivers/mfd/wm8994-core.c:58:static const struct mfd_cell wm8994_devs[] = {\ndrivers/mfd/wm8994-core.c-59-\t{\ndrivers/mfd/wm8994-core.c:60:\t\t.name = \"wm8994-codec\",\ndrivers/mfd/wm8994-core.c:61:\t\t.num_resources = ARRAY_SIZE(wm8994_codec_resources),\ndrivers/mfd/wm8994-core.c:62:\t\t.resources = wm8994_codec_resources,\ndrivers/mfd/wm8994-core.c-63-\t},\n--\ndrivers/mfd/wm8994-core.c-65-\t{\ndrivers/mfd/wm8994-core.c:66:\t\t.name = \"wm8994-gpio\",\ndrivers/mfd/wm8994-core.c:67:\t\t.num_resources = ARRAY_SIZE(wm8994_gpio_resources),\ndrivers/mfd/wm8994-core.c:68:\t\t.resources = wm8994_gpio_resources,\ndrivers/mfd/wm8994-core.c-69-\t\t.pm_runtime_no_callbacks = true,\n--\ndrivers/mfd/wm8994-core.c=78=static const char *wm1811_main_supplies[] = {\n--\ndrivers/mfd/wm8994-core.c-89-\ndrivers/mfd/wm8994-core.c:90:static const char *wm8994_main_supplies[] = {\ndrivers/mfd/wm8994-core.c-91-\t\"DBVDD\",\n--\ndrivers/mfd/wm8994-core.c=100=static const char *wm8958_main_supplies[] = {\n--\ndrivers/mfd/wm8994-core.c-111-\ndrivers/mfd/wm8994-core.c:112:static int wm8994_suspend(struct device *dev)\ndrivers/mfd/wm8994-core.c-113-{\ndrivers/mfd/wm8994-core.c:114:\tstruct wm8994 *wm8994 = dev_get_drvdata(dev);\ndrivers/mfd/wm8994-core.c-115-\tint ret;\n--\ndrivers/mfd/wm8994-core.c-118-\t * still active for accessory detect. */\ndrivers/mfd/wm8994-core.c:119:\tswitch (wm8994-\u003etype) {\ndrivers/mfd/wm8994-core.c-120-\tcase WM8958:\ndrivers/mfd/wm8994-core.c-121-\tcase WM1811:\ndrivers/mfd/wm8994-core.c:122:\t\tret = wm8994_reg_read(wm8994, WM8958_MIC_DETECT_1);\ndrivers/mfd/wm8994-core.c-123-\t\tif (ret \u003c 0) {\n--\ndrivers/mfd/wm8994-core.c-135-\t * don't know that something will be driving them. */\ndrivers/mfd/wm8994-core.c:136:\tif (!wm8994-\u003eldo_ena_always_driven)\ndrivers/mfd/wm8994-core.c:137:\t\twm8994_set_bits(wm8994, WM8994_PULL_CONTROL_2,\ndrivers/mfd/wm8994-core.c-138-\t\t\t\tWM8994_LDO1ENA_PD | WM8994_LDO2ENA_PD,\n--\ndrivers/mfd/wm8994-core.c-143-\t */\ndrivers/mfd/wm8994-core.c:144:\twm8994_reg_write(wm8994, WM8994_SOFTWARE_RESET,\ndrivers/mfd/wm8994-core.c:145:\t\t\t wm8994_reg_read(wm8994, WM8994_SOFTWARE_RESET));\ndrivers/mfd/wm8994-core.c-146-\ndrivers/mfd/wm8994-core.c:147:\tregcache_mark_dirty(wm8994-\u003eregmap);\ndrivers/mfd/wm8994-core.c-148-\n--\ndrivers/mfd/wm8994-core.c-151-\t */\ndrivers/mfd/wm8994-core.c:152:\tret = regcache_sync_region(wm8994-\u003eregmap, WM8994_GPIO_1,\ndrivers/mfd/wm8994-core.c-153-\t\t\t\t WM8994_GPIO_11);\n--\ndrivers/mfd/wm8994-core.c-157-\t/* In case one of the GPIOs is used as a wake input. */\ndrivers/mfd/wm8994-core.c:158:\tret = regcache_sync_region(wm8994-\u003eregmap,\ndrivers/mfd/wm8994-core.c-159-\t\t\t\t WM8994_INTERRUPT_STATUS_1_MASK,\n--\ndrivers/mfd/wm8994-core.c-163-\ndrivers/mfd/wm8994-core.c:164:\tregcache_cache_only(wm8994-\u003eregmap, true);\ndrivers/mfd/wm8994-core.c:165:\twm8994-\u003esuspended = true;\ndrivers/mfd/wm8994-core.c-166-\ndrivers/mfd/wm8994-core.c:167:\tret = regulator_bulk_disable(wm8994-\u003enum_supplies,\ndrivers/mfd/wm8994-core.c:168:\t\t\t\t wm8994-\u003esupplies);\ndrivers/mfd/wm8994-core.c-169-\tif (ret != 0) {\n--\ndrivers/mfd/wm8994-core.c-176-\ndrivers/mfd/wm8994-core.c:177:static int wm8994_resume(struct device *dev)\ndrivers/mfd/wm8994-core.c-178-{\ndrivers/mfd/wm8994-core.c:179:\tstruct wm8994 *wm8994 = dev_get_drvdata(dev);\ndrivers/mfd/wm8994-core.c-180-\tint ret;\n--\ndrivers/mfd/wm8994-core.c-182-\t/* We may have lied to the PM core about suspending */\ndrivers/mfd/wm8994-core.c:183:\tif (!wm8994-\u003esuspended)\ndrivers/mfd/wm8994-core.c-184-\t\treturn 0;\ndrivers/mfd/wm8994-core.c-185-\ndrivers/mfd/wm8994-core.c:186:\tret = regulator_bulk_enable(wm8994-\u003enum_supplies,\ndrivers/mfd/wm8994-core.c:187:\t\t\t\t wm8994-\u003esupplies);\ndrivers/mfd/wm8994-core.c-188-\tif (ret != 0) {\n--\ndrivers/mfd/wm8994-core.c-192-\ndrivers/mfd/wm8994-core.c:193:\tregcache_cache_only(wm8994-\u003eregmap, false);\ndrivers/mfd/wm8994-core.c:194:\tret = regcache_sync(wm8994-\u003eregmap);\ndrivers/mfd/wm8994-core.c-195-\tif (ret != 0) {\n--\ndrivers/mfd/wm8994-core.c-200-\t/* Disable LDO pulldowns while the device is active */\ndrivers/mfd/wm8994-core.c:201:\twm8994_set_bits(wm8994, WM8994_PULL_CONTROL_2,\ndrivers/mfd/wm8994-core.c-202-\t\t\tWM8994_LDO1ENA_PD | WM8994_LDO2ENA_PD,\n--\ndrivers/mfd/wm8994-core.c-204-\ndrivers/mfd/wm8994-core.c:205:\twm8994-\u003esuspended = false;\ndrivers/mfd/wm8994-core.c-206-\n--\ndrivers/mfd/wm8994-core.c-209-err_enable:\ndrivers/mfd/wm8994-core.c:210:\tregulator_bulk_disable(wm8994-\u003enum_supplies, wm8994-\u003esupplies);\ndrivers/mfd/wm8994-core.c-211-\n--\ndrivers/mfd/wm8994-core.c-215-#ifdef CONFIG_REGULATOR\ndrivers/mfd/wm8994-core.c:216:static int wm8994_ldo_in_use(struct wm8994_pdata *pdata, int ldo)\ndrivers/mfd/wm8994-core.c-217-{\ndrivers/mfd/wm8994-core.c:218:\tstruct wm8994_ldo_pdata *ldo_pdata;\ndrivers/mfd/wm8994-core.c-219-\n--\ndrivers/mfd/wm8994-core.c-230-#else\ndrivers/mfd/wm8994-core.c:231:static int wm8994_ldo_in_use(struct wm8994_pdata *pdata, int ldo)\ndrivers/mfd/wm8994-core.c-232-{\n--\ndrivers/mfd/wm8994-core.c-236-\ndrivers/mfd/wm8994-core.c:237:static const struct reg_sequence wm8994_revc_patch[] = {\ndrivers/mfd/wm8994-core.c-238-\t{ 0x102, 0x3 },\n--\ndrivers/mfd/wm8994-core.c=251=static const struct reg_sequence wm1811_reva_patch[] = {\n--\ndrivers/mfd/wm8994-core.c-259-#ifdef CONFIG_OF\ndrivers/mfd/wm8994-core.c:260:static int wm8994_set_pdata_from_of(struct wm8994 *wm8994)\ndrivers/mfd/wm8994-core.c-261-{\ndrivers/mfd/wm8994-core.c:262:\tstruct device_node *np = wm8994-\u003edev-\u003eof_node;\ndrivers/mfd/wm8994-core.c:263:\tstruct wm8994_pdata *pdata = \u0026wm8994-\u003epdata;\ndrivers/mfd/wm8994-core.c-264-\tint i;\n--\ndrivers/mfd/wm8994-core.c-271-\t\tfor (i = 0; i \u003c ARRAY_SIZE(pdata-\u003egpio_defaults); i++) {\ndrivers/mfd/wm8994-core.c:272:\t\t\tif (wm8994-\u003epdata.gpio_defaults[i] == 0)\ndrivers/mfd/wm8994-core.c-273-\t\t\t\tpdata-\u003egpio_defaults[i]\n--\ndrivers/mfd/wm8994-core.c-293-#else\ndrivers/mfd/wm8994-core.c:294:static int wm8994_set_pdata_from_of(struct wm8994 *wm8994)\ndrivers/mfd/wm8994-core.c-295-{\n--\ndrivers/mfd/wm8994-core.c-302- */\ndrivers/mfd/wm8994-core.c:303:static int wm8994_device_init(struct wm8994 *wm8994, int irq)\ndrivers/mfd/wm8994-core.c-304-{\ndrivers/mfd/wm8994-core.c:305:\tstruct wm8994_pdata *pdata;\ndrivers/mfd/wm8994-core.c-306-\tstruct regmap_config *regmap_config;\n--\ndrivers/mfd/wm8994-core.c-311-\ndrivers/mfd/wm8994-core.c:312:\tif (dev_get_platdata(wm8994-\u003edev)) {\ndrivers/mfd/wm8994-core.c:313:\t\tpdata = dev_get_platdata(wm8994-\u003edev);\ndrivers/mfd/wm8994-core.c:314:\t\twm8994-\u003epdata = *pdata;\ndrivers/mfd/wm8994-core.c-315-\t}\ndrivers/mfd/wm8994-core.c:316:\tpdata = \u0026wm8994-\u003epdata;\ndrivers/mfd/wm8994-core.c-317-\ndrivers/mfd/wm8994-core.c:318:\tret = wm8994_set_pdata_from_of(wm8994);\ndrivers/mfd/wm8994-core.c-319-\tif (ret != 0)\n--\ndrivers/mfd/wm8994-core.c-322-\t/* Add the on-chip regulators first for bootstrapping */\ndrivers/mfd/wm8994-core.c:323:\tret = mfd_add_devices(wm8994-\u003edev, 0,\ndrivers/mfd/wm8994-core.c:324:\t\t\t wm8994_regulator_devs,\ndrivers/mfd/wm8994-core.c:325:\t\t\t ARRAY_SIZE(wm8994_regulator_devs),\ndrivers/mfd/wm8994-core.c-326-\t\t\t NULL, 0, NULL);\ndrivers/mfd/wm8994-core.c-327-\tif (ret != 0) {\ndrivers/mfd/wm8994-core.c:328:\t\tdev_err(wm8994-\u003edev, \"Failed to add children: %d\\n\", ret);\ndrivers/mfd/wm8994-core.c-329-\t\tgoto err;\n--\ndrivers/mfd/wm8994-core.c-331-\ndrivers/mfd/wm8994-core.c:332:\tswitch (wm8994-\u003etype) {\ndrivers/mfd/wm8994-core.c-333-\tcase WM1811:\ndrivers/mfd/wm8994-core.c:334:\t\twm8994-\u003enum_supplies = ARRAY_SIZE(wm1811_main_supplies);\ndrivers/mfd/wm8994-core.c-335-\t\tbreak;\ndrivers/mfd/wm8994-core.c-336-\tcase WM8994:\ndrivers/mfd/wm8994-core.c:337:\t\twm8994-\u003enum_supplies = ARRAY_SIZE(wm8994_main_supplies);\ndrivers/mfd/wm8994-core.c-338-\t\tbreak;\ndrivers/mfd/wm8994-core.c-339-\tcase WM8958:\ndrivers/mfd/wm8994-core.c:340:\t\twm8994-\u003enum_supplies = ARRAY_SIZE(wm8958_main_supplies);\ndrivers/mfd/wm8994-core.c-341-\t\tbreak;\n--\ndrivers/mfd/wm8994-core.c-346-\ndrivers/mfd/wm8994-core.c:347:\twm8994-\u003esupplies = devm_kcalloc(wm8994-\u003edev,\ndrivers/mfd/wm8994-core.c:348:\t\t\t\t\twm8994-\u003enum_supplies,\ndrivers/mfd/wm8994-core.c-349-\t\t\t\t\tsizeof(struct regulator_bulk_data),\ndrivers/mfd/wm8994-core.c-350-\t\t\t\t\tGFP_KERNEL);\ndrivers/mfd/wm8994-core.c:351:\tif (!wm8994-\u003esupplies) {\ndrivers/mfd/wm8994-core.c-352-\t\tret = -ENOMEM;\n--\ndrivers/mfd/wm8994-core.c-355-\ndrivers/mfd/wm8994-core.c:356:\tswitch (wm8994-\u003etype) {\ndrivers/mfd/wm8994-core.c-357-\tcase WM1811:\ndrivers/mfd/wm8994-core.c-358-\t\tfor (i = 0; i \u003c ARRAY_SIZE(wm1811_main_supplies); i++)\ndrivers/mfd/wm8994-core.c:359:\t\t\twm8994-\u003esupplies[i].supply = wm1811_main_supplies[i];\ndrivers/mfd/wm8994-core.c-360-\t\tbreak;\ndrivers/mfd/wm8994-core.c-361-\tcase WM8994:\ndrivers/mfd/wm8994-core.c:362:\t\tfor (i = 0; i \u003c ARRAY_SIZE(wm8994_main_supplies); i++)\ndrivers/mfd/wm8994-core.c:363:\t\t\twm8994-\u003esupplies[i].supply = wm8994_main_supplies[i];\ndrivers/mfd/wm8994-core.c-364-\t\tbreak;\n--\ndrivers/mfd/wm8994-core.c-366-\t\tfor (i = 0; i \u003c ARRAY_SIZE(wm8958_main_supplies); i++)\ndrivers/mfd/wm8994-core.c:367:\t\t\twm8994-\u003esupplies[i].supply = wm8958_main_supplies[i];\ndrivers/mfd/wm8994-core.c-368-\t\tbreak;\n--\ndrivers/mfd/wm8994-core.c-375-\t * Can't use devres helper here as some of the supplies are provided by\ndrivers/mfd/wm8994-core.c:376:\t * wm8994-\u003edev's children (regulators) and those regulators are\ndrivers/mfd/wm8994-core.c-377-\t * unregistered by the devres core before the supplies are freed.\ndrivers/mfd/wm8994-core.c-378-\t */\ndrivers/mfd/wm8994-core.c:379:\tret = regulator_bulk_get(wm8994-\u003edev, wm8994-\u003enum_supplies,\ndrivers/mfd/wm8994-core.c:380:\t\t\t\t wm8994-\u003esupplies);\ndrivers/mfd/wm8994-core.c-381-\tif (ret != 0) {\ndrivers/mfd/wm8994-core.c-382-\t\tif (ret != -EPROBE_DEFER)\ndrivers/mfd/wm8994-core.c:383:\t\t\tdev_err(wm8994-\u003edev, \"Failed to get supplies: %d\\n\",\ndrivers/mfd/wm8994-core.c-384-\t\t\t\tret);\n--\ndrivers/mfd/wm8994-core.c-387-\ndrivers/mfd/wm8994-core.c:388:\tret = regulator_bulk_enable(wm8994-\u003enum_supplies, wm8994-\u003esupplies);\ndrivers/mfd/wm8994-core.c-389-\tif (ret != 0) {\ndrivers/mfd/wm8994-core.c:390:\t\tdev_err(wm8994-\u003edev, \"Failed to enable supplies: %d\\n\", ret);\ndrivers/mfd/wm8994-core.c-391-\t\tgoto err_regulator_free;\n--\ndrivers/mfd/wm8994-core.c-393-\ndrivers/mfd/wm8994-core.c:394:\tret = wm8994_reg_read(wm8994, WM8994_SOFTWARE_RESET);\ndrivers/mfd/wm8994-core.c-395-\tif (ret \u003c 0) {\ndrivers/mfd/wm8994-core.c:396:\t\tdev_err(wm8994-\u003edev, \"Failed to read ID register\\n\");\ndrivers/mfd/wm8994-core.c-397-\t\tgoto err_enable;\n--\ndrivers/mfd/wm8994-core.c-401-\t\tdevname = \"WM1811\";\ndrivers/mfd/wm8994-core.c:402:\t\tif (wm8994-\u003etype != WM1811)\ndrivers/mfd/wm8994-core.c:403:\t\t\tdev_warn(wm8994-\u003edev, \"Device registered as type %d\\n\",\ndrivers/mfd/wm8994-core.c:404:\t\t\t\t wm8994-\u003etype);\ndrivers/mfd/wm8994-core.c:405:\t\twm8994-\u003etype = WM1811;\ndrivers/mfd/wm8994-core.c-406-\t\tbreak;\n--\ndrivers/mfd/wm8994-core.c-408-\t\tdevname = \"WM8994\";\ndrivers/mfd/wm8994-core.c:409:\t\tif (wm8994-\u003etype != WM8994)\ndrivers/mfd/wm8994-core.c:410:\t\t\tdev_warn(wm8994-\u003edev, \"Device registered as type %d\\n\",\ndrivers/mfd/wm8994-core.c:411:\t\t\t\t wm8994-\u003etype);\ndrivers/mfd/wm8994-core.c:412:\t\twm8994-\u003etype = WM8994;\ndrivers/mfd/wm8994-core.c-413-\t\tbreak;\n--\ndrivers/mfd/wm8994-core.c-415-\t\tdevname = \"WM8958\";\ndrivers/mfd/wm8994-core.c:416:\t\tif (wm8994-\u003etype != WM8958)\ndrivers/mfd/wm8994-core.c:417:\t\t\tdev_warn(wm8994-\u003edev, \"Device registered as type %d\\n\",\ndrivers/mfd/wm8994-core.c:418:\t\t\t\t wm8994-\u003etype);\ndrivers/mfd/wm8994-core.c:419:\t\twm8994-\u003etype = WM8958;\ndrivers/mfd/wm8994-core.c-420-\t\tbreak;\ndrivers/mfd/wm8994-core.c-421-\tdefault:\ndrivers/mfd/wm8994-core.c:422:\t\tdev_err(wm8994-\u003edev, \"Device is not a WM8994, ID is %x\\n\",\ndrivers/mfd/wm8994-core.c-423-\t\t\tret);\n--\ndrivers/mfd/wm8994-core.c-427-\ndrivers/mfd/wm8994-core.c:428:\tret = wm8994_reg_read(wm8994, WM8994_CHIP_REVISION);\ndrivers/mfd/wm8994-core.c-429-\tif (ret \u003c 0) {\ndrivers/mfd/wm8994-core.c:430:\t\tdev_err(wm8994-\u003edev, \"Failed to read revision register: %d\\n\",\ndrivers/mfd/wm8994-core.c-431-\t\t\tret);\n--\ndrivers/mfd/wm8994-core.c-433-\t}\ndrivers/mfd/wm8994-core.c:434:\twm8994-\u003erevision = ret \u0026 WM8994_CHIP_REV_MASK;\ndrivers/mfd/wm8994-core.c:435:\twm8994-\u003ecust_id = (ret \u0026 WM8994_CUST_ID_MASK) \u003e\u003e WM8994_CUST_ID_SHIFT;\ndrivers/mfd/wm8994-core.c-436-\ndrivers/mfd/wm8994-core.c:437:\tswitch (wm8994-\u003etype) {\ndrivers/mfd/wm8994-core.c-438-\tcase WM8994:\ndrivers/mfd/wm8994-core.c:439:\t\tswitch (wm8994-\u003erevision) {\ndrivers/mfd/wm8994-core.c-440-\t\tcase 0:\ndrivers/mfd/wm8994-core.c-441-\t\tcase 1:\ndrivers/mfd/wm8994-core.c:442:\t\t\tdev_warn(wm8994-\u003edev,\ndrivers/mfd/wm8994-core.c-443-\t\t\t\t \"revision %c not fully supported\\n\",\ndrivers/mfd/wm8994-core.c:444:\t\t\t\t 'A' + wm8994-\u003erevision);\ndrivers/mfd/wm8994-core.c-445-\t\t\tbreak;\n--\ndrivers/mfd/wm8994-core.c-448-\t\tdefault:\ndrivers/mfd/wm8994-core.c:449:\t\t\tregmap_patch = wm8994_revc_patch;\ndrivers/mfd/wm8994-core.c:450:\t\t\tpatch_regs = ARRAY_SIZE(wm8994_revc_patch);\ndrivers/mfd/wm8994-core.c-451-\t\t\tbreak;\n--\ndrivers/mfd/wm8994-core.c-455-\tcase WM8958:\ndrivers/mfd/wm8994-core.c:456:\t\tswitch (wm8994-\u003erevision) {\ndrivers/mfd/wm8994-core.c-457-\t\tcase 0:\n--\ndrivers/mfd/wm8994-core.c-467-\t\t/* Revision C did not change the relevant layer */\ndrivers/mfd/wm8994-core.c:468:\t\tif (wm8994-\u003erevision \u003e 1)\ndrivers/mfd/wm8994-core.c:469:\t\t\twm8994-\u003erevision++;\ndrivers/mfd/wm8994-core.c-470-\n--\ndrivers/mfd/wm8994-core.c-478-\ndrivers/mfd/wm8994-core.c:479:\tdev_info(wm8994-\u003edev, \"%s revision %c CUST_ID %02x\\n\", devname,\ndrivers/mfd/wm8994-core.c:480:\t\t 'A' + wm8994-\u003erevision, wm8994-\u003ecust_id);\ndrivers/mfd/wm8994-core.c-481-\ndrivers/mfd/wm8994-core.c:482:\tswitch (wm8994-\u003etype) {\ndrivers/mfd/wm8994-core.c-483-\tcase WM1811:\n--\ndrivers/mfd/wm8994-core.c-486-\tcase WM8994:\ndrivers/mfd/wm8994-core.c:487:\t\tregmap_config = \u0026wm8994_regmap_config;\ndrivers/mfd/wm8994-core.c-488-\t\tbreak;\n--\ndrivers/mfd/wm8994-core.c-492-\tdefault:\ndrivers/mfd/wm8994-core.c:493:\t\tdev_err(wm8994-\u003edev, \"Unknown device type %d\\n\", wm8994-\u003etype);\ndrivers/mfd/wm8994-core.c-494-\t\tret = -EINVAL;\n--\ndrivers/mfd/wm8994-core.c-497-\ndrivers/mfd/wm8994-core.c:498:\tret = regmap_reinit_cache(wm8994-\u003eregmap, regmap_config);\ndrivers/mfd/wm8994-core.c-499-\tif (ret != 0) {\ndrivers/mfd/wm8994-core.c:500:\t\tdev_err(wm8994-\u003edev, \"Failed to reinit register cache: %d\\n\",\ndrivers/mfd/wm8994-core.c-501-\t\t\tret);\n--\ndrivers/mfd/wm8994-core.c-508-\t */\ndrivers/mfd/wm8994-core.c:509:\tret = wm8994_reg_write(wm8994, WM8994_SOFTWARE_RESET,\ndrivers/mfd/wm8994-core.c:510:\t\t\t wm8994_reg_read(wm8994, WM8994_SOFTWARE_RESET));\ndrivers/mfd/wm8994-core.c-511-\tif (ret != 0) {\ndrivers/mfd/wm8994-core.c:512:\t\tdev_err(wm8994-\u003edev, \"Failed to reset device: %d\\n\", ret);\ndrivers/mfd/wm8994-core.c-513-\t\tgoto err_enable;\n--\ndrivers/mfd/wm8994-core.c-516-\tif (regmap_patch) {\ndrivers/mfd/wm8994-core.c:517:\t\tret = regmap_register_patch(wm8994-\u003eregmap, regmap_patch,\ndrivers/mfd/wm8994-core.c-518-\t\t\t\t\t patch_regs);\ndrivers/mfd/wm8994-core.c-519-\t\tif (ret != 0) {\ndrivers/mfd/wm8994-core.c:520:\t\t\tdev_err(wm8994-\u003edev, \"Failed to register patch: %d\\n\",\ndrivers/mfd/wm8994-core.c-521-\t\t\t\tret);\n--\ndrivers/mfd/wm8994-core.c-525-\ndrivers/mfd/wm8994-core.c:526:\twm8994-\u003eirq_base = pdata-\u003eirq_base;\ndrivers/mfd/wm8994-core.c:527:\twm8994-\u003egpio_base = pdata-\u003egpio_base;\ndrivers/mfd/wm8994-core.c-528-\n--\ndrivers/mfd/wm8994-core.c-531-\t\tif (pdata-\u003egpio_defaults[i]) {\ndrivers/mfd/wm8994-core.c:532:\t\t\twm8994_set_bits(wm8994, WM8994_GPIO_1 + i,\ndrivers/mfd/wm8994-core.c-533-\t\t\t\t\t0xffff, pdata-\u003egpio_defaults[i]);\n--\ndrivers/mfd/wm8994-core.c-536-\ndrivers/mfd/wm8994-core.c:537:\twm8994-\u003eldo_ena_always_driven = pdata-\u003eldo_ena_always_driven;\ndrivers/mfd/wm8994-core.c-538-\n--\ndrivers/mfd/wm8994-core.c-544-\t/* Disable unneeded pulls */\ndrivers/mfd/wm8994-core.c:545:\twm8994_set_bits(wm8994, WM8994_PULL_CONTROL_2,\ndrivers/mfd/wm8994-core.c-546-\t\t\tWM8994_LDO1ENA_PD | WM8994_LDO2ENA_PD |\n--\ndrivers/mfd/wm8994-core.c-556-\tfor (i = 0; i \u003c WM8994_NUM_LDO_REGS; i++) {\ndrivers/mfd/wm8994-core.c:557:\t\tif (wm8994_ldo_in_use(pdata, i))\ndrivers/mfd/wm8994-core.c:558:\t\t\twm8994_set_bits(wm8994, WM8994_LDO_1 + i,\ndrivers/mfd/wm8994-core.c-559-\t\t\t\t\tWM8994_LDO1_DISCH, WM8994_LDO1_DISCH);\ndrivers/mfd/wm8994-core.c-560-\t\telse\ndrivers/mfd/wm8994-core.c:561:\t\t\twm8994_set_bits(wm8994, WM8994_LDO_1 + i,\ndrivers/mfd/wm8994-core.c-562-\t\t\t\t\tWM8994_LDO1_DISCH, 0);\n--\ndrivers/mfd/wm8994-core.c-564-\ndrivers/mfd/wm8994-core.c:565:\twm8994_irq_init(wm8994);\ndrivers/mfd/wm8994-core.c-566-\ndrivers/mfd/wm8994-core.c:567:\tret = mfd_add_devices(wm8994-\u003edev, -1,\ndrivers/mfd/wm8994-core.c:568:\t\t\t wm8994_devs, ARRAY_SIZE(wm8994_devs),\ndrivers/mfd/wm8994-core.c-569-\t\t\t NULL, 0, NULL);\ndrivers/mfd/wm8994-core.c-570-\tif (ret != 0) {\ndrivers/mfd/wm8994-core.c:571:\t\tdev_err(wm8994-\u003edev, \"Failed to add children: %d\\n\", ret);\ndrivers/mfd/wm8994-core.c-572-\t\tgoto err_irq;\n--\ndrivers/mfd/wm8994-core.c-574-\ndrivers/mfd/wm8994-core.c:575:\tpm_runtime_set_active(wm8994-\u003edev);\ndrivers/mfd/wm8994-core.c:576:\tpm_runtime_enable(wm8994-\u003edev);\ndrivers/mfd/wm8994-core.c:577:\tpm_runtime_idle(wm8994-\u003edev);\ndrivers/mfd/wm8994-core.c-578-\n--\ndrivers/mfd/wm8994-core.c-581-err_irq:\ndrivers/mfd/wm8994-core.c:582:\twm8994_irq_exit(wm8994);\ndrivers/mfd/wm8994-core.c-583-err_enable:\ndrivers/mfd/wm8994-core.c:584:\tregulator_bulk_disable(wm8994-\u003enum_supplies,\ndrivers/mfd/wm8994-core.c:585:\t\t\t wm8994-\u003esupplies);\ndrivers/mfd/wm8994-core.c-586-err_regulator_free:\ndrivers/mfd/wm8994-core.c:587:\tregulator_bulk_free(wm8994-\u003enum_supplies, wm8994-\u003esupplies);\ndrivers/mfd/wm8994-core.c-588-err:\ndrivers/mfd/wm8994-core.c:589:\tmfd_remove_devices(wm8994-\u003edev);\ndrivers/mfd/wm8994-core.c-590-\treturn ret;\n--\ndrivers/mfd/wm8994-core.c-592-\ndrivers/mfd/wm8994-core.c:593:static void wm8994_device_exit(struct wm8994 *wm8994)\ndrivers/mfd/wm8994-core.c-594-{\ndrivers/mfd/wm8994-core.c:595:\tpm_runtime_get_sync(wm8994-\u003edev);\ndrivers/mfd/wm8994-core.c:596:\tpm_runtime_disable(wm8994-\u003edev);\ndrivers/mfd/wm8994-core.c:597:\tpm_runtime_put_noidle(wm8994-\u003edev);\ndrivers/mfd/wm8994-core.c:598:\twm8994_irq_exit(wm8994);\ndrivers/mfd/wm8994-core.c:599:\tregulator_bulk_disable(wm8994-\u003enum_supplies, wm8994-\u003esupplies);\ndrivers/mfd/wm8994-core.c:600:\tregulator_bulk_free(wm8994-\u003enum_supplies, wm8994-\u003esupplies);\ndrivers/mfd/wm8994-core.c:601:\tmfd_remove_devices(wm8994-\u003edev);\ndrivers/mfd/wm8994-core.c-602-}\ndrivers/mfd/wm8994-core.c-603-\ndrivers/mfd/wm8994-core.c:604:static const struct of_device_id wm8994_of_match[] = {\ndrivers/mfd/wm8994-core.c-605-\t{ .compatible = \"wlf,wm1811\", .data = (void *)WM1811 },\ndrivers/mfd/wm8994-core.c:606:\t{ .compatible = \"wlf,wm8994\", .data = (void *)WM8994 },\ndrivers/mfd/wm8994-core.c-607-\t{ .compatible = \"wlf,wm8958\", .data = (void *)WM8958 },\n--\ndrivers/mfd/wm8994-core.c-609-};\ndrivers/mfd/wm8994-core.c:610:MODULE_DEVICE_TABLE(of, wm8994_of_match);\ndrivers/mfd/wm8994-core.c-611-\ndrivers/mfd/wm8994-core.c:612:static int wm8994_i2c_probe(struct i2c_client *i2c)\ndrivers/mfd/wm8994-core.c-613-{\ndrivers/mfd/wm8994-core.c:614:\tstruct wm8994 *wm8994;\ndrivers/mfd/wm8994-core.c-615-\tint ret;\ndrivers/mfd/wm8994-core.c-616-\ndrivers/mfd/wm8994-core.c:617:\twm8994 = devm_kzalloc(\u0026i2c-\u003edev, sizeof(struct wm8994), GFP_KERNEL);\ndrivers/mfd/wm8994-core.c:618:\tif (wm8994 == NULL)\ndrivers/mfd/wm8994-core.c-619-\t\treturn -ENOMEM;\ndrivers/mfd/wm8994-core.c-620-\ndrivers/mfd/wm8994-core.c:621:\ti2c_set_clientdata(i2c, wm8994);\ndrivers/mfd/wm8994-core.c:622:\twm8994-\u003edev = \u0026i2c-\u003edev;\ndrivers/mfd/wm8994-core.c:623:\twm8994-\u003eirq = i2c-\u003eirq;\ndrivers/mfd/wm8994-core.c-624-\ndrivers/mfd/wm8994-core.c:625:\twm8994-\u003etype = (kernel_ulong_t)i2c_get_match_data(i2c);\ndrivers/mfd/wm8994-core.c-626-\ndrivers/mfd/wm8994-core.c:627:\twm8994-\u003eregmap = devm_regmap_init_i2c(i2c, \u0026wm8994_base_regmap_config);\ndrivers/mfd/wm8994-core.c:628:\tif (IS_ERR(wm8994-\u003eregmap)) {\ndrivers/mfd/wm8994-core.c:629:\t\tret = PTR_ERR(wm8994-\u003eregmap);\ndrivers/mfd/wm8994-core.c:630:\t\tdev_err(wm8994-\u003edev, \"Failed to allocate register map: %d\\n\",\ndrivers/mfd/wm8994-core.c-631-\t\t\tret);\n--\ndrivers/mfd/wm8994-core.c-634-\ndrivers/mfd/wm8994-core.c:635:\treturn wm8994_device_init(wm8994, i2c-\u003eirq);\ndrivers/mfd/wm8994-core.c-636-}\ndrivers/mfd/wm8994-core.c-637-\ndrivers/mfd/wm8994-core.c:638:static void wm8994_i2c_remove(struct i2c_client *i2c)\ndrivers/mfd/wm8994-core.c-639-{\ndrivers/mfd/wm8994-core.c:640:\tstruct wm8994 *wm8994 = i2c_get_clientdata(i2c);\ndrivers/mfd/wm8994-core.c-641-\ndrivers/mfd/wm8994-core.c:642:\twm8994_device_exit(wm8994);\ndrivers/mfd/wm8994-core.c-643-}\ndrivers/mfd/wm8994-core.c-644-\ndrivers/mfd/wm8994-core.c:645:static const struct i2c_device_id wm8994_i2c_id[] = {\ndrivers/mfd/wm8994-core.c-646-\t{ \"wm1811\", WM1811 },\ndrivers/mfd/wm8994-core.c-647-\t{ \"wm1811a\", WM1811 },\ndrivers/mfd/wm8994-core.c:648:\t{ \"wm8994\", WM8994 },\ndrivers/mfd/wm8994-core.c-649-\t{ \"wm8958\", WM8958 },\n--\ndrivers/mfd/wm8994-core.c-651-};\ndrivers/mfd/wm8994-core.c:652:MODULE_DEVICE_TABLE(i2c, wm8994_i2c_id);\ndrivers/mfd/wm8994-core.c-653-\ndrivers/mfd/wm8994-core.c:654:static const struct dev_pm_ops wm8994_pm_ops = {\ndrivers/mfd/wm8994-core.c:655:\tRUNTIME_PM_OPS(wm8994_suspend, wm8994_resume, NULL)\ndrivers/mfd/wm8994-core.c-656-};\ndrivers/mfd/wm8994-core.c-657-\ndrivers/mfd/wm8994-core.c:658:static struct i2c_driver wm8994_i2c_driver = {\ndrivers/mfd/wm8994-core.c-659-\t.driver = {\ndrivers/mfd/wm8994-core.c:660:\t\t.name = \"wm8994\",\ndrivers/mfd/wm8994-core.c:661:\t\t.pm = pm_ptr(\u0026wm8994_pm_ops),\ndrivers/mfd/wm8994-core.c:662:\t\t.of_match_table = wm8994_of_match,\ndrivers/mfd/wm8994-core.c-663-\t},\ndrivers/mfd/wm8994-core.c:664:\t.probe = wm8994_i2c_probe,\ndrivers/mfd/wm8994-core.c:665:\t.remove = wm8994_i2c_remove,\ndrivers/mfd/wm8994-core.c:666:\t.id_table = wm8994_i2c_id,\ndrivers/mfd/wm8994-core.c-667-};\ndrivers/mfd/wm8994-core.c-668-\ndrivers/mfd/wm8994-core.c:669:module_i2c_driver(wm8994_i2c_driver);\ndrivers/mfd/wm8994-core.c-670-\n--\ndrivers/mfd/wm8994-core.c=673=MODULE_AUTHOR(\"Mark Brown \u003cbroonie@opensource.wolfsonmicro.com\u003e\");\ndrivers/mfd/wm8994-core.c:674:MODULE_SOFTDEP(\"pre: wm8994_regulator\");\n--\ndrivers/mfd/wm8994-irq.c-2-/*\ndrivers/mfd/wm8994-irq.c:3: * wm8994-irq.c -- Interrupt controller support for Wolfson WM8994\ndrivers/mfd/wm8994-irq.c-4- *\n--\ndrivers/mfd/wm8994-irq.c-19-\ndrivers/mfd/wm8994-irq.c:20:#include \u003clinux/mfd/wm8994/core.h\u003e\ndrivers/mfd/wm8994-irq.c:21:#include \u003clinux/mfd/wm8994/pdata.h\u003e\ndrivers/mfd/wm8994-irq.c:22:#include \u003clinux/mfd/wm8994/registers.h\u003e\ndrivers/mfd/wm8994-irq.c-23-\n--\ndrivers/mfd/wm8994-irq.c-25-\ndrivers/mfd/wm8994-irq.c:26:static const struct regmap_irq wm8994_irqs[] = {\ndrivers/mfd/wm8994-irq.c-27-\t[WM8994_IRQ_TEMP_SHUT] = {\n--\ndrivers/mfd/wm8994-irq.c-125-\ndrivers/mfd/wm8994-irq.c:126:static const struct regmap_irq_chip wm8994_irq_chip = {\ndrivers/mfd/wm8994-irq.c:127:\t.name = \"wm8994\",\ndrivers/mfd/wm8994-irq.c:128:\t.irqs = wm8994_irqs,\ndrivers/mfd/wm8994-irq.c:129:\t.num_irqs = ARRAY_SIZE(wm8994_irqs),\ndrivers/mfd/wm8994-irq.c-130-\n--\ndrivers/mfd/wm8994-irq.c-137-\ndrivers/mfd/wm8994-irq.c:138:int wm8994_irq_init(struct wm8994 *wm8994)\ndrivers/mfd/wm8994-irq.c-139-{\n--\ndrivers/mfd/wm8994-irq.c-141-\ndrivers/mfd/wm8994-irq.c:142:\tif (!wm8994-\u003eirq) {\ndrivers/mfd/wm8994-irq.c:143:\t\tdev_warn(wm8994-\u003edev,\ndrivers/mfd/wm8994-irq.c-144-\t\t\t \"No interrupt specified, no interrupts\\n\");\ndrivers/mfd/wm8994-irq.c:145:\t\twm8994-\u003eirq_base = 0;\ndrivers/mfd/wm8994-irq.c-146-\t\treturn 0;\n--\n\n"
} |
| 21/2 | 2026/09/17 17:50 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 43632 output: 37 thoughts: 120 Thoughts: **Analyzing the WM8994 Driver and its Implications for Virtualized Testing** Okay, let's break this down. I'm looking at `wm8994`. Right, it's an I2C device, handled by the `wm8994_i2c_driver`. The key is how it registers those child devices using the MFD framework. We've got `wm8994-codec`, `wm8994-gpio`, and `wm8994-ldo` – standard setup. My immediate thought is about testability. Can I reliably probe and interact with this I2C device and its children within a standard virtualized environment, or even, more importantly, in a fuzzing setup? That's the real challenge. Virtualization can sometimes make direct hardware interaction problematic. Then, the next crucial step. What kind of systems actually *use* the WM8994? I need to understand the typical target platforms to gauge the practical relevance of these tests. Time to hit the Kconfig files. I'll search for "WM8994" and "SND_SOC_WM8994" to get a list of the machines that it's likely found in. Hopefully, that gives me a better idea of what to expect and what I'm dealing with. |
| 22/2 | 2026/09/17 17:51 | tool | grepper |
0mArgs:{
"Expression": "SND_SOC_WM8994",
"PathPrefix": "sound/soc/codecs/"
}Results: {
"Output": "sound/soc/codecs/Kconfig=14=config SND_SOC_ALL_CODECS\n--\nsound/soc/codecs/Kconfig-356-\timply SND_SOC_WM8993\nsound/soc/codecs/Kconfig:357:\timply SND_SOC_WM8994\nsound/soc/codecs/Kconfig-358-\timply SND_SOC_WM8995\n--\nsound/soc/codecs/Kconfig=399=config SND_SOC_WM_HUBS\nsound/soc/codecs/Kconfig-400-\ttristate\nsound/soc/codecs/Kconfig:401:\tdefault y if SND_SOC_WM8993=y || SND_SOC_WM8994=y\nsound/soc/codecs/Kconfig:402:\tdefault m if SND_SOC_WM8993=m || SND_SOC_WM8994=m\nsound/soc/codecs/Kconfig-403-\n--\nsound/soc/codecs/Kconfig=2699=config SND_SOC_WM8993\n--\nsound/soc/codecs/Kconfig-2702-\nsound/soc/codecs/Kconfig:2703:config SND_SOC_WM8994\nsound/soc/codecs/Kconfig-2704-\ttristate\n--\nsound/soc/codecs/Makefile=863=obj-$(CONFIG_SND_SOC_WM8993)\t+= snd-soc-wm8993.o\nsound/soc/codecs/Makefile:864:obj-$(CONFIG_SND_SOC_WM8994)\t+= snd-soc-wm8994.o\nsound/soc/codecs/Makefile-865-obj-$(CONFIG_SND_SOC_WM8995)\t+= snd-soc-wm8995.o\n--\nsound/soc/codecs/wm8994.c=3638=static irqreturn_t wm8994_mic_irq(int irq, void *data)\n--\nsound/soc/codecs/wm8994.c-3642-\nsound/soc/codecs/wm8994.c:3643:#ifndef CONFIG_SND_SOC_WM8994_MODULE\nsound/soc/codecs/wm8994.c-3644-\ttrace_snd_soc_jack_irq(dev_name(component-\u003edev));\n--\nsound/soc/codecs/wm8994.c=4040=static irqreturn_t wm8958_mic_irq(int irq, void *data)\n--\nsound/soc/codecs/wm8994.c-4086-\nsound/soc/codecs/wm8994.c:4087:#ifndef CONFIG_SND_SOC_WM8994_MODULE\nsound/soc/codecs/wm8994.c-4088-\ttrace_snd_soc_jack_irq(dev_name(component-\u003edev));\n"
} |
| 23/2 | 2026/09/17 17:51 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 44858 output: 24 thoughts: 16 Thoughts: Okay, here's my interpretation of that thought process, tailored for an expert audience, and written in the first person: **Initial Assessment of SND_SOC_WM8994 Selection** Right, so, someone's considering using SND_SOC_WM8994, which immediately sparks a few considerations. It's a specific, vendor-identified codec, so the selection implies several things. My mind jumps to the likely application – is this for an embedded system, perhaps a mobile device, or maybe something in the consumer audio space? The "_SOC_" prefix suggests it’s tightly integrated with a System-on-Chip (SoC), which dictates a specific hardware architecture and associated constraints. I'm instantly wondering about the selection criteria that led to this choice. What were the performance requirements? Did they prioritize power efficiency, given that WM8994 is known for its low power consumption in some configurations? Or was it more about cost, as this codec often falls into a price-conscious category? The feature set itself is telling. This chip can do a lot, and it would be good to understand what the most important feature that made someone choose it is. The choice dictates the need to assess the accompanying software support. Are we talking about a standard ALSA driver? Or are we dealing with a custom driver provided by the SoC vendor? What kernel version is in play? Are there any known errata with this chip and that particular driver/kernel combination that I should know about? Firmware requirements come to mind – are we talking about any specific DSP microcode loading? Ultimately, my thought process zeroes in on the implications of this codec selection on the overall system design. The audio quality targets are important. What’s the expected SNR? What are the distortion specs? What about the sampling rates, number of channels, and the I2S/PCM interface details? And beyond the obvious audio aspects, is there any integration with other system components, such as power management, microphone arrays, or speaker amplifiers? I'm already formulating questions to understand the full system context. |
| 24/2 | 2026/09/17 17:51 | tool | grepper |
0mArgs:{
"Expression": "select SND_SOC_WM8994"
}Results: {
"Output": "sound/soc/fsl/Kconfig=310=config SND_SOC_FSL_ASOC_CARD\n--\nsound/soc/fsl/Kconfig-323-\tselect SND_SOC_TLV320AIC31XX\nsound/soc/fsl/Kconfig:324:\tselect SND_SOC_WM8994\nsound/soc/fsl/Kconfig-325-\tselect MFD_WM8994\n--\nsound/soc/samsung/Kconfig=24=config SND_SOC_SAMSUNG_SMDK_WM8994\n--\nsound/soc/samsung/Kconfig-27-\tselect MFD_WM8994\nsound/soc/samsung/Kconfig:28:\tselect SND_SOC_WM8994\nsound/soc/samsung/Kconfig-29-\tselect SND_SAMSUNG_I2S\n--\nsound/soc/samsung/Kconfig=39=config SND_SOC_SMDK_WM8994_PCM\n--\nsound/soc/samsung/Kconfig-42-\tselect MFD_WM8994\nsound/soc/samsung/Kconfig:43:\tselect SND_SOC_WM8994\nsound/soc/samsung/Kconfig-44-\tselect SND_SAMSUNG_PCM\n--\nsound/soc/samsung/Kconfig=84=config SND_SOC_LITTLEMILL\n--\nsound/soc/samsung/Kconfig-89-\tselect MFD_WM8994\nsound/soc/samsung/Kconfig:90:\tselect SND_SOC_WM8994\nsound/soc/samsung/Kconfig-91-\n--\nsound/soc/samsung/Kconfig=110=config SND_SOC_ARNDALE\n--\nsound/soc/samsung/Kconfig-115-\tselect MFD_WM8994\nsound/soc/samsung/Kconfig:116:\tselect SND_SOC_WM8994\nsound/soc/samsung/Kconfig-117-\n--\nsound/soc/samsung/Kconfig=128=config SND_SOC_SAMSUNG_ARIES_WM8994\n--\nsound/soc/samsung/Kconfig-132-\tselect MFD_WM8994\nsound/soc/samsung/Kconfig:133:\tselect SND_SOC_WM8994\nsound/soc/samsung/Kconfig-134-\tselect SND_SAMSUNG_I2S\n--\nsound/soc/samsung/Kconfig=142=config SND_SOC_SAMSUNG_MIDAS_WM1811\n--\nsound/soc/samsung/Kconfig-146-\tselect MFD_WM8994\nsound/soc/samsung/Kconfig:147:\tselect SND_SOC_WM8994\nsound/soc/samsung/Kconfig-148-\thelp\n"
} |
| 25/2 | 2026/09/17 17:51 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 46056 output: 21 thoughts: 1133 Thoughts: **I2C Device Instantiation and Driver Probing Analysis** Okay, so I'm looking at how this WM8994 codec driver works, specifically in the context of instantiating it on a system. My initial thought is that the common use case appears to be on ARM and Samsung platforms. I'm wondering if I can instantiate an I2C device, or platform device, from userspace on an amd64 system, maybe through `i2c-dev`. I can then try instantiating an i2c device using the sysfs `new_device` entry, that would be ideal. Let's see: I've got an I2C bus available (like `i2c-i801`, `i2c-smbus`, or even a dummy bus). If I echo the device name and address into `new_device`, can I trigger the driver? I'm trying to use `echo "wm8994 0x1a" > /sys/bus/i2c/devices/i2c-X/new_device`. Okay, now the core of the question: what happens *after* that `new_device` write, when the `wm8994_i2c_probe` function is called? Let's dissect `drivers/mfd/wm8994-core.c`. I see `devm_kzalloc` is used to allocate the driver private data, and then `i2c_set_clientdata` to store the device context. Importantly, the code then initializes a regmap using `devm_regmap_init_i2c`. This is crucial. Then, inside `wm8994_device_init`, the driver attempts to read the WM8994 ID register with a call to `wm8994_reg_read`. Ah, this is the crux of the problem! `wm8994_reg_read` is going to attempt to *actually* read from the physical I2C chip! If there's no WM8994 attached, or if it isn't responding correctly, I'll get an I/O error (-ENXIO or -EIO). And even if it *did* return a value, the code *expects* a specific chip ID (0x1811, 0x8994, or 0x8958). If it's anything else, the probe will fail with a "Device is not a WM8994" error. That makes sense, the driver is supposed to verify the ID. The `mfd_add_devices` function, which creates the `wm8994-codec` platform device, is never reached. So, even if I *could* get the platform device created, how is the sound core (ASoC) actually activated? I need to figure out how `wm8994_component_probe` gets called. Okay, I see that the `wm8994_probe` (which is the platform driver probe) registers the component with `devm_snd_soc_register_component`. The `soc_component_dev_wm8994.probe` is `wm8994_component_probe`, it's called when an ASoC sound card machine driver binds the component into a card. Got it. But which machine drivers do that? I have to figure out how the `wm8994-codec` device gets linked into a full sound system. Looking at the results of a grep, all of them appear to be targeted to specific ARM or Samsung-based systems: `littlemill.c`, `smdk_wm8994.c`, `smdk_wm8994pcm.c`, `aries_wm8994.c`, `midas_wm1811.c`, and `fsl_asoc_card.c`. So, I'm stuck with those. Is there *any* generic machine driver or x86 machine driver that can bind WM8994? That's what I have to investigate next. Let's do a wider grep across the entire kernel to see what bindings exist. |
| 26/2 | 2026/09/17 17:51 | tool | grepper |
0mArgs:{
"Expression": "wm8994-codec"
}Results: {
"Output": "drivers/mfd/wm8994-core.c=58=static const struct mfd_cell wm8994_devs[] = {\ndrivers/mfd/wm8994-core.c-59-\t{\ndrivers/mfd/wm8994-core.c:60:\t\t.name = \"wm8994-codec\",\ndrivers/mfd/wm8994-core.c-61-\t\t.num_resources = ARRAY_SIZE(wm8994_codec_resources),\n--\nsound/soc/codecs/wm8994.c=4698=static struct platform_driver wm8994_codec_driver = {\nsound/soc/codecs/wm8994.c-4699-\t.driver = {\nsound/soc/codecs/wm8994.c:4700:\t\t.name = \"wm8994-codec\",\nsound/soc/codecs/wm8994.c-4701-\t\t.pm = pm_ptr(\u0026wm8994_pm_ops),\n--\nsound/soc/codecs/wm8994.c=4711=MODULE_LICENSE(\"GPL\");\nsound/soc/codecs/wm8994.c:4712:MODULE_ALIAS(\"platform:wm8994-codec\");\n--\nsound/soc/samsung/littlemill.c=142=SND_SOC_DAILINK_DEFS(cpu,\nsound/soc/samsung/littlemill.c-143-\tDAILINK_COMP_ARRAY(COMP_CPU(\"samsung-i2s.0\")),\nsound/soc/samsung/littlemill.c:144:\tDAILINK_COMP_ARRAY(COMP_CODEC(\"wm8994-codec\", \"wm8994-aif1\")),\nsound/soc/samsung/littlemill.c-145-\tDAILINK_COMP_ARRAY(COMP_PLATFORM(\"samsung-i2s.0\")));\n--\nsound/soc/samsung/smdk_wm8994.c=93=SND_SOC_DAILINK_DEFS(aif1,\nsound/soc/samsung/smdk_wm8994.c-94-\tDAILINK_COMP_ARRAY(COMP_CPU(\"samsung-i2s.0\")),\nsound/soc/samsung/smdk_wm8994.c:95:\tDAILINK_COMP_ARRAY(COMP_CODEC(\"wm8994-codec\", \"wm8994-aif1\")),\nsound/soc/samsung/smdk_wm8994.c-96-\tDAILINK_COMP_ARRAY(COMP_PLATFORM(\"samsung-i2s.0\")));\n--\nsound/soc/samsung/smdk_wm8994.c=98=SND_SOC_DAILINK_DEFS(fifo_tx,\nsound/soc/samsung/smdk_wm8994.c-99-\tDAILINK_COMP_ARRAY(COMP_CPU(\"samsung-i2s-sec\")),\nsound/soc/samsung/smdk_wm8994.c:100:\tDAILINK_COMP_ARRAY(COMP_CODEC(\"wm8994-codec\", \"wm8994-aif1\")),\nsound/soc/samsung/smdk_wm8994.c-101-\tDAILINK_COMP_ARRAY(COMP_PLATFORM(\"samsung-i2s-sec\")));\n--\nsound/soc/samsung/smdk_wm8994pcm.c=92=SND_SOC_DAILINK_DEFS(paif_pcm,\nsound/soc/samsung/smdk_wm8994pcm.c-93-\tDAILINK_COMP_ARRAY(COMP_CPU(\"samsung-pcm.0\")),\nsound/soc/samsung/smdk_wm8994pcm.c:94:\tDAILINK_COMP_ARRAY(COMP_CODEC(\"wm8994-codec\", \"wm8994-aif1\")),\nsound/soc/samsung/smdk_wm8994pcm.c-95-\tDAILINK_COMP_ARRAY(COMP_PLATFORM(\"samsung-pcm.0\")));\n"
} |
| 27/2 | 2026/09/17 17:51 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 49205 output: 41 thoughts: 34 Thoughts: Okay, here's my interpretation of those thoughts, tailored for an expert audience, presented in the first person: **Navigating the Audio Landscape** Alright, time to get my hands dirty. I need to dive into the kernel sources and pinpoint a specific audio codec implementation. Let's see...I'm thinking the likely candidates are either `wm1811`, `wm8994`, or `wm8958`. These are all pretty standard Wolfson/Cirrus Logic parts, so they're solid choices for investigation. I'll need to check the `sound/soc/` directory; that's where I'd expect to find the Sound Open Firmware (SOF) platform support. I'm hoping to quickly identify the specific driver that's been integrated. |
| 28/2 | 2026/09/17 17:51 | tool | grepper |
0mArgs:{
"Expression": "wm8994|wm1811|wm8958",
"PathPrefix": "sound/soc/"
}Results: {
"Output": "\nFull output is too long, showing 500 out of 2962 lines.\nUse more precise expression if possible.\n\nsound/soc/codecs/Makefile=415=snd-soc-wm8993-y := wm8993.o\nsound/soc/codecs/Makefile:416:snd-soc-wm8994-y := wm8994.o wm8958-dsp2.o\nsound/soc/codecs/Makefile-417-snd-soc-wm8995-y := wm8995.o\n--\nsound/soc/codecs/Makefile=863=obj-$(CONFIG_SND_SOC_WM8993)\t+= snd-soc-wm8993.o\nsound/soc/codecs/Makefile:864:obj-$(CONFIG_SND_SOC_WM8994)\t+= snd-soc-wm8994.o\nsound/soc/codecs/Makefile-865-obj-$(CONFIG_SND_SOC_WM8995)\t+= snd-soc-wm8995.o\n--\nsound/soc/codecs/wm8958-dsp2.c-2-/*\nsound/soc/codecs/wm8958-dsp2.c:3: * wm8958-dsp2.c -- WM8958 DSP2 support\nsound/soc/codecs/wm8958-dsp2.c-4- *\n--\nsound/soc/codecs/wm8958-dsp2.c-22-\nsound/soc/codecs/wm8958-dsp2.c:23:#include \u003clinux/mfd/wm8994/core.h\u003e\nsound/soc/codecs/wm8958-dsp2.c:24:#include \u003clinux/mfd/wm8994/registers.h\u003e\nsound/soc/codecs/wm8958-dsp2.c:25:#include \u003clinux/mfd/wm8994/pdata.h\u003e\nsound/soc/codecs/wm8958-dsp2.c:26:#include \u003clinux/mfd/wm8994/gpio.h\u003e\nsound/soc/codecs/wm8958-dsp2.c-27-\n--\nsound/soc/codecs/wm8958-dsp2.c-29-\nsound/soc/codecs/wm8958-dsp2.c:30:#include \"wm8994.h\"\nsound/soc/codecs/wm8958-dsp2.c-31-\n--\nsound/soc/codecs/wm8958-dsp2.c-40-\nsound/soc/codecs/wm8958-dsp2.c:41:static int wm8958_dsp2_fw(struct snd_soc_component *component, const char *name,\nsound/soc/codecs/wm8958-dsp2.c-42-\t\t\t const struct firmware *fw, bool check)\nsound/soc/codecs/wm8958-dsp2.c-43-{\nsound/soc/codecs/wm8958-dsp2.c:44:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-45-\tu64 data64;\n--\nsound/soc/codecs/wm8958-dsp2.c-52-\t/* Suppress unneeded downloads */\nsound/soc/codecs/wm8958-dsp2.c:53:\tif (wm8994-\u003ecur_fw == fw)\nsound/soc/codecs/wm8958-dsp2.c-54-\t\treturn 0;\n--\nsound/soc/codecs/wm8958-dsp2.c-148-\nsound/soc/codecs/wm8958-dsp2.c:149:\t\t\twm8994_bulk_write(wm8994-\u003ewm8994,\nsound/soc/codecs/wm8958-dsp2.c-150-\t\t\t\t\t data32 \u0026 0xffffff,\n--\nsound/soc/codecs/wm8958-dsp2.c-169-\t\tdev_dbg(component-\u003edev, \"%s: download done\\n\", name);\nsound/soc/codecs/wm8958-dsp2.c:170:\t\twm8994-\u003ecur_fw = fw;\nsound/soc/codecs/wm8958-dsp2.c-171-\t} else {\n--\nsound/soc/codecs/wm8958-dsp2.c-187-\nsound/soc/codecs/wm8958-dsp2.c:188:static void wm8958_dsp_start_mbc(struct snd_soc_component *component, int path)\nsound/soc/codecs/wm8958-dsp2.c-189-{\nsound/soc/codecs/wm8958-dsp2.c:190:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c:191:\tstruct wm8994 *control = wm8994-\u003ewm8994;\nsound/soc/codecs/wm8958-dsp2.c-192-\tint i;\n--\nsound/soc/codecs/wm8958-dsp2.c-198-\t/* If we have MBC firmware download it */\nsound/soc/codecs/wm8958-dsp2.c:199:\tif (wm8994-\u003embc)\nsound/soc/codecs/wm8958-dsp2.c:200:\t\twm8958_dsp2_fw(component, \"MBC\", wm8994-\u003embc, false);\nsound/soc/codecs/wm8958-dsp2.c-201-\n--\nsound/soc/codecs/wm8958-dsp2.c-206-\tif (control-\u003epdata.num_mbc_cfgs) {\nsound/soc/codecs/wm8958-dsp2.c:207:\t\tstruct wm8958_mbc_cfg *cfg\nsound/soc/codecs/wm8958-dsp2.c:208:\t\t\t= \u0026control-\u003epdata.mbc_cfgs[wm8994-\u003embc_cfg];\nsound/soc/codecs/wm8958-dsp2.c-209-\n--\nsound/soc/codecs/wm8958-dsp2.c-231-\nsound/soc/codecs/wm8958-dsp2.c:232:static void wm8958_dsp_start_vss(struct snd_soc_component *component, int path)\nsound/soc/codecs/wm8958-dsp2.c-233-{\nsound/soc/codecs/wm8958-dsp2.c:234:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c:235:\tstruct wm8994 *control = wm8994-\u003ewm8994;\nsound/soc/codecs/wm8958-dsp2.c-236-\tint i, ena;\nsound/soc/codecs/wm8958-dsp2.c-237-\nsound/soc/codecs/wm8958-dsp2.c:238:\tif (wm8994-\u003embc_vss)\nsound/soc/codecs/wm8958-dsp2.c:239:\t\twm8958_dsp2_fw(component, \"MBC+VSS\", wm8994-\u003embc_vss, false);\nsound/soc/codecs/wm8958-dsp2.c-240-\n--\nsound/soc/codecs/wm8958-dsp2.c-245-\tif (control-\u003epdata.num_mbc_cfgs) {\nsound/soc/codecs/wm8958-dsp2.c:246:\t\tstruct wm8958_mbc_cfg *cfg\nsound/soc/codecs/wm8958-dsp2.c:247:\t\t\t= \u0026control-\u003epdata.mbc_cfgs[wm8994-\u003embc_cfg];\nsound/soc/codecs/wm8958-dsp2.c-248-\n--\nsound/soc/codecs/wm8958-dsp2.c-254-\tif (control-\u003epdata.num_vss_cfgs) {\nsound/soc/codecs/wm8958-dsp2.c:255:\t\tstruct wm8958_vss_cfg *cfg\nsound/soc/codecs/wm8958-dsp2.c:256:\t\t\t= \u0026control-\u003epdata.vss_cfgs[wm8994-\u003evss_cfg];\nsound/soc/codecs/wm8958-dsp2.c-257-\n--\nsound/soc/codecs/wm8958-dsp2.c-262-\tif (control-\u003epdata.num_vss_hpf_cfgs) {\nsound/soc/codecs/wm8958-dsp2.c:263:\t\tstruct wm8958_vss_hpf_cfg *cfg\nsound/soc/codecs/wm8958-dsp2.c:264:\t\t\t= \u0026control-\u003epdata.vss_hpf_cfgs[wm8994-\u003evss_hpf_cfg];\nsound/soc/codecs/wm8958-dsp2.c-265-\n--\nsound/soc/codecs/wm8958-dsp2.c-275-\tena = 0;\nsound/soc/codecs/wm8958-dsp2.c:276:\tif (wm8994-\u003embc_ena[path])\nsound/soc/codecs/wm8958-dsp2.c-277-\t\tena |= 0x8;\nsound/soc/codecs/wm8958-dsp2.c:278:\tif (wm8994-\u003ehpf2_ena[path])\nsound/soc/codecs/wm8958-dsp2.c-279-\t\tena |= 0x4;\nsound/soc/codecs/wm8958-dsp2.c:280:\tif (wm8994-\u003ehpf1_ena[path])\nsound/soc/codecs/wm8958-dsp2.c-281-\t\tena |= 0x2;\nsound/soc/codecs/wm8958-dsp2.c:282:\tif (wm8994-\u003evss_ena[path])\nsound/soc/codecs/wm8958-dsp2.c-283-\t\tena |= 0x1;\n--\nsound/soc/codecs/wm8958-dsp2.c-292-\nsound/soc/codecs/wm8958-dsp2.c:293:static void wm8958_dsp_start_enh_eq(struct snd_soc_component *component, int path)\nsound/soc/codecs/wm8958-dsp2.c-294-{\nsound/soc/codecs/wm8958-dsp2.c:295:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c:296:\tstruct wm8994 *control = wm8994-\u003ewm8994;\nsound/soc/codecs/wm8958-dsp2.c-297-\tint i;\nsound/soc/codecs/wm8958-dsp2.c-298-\nsound/soc/codecs/wm8958-dsp2.c:299:\twm8958_dsp2_fw(component, \"ENH_EQ\", wm8994-\u003eenh_eq, false);\nsound/soc/codecs/wm8958-dsp2.c-300-\n--\nsound/soc/codecs/wm8958-dsp2.c-305-\tif (control-\u003epdata.num_enh_eq_cfgs) {\nsound/soc/codecs/wm8958-dsp2.c:306:\t\tstruct wm8958_enh_eq_cfg *cfg\nsound/soc/codecs/wm8958-dsp2.c:307:\t\t\t= \u0026control-\u003epdata.enh_eq_cfgs[wm8994-\u003eenh_eq_cfg];\nsound/soc/codecs/wm8958-dsp2.c-308-\n--\nsound/soc/codecs/wm8958-dsp2.c-323-\nsound/soc/codecs/wm8958-dsp2.c:324:static void wm8958_dsp_apply(struct snd_soc_component *component, int path, int start)\nsound/soc/codecs/wm8958-dsp2.c-325-{\nsound/soc/codecs/wm8958-dsp2.c:326:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-327-\tint pwr_reg = snd_soc_component_read(component, WM8994_POWER_MANAGEMENT_5);\n--\nsound/soc/codecs/wm8958-dsp2.c-348-\t/* Do we have both an active AIF and an active algorithm? */\nsound/soc/codecs/wm8958-dsp2.c:349:\tena = wm8994-\u003embc_ena[path] || wm8994-\u003evss_ena[path] ||\nsound/soc/codecs/wm8958-dsp2.c:350:\t\twm8994-\u003ehpf1_ena[path] || wm8994-\u003ehpf2_ena[path] ||\nsound/soc/codecs/wm8958-dsp2.c:351:\t\twm8994-\u003eenh_eq_ena[path];\nsound/soc/codecs/wm8958-dsp2.c-352-\tif (!pwr_reg)\n--\nsound/soc/codecs/wm8958-dsp2.c-357-\tdev_dbg(component-\u003edev, \"DSP path %d %d startup: %d, power: %x, DSP: %x\\n\",\nsound/soc/codecs/wm8958-dsp2.c:358:\t\tpath, wm8994-\u003edsp_active, start, pwr_reg, reg);\nsound/soc/codecs/wm8958-dsp2.c-359-\n--\nsound/soc/codecs/wm8958-dsp2.c-377-\nsound/soc/codecs/wm8958-dsp2.c:378:\t\tif (wm8994-\u003eenh_eq_ena[path])\nsound/soc/codecs/wm8958-dsp2.c:379:\t\t\twm8958_dsp_start_enh_eq(component, path);\nsound/soc/codecs/wm8958-dsp2.c:380:\t\telse if (wm8994-\u003evss_ena[path] || wm8994-\u003ehpf1_ena[path] ||\nsound/soc/codecs/wm8958-dsp2.c:381:\t\t wm8994-\u003ehpf2_ena[path])\nsound/soc/codecs/wm8958-dsp2.c:382:\t\t\twm8958_dsp_start_vss(component, path);\nsound/soc/codecs/wm8958-dsp2.c:383:\t\telse if (wm8994-\u003embc_ena[path])\nsound/soc/codecs/wm8958-dsp2.c:384:\t\t\twm8958_dsp_start_mbc(component, path);\nsound/soc/codecs/wm8958-dsp2.c-385-\nsound/soc/codecs/wm8958-dsp2.c:386:\t\twm8994-\u003edsp_active = path;\nsound/soc/codecs/wm8958-dsp2.c-387-\n--\nsound/soc/codecs/wm8958-dsp2.c-390-\nsound/soc/codecs/wm8958-dsp2.c:391:\tif (!start \u0026\u0026 wm8994-\u003edsp_active == path) {\nsound/soc/codecs/wm8958-dsp2.c-392-\t\t/* If the DSP is already stopped then noop */\n--\nsound/soc/codecs/wm8958-dsp2.c-404-\nsound/soc/codecs/wm8958-dsp2.c:405:\t\twm8994-\u003edsp_active = -1;\nsound/soc/codecs/wm8958-dsp2.c-406-\n--\nsound/soc/codecs/wm8958-dsp2.c-410-\nsound/soc/codecs/wm8958-dsp2.c:411:int wm8958_aif_ev(struct snd_soc_dapm_widget *w,\nsound/soc/codecs/wm8958-dsp2.c-412-\t\t struct snd_kcontrol *kcontrol, int event)\n--\nsound/soc/codecs/wm8958-dsp2.c-414-\tstruct snd_soc_component *component = snd_soc_dapm_to_component(w-\u003edapm);\nsound/soc/codecs/wm8958-dsp2.c:415:\tstruct wm8994 *control = dev_get_drvdata(component-\u003edev-\u003eparent);\nsound/soc/codecs/wm8958-dsp2.c-416-\tint i;\n--\nsound/soc/codecs/wm8958-dsp2.c-424-\t\tfor (i = 0; i \u003c 3; i++)\nsound/soc/codecs/wm8958-dsp2.c:425:\t\t\twm8958_dsp_apply(component, i, 1);\nsound/soc/codecs/wm8958-dsp2.c-426-\t\tbreak;\n--\nsound/soc/codecs/wm8958-dsp2.c-429-\t\tfor (i = 0; i \u003c 3; i++)\nsound/soc/codecs/wm8958-dsp2.c:430:\t\t\twm8958_dsp_apply(component, i, 0);\nsound/soc/codecs/wm8958-dsp2.c-431-\t\tbreak;\n--\nsound/soc/codecs/wm8958-dsp2.c-437-/* Check if DSP2 is in use on another AIF */\nsound/soc/codecs/wm8958-dsp2.c:438:static int wm8958_dsp2_busy(struct wm8994_priv *wm8994, int aif)\nsound/soc/codecs/wm8958-dsp2.c-439-{\n--\nsound/soc/codecs/wm8958-dsp2.c-441-\nsound/soc/codecs/wm8958-dsp2.c:442:\tfor (i = 0; i \u003c ARRAY_SIZE(wm8994-\u003embc_ena); i++) {\nsound/soc/codecs/wm8958-dsp2.c-443-\t\tif (i == aif)\nsound/soc/codecs/wm8958-dsp2.c-444-\t\t\tcontinue;\nsound/soc/codecs/wm8958-dsp2.c:445:\t\tif (wm8994-\u003embc_ena[i] || wm8994-\u003evss_ena[i] ||\nsound/soc/codecs/wm8958-dsp2.c:446:\t\t wm8994-\u003ehpf1_ena[i] || wm8994-\u003ehpf2_ena[i])\nsound/soc/codecs/wm8958-dsp2.c-447-\t\t\treturn 1;\n--\nsound/soc/codecs/wm8958-dsp2.c-452-\nsound/soc/codecs/wm8958-dsp2.c:453:static int wm8958_put_mbc_enum(struct snd_kcontrol *kcontrol,\nsound/soc/codecs/wm8958-dsp2.c-454-\t\t\t struct snd_ctl_elem_value *ucontrol)\n--\nsound/soc/codecs/wm8958-dsp2.c-456-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:457:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c:458:\tstruct wm8994 *control = wm8994-\u003ewm8994;\nsound/soc/codecs/wm8958-dsp2.c-459-\tint value = ucontrol-\u003evalue.enumerated.item[0];\n--\nsound/soc/codecs/wm8958-dsp2.c-469-\nsound/soc/codecs/wm8958-dsp2.c:470:\twm8994-\u003embc_cfg = value;\nsound/soc/codecs/wm8958-dsp2.c-471-\n--\nsound/soc/codecs/wm8958-dsp2.c-474-\nsound/soc/codecs/wm8958-dsp2.c:475:static int wm8958_get_mbc_enum(struct snd_kcontrol *kcontrol,\nsound/soc/codecs/wm8958-dsp2.c-476-\t\t\t struct snd_ctl_elem_value *ucontrol)\n--\nsound/soc/codecs/wm8958-dsp2.c-478-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:479:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-480-\nsound/soc/codecs/wm8958-dsp2.c:481:\tucontrol-\u003evalue.enumerated.item[0] = wm8994-\u003embc_cfg;\nsound/soc/codecs/wm8958-dsp2.c-482-\n--\nsound/soc/codecs/wm8958-dsp2.c-485-\nsound/soc/codecs/wm8958-dsp2.c:486:static int wm8958_mbc_info(struct snd_kcontrol *kcontrol,\nsound/soc/codecs/wm8958-dsp2.c-487-\t\t\t struct snd_ctl_elem_info *uinfo)\n--\nsound/soc/codecs/wm8958-dsp2.c-495-\nsound/soc/codecs/wm8958-dsp2.c:496:static int wm8958_mbc_get(struct snd_kcontrol *kcontrol,\nsound/soc/codecs/wm8958-dsp2.c-497-\t\t\t struct snd_ctl_elem_value *ucontrol)\n--\nsound/soc/codecs/wm8958-dsp2.c-500-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:501:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-502-\nsound/soc/codecs/wm8958-dsp2.c:503:\tucontrol-\u003evalue.integer.value[0] = wm8994-\u003embc_ena[mbc];\nsound/soc/codecs/wm8958-dsp2.c-504-\n--\nsound/soc/codecs/wm8958-dsp2.c-507-\nsound/soc/codecs/wm8958-dsp2.c:508:static int wm8958_mbc_put(struct snd_kcontrol *kcontrol,\nsound/soc/codecs/wm8958-dsp2.c-509-\t\t\t struct snd_ctl_elem_value *ucontrol)\n--\nsound/soc/codecs/wm8958-dsp2.c-512-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:513:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-514-\nsound/soc/codecs/wm8958-dsp2.c:515:\tif (wm8994-\u003embc_ena[mbc] == ucontrol-\u003evalue.integer.value[0])\nsound/soc/codecs/wm8958-dsp2.c-516-\t\treturn 0;\n--\nsound/soc/codecs/wm8958-dsp2.c-520-\nsound/soc/codecs/wm8958-dsp2.c:521:\tif (wm8958_dsp2_busy(wm8994, mbc)) {\nsound/soc/codecs/wm8958-dsp2.c-522-\t\tdev_dbg(component-\u003edev, \"DSP2 active on %d already\\n\", mbc);\n--\nsound/soc/codecs/wm8958-dsp2.c-525-\nsound/soc/codecs/wm8958-dsp2.c:526:\tif (wm8994-\u003eenh_eq_ena[mbc])\nsound/soc/codecs/wm8958-dsp2.c-527-\t\treturn -EBUSY;\nsound/soc/codecs/wm8958-dsp2.c-528-\nsound/soc/codecs/wm8958-dsp2.c:529:\twm8994-\u003embc_ena[mbc] = ucontrol-\u003evalue.integer.value[0];\nsound/soc/codecs/wm8958-dsp2.c-530-\nsound/soc/codecs/wm8958-dsp2.c:531:\twm8958_dsp_apply(component, mbc, wm8994-\u003embc_ena[mbc]);\nsound/soc/codecs/wm8958-dsp2.c-532-\n--\nsound/soc/codecs/wm8958-dsp2.c-538-\t.access = SNDRV_CTL_ELEM_ACCESS_READWRITE,\\\nsound/soc/codecs/wm8958-dsp2.c:539:\t.info = wm8958_mbc_info, \\\nsound/soc/codecs/wm8958-dsp2.c:540:\t.get = wm8958_mbc_get, .put = wm8958_mbc_put, \\\nsound/soc/codecs/wm8958-dsp2.c-541-\t.private_value = xval }\nsound/soc/codecs/wm8958-dsp2.c-542-\nsound/soc/codecs/wm8958-dsp2.c:543:static int wm8958_put_vss_enum(struct snd_kcontrol *kcontrol,\nsound/soc/codecs/wm8958-dsp2.c-544-\t\t\t struct snd_ctl_elem_value *ucontrol)\n--\nsound/soc/codecs/wm8958-dsp2.c-546-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:547:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c:548:\tstruct wm8994 *control = wm8994-\u003ewm8994;\nsound/soc/codecs/wm8958-dsp2.c-549-\tint value = ucontrol-\u003evalue.enumerated.item[0];\n--\nsound/soc/codecs/wm8958-dsp2.c-559-\nsound/soc/codecs/wm8958-dsp2.c:560:\twm8994-\u003evss_cfg = value;\nsound/soc/codecs/wm8958-dsp2.c-561-\n--\nsound/soc/codecs/wm8958-dsp2.c-564-\nsound/soc/codecs/wm8958-dsp2.c:565:static int wm8958_get_vss_enum(struct snd_kcontrol *kcontrol,\nsound/soc/codecs/wm8958-dsp2.c-566-\t\t\t struct snd_ctl_elem_value *ucontrol)\n--\nsound/soc/codecs/wm8958-dsp2.c-568-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:569:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-570-\nsound/soc/codecs/wm8958-dsp2.c:571:\tucontrol-\u003evalue.enumerated.item[0] = wm8994-\u003evss_cfg;\nsound/soc/codecs/wm8958-dsp2.c-572-\n--\nsound/soc/codecs/wm8958-dsp2.c-575-\nsound/soc/codecs/wm8958-dsp2.c:576:static int wm8958_put_vss_hpf_enum(struct snd_kcontrol *kcontrol,\nsound/soc/codecs/wm8958-dsp2.c-577-\t\t\t\t struct snd_ctl_elem_value *ucontrol)\n--\nsound/soc/codecs/wm8958-dsp2.c-579-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:580:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c:581:\tstruct wm8994 *control = wm8994-\u003ewm8994;\nsound/soc/codecs/wm8958-dsp2.c-582-\tint value = ucontrol-\u003evalue.enumerated.item[0];\n--\nsound/soc/codecs/wm8958-dsp2.c-592-\nsound/soc/codecs/wm8958-dsp2.c:593:\twm8994-\u003evss_hpf_cfg = value;\nsound/soc/codecs/wm8958-dsp2.c-594-\n--\nsound/soc/codecs/wm8958-dsp2.c-597-\nsound/soc/codecs/wm8958-dsp2.c:598:static int wm8958_get_vss_hpf_enum(struct snd_kcontrol *kcontrol,\nsound/soc/codecs/wm8958-dsp2.c-599-\t\t\t\t struct snd_ctl_elem_value *ucontrol)\n--\nsound/soc/codecs/wm8958-dsp2.c-601-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:602:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-603-\nsound/soc/codecs/wm8958-dsp2.c:604:\tucontrol-\u003evalue.enumerated.item[0] = wm8994-\u003evss_hpf_cfg;\nsound/soc/codecs/wm8958-dsp2.c-605-\n--\nsound/soc/codecs/wm8958-dsp2.c-608-\nsound/soc/codecs/wm8958-dsp2.c:609:static int wm8958_vss_info(struct snd_kcontrol *kcontrol,\nsound/soc/codecs/wm8958-dsp2.c-610-\t\t\t struct snd_ctl_elem_info *uinfo)\n--\nsound/soc/codecs/wm8958-dsp2.c-618-\nsound/soc/codecs/wm8958-dsp2.c:619:static int wm8958_vss_get(struct snd_kcontrol *kcontrol,\nsound/soc/codecs/wm8958-dsp2.c-620-\t\t\t struct snd_ctl_elem_value *ucontrol)\n--\nsound/soc/codecs/wm8958-dsp2.c-623-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:624:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-625-\nsound/soc/codecs/wm8958-dsp2.c:626:\tucontrol-\u003evalue.integer.value[0] = wm8994-\u003evss_ena[vss];\nsound/soc/codecs/wm8958-dsp2.c-627-\n--\nsound/soc/codecs/wm8958-dsp2.c-630-\nsound/soc/codecs/wm8958-dsp2.c:631:static int wm8958_vss_put(struct snd_kcontrol *kcontrol,\nsound/soc/codecs/wm8958-dsp2.c-632-\t\t\t struct snd_ctl_elem_value *ucontrol)\n--\nsound/soc/codecs/wm8958-dsp2.c-635-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:636:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-637-\nsound/soc/codecs/wm8958-dsp2.c:638:\tif (wm8994-\u003evss_ena[vss] == ucontrol-\u003evalue.integer.value[0])\nsound/soc/codecs/wm8958-dsp2.c-639-\t\treturn 0;\n--\nsound/soc/codecs/wm8958-dsp2.c-643-\nsound/soc/codecs/wm8958-dsp2.c:644:\tif (!wm8994-\u003embc_vss)\nsound/soc/codecs/wm8958-dsp2.c-645-\t\treturn -ENODEV;\nsound/soc/codecs/wm8958-dsp2.c-646-\nsound/soc/codecs/wm8958-dsp2.c:647:\tif (wm8958_dsp2_busy(wm8994, vss)) {\nsound/soc/codecs/wm8958-dsp2.c-648-\t\tdev_dbg(component-\u003edev, \"DSP2 active on %d already\\n\", vss);\n--\nsound/soc/codecs/wm8958-dsp2.c-651-\nsound/soc/codecs/wm8958-dsp2.c:652:\tif (wm8994-\u003eenh_eq_ena[vss])\nsound/soc/codecs/wm8958-dsp2.c-653-\t\treturn -EBUSY;\nsound/soc/codecs/wm8958-dsp2.c-654-\nsound/soc/codecs/wm8958-dsp2.c:655:\twm8994-\u003evss_ena[vss] = ucontrol-\u003evalue.integer.value[0];\nsound/soc/codecs/wm8958-dsp2.c-656-\nsound/soc/codecs/wm8958-dsp2.c:657:\twm8958_dsp_apply(component, vss, wm8994-\u003evss_ena[vss]);\nsound/soc/codecs/wm8958-dsp2.c-658-\n--\nsound/soc/codecs/wm8958-dsp2.c-665-\t.access = SNDRV_CTL_ELEM_ACCESS_READWRITE,\\\nsound/soc/codecs/wm8958-dsp2.c:666:\t.info = wm8958_vss_info, \\\nsound/soc/codecs/wm8958-dsp2.c:667:\t.get = wm8958_vss_get, .put = wm8958_vss_put, \\\nsound/soc/codecs/wm8958-dsp2.c-668-\t.private_value = xval }\nsound/soc/codecs/wm8958-dsp2.c-669-\nsound/soc/codecs/wm8958-dsp2.c:670:static int wm8958_hpf_info(struct snd_kcontrol *kcontrol,\nsound/soc/codecs/wm8958-dsp2.c-671-\t\t\t struct snd_ctl_elem_info *uinfo)\n--\nsound/soc/codecs/wm8958-dsp2.c-679-\nsound/soc/codecs/wm8958-dsp2.c:680:static int wm8958_hpf_get(struct snd_kcontrol *kcontrol,\nsound/soc/codecs/wm8958-dsp2.c-681-\t\t\t struct snd_ctl_elem_value *ucontrol)\n--\nsound/soc/codecs/wm8958-dsp2.c-684-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:685:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-686-\nsound/soc/codecs/wm8958-dsp2.c-687-\tif (hpf \u003c 3)\nsound/soc/codecs/wm8958-dsp2.c:688:\t\tucontrol-\u003evalue.integer.value[0] = wm8994-\u003ehpf1_ena[hpf % 3];\nsound/soc/codecs/wm8958-dsp2.c-689-\telse\nsound/soc/codecs/wm8958-dsp2.c:690:\t\tucontrol-\u003evalue.integer.value[0] = wm8994-\u003ehpf2_ena[hpf % 3];\nsound/soc/codecs/wm8958-dsp2.c-691-\n--\nsound/soc/codecs/wm8958-dsp2.c-694-\nsound/soc/codecs/wm8958-dsp2.c:695:static int wm8958_hpf_put(struct snd_kcontrol *kcontrol,\nsound/soc/codecs/wm8958-dsp2.c-696-\t\t\t struct snd_ctl_elem_value *ucontrol)\n--\nsound/soc/codecs/wm8958-dsp2.c-699-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:700:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-701-\nsound/soc/codecs/wm8958-dsp2.c-702-\tif (hpf \u003c 3) {\nsound/soc/codecs/wm8958-dsp2.c:703:\t\tif (wm8994-\u003ehpf1_ena[hpf % 3] ==\nsound/soc/codecs/wm8958-dsp2.c-704-\t\t ucontrol-\u003evalue.integer.value[0])\n--\nsound/soc/codecs/wm8958-dsp2.c-706-\t} else {\nsound/soc/codecs/wm8958-dsp2.c:707:\t\tif (wm8994-\u003ehpf2_ena[hpf % 3] ==\nsound/soc/codecs/wm8958-dsp2.c-708-\t\t ucontrol-\u003evalue.integer.value[0])\n--\nsound/soc/codecs/wm8958-dsp2.c-714-\nsound/soc/codecs/wm8958-dsp2.c:715:\tif (!wm8994-\u003embc_vss)\nsound/soc/codecs/wm8958-dsp2.c-716-\t\treturn -ENODEV;\nsound/soc/codecs/wm8958-dsp2.c-717-\nsound/soc/codecs/wm8958-dsp2.c:718:\tif (wm8958_dsp2_busy(wm8994, hpf % 3)) {\nsound/soc/codecs/wm8958-dsp2.c-719-\t\tdev_dbg(component-\u003edev, \"DSP2 active on %d already\\n\", hpf);\n--\nsound/soc/codecs/wm8958-dsp2.c-722-\nsound/soc/codecs/wm8958-dsp2.c:723:\tif (wm8994-\u003eenh_eq_ena[hpf % 3])\nsound/soc/codecs/wm8958-dsp2.c-724-\t\treturn -EBUSY;\n--\nsound/soc/codecs/wm8958-dsp2.c-726-\tif (hpf \u003c 3)\nsound/soc/codecs/wm8958-dsp2.c:727:\t\twm8994-\u003ehpf1_ena[hpf % 3] = ucontrol-\u003evalue.integer.value[0];\nsound/soc/codecs/wm8958-dsp2.c-728-\telse\nsound/soc/codecs/wm8958-dsp2.c:729:\t\twm8994-\u003ehpf2_ena[hpf % 3] = ucontrol-\u003evalue.integer.value[0];\nsound/soc/codecs/wm8958-dsp2.c-730-\nsound/soc/codecs/wm8958-dsp2.c:731:\twm8958_dsp_apply(component, hpf % 3, ucontrol-\u003evalue.integer.value[0]);\nsound/soc/codecs/wm8958-dsp2.c-732-\n--\nsound/soc/codecs/wm8958-dsp2.c-738-\t.access = SNDRV_CTL_ELEM_ACCESS_READWRITE,\\\nsound/soc/codecs/wm8958-dsp2.c:739:\t.info = wm8958_hpf_info, \\\nsound/soc/codecs/wm8958-dsp2.c:740:\t.get = wm8958_hpf_get, .put = wm8958_hpf_put, \\\nsound/soc/codecs/wm8958-dsp2.c-741-\t.private_value = xval }\nsound/soc/codecs/wm8958-dsp2.c-742-\nsound/soc/codecs/wm8958-dsp2.c:743:static int wm8958_put_enh_eq_enum(struct snd_kcontrol *kcontrol,\nsound/soc/codecs/wm8958-dsp2.c-744-\t\t\t\t struct snd_ctl_elem_value *ucontrol)\n--\nsound/soc/codecs/wm8958-dsp2.c-746-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:747:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c:748:\tstruct wm8994 *control = wm8994-\u003ewm8994;\nsound/soc/codecs/wm8958-dsp2.c-749-\tint value = ucontrol-\u003evalue.enumerated.item[0];\n--\nsound/soc/codecs/wm8958-dsp2.c-759-\nsound/soc/codecs/wm8958-dsp2.c:760:\twm8994-\u003eenh_eq_cfg = value;\nsound/soc/codecs/wm8958-dsp2.c-761-\n--\nsound/soc/codecs/wm8958-dsp2.c-764-\nsound/soc/codecs/wm8958-dsp2.c:765:static int wm8958_get_enh_eq_enum(struct snd_kcontrol *kcontrol,\nsound/soc/codecs/wm8958-dsp2.c-766-\t\t\t\t struct snd_ctl_elem_value *ucontrol)\n--\nsound/soc/codecs/wm8958-dsp2.c-768-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:769:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-770-\nsound/soc/codecs/wm8958-dsp2.c:771:\tucontrol-\u003evalue.enumerated.item[0] = wm8994-\u003eenh_eq_cfg;\nsound/soc/codecs/wm8958-dsp2.c-772-\n--\nsound/soc/codecs/wm8958-dsp2.c-775-\nsound/soc/codecs/wm8958-dsp2.c:776:static int wm8958_enh_eq_info(struct snd_kcontrol *kcontrol,\nsound/soc/codecs/wm8958-dsp2.c-777-\t\t\t struct snd_ctl_elem_info *uinfo)\n--\nsound/soc/codecs/wm8958-dsp2.c-785-\nsound/soc/codecs/wm8958-dsp2.c:786:static int wm8958_enh_eq_get(struct snd_kcontrol *kcontrol,\nsound/soc/codecs/wm8958-dsp2.c-787-\t\t\t struct snd_ctl_elem_value *ucontrol)\n--\nsound/soc/codecs/wm8958-dsp2.c-790-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:791:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-792-\nsound/soc/codecs/wm8958-dsp2.c:793:\tucontrol-\u003evalue.integer.value[0] = wm8994-\u003eenh_eq_ena[eq];\nsound/soc/codecs/wm8958-dsp2.c-794-\n--\nsound/soc/codecs/wm8958-dsp2.c-797-\nsound/soc/codecs/wm8958-dsp2.c:798:static int wm8958_enh_eq_put(struct snd_kcontrol *kcontrol,\nsound/soc/codecs/wm8958-dsp2.c-799-\t\t\t struct snd_ctl_elem_value *ucontrol)\n--\nsound/soc/codecs/wm8958-dsp2.c-802-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:803:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-804-\nsound/soc/codecs/wm8958-dsp2.c:805:\tif (wm8994-\u003eenh_eq_ena[eq] == ucontrol-\u003evalue.integer.value[0])\nsound/soc/codecs/wm8958-dsp2.c-806-\t\treturn 0;\n--\nsound/soc/codecs/wm8958-dsp2.c-810-\nsound/soc/codecs/wm8958-dsp2.c:811:\tif (!wm8994-\u003eenh_eq)\nsound/soc/codecs/wm8958-dsp2.c-812-\t\treturn -ENODEV;\nsound/soc/codecs/wm8958-dsp2.c-813-\nsound/soc/codecs/wm8958-dsp2.c:814:\tif (wm8958_dsp2_busy(wm8994, eq)) {\nsound/soc/codecs/wm8958-dsp2.c-815-\t\tdev_dbg(component-\u003edev, \"DSP2 active on %d already\\n\", eq);\n--\nsound/soc/codecs/wm8958-dsp2.c-818-\nsound/soc/codecs/wm8958-dsp2.c:819:\tif (wm8994-\u003embc_ena[eq] || wm8994-\u003evss_ena[eq] ||\nsound/soc/codecs/wm8958-dsp2.c:820:\t wm8994-\u003ehpf1_ena[eq] || wm8994-\u003ehpf2_ena[eq])\nsound/soc/codecs/wm8958-dsp2.c-821-\t\treturn -EBUSY;\nsound/soc/codecs/wm8958-dsp2.c-822-\nsound/soc/codecs/wm8958-dsp2.c:823:\twm8994-\u003eenh_eq_ena[eq] = ucontrol-\u003evalue.integer.value[0];\nsound/soc/codecs/wm8958-dsp2.c-824-\nsound/soc/codecs/wm8958-dsp2.c:825:\twm8958_dsp_apply(component, eq, ucontrol-\u003evalue.integer.value[0]);\nsound/soc/codecs/wm8958-dsp2.c-826-\n--\nsound/soc/codecs/wm8958-dsp2.c-832-\t.access = SNDRV_CTL_ELEM_ACCESS_READWRITE,\\\nsound/soc/codecs/wm8958-dsp2.c:833:\t.info = wm8958_enh_eq_info, \\\nsound/soc/codecs/wm8958-dsp2.c:834:\t.get = wm8958_enh_eq_get, .put = wm8958_enh_eq_put, \\\nsound/soc/codecs/wm8958-dsp2.c-835-\t.private_value = xval }\nsound/soc/codecs/wm8958-dsp2.c-836-\nsound/soc/codecs/wm8958-dsp2.c:837:static const struct snd_kcontrol_new wm8958_mbc_snd_controls[] = {\nsound/soc/codecs/wm8958-dsp2.c-838-WM8958_MBC_SWITCH(\"AIF1DAC1 MBC Switch\", 0),\n--\nsound/soc/codecs/wm8958-dsp2.c=840=WM8958_MBC_SWITCH(\"AIF2DAC MBC Switch\", 2),\n--\nsound/soc/codecs/wm8958-dsp2.c-842-\nsound/soc/codecs/wm8958-dsp2.c:843:static const struct snd_kcontrol_new wm8958_vss_snd_controls[] = {\nsound/soc/codecs/wm8958-dsp2.c-844-WM8958_VSS_SWITCH(\"AIF1DAC1 VSS Switch\", 0),\n--\nsound/soc/codecs/wm8958-dsp2.c=852=WM8958_HPF_SWITCH(\"AIF2DAC HPF2 Switch\", 5),\n--\nsound/soc/codecs/wm8958-dsp2.c-854-\nsound/soc/codecs/wm8958-dsp2.c:855:static const struct snd_kcontrol_new wm8958_enh_eq_snd_controls[] = {\nsound/soc/codecs/wm8958-dsp2.c-856-WM8958_ENH_EQ_SWITCH(\"AIF1DAC1 Enhanced EQ Switch\", 0),\n--\nsound/soc/codecs/wm8958-dsp2.c=858=WM8958_ENH_EQ_SWITCH(\"AIF2DAC Enhanced EQ Switch\", 2),\n--\nsound/soc/codecs/wm8958-dsp2.c-860-\nsound/soc/codecs/wm8958-dsp2.c:861:static void wm8958_enh_eq_loaded(const struct firmware *fw, void *context)\nsound/soc/codecs/wm8958-dsp2.c-862-{\nsound/soc/codecs/wm8958-dsp2.c-863-\tstruct snd_soc_component *component = context;\nsound/soc/codecs/wm8958-dsp2.c:864:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-865-\nsound/soc/codecs/wm8958-dsp2.c:866:\tif (fw \u0026\u0026 (wm8958_dsp2_fw(component, \"ENH_EQ\", fw, true) == 0)) {\nsound/soc/codecs/wm8958-dsp2.c:867:\t\tmutex_lock(\u0026wm8994-\u003efw_lock);\nsound/soc/codecs/wm8958-dsp2.c:868:\t\twm8994-\u003eenh_eq = fw;\nsound/soc/codecs/wm8958-dsp2.c:869:\t\tmutex_unlock(\u0026wm8994-\u003efw_lock);\nsound/soc/codecs/wm8958-dsp2.c-870-\t}\n--\nsound/soc/codecs/wm8958-dsp2.c-872-\nsound/soc/codecs/wm8958-dsp2.c:873:static void wm8958_mbc_vss_loaded(const struct firmware *fw, void *context)\nsound/soc/codecs/wm8958-dsp2.c-874-{\nsound/soc/codecs/wm8958-dsp2.c-875-\tstruct snd_soc_component *component = context;\nsound/soc/codecs/wm8958-dsp2.c:876:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-877-\nsound/soc/codecs/wm8958-dsp2.c:878:\tif (fw \u0026\u0026 (wm8958_dsp2_fw(component, \"MBC+VSS\", fw, true) == 0)) {\nsound/soc/codecs/wm8958-dsp2.c:879:\t\tmutex_lock(\u0026wm8994-\u003efw_lock);\nsound/soc/codecs/wm8958-dsp2.c:880:\t\twm8994-\u003embc_vss = fw;\nsound/soc/codecs/wm8958-dsp2.c:881:\t\tmutex_unlock(\u0026wm8994-\u003efw_lock);\nsound/soc/codecs/wm8958-dsp2.c-882-\t}\n--\nsound/soc/codecs/wm8958-dsp2.c-884-\nsound/soc/codecs/wm8958-dsp2.c:885:static void wm8958_mbc_loaded(const struct firmware *fw, void *context)\nsound/soc/codecs/wm8958-dsp2.c-886-{\nsound/soc/codecs/wm8958-dsp2.c-887-\tstruct snd_soc_component *component = context;\nsound/soc/codecs/wm8958-dsp2.c:888:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-889-\nsound/soc/codecs/wm8958-dsp2.c:890:\tif (fw \u0026\u0026 (wm8958_dsp2_fw(component, \"MBC\", fw, true) == 0)) {\n\n"
} |
| 29/2 | 2026/09/17 17:51 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 64748 output: 29 thoughts: 2322 Thoughts: **Fuzzing Feasibility Analysis for WM8994 Code** Alright, let's break this down. My goal is to determine if fuzzing the `wm8994` driver is a worthwhile endeavor. My initial observation is that this code is primarily confined to specific sound subsystems. The references point toward `sound/soc/samsung/*`, `sound/soc/fsl/*`, and `sound/soc/codecs/wm8994*`. I need to figure out how *I* can make it reachable. First thought, could it leverage Device Tree overlays? No, my target environment is amd64, and the lack of an OF overlay mechanism precludes that route. Next, what about standard sound subsystems? Do they use this? No, ALSA SoC codecs rely on a machine driver or a simple-audio-card/audio-graph-card setup defined in device tree. Even if I could concoct a device tree `simple-audio-card`, the underlying hardware is an I2C device. Specifically, `wm8994_i2c_driver` anticipates a Wolfson WM8994, WM8958, or WM1811 audio chip present on an I2C bus. Aha! Emulation! Can I get away with this by using QEMU? Does QEMU even *have* a WM8994 device? QEMU does have `wm8750` for older ARM machines. But a WM8994? I need to check. I'll search for any QEMU or kernel references to an emulated `wm8994`. Syzkaller runs standard QEMU on amd64 (x86_64). Does that combination of hardware and environment, either actual or virtual, instantiate a `wm8994`? Time for more digging. I need to make sure `MFD_WM8994` or `SND_SOC_WM8994` is enabled in `x86_64`'s defconfig or syzkaller config. Even if compiled, can it be probed or reached? I need to check the "WorthFuzzing" criteria to make sure it's even worth the effort. Let's look at `wm8994_component_probe`, specifically where it's called. This function is the `.probe` of `soc_component_dev_wm8994`. I see that `soc_component_dev_wm8994` gets passed to `devm_snd_soc_register_component` inside `wm8994_probe`. Right. So how does `wm8994_probe` itself get called? It's the probe function of `wm8994_codec_driver`, a `platform_driver`. Can a platform device named "wm8994-codec" be created? Userspace can't directly create platform devices. Can I use `/sys`? Nope, `/sys/bus/platform/drivers/.../bind` only *binds* an existing device to a driver. Where does an *existing* "wm8994-codec" platform device come from? It's only created by `mfd_add_devices` in `drivers/mfd/wm8994-core.c`. This in turn is called inside `wm8994_device_init`, which is called by `wm8994_i2c_probe`. Can userspace create an I2C device? Yes, `i2c_sysfs_new_device` lets root create an `i2c_client`. But what happens in `wm8994_device_init`? I've got to analyze that function. Okay, inside `wm8994_device_init`, the code attempts to read a register on the device. This read is key. If there's no physical WM8994 chip attached to that I2C bus—and there isn't on QEMU/GCE x86_64—the read will fail with -ENXIO (NACK) or some unexpected value. The code checks the ID, but it won't be the expected 0x1811, 0x8994, or 0x8958. This causes `wm8994_device_init` to *fail* before it calls `mfd_add_devices`. Even if `mfd_add_devices` *were* reached, the `wm8994-codec` platform device would be probed by `wm8994_probe`. Crucially, `wm899 |
| 30/2 | 2026/09/17 17:51 | tool | grepper |
0mArgs:{
"Expression": "component-\u003edriver-\u003eprobe",
"PathPrefix": "sound/soc/"
}Results: {
"Output": "sound/soc/soc-component.c=303=int snd_soc_component_probe(struct snd_soc_component *component)\n--\nsound/soc/soc-component.c-306-\nsound/soc/soc-component.c:307:\tif (component-\u003edriver-\u003eprobe)\nsound/soc/soc-component.c:308:\t\tret = component-\u003edriver-\u003eprobe(component);\nsound/soc/soc-component.c-309-\n--\nsound/soc/soc-core.c=1582=static int soc_probe_link_components(struct snd_soc_card *card)\n--\nsound/soc/soc-core.c-1590-\t\t\tfor_each_rtd_components(rtd, i, component) {\nsound/soc/soc-core.c:1591:\t\t\t\tif (component-\u003edriver-\u003eprobe_order != order)\nsound/soc/soc-core.c-1592-\t\t\t\t\tcontinue;\n--\nsound/soc/soc-core.c=1635=static int soc_probe_aux_devices(struct snd_soc_card *card)\n--\nsound/soc/soc-core.c-1642-\t\tfor_each_card_auxs(card, component) {\nsound/soc/soc-core.c:1643:\t\t\tif (component-\u003edriver-\u003eprobe_order != order)\nsound/soc/soc-core.c-1644-\t\t\t\tcontinue;\n"
} |
| 31/2 | 2026/09/17 17:51 | llm | patch-evaluator-compressor |
1mModel:gemini-3.8-flash Args: null Results: null Reply: ### 1. Approaches Tried and Results
- **Patch Inspection**:
- Examined commit `92f3a946e2717740161e891214ecf1a55ca8cb1e`.
- Target architecture: `amd64`.
- File modified: `sound/soc/codecs/wm8994.c` in function `wm8994_component_probe()`.
- Changes: Added missing `pm_runtime_put(component->dev)` calls in error paths when `regmap_read` fails for `WM8994_GPIO_1` and `WM8994_GPIO_6`.
- **Subsystem & Driver Hierarchy Analysis**:
- `sound/soc/codecs/wm8994.c`: Registers platform driver `wm8994_codec_driver` with `.name = "wm8994-codec"`.
- In `wm8994_probe(struct platform_device *pdev)`, driver fetches parent dev drvdata: `wm8994->wm8994 = dev_get_drvdata(pdev->dev.parent);` and calls `devm_snd_soc_register_component(&pdev->dev, &soc_component_dev_wm8994, ...)`.
- `soc_component_dev_wm8994.probe` is `wm8994_component_probe()`.
- Searched for parent MFD device: Found `drivers/mfd/wm8994-core.c`.
- `wm8994-core.c` implements `wm8994_i2c_driver` (`module_i2c_driver`), matching I2C device IDs `wm1811`, `wm1811a`, `wm8994`, `wm8958` or DT compatibles `wlf,wm1811`, `wlf,wm8994`, `wlf,wm8958`.
- In `wm8994_device_init()` (called from `wm8994_i2c_probe()`), it reads ID register over I2C regmap, enables supplies, calls `mfd_add_devices()` with `wm8994_devs` array which contains `"wm8994-codec"` and `"wm8994-gpio"`.
- Checked machine drivers referencing `"wm8994-codec"`: only Samsung SoC audio drivers (`sound/soc/samsung/littlemill.c`, `smdk_wm8994.c`, `smdk_wm8994pcm.c`).
### 2. Current Hypotheses and Lines of Investigation
- **Reachability on Target Architecture (`amd64`)**:
- The driver is for the Wolfson Microelectronics WM8994 audio codec, an MFD chip interfaced over I2C (`wm8994_i2c_driver`).
- The modified code is `wm8994_component_probe()`, which runs only when an ASoC sound card binds the codec component.
- Can this hardware or driver be instantiated/reached in standard virtualized environments (QEMU / GCE) on x86_64/amd64?
- `wm8994` is an embedded mobile codec (found on Samsung Exynos/S5PV210 boards, etc.).
- It requires physical I2C hardware or an emulated I2C device with specific registers responding to software reset / chip ID (`WM8994_SOFTWARE_RESET`).
- Standard QEMU x86_64 target does not emulate Wolfson WM8994.
- Can i2c-dev / i2c-stub or userspace i2c device creation trigger `wm8994_i2c_probe` and then ASoC component probe? Even if an I2C client is instantiated via `i2c_new_client_device` (e.g. via sysfs `new_device`), it requires an ASoC machine driver to register a card binding the DAI link to `"wm8994-codec"` to ever invoke `wm8994_component_probe()`.
- Also need to verify whether `CONFIG_SND_SOC_WM8994` or `CONFIG_MFD_WM8994` is enabled or even relevant to fuzzing on amd64 under syzkaller.
- Need to verify whether this falls under Section 2: "Structurally unreachable hardware" / hardware requiring specific devices not emulated in standard QEMU on amd64.
### 3. Specific File Paths, Code Snippets, and Configs Critical to Remember
- **Files**:
- `sound/soc/codecs/wm8994.c`
- `drivers/mfd/wm8994-core.c`
- `drivers/mfd/wm8994.h`
- `sound/soc/codecs/Kconfig`
- `drivers/mfd/Kconfig`
- **Modified Code Snippet (`sound/soc/codecs/wm8994.c:4348-4381`)**:
```c
/* Make sure we can read from the GPIOs if they're inputs */
pm_runtime_get_sync(component->dev);
/* Remember if AIFnLRCLK is configured as a GPIO. This should be
* configured on init - if a system wants to do this dynamically
* at runtime we can deal with that then.
*/
ret = regmap_read(control->regmap, WM8994_GPIO_1, ®);
if (ret < 0) {
dev_err(component->dev, "Failed to read GPIO1 state: %d\n", ret);
pm_runtime_put(component->dev);
goto err_irq;
}
if ((reg & WM8994_GPN_FN_MASK) != WM8994_GP_FN_PIN_SPECIFIC) {
wm8994->lrclk_shared[0] = 1;
wm8994_dai[0].symmetric_rate = 1;
} else {
wm8994->lrclk_shared[0] = 0;
}
ret = regmap_read(control->regmap, WM8994_GPIO_6, ®);
if (ret < 0) {
dev_err(component->dev, "Failed to read GPIO6 state: %d\n", ret);
pm_runtime_put(component->dev);
goto err_irq;
}
if ((reg & WM8994_GPN_FN_MASK) != WM8994_GP_FN_PIN_SPECIFIC) {
wm8994->lrclk_shared[1] = 1;
wm8994_dai[1].symmetric_rate = 1;
} else {
wm8994->lrclk_shared[1] = 0;
}
pm_runtime_put(component->dev);
```
- **Configs Involved**:
- `CONFIG_MFD_WM8994`
- `CONFIG_SND_SOC_WM8994`
- `CONFIG_SND_SOC`
- `CONFIG_I2C`
### 4. Potential Reasoning Loops and Next Steps
- **Watch out**: Do not get stuck searching endless SoC machine drivers or repeated greps on `wm8994`.
- **Next steps**:
- Check `sound/soc/codecs/Kconfig` and `drivers/mfd/Kconfig` for dependencies of `CONFIG_MFD_WM8994` and `CONFIG_SND_SOC_WM8994`.
- Evaluate reachability under Section 2 ("Structurally unreachable hardware"): does standard QEMU on `amd64` emulate Wolfson WM8994 or allow instantiation without physical hardware?
- Determine if `WorthFuzzing` should be `false` due to unreachable hardware on `amd64` (or `true` if somehow instantiated via virtual buses). Prepare final verdict and tool call accordingly.Tokens: input: 48129 output: 1926 thoughts: 0 |
| 32/2 | 2026/09/17 17:52 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 25168 output: 38 thoughts: 0 |
| 33/2 | 2026/09/17 17:52 | tool | read-file |
0mArgs:{
"File": "sound/soc/codecs/Kconfig",
"FirstLine": 1865,
"LineCount": 40
}Results: {
"Contents": "1865:\t\n1866:\tconfig SND_SOC_RT5659\n1867:\t\ttristate \"Realtek RT5658/RT5659 Codec\"\n1868:\t\tdepends on I2C\n1869:\t\n1870:\tconfig SND_SOC_RT5660\n1871:\t\ttristate\n1872:\t\tdepends on I2C\n1873:\t\n1874:\tconfig SND_SOC_RT5663\n1875:\t\ttristate\n1876:\t\tdepends on I2C\n1877:\t\n1878:\tconfig SND_SOC_RT5665\n1879:\t\ttristate\n1880:\t\tdepends on I2C\n1881:\t\n1882:\tconfig SND_SOC_RT5668\n1883:\t\ttristate\n1884:\t\tdepends on I2C\n1885:\t\n1886:\tconfig SND_SOC_RT5670\n1887:\t\ttristate\n1888:\t\tdepends on I2C\n1889:\t\n1890:\tconfig SND_SOC_RT5677\n1891:\t\ttristate\n1892:\t\tdepends on I2C\n1893:\t\tselect REGMAP_I2C\n1894:\t\tselect REGMAP_IRQ\n1895:\t\n1896:\tconfig SND_SOC_RT5677_SPI\n1897:\t\ttristate\n1898:\t\tdefault SND_SOC_RT5677 \u0026\u0026 SPI\n1899:\t\n1900:\tconfig SND_SOC_RT5682\n1901:\t\ttristate\n1902:\t\n1903:\tconfig SND_SOC_RT5682_I2C\n1904:\t\ttristate\n"
} |
| 34/2 | 2026/09/17 17:52 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 25713 output: 37 thoughts: 0 |
| 35/2 | 2026/09/17 17:52 | tool | grepper |
0mArgs:{
"Expression": "config SND_SOC_WM8994",
"PathPrefix": "sound/soc/codecs/"
}Results: {
"Output": "sound/soc/codecs/Kconfig=2699=config SND_SOC_WM8993\n--\nsound/soc/codecs/Kconfig-2702-\nsound/soc/codecs/Kconfig:2703:config SND_SOC_WM8994\nsound/soc/codecs/Kconfig-2704-\ttristate\n"
} |
| 36/2 | 2026/09/17 17:52 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 25852 output: 34 thoughts: 0 |
| 37/2 | 2026/09/17 17:52 | tool | grepper |
0mArgs:{
"Expression": "config MFD_WM8994",
"PathPrefix": "drivers/mfd/"
}Results: {
"Output": "drivers/mfd/Kconfig=2161=config MFD_WM8350_I2C\n--\ndrivers/mfd/Kconfig-2172-\ndrivers/mfd/Kconfig:2173:config MFD_WM8994\ndrivers/mfd/Kconfig-2174-\ttristate \"Wolfson Microelectronics WM8994\"\n"
} |
| 38/2 | 2026/09/17 17:52 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 25993 output: 36 thoughts: 0 |
| 39/2 | 2026/09/17 17:52 | tool | read-file |
0mArgs:{
"File": "drivers/mfd/Kconfig",
"FirstLine": 2172,
"LineCount": 25
}Results: {
"Contents": "2172:\t\n2173:\tconfig MFD_WM8994\n2174:\t\ttristate \"Wolfson Microelectronics WM8994\"\n2175:\t\tselect MFD_CORE\n2176:\t\tselect REGMAP_I2C\n2177:\t\tselect REGMAP_IRQ\n2178:\t\tdepends on I2C\n2179:\t\thelp\n2180:\t\t The WM8994 is a highly integrated hi-fi CODEC designed for\n2181:\t\t smartphone applications. As well as audio functionality it\n2182:\t\t has on board GPIO and regulator functionality which is\n2183:\t\t supported via the relevant subsystems. This driver provides\n2184:\t\t core support for the WM8994, in order to use the actual\n2185:\t\t functionality of the device other drivers must be enabled.\n2186:\t\n2187:\tconfig MFD_WM97xx\n2188:\t\ttristate \"Wolfson Microelectronics WM97xx\"\n2189:\t\tselect MFD_CORE\n2190:\t\tselect REGMAP_AC97\n2191:\t\tselect AC97_BUS_COMPAT\n2192:\t\tdepends on AC97_BUS_NEW\n2193:\t\thelp\n2194:\t\t The WM9705, WM9712 and WM9713 is a highly integrated hi-fi CODEC\n2195:\t\t designed for smartphone applications. As well as audio functionality\n2196:\t\t it has on board GPIO and a touchscreen functionality which is\n"
} |
| 40/2 | 2026/09/17 17:52 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 26449 output: 24 thoughts: 0 |
| 41/2 | 2026/09/17 17:52 | tool | grepper |
0mArgs:{
"Expression": "SND_SOC_WM8994"
}Results: {
"Output": "sound/soc/codecs/Kconfig=14=config SND_SOC_ALL_CODECS\n--\nsound/soc/codecs/Kconfig-356-\timply SND_SOC_WM8993\nsound/soc/codecs/Kconfig:357:\timply SND_SOC_WM8994\nsound/soc/codecs/Kconfig-358-\timply SND_SOC_WM8995\n--\nsound/soc/codecs/Kconfig=399=config SND_SOC_WM_HUBS\nsound/soc/codecs/Kconfig-400-\ttristate\nsound/soc/codecs/Kconfig:401:\tdefault y if SND_SOC_WM8993=y || SND_SOC_WM8994=y\nsound/soc/codecs/Kconfig:402:\tdefault m if SND_SOC_WM8993=m || SND_SOC_WM8994=m\nsound/soc/codecs/Kconfig-403-\n--\nsound/soc/codecs/Kconfig=2699=config SND_SOC_WM8993\n--\nsound/soc/codecs/Kconfig-2702-\nsound/soc/codecs/Kconfig:2703:config SND_SOC_WM8994\nsound/soc/codecs/Kconfig-2704-\ttristate\n--\nsound/soc/codecs/Makefile=863=obj-$(CONFIG_SND_SOC_WM8993)\t+= snd-soc-wm8993.o\nsound/soc/codecs/Makefile:864:obj-$(CONFIG_SND_SOC_WM8994)\t+= snd-soc-wm8994.o\nsound/soc/codecs/Makefile-865-obj-$(CONFIG_SND_SOC_WM8995)\t+= snd-soc-wm8995.o\n--\nsound/soc/codecs/wm8994.c=3638=static irqreturn_t wm8994_mic_irq(int irq, void *data)\n--\nsound/soc/codecs/wm8994.c-3642-\nsound/soc/codecs/wm8994.c:3643:#ifndef CONFIG_SND_SOC_WM8994_MODULE\nsound/soc/codecs/wm8994.c-3644-\ttrace_snd_soc_jack_irq(dev_name(component-\u003edev));\n--\nsound/soc/codecs/wm8994.c=4040=static irqreturn_t wm8958_mic_irq(int irq, void *data)\n--\nsound/soc/codecs/wm8994.c-4086-\nsound/soc/codecs/wm8994.c:4087:#ifndef CONFIG_SND_SOC_WM8994_MODULE\nsound/soc/codecs/wm8994.c-4088-\ttrace_snd_soc_jack_irq(dev_name(component-\u003edev));\n--\nsound/soc/fsl/Kconfig=310=config SND_SOC_FSL_ASOC_CARD\n--\nsound/soc/fsl/Kconfig-323-\tselect SND_SOC_TLV320AIC31XX\nsound/soc/fsl/Kconfig:324:\tselect SND_SOC_WM8994\nsound/soc/fsl/Kconfig-325-\tselect MFD_WM8994\n--\nsound/soc/samsung/Kconfig=24=config SND_SOC_SAMSUNG_SMDK_WM8994\n--\nsound/soc/samsung/Kconfig-27-\tselect MFD_WM8994\nsound/soc/samsung/Kconfig:28:\tselect SND_SOC_WM8994\nsound/soc/samsung/Kconfig-29-\tselect SND_SAMSUNG_I2S\n--\nsound/soc/samsung/Kconfig=39=config SND_SOC_SMDK_WM8994_PCM\n--\nsound/soc/samsung/Kconfig-42-\tselect MFD_WM8994\nsound/soc/samsung/Kconfig:43:\tselect SND_SOC_WM8994\nsound/soc/samsung/Kconfig-44-\tselect SND_SAMSUNG_PCM\n--\nsound/soc/samsung/Kconfig=84=config SND_SOC_LITTLEMILL\n--\nsound/soc/samsung/Kconfig-89-\tselect MFD_WM8994\nsound/soc/samsung/Kconfig:90:\tselect SND_SOC_WM8994\nsound/soc/samsung/Kconfig-91-\n--\nsound/soc/samsung/Kconfig=110=config SND_SOC_ARNDALE\n--\nsound/soc/samsung/Kconfig-115-\tselect MFD_WM8994\nsound/soc/samsung/Kconfig:116:\tselect SND_SOC_WM8994\nsound/soc/samsung/Kconfig-117-\n--\nsound/soc/samsung/Kconfig=128=config SND_SOC_SAMSUNG_ARIES_WM8994\n--\nsound/soc/samsung/Kconfig-132-\tselect MFD_WM8994\nsound/soc/samsung/Kconfig:133:\tselect SND_SOC_WM8994\nsound/soc/samsung/Kconfig-134-\tselect SND_SAMSUNG_I2S\n--\nsound/soc/samsung/Kconfig=142=config SND_SOC_SAMSUNG_MIDAS_WM1811\n--\nsound/soc/samsung/Kconfig-146-\tselect MFD_WM8994\nsound/soc/samsung/Kconfig:147:\tselect SND_SOC_WM8994\nsound/soc/samsung/Kconfig-148-\thelp\n"
} |
| 42/2 | 2026/09/17 17:53 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 27971 output: 36 thoughts: 0 |
| 43/2 | 2026/09/17 17:53 | tool | grepper |
0mArgs:{
"Expression": "config SND_SOC_FSL_ASOC_CARD",
"PathPrefix": "sound/soc/"
}Results: {
"Output": "sound/soc/fsl/Kconfig=295=config SND_SOC_IMX_SGTL5000\n--\nsound/soc/fsl/Kconfig-309-\nsound/soc/fsl/Kconfig:310:config SND_SOC_FSL_ASOC_CARD\nsound/soc/fsl/Kconfig-311-\ttristate \"Generic ASoC Sound Card with ASRC support\"\n"
} |
| 44/2 | 2026/09/17 17:53 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 28123 output: 37 thoughts: 0 |
| 45/2 | 2026/09/17 17:53 | tool | read-file |
0mArgs:{
"File": "sound/soc/fsl/Kconfig",
"FirstLine": 309,
"LineCount": 30
}Results: {
"Contents": " 309:\t\n 310:\tconfig SND_SOC_FSL_ASOC_CARD\n 311:\t\ttristate \"Generic ASoC Sound Card with ASRC support\"\n 312:\t\tdepends on IMX_SCMI_MISC_DRV || !IMX_SCMI_MISC_DRV\n 313:\t\tdepends on OF \u0026\u0026 I2C\n 314:\t\t# enforce SND_SOC_FSL_ASOC_CARD=m if SND_AC97_CODEC=m:\n 315:\t\tdepends on SND_AC97_CODEC || SND_AC97_CODEC=n\n 316:\t\tselect SND_SIMPLE_CARD_UTILS\n 317:\t\tselect SND_SOC_IMX_AUDMUX\n 318:\t\tselect SND_SOC_IMX_PCM_DMA\n 319:\t\tselect SND_SOC_FSL_ESAI\n 320:\t\tselect SND_SOC_FSL_SAI\n 321:\t\tselect SND_SOC_FSL_SSI\n 322:\t\tselect SND_SOC_FSL_SPDIF\n 323:\t\tselect SND_SOC_TLV320AIC31XX\n 324:\t\tselect SND_SOC_WM8994\n 325:\t\tselect MFD_WM8994\n 326:\t\thelp\n 327:\t\t ALSA SoC Audio support with ASRC feature for Freescale SoCs that have\n 328:\t\t ESAI/SAI/SSI and connect with external CODECs such as WM8962, CS42888,\n 329:\t\t CS4271, CS4272, SGTL5000 and TLV320AIC32x4.\n 330:\t\t Say Y if you want to add support for Freescale Generic ASoC Sound Card.\n 331:\t\n 332:\tconfig SND_SOC_IMX_AUDMIX\n 333:\t\ttristate \"SoC Audio support for i.MX boards with AUDMIX\"\n 334:\t\tdepends on IMX_SCMI_MISC_DRV || !IMX_SCMI_MISC_DRV\n 335:\t\tselect SND_SOC_FSL_AUDMIX\n 336:\t\tselect SND_SOC_FSL_SAI\n 337:\t\thelp\n 338:\t\t SoC Audio support for i.MX boards with Audio Mixer\n"
} |
| 46/2 | 2026/09/17 17:53 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 28771 output: 31 thoughts: 0 |
| 47/2 | 2026/09/17 17:53 | tool | grepper |
0mArgs:{
"Expression": "config SND_SOC_SAMSUNG",
"PathPrefix": "sound/soc/"
}Results: {
"Output": "sound/soc/samsung/Kconfig-1-# SPDX-License-Identifier: GPL-2.0-only\nsound/soc/samsung/Kconfig:2:menuconfig SND_SOC_SAMSUNG\nsound/soc/samsung/Kconfig-3-\ttristate \"Samsung\"\n--\nsound/soc/samsung/Kconfig=21=config SND_SAMSUNG_I2S\n--\nsound/soc/samsung/Kconfig-23-\nsound/soc/samsung/Kconfig:24:config SND_SOC_SAMSUNG_SMDK_WM8994\nsound/soc/samsung/Kconfig-25-\ttristate \"SoC I2S Audio support for WM8994 on SMDK\"\n--\nsound/soc/samsung/Kconfig-32-\nsound/soc/samsung/Kconfig:33:config SND_SOC_SAMSUNG_SMDK_SPDIF\nsound/soc/samsung/Kconfig-34-\ttristate \"SoC S/PDIF Audio support for SMDK\"\n--\nsound/soc/samsung/Kconfig=110=config SND_SOC_ARNDALE\n--\nsound/soc/samsung/Kconfig-117-\nsound/soc/samsung/Kconfig:118:config SND_SOC_SAMSUNG_TM2_WM5110\nsound/soc/samsung/Kconfig-119-\ttristate \"SoC I2S Audio support for WM5110 on TM2 board\"\n--\nsound/soc/samsung/Kconfig-127-\nsound/soc/samsung/Kconfig:128:config SND_SOC_SAMSUNG_ARIES_WM8994\nsound/soc/samsung/Kconfig-129-\ttristate \"SoC I2S Audio support for WM8994 on Aries\"\n--\nsound/soc/samsung/Kconfig-141-\nsound/soc/samsung/Kconfig:142:config SND_SOC_SAMSUNG_MIDAS_WM1811\nsound/soc/samsung/Kconfig-143-\ttristate \"SoC I2S Audio support for Midas boards\"\n"
} |
| 48/2 | 2026/09/17 17:53 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 29336 output: 32 thoughts: 0 |
| 49/2 | 2026/09/17 17:53 | tool | grepper |
0mArgs:{
"Expression": "menuconfig SND_SOC_SAMSUNG",
"PathPrefix": "sound/soc/"
}Results: {
"Output": "sound/soc/samsung/Kconfig-1-# SPDX-License-Identifier: GPL-2.0-only\nsound/soc/samsung/Kconfig:2:menuconfig SND_SOC_SAMSUNG\nsound/soc/samsung/Kconfig-3-\ttristate \"Samsung\"\n"
} |
| 50/2 | 2026/09/17 17:53 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 29447 output: 35 thoughts: 0 |
| 51/2 | 2026/09/17 17:53 | tool | read-file |
0mArgs:{
"File": "sound/soc/samsung/Kconfig",
"FirstLine": 1,
"LineCount": 25
}Results: {
"Contents": " 1:\t# SPDX-License-Identifier: GPL-2.0-only\n 2:\tmenuconfig SND_SOC_SAMSUNG\n 3:\t\ttristate \"Samsung\"\n 4:\t\tdepends on PLAT_SAMSUNG || ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST\n 5:\t\tdepends on COMMON_CLK\n 6:\t\tselect SND_SOC_GENERIC_DMAENGINE_PCM\n 7:\t\thelp\n 8:\t\t Say Y or M if you want to add support for codecs attached to\n 9:\t\t the Samsung SoCs' Audio interfaces. You will also need to\n 10:\t\t select the audio interfaces to support below.\n 11:\t\n 12:\tif SND_SOC_SAMSUNG\n 13:\t\n 14:\tconfig SND_SAMSUNG_PCM\n 15:\t\ttristate \"Samsung PCM interface support\"\n 16:\t\n 17:\tconfig SND_SAMSUNG_SPDIF\n 18:\t\ttristate \"Samsung SPDIF transmitter support\"\n 19:\t\tselect SND_SOC_SPDIF\n 20:\t\n 21:\tconfig SND_SAMSUNG_I2S\n 22:\t\ttristate \"Samsung I2S interface support\"\n 23:\t\n 24:\tconfig SND_SOC_SAMSUNG_SMDK_WM8994\n 25:\t\ttristate \"SoC I2S Audio support for WM8994 on SMDK\"\n"
} |
| 52/2 | 2026/09/17 17:53 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 29851 output: 36 thoughts: 0 |
| 53/2 | 2026/09/17 17:53 | tool | grepper |
0mArgs:{
"Expression": "wm8994_component_probe",
"PathPrefix": "sound/soc/codecs/"
}Results: {
"Output": "sound/soc/codecs/wm8994.c=4142=static irqreturn_t wm8994_temp_shut(int irq, void *data)\n--\nsound/soc/codecs/wm8994.c-4150-\nsound/soc/codecs/wm8994.c:4151:static int wm8994_component_probe(struct snd_soc_component *component)\nsound/soc/codecs/wm8994.c-4152-{\n--\nsound/soc/codecs/wm8994.c=4617=static const struct snd_soc_component_driver soc_component_dev_wm8994 = {\nsound/soc/codecs/wm8994.c:4618:\t.probe\t\t\t= wm8994_component_probe,\nsound/soc/codecs/wm8994.c-4619-\t.remove\t\t\t= wm8994_component_remove,\n"
} |
| 54/2 | 2026/09/17 17:53 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 30148 output: 43 thoughts: 0 |
| 55/2 | 2026/09/17 17:53 | tool | read-file |
0mArgs:{
"File": "sound/soc/codecs/wm8994.c",
"FirstLine": 4615,
"LineCount": 95
}Results: {
"Contents": "4615:\t}\n4616:\t\n4617:\tstatic const struct snd_soc_component_driver soc_component_dev_wm8994 = {\n4618:\t\t.probe\t\t\t= wm8994_component_probe,\n4619:\t\t.remove\t\t\t= wm8994_component_remove,\n4620:\t\t.suspend\t\t= wm8994_component_suspend,\n4621:\t\t.resume\t\t\t= wm8994_component_resume,\n4622:\t\t.set_bias_level\t\t= wm8994_set_bias_level,\n4623:\t\t.idle_bias_on\t\t= 1,\n4624:\t\t.use_pmdown_time\t= 1,\n4625:\t\t.endianness\t\t= 1,\n4626:\t};\n4627:\t\n4628:\tstatic int wm8994_probe(struct platform_device *pdev)\n4629:\t{\n4630:\t\tstruct wm8994_priv *wm8994;\n4631:\t\tint ret;\n4632:\t\n4633:\t\twm8994 = devm_kzalloc(\u0026pdev-\u003edev, sizeof(struct wm8994_priv),\n4634:\t\t\t\t GFP_KERNEL);\n4635:\t\tif (wm8994 == NULL)\n4636:\t\t\treturn -ENOMEM;\n4637:\t\tplatform_set_drvdata(pdev, wm8994);\n4638:\t\n4639:\t\tmutex_init(\u0026wm8994-\u003efw_lock);\n4640:\t\n4641:\t\twm8994-\u003ewm8994 = dev_get_drvdata(pdev-\u003edev.parent);\n4642:\t\n4643:\t\twm8994-\u003emclk[WM8994_MCLK1].id = \"MCLK1\";\n4644:\t\twm8994-\u003emclk[WM8994_MCLK2].id = \"MCLK2\";\n4645:\t\n4646:\t\tret = devm_clk_bulk_get_optional(pdev-\u003edev.parent, ARRAY_SIZE(wm8994-\u003emclk),\n4647:\t\t\t\t\t\t wm8994-\u003emclk);\n4648:\t\tif (ret \u003c 0) {\n4649:\t\t\tdev_err(\u0026pdev-\u003edev, \"Failed to get clocks: %d\\n\", ret);\n4650:\t\t\treturn ret;\n4651:\t\t}\n4652:\t\n4653:\t\tpm_runtime_enable(\u0026pdev-\u003edev);\n4654:\t\tpm_runtime_idle(\u0026pdev-\u003edev);\n4655:\t\n4656:\t\tret = devm_snd_soc_register_component(\u0026pdev-\u003edev, \u0026soc_component_dev_wm8994,\n4657:\t\t\t\twm8994_dai, ARRAY_SIZE(wm8994_dai));\n4658:\t\tif (ret \u003c 0)\n4659:\t\t\tpm_runtime_disable(\u0026pdev-\u003edev);\n4660:\t\n4661:\t\treturn ret;\n4662:\t}\n4663:\t\n4664:\tstatic void wm8994_remove(struct platform_device *pdev)\n4665:\t{\n4666:\t\tpm_runtime_disable(\u0026pdev-\u003edev);\n4667:\t}\n4668:\t\n4669:\tstatic int wm8994_suspend(struct device *dev)\n4670:\t{\n4671:\t\tstruct wm8994_priv *wm8994 = dev_get_drvdata(dev);\n4672:\t\n4673:\t\t/* Drop down to power saving mode when system is suspended */\n4674:\t\tif (wm8994-\u003ejackdet \u0026\u0026 !wm8994-\u003eactive_refcount)\n4675:\t\t\tregmap_update_bits(wm8994-\u003ewm8994-\u003eregmap, WM8994_ANTIPOP_2,\n4676:\t\t\t\t\t WM1811_JACKDET_MODE_MASK,\n4677:\t\t\t\t\t wm8994-\u003ejackdet_mode);\n4678:\t\n4679:\t\treturn 0;\n4680:\t}\n4681:\t\n4682:\tstatic int wm8994_resume(struct device *dev)\n4683:\t{\n4684:\t\tstruct wm8994_priv *wm8994 = dev_get_drvdata(dev);\n4685:\t\n4686:\t\tif (wm8994-\u003ejackdet \u0026\u0026 wm8994-\u003ejackdet_mode)\n4687:\t\t\tregmap_update_bits(wm8994-\u003ewm8994-\u003eregmap, WM8994_ANTIPOP_2,\n4688:\t\t\t\t\t WM1811_JACKDET_MODE_MASK,\n4689:\t\t\t\t\t WM1811_JACKDET_MODE_AUDIO);\n4690:\t\n4691:\t\treturn 0;\n4692:\t}\n4693:\t\n4694:\tstatic const struct dev_pm_ops wm8994_pm_ops = {\n4695:\t\tSYSTEM_SLEEP_PM_OPS(wm8994_suspend, wm8994_resume)\n4696:\t};\n4697:\t\n4698:\tstatic struct platform_driver wm8994_codec_driver = {\n4699:\t\t.driver = {\n4700:\t\t\t.name = \"wm8994-codec\",\n4701:\t\t\t.pm = pm_ptr(\u0026wm8994_pm_ops),\n4702:\t\t},\n4703:\t\t.probe = wm8994_probe,\n4704:\t\t.remove = wm8994_remove,\n4705:\t};\n4706:\t\n4707:\tmodule_platform_driver(wm8994_codec_driver);\n4708:\t\n4709:\tMODULE_DESCRIPTION(\"ASoC WM8994 driver\");\n"
} |
| 56/2 | 2026/09/17 17:53 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 31815 output: 41 thoughts: 0 |
| 57/2 | 2026/09/17 17:53 | tool | read-file |
0mArgs:{
"File": "drivers/mfd/wm8994-core.c",
"FirstLine": 50,
"LineCount": 45
}Results: {
"Contents": " 50:\tstatic const struct resource wm8994_gpio_resources[] = {\n 51:\t\t{\n 52:\t\t\t.start = WM8994_IRQ_GPIO(1),\n 53:\t\t\t.end = WM8994_IRQ_GPIO(11),\n 54:\t\t\t.flags = IORESOURCE_IRQ,\n 55:\t\t},\n 56:\t};\n 57:\t\n 58:\tstatic const struct mfd_cell wm8994_devs[] = {\n 59:\t\t{\n 60:\t\t\t.name = \"wm8994-codec\",\n 61:\t\t\t.num_resources = ARRAY_SIZE(wm8994_codec_resources),\n 62:\t\t\t.resources = wm8994_codec_resources,\n 63:\t\t},\n 64:\t\n 65:\t\t{\n 66:\t\t\t.name = \"wm8994-gpio\",\n 67:\t\t\t.num_resources = ARRAY_SIZE(wm8994_gpio_resources),\n 68:\t\t\t.resources = wm8994_gpio_resources,\n 69:\t\t\t.pm_runtime_no_callbacks = true,\n 70:\t\t},\n 71:\t};\n 72:\t\n 73:\t/*\n 74:\t * Supplies for the main bulk of CODEC; the LDO supplies are ignored\n 75:\t * and should be handled via the standard regulator API supply\n 76:\t * management.\n 77:\t */\n 78:\tstatic const char *wm1811_main_supplies[] = {\n 79:\t\t\"DBVDD1\",\n 80:\t\t\"DBVDD2\",\n 81:\t\t\"DBVDD3\",\n 82:\t\t\"DCVDD\",\n 83:\t\t\"AVDD1\",\n 84:\t\t\"AVDD2\",\n 85:\t\t\"CPVDD\",\n 86:\t\t\"SPKVDD1\",\n 87:\t\t\"SPKVDD2\",\n 88:\t};\n 89:\t\n 90:\tstatic const char *wm8994_main_supplies[] = {\n 91:\t\t\"DBVDD\",\n 92:\t\t\"DCVDD\",\n 93:\t\t\"AVDD1\",\n 94:\t\t\"AVDD2\",\n"
} |
| 58/2 | 2026/09/17 17:53 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 32460 output: 42 thoughts: 0 |
| 59/2 | 2026/09/17 17:53 | tool | read-file |
0mArgs:{
"File": "drivers/mfd/wm8994-core.c",
"FirstLine": 140,
"LineCount": 70
}Results: {
"Contents": " 140:\t\n 141:\t\t/* Explicitly put the device into reset in case regulators\n 142:\t\t * don't get disabled in order to ensure consistent restart.\n 143:\t\t */\n 144:\t\twm8994_reg_write(wm8994, WM8994_SOFTWARE_RESET,\n 145:\t\t\t\t wm8994_reg_read(wm8994, WM8994_SOFTWARE_RESET));\n 146:\t\n 147:\t\tregcache_mark_dirty(wm8994-\u003eregmap);\n 148:\t\n 149:\t\t/* Restore GPIO registers to prevent problems with mismatched\n 150:\t\t * pin configurations.\n 151:\t\t */\n 152:\t\tret = regcache_sync_region(wm8994-\u003eregmap, WM8994_GPIO_1,\n 153:\t\t\t\t\t WM8994_GPIO_11);\n 154:\t\tif (ret != 0)\n 155:\t\t\tdev_err(dev, \"Failed to restore GPIO registers: %d\\n\", ret);\n 156:\t\n 157:\t\t/* In case one of the GPIOs is used as a wake input. */\n 158:\t\tret = regcache_sync_region(wm8994-\u003eregmap,\n 159:\t\t\t\t\t WM8994_INTERRUPT_STATUS_1_MASK,\n 160:\t\t\t\t\t WM8994_INTERRUPT_STATUS_1_MASK);\n 161:\t\tif (ret != 0)\n 162:\t\t\tdev_err(dev, \"Failed to restore interrupt mask: %d\\n\", ret);\n 163:\t\n 164:\t\tregcache_cache_only(wm8994-\u003eregmap, true);\n 165:\t\twm8994-\u003esuspended = true;\n 166:\t\n 167:\t\tret = regulator_bulk_disable(wm8994-\u003enum_supplies,\n 168:\t\t\t\t\t wm8994-\u003esupplies);\n 169:\t\tif (ret != 0) {\n 170:\t\t\tdev_err(dev, \"Failed to disable supplies: %d\\n\", ret);\n 171:\t\t\treturn ret;\n 172:\t\t}\n 173:\t\n 174:\t\treturn 0;\n 175:\t}\n 176:\t\n 177:\tstatic int wm8994_resume(struct device *dev)\n 178:\t{\n 179:\t\tstruct wm8994 *wm8994 = dev_get_drvdata(dev);\n 180:\t\tint ret;\n 181:\t\n 182:\t\t/* We may have lied to the PM core about suspending */\n 183:\t\tif (!wm8994-\u003esuspended)\n 184:\t\t\treturn 0;\n 185:\t\n 186:\t\tret = regulator_bulk_enable(wm8994-\u003enum_supplies,\n 187:\t\t\t\t\t wm8994-\u003esupplies);\n 188:\t\tif (ret != 0) {\n 189:\t\t\tdev_err(dev, \"Failed to enable supplies: %d\\n\", ret);\n 190:\t\t\treturn ret;\n 191:\t\t}\n 192:\t\n 193:\t\tregcache_cache_only(wm8994-\u003eregmap, false);\n 194:\t\tret = regcache_sync(wm8994-\u003eregmap);\n 195:\t\tif (ret != 0) {\n 196:\t\t\tdev_err(dev, \"Failed to restore register map: %d\\n\", ret);\n 197:\t\t\tgoto err_enable;\n 198:\t\t}\n 199:\t\n 200:\t\t/* Disable LDO pulldowns while the device is active */\n 201:\t\twm8994_set_bits(wm8994, WM8994_PULL_CONTROL_2,\n 202:\t\t\t\tWM8994_LDO1ENA_PD | WM8994_LDO2ENA_PD,\n 203:\t\t\t\t0);\n 204:\t\n 205:\t\twm8994-\u003esuspended = false;\n 206:\t\n 207:\t\treturn 0;\n 208:\t\n 209:\terr_enable:\n"
} |
| 60/2 | 2026/09/17 17:53 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 33650 output: 42 thoughts: 0 |
| 61/2 | 2026/09/17 17:53 | tool | read-file |
0mArgs:{
"File": "drivers/mfd/wm8994-core.c",
"FirstLine": 210,
"LineCount": 90
}Results: {
"Contents": " 210:\t\tregulator_bulk_disable(wm8994-\u003enum_supplies, wm8994-\u003esupplies);\n 211:\t\n 212:\t\treturn ret;\n 213:\t}\n 214:\t\n 215:\t#ifdef CONFIG_REGULATOR\n 216:\tstatic int wm8994_ldo_in_use(struct wm8994_pdata *pdata, int ldo)\n 217:\t{\n 218:\t\tstruct wm8994_ldo_pdata *ldo_pdata;\n 219:\t\n 220:\t\tif (!pdata)\n 221:\t\t\treturn 0;\n 222:\t\n 223:\t\tldo_pdata = \u0026pdata-\u003eldo[ldo];\n 224:\t\n 225:\t\tif (!ldo_pdata-\u003einit_data)\n 226:\t\t\treturn 0;\n 227:\t\n 228:\t\treturn ldo_pdata-\u003einit_data-\u003enum_consumer_supplies != 0;\n 229:\t}\n 230:\t#else\n 231:\tstatic int wm8994_ldo_in_use(struct wm8994_pdata *pdata, int ldo)\n 232:\t{\n 233:\t\treturn 0;\n 234:\t}\n 235:\t#endif\n 236:\t\n 237:\tstatic const struct reg_sequence wm8994_revc_patch[] = {\n 238:\t\t{ 0x102, 0x3 },\n 239:\t\t{ 0x56, 0x3 },\n 240:\t\t{ 0x817, 0x0 },\n 241:\t\t{ 0x102, 0x0 },\n 242:\t};\n 243:\t\n 244:\tstatic const struct reg_sequence wm8958_reva_patch[] = {\n 245:\t\t{ 0x102, 0x3 },\n 246:\t\t{ 0xcb, 0x81 },\n 247:\t\t{ 0x817, 0x0 },\n 248:\t\t{ 0x102, 0x0 },\n 249:\t};\n 250:\t\n 251:\tstatic const struct reg_sequence wm1811_reva_patch[] = {\n 252:\t\t{ 0x102, 0x3 },\n 253:\t\t{ 0x56, 0xc07 },\n 254:\t\t{ 0x5d, 0x7e },\n 255:\t\t{ 0x5e, 0x0 },\n 256:\t\t{ 0x102, 0x0 },\n 257:\t};\n 258:\t\n 259:\t#ifdef CONFIG_OF\n 260:\tstatic int wm8994_set_pdata_from_of(struct wm8994 *wm8994)\n 261:\t{\n 262:\t\tstruct device_node *np = wm8994-\u003edev-\u003eof_node;\n 263:\t\tstruct wm8994_pdata *pdata = \u0026wm8994-\u003epdata;\n 264:\t\tint i;\n 265:\t\n 266:\t\tif (!np)\n 267:\t\t\treturn 0;\n 268:\t\n 269:\t\tif (of_property_read_u32_array(np, \"wlf,gpio-cfg\", pdata-\u003egpio_defaults,\n 270:\t\t\t\t\t ARRAY_SIZE(pdata-\u003egpio_defaults)) \u003e= 0) {\n 271:\t\t\tfor (i = 0; i \u003c ARRAY_SIZE(pdata-\u003egpio_defaults); i++) {\n 272:\t\t\t\tif (wm8994-\u003epdata.gpio_defaults[i] == 0)\n 273:\t\t\t\t\tpdata-\u003egpio_defaults[i]\n 274:\t\t\t\t\t\t= WM8994_CONFIGURE_GPIO;\n 275:\t\t\t}\n 276:\t\t}\n 277:\t\n 278:\t\tof_property_read_u32_array(np, \"wlf,micbias-cfg\", pdata-\u003emicbias,\n 279:\t\t\t\t\t ARRAY_SIZE(pdata-\u003emicbias));\n 280:\t\n 281:\t\tpdata-\u003elineout1_diff = !of_property_read_bool(np, \"wlf,lineout1-se\");\n 282:\t\tpdata-\u003elineout2_diff = !of_property_read_bool(np, \"wlf,lineout2-se\");\n 283:\t\tpdata-\u003elineout1fb = of_property_read_bool(np, \"wlf,lineout1-feedback\");\n 284:\t\tpdata-\u003elineout2fb = of_property_read_bool(np, \"wlf,lineout2-feedback\") ||\n 285:\t\t\tof_property_read_bool(np, \"wlf,ldoena-always-driven\");\n 286:\t\n 287:\t\tpdata-\u003espkmode_pu = of_property_read_bool(np, \"wlf,spkmode-pu\");\n 288:\t\n 289:\t\tpdata-\u003ecsnaddr_pd = of_property_read_bool(np, \"wlf,csnaddr-pd\");\n 290:\t\n 291:\t\treturn 0;\n 292:\t}\n 293:\t#else\n 294:\tstatic int wm8994_set_pdata_from_of(struct wm8994 *wm8994)\n 295:\t{\n 296:\t\treturn 0;\n 297:\t}\n 298:\t#endif\n 299:\t\n"
} |
| 62/2 | 2026/09/17 17:53 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 35241 output: 42 thoughts: 68 Thoughts: Here's my take on the `wm8994_i2c_probe` function, specifically focusing on lines 300 to 450 of `drivers/mfd/wm8994-core.c`. This is where the real action begins, the core setup. **Diving into the wm8994_i2c_probe** Okay, so I'm zeroing in on this probe function for the WM8994, specifically the I2C variant. From the looks of it, lines 300-450 are where we get into the nitty-gritty of initializing this chip. First off, I'm expecting to see the initialization of the internal structures and some preliminary I2C communication to verify the chip's presence. There will be register reads, definitely some register writes to set up the basic operating parameters, and perhaps some error handling around that I2C transaction. I'll need to figure out what registers it is reading and what they indicate about the state of the hardware. Is it using a standard I2C probe sequence, or a custom one for this chip? I know from experience that many codecs use a unique sequence to ensure a valid device. I'm also curious to see how the driver handles potential I2C errors and retries. Does it use the standard I2C error codes, or does it have its own specific error handling? Does it attempt to recover if it can't communicate with the device immediately? I'm anticipating some critical initial register writes to enable the clock and power up the core. Any initial I2C communication failures here would be a huge red flag. My assumption is that the initialization will involve setting up some basic control registers, like power management and clock configurations, to make the chip operational. |
| 63/2 | 2026/09/17 17:53 | tool | read-file |
0mArgs:{
"File": "drivers/mfd/wm8994-core.c",
"FirstLine": 300,
"LineCount": 80
}Results: {
"Contents": " 300:\t/*\n 301:\t * Instantiate the generic non-control parts of the device.\n 302:\t */\n 303:\tstatic int wm8994_device_init(struct wm8994 *wm8994, int irq)\n 304:\t{\n 305:\t\tstruct wm8994_pdata *pdata;\n 306:\t\tstruct regmap_config *regmap_config;\n 307:\t\tconst struct reg_sequence *regmap_patch = NULL;\n 308:\t\tconst char *devname;\n 309:\t\tint ret, i, patch_regs = 0;\n 310:\t\tint pulls = 0;\n 311:\t\n 312:\t\tif (dev_get_platdata(wm8994-\u003edev)) {\n 313:\t\t\tpdata = dev_get_platdata(wm8994-\u003edev);\n 314:\t\t\twm8994-\u003epdata = *pdata;\n 315:\t\t}\n 316:\t\tpdata = \u0026wm8994-\u003epdata;\n 317:\t\n 318:\t\tret = wm8994_set_pdata_from_of(wm8994);\n 319:\t\tif (ret != 0)\n 320:\t\t\treturn ret;\n 321:\t\n 322:\t\t/* Add the on-chip regulators first for bootstrapping */\n 323:\t\tret = mfd_add_devices(wm8994-\u003edev, 0,\n 324:\t\t\t\t wm8994_regulator_devs,\n 325:\t\t\t\t ARRAY_SIZE(wm8994_regulator_devs),\n 326:\t\t\t\t NULL, 0, NULL);\n 327:\t\tif (ret != 0) {\n 328:\t\t\tdev_err(wm8994-\u003edev, \"Failed to add children: %d\\n\", ret);\n 329:\t\t\tgoto err;\n 330:\t\t}\n 331:\t\n 332:\t\tswitch (wm8994-\u003etype) {\n 333:\t\tcase WM1811:\n 334:\t\t\twm8994-\u003enum_supplies = ARRAY_SIZE(wm1811_main_supplies);\n 335:\t\t\tbreak;\n 336:\t\tcase WM8994:\n 337:\t\t\twm8994-\u003enum_supplies = ARRAY_SIZE(wm8994_main_supplies);\n 338:\t\t\tbreak;\n 339:\t\tcase WM8958:\n 340:\t\t\twm8994-\u003enum_supplies = ARRAY_SIZE(wm8958_main_supplies);\n 341:\t\t\tbreak;\n 342:\t\tdefault:\n 343:\t\t\tBUG();\n 344:\t\t\tgoto err;\n 345:\t\t}\n 346:\t\n 347:\t\twm8994-\u003esupplies = devm_kcalloc(wm8994-\u003edev,\n 348:\t\t\t\t\t\twm8994-\u003enum_supplies,\n 349:\t\t\t\t\t\tsizeof(struct regulator_bulk_data),\n 350:\t\t\t\t\t\tGFP_KERNEL);\n 351:\t\tif (!wm8994-\u003esupplies) {\n 352:\t\t\tret = -ENOMEM;\n 353:\t\t\tgoto err;\n 354:\t\t}\n 355:\t\n 356:\t\tswitch (wm8994-\u003etype) {\n 357:\t\tcase WM1811:\n 358:\t\t\tfor (i = 0; i \u003c ARRAY_SIZE(wm1811_main_supplies); i++)\n 359:\t\t\t\twm8994-\u003esupplies[i].supply = wm1811_main_supplies[i];\n 360:\t\t\tbreak;\n 361:\t\tcase WM8994:\n 362:\t\t\tfor (i = 0; i \u003c ARRAY_SIZE(wm8994_main_supplies); i++)\n 363:\t\t\t\twm8994-\u003esupplies[i].supply = wm8994_main_supplies[i];\n 364:\t\t\tbreak;\n 365:\t\tcase WM8958:\n 366:\t\t\tfor (i = 0; i \u003c ARRAY_SIZE(wm8958_main_supplies); i++)\n 367:\t\t\t\twm8994-\u003esupplies[i].supply = wm8958_main_supplies[i];\n 368:\t\t\tbreak;\n 369:\t\tdefault:\n 370:\t\t\tBUG();\n 371:\t\t\tgoto err;\n 372:\t\t}\n 373:\t\n 374:\t\t/*\n 375:\t\t * Can't use devres helper here as some of the supplies are provided by\n 376:\t\t * wm8994-\u003edev's children (regulators) and those regulators are\n 377:\t\t * unregistered by the devres core before the supplies are freed.\n 378:\t\t */\n 379:\t\tret = regulator_bulk_get(wm8994-\u003edev, wm8994-\u003enum_supplies,\n"
} |
| 64/2 | 2026/09/17 17:53 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 37088 output: 42 thoughts: 15 Thoughts: Okay, I'm ready to dive into that section. Here's my take, presented as a first-person summary of the thought process: **Diving into Lines 380-450** Alright, I'm zeroing in on lines 380 through 450. Knowing this context, I'm already anticipating what to find. I know the general subject of this work and where this section sits in the narrative. I'm looking for the key arguments being presented and how they develop. I'll pay close attention to the evidence used – is it strong? Does it support the claims being made? I'm assessing the internal logic, looking for any potential inconsistencies or leaps in reasoning that might have slipped in. Are there any assumptions I can identify, or alternative explanations that aren't being considered? Are the sources credible and the methodology sound? I'm going to look for how this section connects to the broader ideas. In short, I'm ready to carefully dissect this segment and see if it holds up to scrutiny. I'll make a note of the sections that stand out and where the author's arguments are particularly compelling or where I see gaps. |
| 65/2 | 2026/09/17 17:53 | tool | read-file |
0mArgs:{
"File": "drivers/mfd/wm8994-core.c",
"FirstLine": 380,
"LineCount": 70
}Results: {
"Contents": " 380:\t\t\t\t\t wm8994-\u003esupplies);\n 381:\t\tif (ret != 0) {\n 382:\t\t\tif (ret != -EPROBE_DEFER)\n 383:\t\t\t\tdev_err(wm8994-\u003edev, \"Failed to get supplies: %d\\n\",\n 384:\t\t\t\t\tret);\n 385:\t\t\tgoto err;\n 386:\t\t}\n 387:\t\n 388:\t\tret = regulator_bulk_enable(wm8994-\u003enum_supplies, wm8994-\u003esupplies);\n 389:\t\tif (ret != 0) {\n 390:\t\t\tdev_err(wm8994-\u003edev, \"Failed to enable supplies: %d\\n\", ret);\n 391:\t\t\tgoto err_regulator_free;\n 392:\t\t}\n 393:\t\n 394:\t\tret = wm8994_reg_read(wm8994, WM8994_SOFTWARE_RESET);\n 395:\t\tif (ret \u003c 0) {\n 396:\t\t\tdev_err(wm8994-\u003edev, \"Failed to read ID register\\n\");\n 397:\t\t\tgoto err_enable;\n 398:\t\t}\n 399:\t\tswitch (ret) {\n 400:\t\tcase 0x1811:\n 401:\t\t\tdevname = \"WM1811\";\n 402:\t\t\tif (wm8994-\u003etype != WM1811)\n 403:\t\t\t\tdev_warn(wm8994-\u003edev, \"Device registered as type %d\\n\",\n 404:\t\t\t\t\t wm8994-\u003etype);\n 405:\t\t\twm8994-\u003etype = WM1811;\n 406:\t\t\tbreak;\n 407:\t\tcase 0x8994:\n 408:\t\t\tdevname = \"WM8994\";\n 409:\t\t\tif (wm8994-\u003etype != WM8994)\n 410:\t\t\t\tdev_warn(wm8994-\u003edev, \"Device registered as type %d\\n\",\n 411:\t\t\t\t\t wm8994-\u003etype);\n 412:\t\t\twm8994-\u003etype = WM8994;\n 413:\t\t\tbreak;\n 414:\t\tcase 0x8958:\n 415:\t\t\tdevname = \"WM8958\";\n 416:\t\t\tif (wm8994-\u003etype != WM8958)\n 417:\t\t\t\tdev_warn(wm8994-\u003edev, \"Device registered as type %d\\n\",\n 418:\t\t\t\t\t wm8994-\u003etype);\n 419:\t\t\twm8994-\u003etype = WM8958;\n 420:\t\t\tbreak;\n 421:\t\tdefault:\n 422:\t\t\tdev_err(wm8994-\u003edev, \"Device is not a WM8994, ID is %x\\n\",\n 423:\t\t\t\tret);\n 424:\t\t\tret = -EINVAL;\n 425:\t\t\tgoto err_enable;\n 426:\t\t}\n 427:\t\n 428:\t\tret = wm8994_reg_read(wm8994, WM8994_CHIP_REVISION);\n 429:\t\tif (ret \u003c 0) {\n 430:\t\t\tdev_err(wm8994-\u003edev, \"Failed to read revision register: %d\\n\",\n 431:\t\t\t\tret);\n 432:\t\t\tgoto err_enable;\n 433:\t\t}\n 434:\t\twm8994-\u003erevision = ret \u0026 WM8994_CHIP_REV_MASK;\n 435:\t\twm8994-\u003ecust_id = (ret \u0026 WM8994_CUST_ID_MASK) \u003e\u003e WM8994_CUST_ID_SHIFT;\n 436:\t\n 437:\t\tswitch (wm8994-\u003etype) {\n 438:\t\tcase WM8994:\n 439:\t\t\tswitch (wm8994-\u003erevision) {\n 440:\t\t\tcase 0:\n 441:\t\t\tcase 1:\n 442:\t\t\t\tdev_warn(wm8994-\u003edev,\n 443:\t\t\t\t\t \"revision %c not fully supported\\n\",\n 444:\t\t\t\t\t 'A' + wm8994-\u003erevision);\n 445:\t\t\t\tbreak;\n 446:\t\t\tcase 2:\n 447:\t\t\tcase 3:\n 448:\t\t\tdefault:\n 449:\t\t\t\tregmap_patch = wm8994_revc_patch;\n"
} |
| 66/2 | 2026/09/17 17:53 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 38615 output: 32 thoughts: 331 Thoughts: **Tracing the Probe Path for the WM8994 Codec** Okay, so I need to figure out exactly *when* the `wm8994_component_probe` function is called. Right, that's the `probe` callback associated with `soc_component_dev_wm8994`. And `devm_snd_soc_register_component` is the one registering the component with the ASoC framework. The key is in how ASoC sound cards work, when the sound card's machine driver probes, like `snd_soc_bind_card`, it binds the DAIs and the components. Then that triggers `snd_soc_component_probe(component)` and ultimately, the `component->driver->probe(component)` call. So, no machine driver binding to `"wm8994-codec"`, no `wm8994_component_probe` being called! That's the crux of it. Now, which machine drivers *do* bind that codec ID? Let's revisit that grep from earlier... okay, here's what we found: `sound/soc/samsung/littlemill.c`, `sound/soc/samsung/smdk_wm8994.c`, and `sound/soc/samsung/smdk_wm8994pcm.c`. All Samsung boards, all ARM-based. And then…wait a minute, what about `sound/soc/fsl/fsl_asoc_card.c`? We need to verify if that driver actually uses the `"wm8994-codec"` identifier. Let's double-check. |
| 67/2 | 2026/09/17 17:53 | tool | grepper |
0mArgs:{
"Expression": "wm8994",
"PathPrefix": "sound/soc/fsl/"
}Results: {
"Output": "sound/soc/fsl/fsl-asoc-card.c-27-#include \"../codecs/wm8960.h\"\nsound/soc/fsl/fsl-asoc-card.c:28:#include \"../codecs/wm8994.h\"\nsound/soc/fsl/fsl-asoc-card.c-29-#include \"../codecs/tlv320aic31xx.h\"\n--\nsound/soc/fsl/fsl-asoc-card.c=691=static int fsl_asoc_card_probe(struct platform_device *pdev)\n--\nsound/soc/fsl/fsl-asoc-card.c-921-\t} else if (of_device_is_compatible(np, \"fsl,imx-audio-wm8958\")) {\nsound/soc/fsl/fsl-asoc-card.c:922:\t\tcodec_dai_name[0] = \"wm8994-aif1\";\nsound/soc/fsl/fsl-asoc-card.c-923-\t\tpriv-\u003edai_fmt |= SND_SOC_DAIFMT_CBP_CFP;\n"
} |
| 68/2 | 2026/09/17 17:53 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 39639 output: 43 thoughts: 116 Thoughts: **Analyzing Sound Card Driver Compatibility** Okay, so I'm looking at this `fsl_asoc_card.c` file and immediately I know this is for Freescale/NXP i.MX boards, ARM architecture likely, maybe ARM64 as well. And then, there's `Samsung SMDK` and `Littlemill`, which points to Samsung's Exynos/S5PV210 series, also ARM. But hang on... the target architecture is listed as `amd64`! Now, that really throws a wrench into things. My immediate thought is, can `wm8994_component_probe()` *ever* realistically be reached on an amd64 system, given these drivers are clearly aimed at embedded ARM architectures? It's highly suspect, and I need to investigate. I'll need to check if there are any ACPI or x86 sound card definitions, or drivers that, *somehow*, try to use the wm8994 codec on an x86 platform. This is my next step. I'm going to dig a little deeper. |
| 69/2 | 2026/09/17 17:53 | tool | grepper |
0mError:no matches Args: {
"Expression": "wm8994|wm1811|wm8958",
"PathPrefix": "sound/soc/intel/"
}Results: {
"error": "no matches"
} |
| 70/2 | 2026/09/17 17:53 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 40046 output: 43 thoughts: 24 Thoughts: Here's my summary, as though I'm thinking through this process: **Navigating the Codebase: Targeted Exploration** Okay, so I need to track down something, likely a driver or configuration related to audio. My initial thought is to cast a wide net, but to make it a targeted one. I'm going to start by focusing on a few specific areas of the codebase. First, I'll check `sound/soc/amd/` and `sound/soc/` directly. Those seem like logical places to find anything specific to System-on-Chip (SoC) audio on AMD platforms or more generic SoC audio implementations. If those don't pan out, I'll broaden the scope a bit, looking into the `arch/x86` directory, as that's often where architecture-specific drivers and configurations reside. This should cover the most likely candidates without resorting to a full global search just yet. Let's see what these directories yield. |
| 71/2 | 2026/09/17 17:53 | tool | grepper |
0mError:no matches Args: {
"Expression": "wm8994|wm1811|wm8958",
"PathPrefix": "sound/soc/amd/"
}Results: {
"error": "no matches"
} |
| 72/2 | 2026/09/17 17:53 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 40332 output: 43 thoughts: 19 Thoughts: Here's a summary of my thought process, as if I were analyzing that prompt: **Investigating the Codebase** Alright, the user wants a summary of a thought process related to the Linux kernel, specifically concerning the WM8994 audio codec. My immediate thought is, "Okay, kernel audio, got it." The instruction is to start in `arch/x86/`. It suggests a CPU architecture focus. That makes sense, because audio often needs platform-specific initialization and control. I need to focus on how the author might have looked for the WM8994 within that directory. I'd begin by quickly navigating to that path in my mental file tree. I would assume the relevant files might be drivers, platform-specific code, or maybe device-specific configurations within `arch/x86/`. That could include anything that may deal with the codec. |
| 73/2 | 2026/09/17 17:53 | tool | grepper |
0mError:no matches Args: {
"Expression": "wm8994|wm1811|wm8958",
"PathPrefix": "arch/x86/"
}Results: {
"error": "no matches"
} |
| 74/2 | 2026/09/17 17:53 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 40593 output: 29 thoughts: 25 Thoughts: Okay, here's my summary, taking on the persona you requested: **Digging into the wm8994 in the Sound Subsystem** Alright, let's get down to brass tacks. I'm taking a look at this `sound/soc/` directory and immediately my mental checklist starts running. I need to make sure I haven't missed anything obvious. So, first thing's first: let's do a quick scan to see if there are any other machine drivers within this `sound/soc/` space that are already making a reference to the wm8994. I need to quickly identify any potential collisions or unexpected interactions. I should probably be expecting some. Then I will have to figure out how to address those interdependencies. |
| 75/2 | 2026/09/17 17:53 | tool | grepper |
0mArgs:{
"Expression": "wm8994",
"PathPrefix": "sound/soc/"
}Results: {
"Output": "\nFull output is too long, showing 500 out of 2583 lines.\nUse more precise expression if possible.\n\nsound/soc/codecs/Makefile=415=snd-soc-wm8993-y := wm8993.o\nsound/soc/codecs/Makefile:416:snd-soc-wm8994-y := wm8994.o wm8958-dsp2.o\nsound/soc/codecs/Makefile-417-snd-soc-wm8995-y := wm8995.o\n--\nsound/soc/codecs/Makefile=863=obj-$(CONFIG_SND_SOC_WM8993)\t+= snd-soc-wm8993.o\nsound/soc/codecs/Makefile:864:obj-$(CONFIG_SND_SOC_WM8994)\t+= snd-soc-wm8994.o\nsound/soc/codecs/Makefile-865-obj-$(CONFIG_SND_SOC_WM8995)\t+= snd-soc-wm8995.o\n--\nsound/soc/codecs/wm8958-dsp2.c-22-\nsound/soc/codecs/wm8958-dsp2.c:23:#include \u003clinux/mfd/wm8994/core.h\u003e\nsound/soc/codecs/wm8958-dsp2.c:24:#include \u003clinux/mfd/wm8994/registers.h\u003e\nsound/soc/codecs/wm8958-dsp2.c:25:#include \u003clinux/mfd/wm8994/pdata.h\u003e\nsound/soc/codecs/wm8958-dsp2.c:26:#include \u003clinux/mfd/wm8994/gpio.h\u003e\nsound/soc/codecs/wm8958-dsp2.c-27-\n--\nsound/soc/codecs/wm8958-dsp2.c-29-\nsound/soc/codecs/wm8958-dsp2.c:30:#include \"wm8994.h\"\nsound/soc/codecs/wm8958-dsp2.c-31-\n--\nsound/soc/codecs/wm8958-dsp2.c=41=static int wm8958_dsp2_fw(struct snd_soc_component *component, const char *name,\n--\nsound/soc/codecs/wm8958-dsp2.c-43-{\nsound/soc/codecs/wm8958-dsp2.c:44:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-45-\tu64 data64;\n--\nsound/soc/codecs/wm8958-dsp2.c-52-\t/* Suppress unneeded downloads */\nsound/soc/codecs/wm8958-dsp2.c:53:\tif (wm8994-\u003ecur_fw == fw)\nsound/soc/codecs/wm8958-dsp2.c-54-\t\treturn 0;\n--\nsound/soc/codecs/wm8958-dsp2.c-148-\nsound/soc/codecs/wm8958-dsp2.c:149:\t\t\twm8994_bulk_write(wm8994-\u003ewm8994,\nsound/soc/codecs/wm8958-dsp2.c-150-\t\t\t\t\t data32 \u0026 0xffffff,\n--\nsound/soc/codecs/wm8958-dsp2.c-169-\t\tdev_dbg(component-\u003edev, \"%s: download done\\n\", name);\nsound/soc/codecs/wm8958-dsp2.c:170:\t\twm8994-\u003ecur_fw = fw;\nsound/soc/codecs/wm8958-dsp2.c-171-\t} else {\n--\nsound/soc/codecs/wm8958-dsp2.c=188=static void wm8958_dsp_start_mbc(struct snd_soc_component *component, int path)\nsound/soc/codecs/wm8958-dsp2.c-189-{\nsound/soc/codecs/wm8958-dsp2.c:190:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c:191:\tstruct wm8994 *control = wm8994-\u003ewm8994;\nsound/soc/codecs/wm8958-dsp2.c-192-\tint i;\n--\nsound/soc/codecs/wm8958-dsp2.c-198-\t/* If we have MBC firmware download it */\nsound/soc/codecs/wm8958-dsp2.c:199:\tif (wm8994-\u003embc)\nsound/soc/codecs/wm8958-dsp2.c:200:\t\twm8958_dsp2_fw(component, \"MBC\", wm8994-\u003embc, false);\nsound/soc/codecs/wm8958-dsp2.c-201-\n--\nsound/soc/codecs/wm8958-dsp2.c-207-\t\tstruct wm8958_mbc_cfg *cfg\nsound/soc/codecs/wm8958-dsp2.c:208:\t\t\t= \u0026control-\u003epdata.mbc_cfgs[wm8994-\u003embc_cfg];\nsound/soc/codecs/wm8958-dsp2.c-209-\n--\nsound/soc/codecs/wm8958-dsp2.c=232=static void wm8958_dsp_start_vss(struct snd_soc_component *component, int path)\nsound/soc/codecs/wm8958-dsp2.c-233-{\nsound/soc/codecs/wm8958-dsp2.c:234:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c:235:\tstruct wm8994 *control = wm8994-\u003ewm8994;\nsound/soc/codecs/wm8958-dsp2.c-236-\tint i, ena;\nsound/soc/codecs/wm8958-dsp2.c-237-\nsound/soc/codecs/wm8958-dsp2.c:238:\tif (wm8994-\u003embc_vss)\nsound/soc/codecs/wm8958-dsp2.c:239:\t\twm8958_dsp2_fw(component, \"MBC+VSS\", wm8994-\u003embc_vss, false);\nsound/soc/codecs/wm8958-dsp2.c-240-\n--\nsound/soc/codecs/wm8958-dsp2.c-246-\t\tstruct wm8958_mbc_cfg *cfg\nsound/soc/codecs/wm8958-dsp2.c:247:\t\t\t= \u0026control-\u003epdata.mbc_cfgs[wm8994-\u003embc_cfg];\nsound/soc/codecs/wm8958-dsp2.c-248-\n--\nsound/soc/codecs/wm8958-dsp2.c-255-\t\tstruct wm8958_vss_cfg *cfg\nsound/soc/codecs/wm8958-dsp2.c:256:\t\t\t= \u0026control-\u003epdata.vss_cfgs[wm8994-\u003evss_cfg];\nsound/soc/codecs/wm8958-dsp2.c-257-\n--\nsound/soc/codecs/wm8958-dsp2.c-263-\t\tstruct wm8958_vss_hpf_cfg *cfg\nsound/soc/codecs/wm8958-dsp2.c:264:\t\t\t= \u0026control-\u003epdata.vss_hpf_cfgs[wm8994-\u003evss_hpf_cfg];\nsound/soc/codecs/wm8958-dsp2.c-265-\n--\nsound/soc/codecs/wm8958-dsp2.c-275-\tena = 0;\nsound/soc/codecs/wm8958-dsp2.c:276:\tif (wm8994-\u003embc_ena[path])\nsound/soc/codecs/wm8958-dsp2.c-277-\t\tena |= 0x8;\nsound/soc/codecs/wm8958-dsp2.c:278:\tif (wm8994-\u003ehpf2_ena[path])\nsound/soc/codecs/wm8958-dsp2.c-279-\t\tena |= 0x4;\nsound/soc/codecs/wm8958-dsp2.c:280:\tif (wm8994-\u003ehpf1_ena[path])\nsound/soc/codecs/wm8958-dsp2.c-281-\t\tena |= 0x2;\nsound/soc/codecs/wm8958-dsp2.c:282:\tif (wm8994-\u003evss_ena[path])\nsound/soc/codecs/wm8958-dsp2.c-283-\t\tena |= 0x1;\n--\nsound/soc/codecs/wm8958-dsp2.c=293=static void wm8958_dsp_start_enh_eq(struct snd_soc_component *component, int path)\nsound/soc/codecs/wm8958-dsp2.c-294-{\nsound/soc/codecs/wm8958-dsp2.c:295:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c:296:\tstruct wm8994 *control = wm8994-\u003ewm8994;\nsound/soc/codecs/wm8958-dsp2.c-297-\tint i;\nsound/soc/codecs/wm8958-dsp2.c-298-\nsound/soc/codecs/wm8958-dsp2.c:299:\twm8958_dsp2_fw(component, \"ENH_EQ\", wm8994-\u003eenh_eq, false);\nsound/soc/codecs/wm8958-dsp2.c-300-\n--\nsound/soc/codecs/wm8958-dsp2.c-306-\t\tstruct wm8958_enh_eq_cfg *cfg\nsound/soc/codecs/wm8958-dsp2.c:307:\t\t\t= \u0026control-\u003epdata.enh_eq_cfgs[wm8994-\u003eenh_eq_cfg];\nsound/soc/codecs/wm8958-dsp2.c-308-\n--\nsound/soc/codecs/wm8958-dsp2.c=324=static void wm8958_dsp_apply(struct snd_soc_component *component, int path, int start)\nsound/soc/codecs/wm8958-dsp2.c-325-{\nsound/soc/codecs/wm8958-dsp2.c:326:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-327-\tint pwr_reg = snd_soc_component_read(component, WM8994_POWER_MANAGEMENT_5);\n--\nsound/soc/codecs/wm8958-dsp2.c-348-\t/* Do we have both an active AIF and an active algorithm? */\nsound/soc/codecs/wm8958-dsp2.c:349:\tena = wm8994-\u003embc_ena[path] || wm8994-\u003evss_ena[path] ||\nsound/soc/codecs/wm8958-dsp2.c:350:\t\twm8994-\u003ehpf1_ena[path] || wm8994-\u003ehpf2_ena[path] ||\nsound/soc/codecs/wm8958-dsp2.c:351:\t\twm8994-\u003eenh_eq_ena[path];\nsound/soc/codecs/wm8958-dsp2.c-352-\tif (!pwr_reg)\n--\nsound/soc/codecs/wm8958-dsp2.c-357-\tdev_dbg(component-\u003edev, \"DSP path %d %d startup: %d, power: %x, DSP: %x\\n\",\nsound/soc/codecs/wm8958-dsp2.c:358:\t\tpath, wm8994-\u003edsp_active, start, pwr_reg, reg);\nsound/soc/codecs/wm8958-dsp2.c-359-\n--\nsound/soc/codecs/wm8958-dsp2.c-377-\nsound/soc/codecs/wm8958-dsp2.c:378:\t\tif (wm8994-\u003eenh_eq_ena[path])\nsound/soc/codecs/wm8958-dsp2.c-379-\t\t\twm8958_dsp_start_enh_eq(component, path);\nsound/soc/codecs/wm8958-dsp2.c:380:\t\telse if (wm8994-\u003evss_ena[path] || wm8994-\u003ehpf1_ena[path] ||\nsound/soc/codecs/wm8958-dsp2.c:381:\t\t wm8994-\u003ehpf2_ena[path])\nsound/soc/codecs/wm8958-dsp2.c-382-\t\t\twm8958_dsp_start_vss(component, path);\nsound/soc/codecs/wm8958-dsp2.c:383:\t\telse if (wm8994-\u003embc_ena[path])\nsound/soc/codecs/wm8958-dsp2.c-384-\t\t\twm8958_dsp_start_mbc(component, path);\nsound/soc/codecs/wm8958-dsp2.c-385-\nsound/soc/codecs/wm8958-dsp2.c:386:\t\twm8994-\u003edsp_active = path;\nsound/soc/codecs/wm8958-dsp2.c-387-\n--\nsound/soc/codecs/wm8958-dsp2.c-390-\nsound/soc/codecs/wm8958-dsp2.c:391:\tif (!start \u0026\u0026 wm8994-\u003edsp_active == path) {\nsound/soc/codecs/wm8958-dsp2.c-392-\t\t/* If the DSP is already stopped then noop */\n--\nsound/soc/codecs/wm8958-dsp2.c-404-\nsound/soc/codecs/wm8958-dsp2.c:405:\t\twm8994-\u003edsp_active = -1;\nsound/soc/codecs/wm8958-dsp2.c-406-\n--\nsound/soc/codecs/wm8958-dsp2.c=411=int wm8958_aif_ev(struct snd_soc_dapm_widget *w,\n--\nsound/soc/codecs/wm8958-dsp2.c-414-\tstruct snd_soc_component *component = snd_soc_dapm_to_component(w-\u003edapm);\nsound/soc/codecs/wm8958-dsp2.c:415:\tstruct wm8994 *control = dev_get_drvdata(component-\u003edev-\u003eparent);\nsound/soc/codecs/wm8958-dsp2.c-416-\tint i;\n--\nsound/soc/codecs/wm8958-dsp2.c-437-/* Check if DSP2 is in use on another AIF */\nsound/soc/codecs/wm8958-dsp2.c:438:static int wm8958_dsp2_busy(struct wm8994_priv *wm8994, int aif)\nsound/soc/codecs/wm8958-dsp2.c-439-{\n--\nsound/soc/codecs/wm8958-dsp2.c-441-\nsound/soc/codecs/wm8958-dsp2.c:442:\tfor (i = 0; i \u003c ARRAY_SIZE(wm8994-\u003embc_ena); i++) {\nsound/soc/codecs/wm8958-dsp2.c-443-\t\tif (i == aif)\nsound/soc/codecs/wm8958-dsp2.c-444-\t\t\tcontinue;\nsound/soc/codecs/wm8958-dsp2.c:445:\t\tif (wm8994-\u003embc_ena[i] || wm8994-\u003evss_ena[i] ||\nsound/soc/codecs/wm8958-dsp2.c:446:\t\t wm8994-\u003ehpf1_ena[i] || wm8994-\u003ehpf2_ena[i])\nsound/soc/codecs/wm8958-dsp2.c-447-\t\t\treturn 1;\n--\nsound/soc/codecs/wm8958-dsp2.c=453=static int wm8958_put_mbc_enum(struct snd_kcontrol *kcontrol,\n--\nsound/soc/codecs/wm8958-dsp2.c-456-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:457:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c:458:\tstruct wm8994 *control = wm8994-\u003ewm8994;\nsound/soc/codecs/wm8958-dsp2.c-459-\tint value = ucontrol-\u003evalue.enumerated.item[0];\n--\nsound/soc/codecs/wm8958-dsp2.c-469-\nsound/soc/codecs/wm8958-dsp2.c:470:\twm8994-\u003embc_cfg = value;\nsound/soc/codecs/wm8958-dsp2.c-471-\n--\nsound/soc/codecs/wm8958-dsp2.c=475=static int wm8958_get_mbc_enum(struct snd_kcontrol *kcontrol,\n--\nsound/soc/codecs/wm8958-dsp2.c-478-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:479:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-480-\nsound/soc/codecs/wm8958-dsp2.c:481:\tucontrol-\u003evalue.enumerated.item[0] = wm8994-\u003embc_cfg;\nsound/soc/codecs/wm8958-dsp2.c-482-\n--\nsound/soc/codecs/wm8958-dsp2.c=496=static int wm8958_mbc_get(struct snd_kcontrol *kcontrol,\n--\nsound/soc/codecs/wm8958-dsp2.c-500-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:501:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-502-\nsound/soc/codecs/wm8958-dsp2.c:503:\tucontrol-\u003evalue.integer.value[0] = wm8994-\u003embc_ena[mbc];\nsound/soc/codecs/wm8958-dsp2.c-504-\n--\nsound/soc/codecs/wm8958-dsp2.c=508=static int wm8958_mbc_put(struct snd_kcontrol *kcontrol,\n--\nsound/soc/codecs/wm8958-dsp2.c-512-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:513:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-514-\nsound/soc/codecs/wm8958-dsp2.c:515:\tif (wm8994-\u003embc_ena[mbc] == ucontrol-\u003evalue.integer.value[0])\nsound/soc/codecs/wm8958-dsp2.c-516-\t\treturn 0;\n--\nsound/soc/codecs/wm8958-dsp2.c-520-\nsound/soc/codecs/wm8958-dsp2.c:521:\tif (wm8958_dsp2_busy(wm8994, mbc)) {\nsound/soc/codecs/wm8958-dsp2.c-522-\t\tdev_dbg(component-\u003edev, \"DSP2 active on %d already\\n\", mbc);\n--\nsound/soc/codecs/wm8958-dsp2.c-525-\nsound/soc/codecs/wm8958-dsp2.c:526:\tif (wm8994-\u003eenh_eq_ena[mbc])\nsound/soc/codecs/wm8958-dsp2.c-527-\t\treturn -EBUSY;\nsound/soc/codecs/wm8958-dsp2.c-528-\nsound/soc/codecs/wm8958-dsp2.c:529:\twm8994-\u003embc_ena[mbc] = ucontrol-\u003evalue.integer.value[0];\nsound/soc/codecs/wm8958-dsp2.c-530-\nsound/soc/codecs/wm8958-dsp2.c:531:\twm8958_dsp_apply(component, mbc, wm8994-\u003embc_ena[mbc]);\nsound/soc/codecs/wm8958-dsp2.c-532-\n--\nsound/soc/codecs/wm8958-dsp2.c=543=static int wm8958_put_vss_enum(struct snd_kcontrol *kcontrol,\n--\nsound/soc/codecs/wm8958-dsp2.c-546-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:547:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c:548:\tstruct wm8994 *control = wm8994-\u003ewm8994;\nsound/soc/codecs/wm8958-dsp2.c-549-\tint value = ucontrol-\u003evalue.enumerated.item[0];\n--\nsound/soc/codecs/wm8958-dsp2.c-559-\nsound/soc/codecs/wm8958-dsp2.c:560:\twm8994-\u003evss_cfg = value;\nsound/soc/codecs/wm8958-dsp2.c-561-\n--\nsound/soc/codecs/wm8958-dsp2.c=565=static int wm8958_get_vss_enum(struct snd_kcontrol *kcontrol,\n--\nsound/soc/codecs/wm8958-dsp2.c-568-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:569:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-570-\nsound/soc/codecs/wm8958-dsp2.c:571:\tucontrol-\u003evalue.enumerated.item[0] = wm8994-\u003evss_cfg;\nsound/soc/codecs/wm8958-dsp2.c-572-\n--\nsound/soc/codecs/wm8958-dsp2.c=576=static int wm8958_put_vss_hpf_enum(struct snd_kcontrol *kcontrol,\n--\nsound/soc/codecs/wm8958-dsp2.c-579-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:580:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c:581:\tstruct wm8994 *control = wm8994-\u003ewm8994;\nsound/soc/codecs/wm8958-dsp2.c-582-\tint value = ucontrol-\u003evalue.enumerated.item[0];\n--\nsound/soc/codecs/wm8958-dsp2.c-592-\nsound/soc/codecs/wm8958-dsp2.c:593:\twm8994-\u003evss_hpf_cfg = value;\nsound/soc/codecs/wm8958-dsp2.c-594-\n--\nsound/soc/codecs/wm8958-dsp2.c=598=static int wm8958_get_vss_hpf_enum(struct snd_kcontrol *kcontrol,\n--\nsound/soc/codecs/wm8958-dsp2.c-601-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:602:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-603-\nsound/soc/codecs/wm8958-dsp2.c:604:\tucontrol-\u003evalue.enumerated.item[0] = wm8994-\u003evss_hpf_cfg;\nsound/soc/codecs/wm8958-dsp2.c-605-\n--\nsound/soc/codecs/wm8958-dsp2.c=619=static int wm8958_vss_get(struct snd_kcontrol *kcontrol,\n--\nsound/soc/codecs/wm8958-dsp2.c-623-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:624:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-625-\nsound/soc/codecs/wm8958-dsp2.c:626:\tucontrol-\u003evalue.integer.value[0] = wm8994-\u003evss_ena[vss];\nsound/soc/codecs/wm8958-dsp2.c-627-\n--\nsound/soc/codecs/wm8958-dsp2.c=631=static int wm8958_vss_put(struct snd_kcontrol *kcontrol,\n--\nsound/soc/codecs/wm8958-dsp2.c-635-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:636:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-637-\nsound/soc/codecs/wm8958-dsp2.c:638:\tif (wm8994-\u003evss_ena[vss] == ucontrol-\u003evalue.integer.value[0])\nsound/soc/codecs/wm8958-dsp2.c-639-\t\treturn 0;\n--\nsound/soc/codecs/wm8958-dsp2.c-643-\nsound/soc/codecs/wm8958-dsp2.c:644:\tif (!wm8994-\u003embc_vss)\nsound/soc/codecs/wm8958-dsp2.c-645-\t\treturn -ENODEV;\nsound/soc/codecs/wm8958-dsp2.c-646-\nsound/soc/codecs/wm8958-dsp2.c:647:\tif (wm8958_dsp2_busy(wm8994, vss)) {\nsound/soc/codecs/wm8958-dsp2.c-648-\t\tdev_dbg(component-\u003edev, \"DSP2 active on %d already\\n\", vss);\n--\nsound/soc/codecs/wm8958-dsp2.c-651-\nsound/soc/codecs/wm8958-dsp2.c:652:\tif (wm8994-\u003eenh_eq_ena[vss])\nsound/soc/codecs/wm8958-dsp2.c-653-\t\treturn -EBUSY;\nsound/soc/codecs/wm8958-dsp2.c-654-\nsound/soc/codecs/wm8958-dsp2.c:655:\twm8994-\u003evss_ena[vss] = ucontrol-\u003evalue.integer.value[0];\nsound/soc/codecs/wm8958-dsp2.c-656-\nsound/soc/codecs/wm8958-dsp2.c:657:\twm8958_dsp_apply(component, vss, wm8994-\u003evss_ena[vss]);\nsound/soc/codecs/wm8958-dsp2.c-658-\n--\nsound/soc/codecs/wm8958-dsp2.c=680=static int wm8958_hpf_get(struct snd_kcontrol *kcontrol,\n--\nsound/soc/codecs/wm8958-dsp2.c-684-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:685:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-686-\nsound/soc/codecs/wm8958-dsp2.c-687-\tif (hpf \u003c 3)\nsound/soc/codecs/wm8958-dsp2.c:688:\t\tucontrol-\u003evalue.integer.value[0] = wm8994-\u003ehpf1_ena[hpf % 3];\nsound/soc/codecs/wm8958-dsp2.c-689-\telse\nsound/soc/codecs/wm8958-dsp2.c:690:\t\tucontrol-\u003evalue.integer.value[0] = wm8994-\u003ehpf2_ena[hpf % 3];\nsound/soc/codecs/wm8958-dsp2.c-691-\n--\nsound/soc/codecs/wm8958-dsp2.c=695=static int wm8958_hpf_put(struct snd_kcontrol *kcontrol,\n--\nsound/soc/codecs/wm8958-dsp2.c-699-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:700:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-701-\nsound/soc/codecs/wm8958-dsp2.c-702-\tif (hpf \u003c 3) {\nsound/soc/codecs/wm8958-dsp2.c:703:\t\tif (wm8994-\u003ehpf1_ena[hpf % 3] ==\nsound/soc/codecs/wm8958-dsp2.c-704-\t\t ucontrol-\u003evalue.integer.value[0])\n--\nsound/soc/codecs/wm8958-dsp2.c-706-\t} else {\nsound/soc/codecs/wm8958-dsp2.c:707:\t\tif (wm8994-\u003ehpf2_ena[hpf % 3] ==\nsound/soc/codecs/wm8958-dsp2.c-708-\t\t ucontrol-\u003evalue.integer.value[0])\n--\nsound/soc/codecs/wm8958-dsp2.c-714-\nsound/soc/codecs/wm8958-dsp2.c:715:\tif (!wm8994-\u003embc_vss)\nsound/soc/codecs/wm8958-dsp2.c-716-\t\treturn -ENODEV;\nsound/soc/codecs/wm8958-dsp2.c-717-\nsound/soc/codecs/wm8958-dsp2.c:718:\tif (wm8958_dsp2_busy(wm8994, hpf % 3)) {\nsound/soc/codecs/wm8958-dsp2.c-719-\t\tdev_dbg(component-\u003edev, \"DSP2 active on %d already\\n\", hpf);\n--\nsound/soc/codecs/wm8958-dsp2.c-722-\nsound/soc/codecs/wm8958-dsp2.c:723:\tif (wm8994-\u003eenh_eq_ena[hpf % 3])\nsound/soc/codecs/wm8958-dsp2.c-724-\t\treturn -EBUSY;\n--\nsound/soc/codecs/wm8958-dsp2.c-726-\tif (hpf \u003c 3)\nsound/soc/codecs/wm8958-dsp2.c:727:\t\twm8994-\u003ehpf1_ena[hpf % 3] = ucontrol-\u003evalue.integer.value[0];\nsound/soc/codecs/wm8958-dsp2.c-728-\telse\nsound/soc/codecs/wm8958-dsp2.c:729:\t\twm8994-\u003ehpf2_ena[hpf % 3] = ucontrol-\u003evalue.integer.value[0];\nsound/soc/codecs/wm8958-dsp2.c-730-\n--\nsound/soc/codecs/wm8958-dsp2.c=743=static int wm8958_put_enh_eq_enum(struct snd_kcontrol *kcontrol,\n--\nsound/soc/codecs/wm8958-dsp2.c-746-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:747:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c:748:\tstruct wm8994 *control = wm8994-\u003ewm8994;\nsound/soc/codecs/wm8958-dsp2.c-749-\tint value = ucontrol-\u003evalue.enumerated.item[0];\n--\nsound/soc/codecs/wm8958-dsp2.c-759-\nsound/soc/codecs/wm8958-dsp2.c:760:\twm8994-\u003eenh_eq_cfg = value;\nsound/soc/codecs/wm8958-dsp2.c-761-\n--\nsound/soc/codecs/wm8958-dsp2.c=765=static int wm8958_get_enh_eq_enum(struct snd_kcontrol *kcontrol,\n--\nsound/soc/codecs/wm8958-dsp2.c-768-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:769:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-770-\nsound/soc/codecs/wm8958-dsp2.c:771:\tucontrol-\u003evalue.enumerated.item[0] = wm8994-\u003eenh_eq_cfg;\nsound/soc/codecs/wm8958-dsp2.c-772-\n--\nsound/soc/codecs/wm8958-dsp2.c=786=static int wm8958_enh_eq_get(struct snd_kcontrol *kcontrol,\n--\nsound/soc/codecs/wm8958-dsp2.c-790-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:791:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-792-\nsound/soc/codecs/wm8958-dsp2.c:793:\tucontrol-\u003evalue.integer.value[0] = wm8994-\u003eenh_eq_ena[eq];\nsound/soc/codecs/wm8958-dsp2.c-794-\n--\nsound/soc/codecs/wm8958-dsp2.c=798=static int wm8958_enh_eq_put(struct snd_kcontrol *kcontrol,\n--\nsound/soc/codecs/wm8958-dsp2.c-802-\tstruct snd_soc_component *component = snd_kcontrol_chip(kcontrol);\nsound/soc/codecs/wm8958-dsp2.c:803:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-804-\nsound/soc/codecs/wm8958-dsp2.c:805:\tif (wm8994-\u003eenh_eq_ena[eq] == ucontrol-\u003evalue.integer.value[0])\nsound/soc/codecs/wm8958-dsp2.c-806-\t\treturn 0;\n--\nsound/soc/codecs/wm8958-dsp2.c-810-\nsound/soc/codecs/wm8958-dsp2.c:811:\tif (!wm8994-\u003eenh_eq)\nsound/soc/codecs/wm8958-dsp2.c-812-\t\treturn -ENODEV;\nsound/soc/codecs/wm8958-dsp2.c-813-\nsound/soc/codecs/wm8958-dsp2.c:814:\tif (wm8958_dsp2_busy(wm8994, eq)) {\nsound/soc/codecs/wm8958-dsp2.c-815-\t\tdev_dbg(component-\u003edev, \"DSP2 active on %d already\\n\", eq);\n--\nsound/soc/codecs/wm8958-dsp2.c-818-\nsound/soc/codecs/wm8958-dsp2.c:819:\tif (wm8994-\u003embc_ena[eq] || wm8994-\u003evss_ena[eq] ||\nsound/soc/codecs/wm8958-dsp2.c:820:\t wm8994-\u003ehpf1_ena[eq] || wm8994-\u003ehpf2_ena[eq])\nsound/soc/codecs/wm8958-dsp2.c-821-\t\treturn -EBUSY;\nsound/soc/codecs/wm8958-dsp2.c-822-\nsound/soc/codecs/wm8958-dsp2.c:823:\twm8994-\u003eenh_eq_ena[eq] = ucontrol-\u003evalue.integer.value[0];\nsound/soc/codecs/wm8958-dsp2.c-824-\n--\nsound/soc/codecs/wm8958-dsp2.c=861=static void wm8958_enh_eq_loaded(const struct firmware *fw, void *context)\n--\nsound/soc/codecs/wm8958-dsp2.c-863-\tstruct snd_soc_component *component = context;\nsound/soc/codecs/wm8958-dsp2.c:864:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-865-\nsound/soc/codecs/wm8958-dsp2.c-866-\tif (fw \u0026\u0026 (wm8958_dsp2_fw(component, \"ENH_EQ\", fw, true) == 0)) {\nsound/soc/codecs/wm8958-dsp2.c:867:\t\tmutex_lock(\u0026wm8994-\u003efw_lock);\nsound/soc/codecs/wm8958-dsp2.c:868:\t\twm8994-\u003eenh_eq = fw;\nsound/soc/codecs/wm8958-dsp2.c:869:\t\tmutex_unlock(\u0026wm8994-\u003efw_lock);\nsound/soc/codecs/wm8958-dsp2.c-870-\t}\n--\nsound/soc/codecs/wm8958-dsp2.c=873=static void wm8958_mbc_vss_loaded(const struct firmware *fw, void *context)\n--\nsound/soc/codecs/wm8958-dsp2.c-875-\tstruct snd_soc_component *component = context;\nsound/soc/codecs/wm8958-dsp2.c:876:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-877-\nsound/soc/codecs/wm8958-dsp2.c-878-\tif (fw \u0026\u0026 (wm8958_dsp2_fw(component, \"MBC+VSS\", fw, true) == 0)) {\nsound/soc/codecs/wm8958-dsp2.c:879:\t\tmutex_lock(\u0026wm8994-\u003efw_lock);\nsound/soc/codecs/wm8958-dsp2.c:880:\t\twm8994-\u003embc_vss = fw;\nsound/soc/codecs/wm8958-dsp2.c:881:\t\tmutex_unlock(\u0026wm8994-\u003efw_lock);\nsound/soc/codecs/wm8958-dsp2.c-882-\t}\n--\nsound/soc/codecs/wm8958-dsp2.c=885=static void wm8958_mbc_loaded(const struct firmware *fw, void *context)\n--\nsound/soc/codecs/wm8958-dsp2.c-887-\tstruct snd_soc_component *component = context;\nsound/soc/codecs/wm8958-dsp2.c:888:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c-889-\nsound/soc/codecs/wm8958-dsp2.c-890-\tif (fw \u0026\u0026 (wm8958_dsp2_fw(component, \"MBC\", fw, true) == 0)) {\nsound/soc/codecs/wm8958-dsp2.c:891:\t\tmutex_lock(\u0026wm8994-\u003efw_lock);\nsound/soc/codecs/wm8958-dsp2.c:892:\t\twm8994-\u003embc = fw;\nsound/soc/codecs/wm8958-dsp2.c:893:\t\tmutex_unlock(\u0026wm8994-\u003efw_lock);\nsound/soc/codecs/wm8958-dsp2.c-894-\t}\n--\nsound/soc/codecs/wm8958-dsp2.c=897=void wm8958_dsp2_init(struct snd_soc_component *component)\nsound/soc/codecs/wm8958-dsp2.c-898-{\nsound/soc/codecs/wm8958-dsp2.c:899:\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\nsound/soc/codecs/wm8958-dsp2.c:900:\tstruct wm8994 *control = wm8994-\u003ewm8994;\nsound/soc/codecs/wm8958-dsp2.c:901:\tstruct wm8994_pdata *pdata = \u0026control-\u003epdata;\nsound/soc/codecs/wm8958-dsp2.c-902-\tint ret, i;\nsound/soc/codecs/wm8958-dsp2.c-903-\nsound/soc/codecs/wm8958-dsp2.c:904:\twm8994-\u003edsp_active = -1;\nsound/soc/codecs/wm8958-dsp2.c-905-\n--\nsound/soc/codecs/wm8958-dsp2.c-926-\t\tstruct snd_kcontrol_new mbc_control[] = {\nsound/soc/codecs/wm8958-dsp2.c:927:\t\t\tSOC_ENUM_EXT(\"MBC Mode\", wm8994-\u003embc_enum,\nsound/soc/codecs/wm8958-dsp2.c-928-\t\t\t\t wm8958_get_mbc_enum, wm8958_put_mbc_enum),\n--\nsound/soc/codecs/wm8958-dsp2.c-931-\t\t/* We need an array of texts for the enum API */\nsound/soc/codecs/wm8958-dsp2.c:932:\t\twm8994-\u003embc_texts = kmalloc_array(pdata-\u003enum_mbc_cfgs,\nsound/soc/codecs/wm8958-dsp2.c-933-\t\t\t\t\t\t sizeof(char *),\nsound/soc/codecs/wm8958-dsp2.c-934-\t\t\t\t\t\t GFP_KERNEL);\nsound/soc/codecs/wm8958-dsp2.c:935:\t\tif (!wm8994-\u003embc_texts)\nsound/soc/codecs/wm8958-dsp2.c-936-\t\t\treturn;\n--\nsound/soc/codecs/wm8958-dsp2.c-938-\t\tfor (i = 0; i \u003c pdata-\u003enum_mbc_cfgs; i++)\nsound/soc/codecs/wm8958-dsp2.c:939:\t\t\twm8994-\u003embc_texts[i] = pdata-\u003embc_cfgs[i].name;\nsound/soc/codecs/wm8958-dsp2.c-940-\nsound/soc/codecs/wm8958-dsp2.c:941:\t\twm8994-\u003embc_enum.items = pdata-\u003enum_mbc_cfgs;\nsound/soc/codecs/wm8958-dsp2.c:942:\t\twm8994-\u003embc_enum.texts = wm8994-\u003embc_texts;\nsound/soc/codecs/wm8958-dsp2.c-943-\nsound/soc/codecs/wm8958-dsp2.c:944:\t\tret = snd_soc_add_component_controls(wm8994-\u003ehubs.component,\nsound/soc/codecs/wm8958-dsp2.c-945-\t\t\t\t\t\t mbc_control, 1);\nsound/soc/codecs/wm8958-dsp2.c-946-\t\tif (ret != 0)\nsound/soc/codecs/wm8958-dsp2.c:947:\t\t\tdev_err(wm8994-\u003ehubs.component-\u003edev,\nsound/soc/codecs/wm8958-dsp2.c-948-\t\t\t\t\"Failed to add MBC mode controls: %d\\n\", ret);\n--\nsound/soc/codecs/wm8958-dsp2.c-952-\t\tstruct snd_kcontrol_new vss_control[] = {\nsound/soc/codecs/wm8958-dsp2.c:953:\t\t\tSOC_ENUM_EXT(\"VSS Mode\", wm8994-\u003evss_enum,\nsound/soc/codecs/wm8958-dsp2.c-954-\t\t\t\t wm8958_get_vss_enum, wm8958_put_vss_enum),\n--\nsound/soc/codecs/wm8958-dsp2.c-957-\t\t/* We need an array of texts for the enum API */\nsound/soc/codecs/wm8958-dsp2.c:958:\t\twm8994-\u003evss_texts = kmalloc_array(pdata-\u003enum_vss_cfgs,\nsound/soc/codecs/wm8958-dsp2.c-959-\t\t\t\t\t\t sizeof(char *),\nsound/soc/codecs/wm8958-dsp2.c-960-\t\t\t\t\t\t GFP_KERNEL);\nsound/soc/codecs/wm8958-dsp2.c:961:\t\tif (!wm8994-\u003evss_texts)\nsound/soc/codecs/wm8958-dsp2.c-962-\t\t\treturn;\n--\nsound/soc/codecs/wm8958-dsp2.c-964-\t\tfor (i = 0; i \u003c pdata-\u003enum_vss_cfgs; i++)\nsound/soc/codecs/wm8958-dsp2.c:965:\t\t\twm8994-\u003evss_texts[i] = pdata-\u003evss_cfgs[i].name;\nsound/soc/codecs/wm8958-dsp2.c-966-\nsound/soc/codecs/wm8958-dsp2.c:967:\t\twm8994-\u003evss_enum.items = pdata-\u003enum_vss_cfgs;\nsound/soc/codecs/wm8958-dsp2.c:968:\t\twm8994-\u003evss_enum.texts = wm8994-\u003evss_texts;\nsound/soc/codecs/wm8958-dsp2.c-969-\nsound/soc/codecs/wm8958-dsp2.c:970:\t\tret = snd_soc_add_component_controls(wm8994-\u003ehubs.component,\nsound/soc/codecs/wm8958-dsp2.c-971-\t\t\t\t\t\t vss_control, 1);\nsound/soc/codecs/wm8958-dsp2.c-972-\t\tif (ret != 0)\nsound/soc/codecs/wm8958-dsp2.c:973:\t\t\tdev_err(wm8994-\u003ehubs.component-\u003edev,\nsound/soc/codecs/wm8958-dsp2.c-974-\t\t\t\t\"Failed to add VSS mode controls: %d\\n\", ret);\n--\nsound/soc/codecs/wm8958-dsp2.c-978-\t\tstruct snd_kcontrol_new hpf_control[] = {\nsound/soc/codecs/wm8958-dsp2.c:979:\t\t\tSOC_ENUM_EXT(\"VSS HPF Mode\", wm8994-\u003evss_hpf_enum,\nsound/soc/codecs/wm8958-dsp2.c-980-\t\t\t\t wm8958_get_vss_hpf_enum,\n--\nsound/soc/codecs/wm8958-dsp2.c-984-\t\t/* We need an array of texts for the enum API */\nsound/soc/codecs/wm8958-dsp2.c:985:\t\twm8994-\u003evss_hpf_texts = kmalloc_array(pdata-\u003enum_vss_hpf_cfgs,\nsound/soc/codecs/wm8958-dsp2.c-986-\t\t\t\t\t\t sizeof(char *),\nsound/soc/codecs/wm8958-dsp2.c-987-\t\t\t\t\t\t GFP_KERNEL);\nsound/soc/codecs/wm8958-dsp2.c:988:\t\tif (!wm8994-\u003evss_hpf_texts)\nsound/soc/codecs/wm8958-dsp2.c-989-\t\t\treturn;\n--\nsound/soc/codecs/wm8958-dsp2.c-991-\t\tfor (i = 0; i \u003c pdata-\u003enum_vss_hpf_cfgs; i++)\nsound/soc/codecs/wm8958-dsp2.c:992:\t\t\twm8994-\u003evss_hpf_texts[i] = pdata-\u003evss_hpf_cfgs[i].name;\nsound/soc/codecs/wm8958-dsp2.c-993-\nsound/soc/codecs/wm8958-dsp2.c:994:\t\twm8994-\u003evss_hpf_enum.items = pdata-\u003enum_vss_hpf_cfgs;\nsound/soc/codecs/wm8958-dsp2.c:995:\t\twm8994-\u003evss_hpf_enum.texts = wm8994-\u003evss_hpf_texts;\nsound/soc/codecs/wm8958-dsp2.c-996-\nsound/soc/codecs/wm8958-dsp2.c:997:\t\tret = snd_soc_add_component_controls(wm8994-\u003ehubs.component,\nsound/soc/codecs/wm8958-dsp2.c-998-\t\t\t\t\t\t hpf_control, 1);\nsound/soc/codecs/wm8958-dsp2.c-999-\t\tif (ret != 0)\nsound/soc/codecs/wm8958-dsp2.c:1000:\t\t\tdev_err(wm8994-\u003ehubs.component-\u003edev,\nsound/soc/codecs/wm8958-dsp2.c-1001-\t\t\t\t\"Failed to add VSS HPFmode controls: %d\\n\",\n--\nsound/soc/codecs/wm8958-dsp2.c-1006-\t\tstruct snd_kcontrol_new eq_control[] = {\nsound/soc/codecs/wm8958-dsp2.c:1007:\t\t\tSOC_ENUM_EXT(\"Enhanced EQ Mode\", wm8994-\u003eenh_eq_enum,\nsound/soc/codecs/wm8958-dsp2.c-1008-\t\t\t\t wm8958_get_enh_eq_enum,\n--\nsound/soc/codecs/wm8958-dsp2.c-1012-\t\t/* We need an array of texts for the enum API */\nsound/soc/codecs/wm8958-dsp2.c:1013:\t\twm8994-\u003eenh_eq_texts = kmalloc_array(pdata-\u003enum_enh_eq_cfgs,\nsound/soc/codecs/wm8958-dsp2.c-1014-\t\t\t\t\t\t sizeof(char *),\nsound/soc/codecs/wm8958-dsp2.c-1015-\t\t\t\t\t\t GFP_KERNEL);\nsound/soc/codecs/wm8958-dsp2.c:1016:\t\tif (!wm8994-\u003eenh_eq_texts)\nsound/soc/codecs/wm8958-dsp2.c-1017-\t\t\treturn;\n--\nsound/soc/codecs/wm8958-dsp2.c-1019-\t\tfor (i = 0; i \u003c pdata-\u003enum_enh_eq_cfgs; i++)\nsound/soc/codecs/wm8958-dsp2.c:1020:\t\t\twm8994-\u003eenh_eq_texts[i] = pdata-\u003eenh_eq_cfgs[i].name;\nsound/soc/codecs/wm8958-dsp2.c-1021-\nsound/soc/codecs/wm8958-dsp2.c:1022:\t\twm8994-\u003eenh_eq_enum.items = pdata-\u003enum_enh_eq_cfgs;\nsound/soc/codecs/wm8958-dsp2.c:1023:\t\twm8994-\u003eenh_eq_enum.texts = wm8994-\u003eenh_eq_texts;\nsound/soc/codecs/wm8958-dsp2.c-1024-\nsound/soc/codecs/wm8958-dsp2.c:1025:\t\tret = snd_soc_add_component_controls(wm8994-\u003ehubs.component,\nsound/soc/codecs/wm8958-dsp2.c-1026-\t\t\t\t\t\t eq_control, 1);\nsound/soc/codecs/wm8958-dsp2.c-1027-\t\tif (ret != 0)\nsound/soc/codecs/wm8958-dsp2.c:1028:\t\t\tdev_err(wm8994-\u003ehubs.component-\u003edev,\nsound/soc/codecs/wm8958-dsp2.c-1029-\t\t\t\t\"Failed to add enhanced EQ controls: %d\\n\",\n--\nsound/soc/codecs/wm8994.c-2-/*\nsound/soc/codecs/wm8994.c:3: * wm8994.c -- WM8994 ALSA SoC Audio driver\nsound/soc/codecs/wm8994.c-4- *\n--\nsound/soc/codecs/wm8994.c-29-\nsound/soc/codecs/wm8994.c:30:#include \u003clinux/mfd/wm8994/core.h\u003e\n\n"
} |
| 76/2 | 2026/09/17 17:53 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 56320 output: 172 thoughts: 1143 Thoughts: **Analysis of WM8994 Code Reachability on amd64** Okay, let's break this down systematically. I need to determine if the changes in `wm8994_component_probe` are relevant to fuzzing on an `amd64` architecture. First, I looked at where `wm8994` is used within `sound/soc/`. The code references point exclusively to specific ARM SoC machine drivers: Freescale i.MX and Samsung boards. This immediately raises a red flag; these are not architectures typically found on `amd64` systems. Further investigation confirms this. The `wm8994` is a physical audio codec chip from Wolfson (now Cirrus Logic), controlled over I2C, and used on specific embedded development boards. It's not emulated in standard QEMU or any virtualized environment I'm familiar with on `amd64`. This hardware is simply not present in a standard virtual environment. Now, let's apply the criteria outlined in Section 2, specifically the negative criteria. My analysis shows that the modified code, specifically within `wm8994_component_probe` in `sound/soc/codecs/wm8994.c`, falls squarely into the category of "structurally unreachable hardware". The WM8994 is an embedded audio codec designed for ARM-based boards, and I've established that the relevant code path is exclusive to architectures other than amd64. The changes involve an early return due to a failure in `regmap_read`, specifically adding `pm_runtime_put` before a goto, which still indicates a scenario not relevant on x86_64. To be absolutely certain, I considered the possibility of virtual buses, as mentioned in Section 3. However, even if an I2C device could somehow be instantiated on amd64, the `wm8994_device_init` would still require a valid chip ID and supply management. Moreover, the `wm8994_component_probe` is an ASoC component probe callback, triggered only when a sound card machine driver binds the component. Since all machine drivers that bind the `wm8994-codec` are ARM board drivers, I can confidently conclude this codepath is unreachable on `amd64`. The evidence is clear. Therefore, I will now proceed to set the results accordingly. |
| 77/2 | 2026/09/17 17:53 | tool | set-results |
0mArgs:{
"EnableConfigs": [],
"FocusSymbols": [],
"Reasoning": "The patch adds missing pm_runtime_put() calls to error paths in wm8994_component_probe() in sound/soc/codecs/wm8994.c. The WM8994 is a physical audio codec IC used on ARM-based platforms (such as Samsung Exynos/S5PV210 and Freescale i.MX). It requires physical hardware or specific hardware emulation not present in standard virtualized environments (QEMU/GCE) on amd64, and the ASoC machine drivers that bind this codec are exclusive to ARM platforms. Therefore, the modified code is structurally unreachable on the target architecture (amd64).",
"WorthFuzzing": false
}Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch adds missing pm_runtime_put() calls to error paths in wm8994_component_probe() in sound/soc/codecs/wm8994.c. The WM8994 is a physical audio codec IC used on ARM-based platforms (such as Samsung Exynos/S5PV210 and Freescale i.MX). It requires physical hardware or specific hardware emulation not present in standard virtualized environments (QEMU/GCE) on amd64, and the ASoC machine drivers that bind this codec are exclusive to ARM platforms. Therefore, the modified code is structurally unreachable on the target architecture (amd64).",
"WorthFuzzing": false
} |
| 78/1 | 2026/09/17 17:53 | action | If |
0mArgs:{
"WorthFuzzing": false
}Results: null |
| Total Calls | Total Tokens | Avg Tokens | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|
| Total Calls | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|