From: Peter Jakubek peterjakubek@gmail.com
[ Upstream commit 1b03391d073dad748636a1ad9668b837cce58265 ]
Add DMI quirk entry for Alienware systems with SKU "0CCC" to enable proper speaker codec configuration (SOC_SDW_CODEC_SPKR).
This system requires the same audio configuration as some existing Dell systems. Without this patch, the laptop's speakers and microphone will not work.
Signed-off-by: Peter Jakubek peterjakubek@gmail.com Link: https://patch.msgid.link/20250731172104.2009007-1-peterjakubek@gmail.com Signed-off-by: Mark Brown broonie@kernel.org Signed-off-by: Sasha Levin sashal@kernel.org ---
LLM Generated explanations, may be completely bogus:
Now, let me analyze the commit for backport suitability:
**Backport Status: YES**
## Extensive Analysis:
This commit should be backported to stable kernel trees based on the following detailed analysis:
### 1. **Hardware Enablement Fix** The commit adds a DMI quirk entry for the Alienware Area 51 (2025) with SKU "0CCC" to enable proper speaker codec configuration. The commit message explicitly states: "Without this patch, the laptop's speakers and microphone will not work." This is a clear hardware functionality fix where audio devices are completely non-functional without this patch.
### 2. **Minimal and Contained Change** The code change is extremely minimal - it adds exactly 8 lines to the `sof_sdw_quirk_table[]` array: ```c + { + .callback = sof_sdw_quirk_cb, + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Alienware"), + DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "0CCC") + }, + .driver_data = (void *)(SOC_SDW_CODEC_SPKR), + }, ```
### 3. **Follows Established Pattern** The change follows the exact same pattern as numerous other Dell/Alienware system quirks already in the file. Looking at lines 694-742 in the same file, we can see identical entries for Dell systems with different SKUs (0CF1, 0CF3, 0CF4, 0CF5, etc.), all using the same `SOC_SDW_CODEC_SPKR` flag.
### 4. **Zero Risk of Regression** The quirk only activates when the DMI system matches exactly "Alienware" vendor and SKU "0CCC". This makes it impossible to affect any other systems. The `SOC_SDW_CODEC_SPKR` flag (defined in `/home/sasha/linux/include/sound/soc_sdw_utils.h` as BIT(15)) enables codec internal speaker support, which is a well-tested configuration used by many other systems.
### 5. **Similar Commits Are Routinely Backported** Recent git history shows numerous similar quirk additions for Dell and Lenovo systems (commits like d859923faeca, af23d38caae5, 60f1c71ec874) that add DMI quirks for audio hardware enablement. These types of hardware enablement fixes are regularly accepted into stable trees.
### 6. **User Impact** Without this patch, users of the Alienware Area 51 (2025) laptop have completely non-functional audio (no speakers, no microphone). This severely impacts the usability of the device and would force users to use external audio devices or compile custom kernels.
### 7. **No Architectural Changes** The commit makes no architectural changes, adds no new features, and simply extends an existing quirk table with a new hardware ID. It uses existing, well-tested infrastructure (DMI matching and SOC_SDW_CODEC_SPKR flag).
### Conclusion: This is a textbook example of a commit that should be backported to stable kernels. It fixes a real hardware issue (non-functional audio), has zero regression risk due to exact DMI matching, follows established patterns, and is minimal in scope. The fix enables basic functionality for affected hardware without any possibility of impacting other systems.
sound/soc/intel/boards/sof_sdw.c | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/sound/soc/intel/boards/sof_sdw.c b/sound/soc/intel/boards/sof_sdw.c index 504887505e68..c576ec5527f9 100644 --- a/sound/soc/intel/boards/sof_sdw.c +++ b/sound/soc/intel/boards/sof_sdw.c @@ -741,6 +741,14 @@ static const struct dmi_system_id sof_sdw_quirk_table[] = { }, .driver_data = (void *)(SOC_SDW_CODEC_SPKR), }, + { + .callback = sof_sdw_quirk_cb, + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Alienware"), + DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "0CCC") + }, + .driver_data = (void *)(SOC_SDW_CODEC_SPKR), + }, /* Pantherlake devices*/ { .callback = sof_sdw_quirk_cb,