ASoC: rt722: enable mono speaker on Dell SKU 0EBA
Subsystems (3)
PATCH 1/1 ASoC: rt722: enable mono speaker on Dell SKU 0EBA
From: Shuming Fan <[email protected]>
Dell SKU 0EBA uses only the left audio channel and a single speaker. Add the corresponding settings to support this configuration.
--- sound/soc/codecs/rt722-sdca.c | 18 ++++++++++++++++++ sound/soc/codecs/rt722-sdca.h | 2 ++ 2 files changed, 20 insertions(+)
sound/soc/codecs/rt722-sdca.c +18 -0
@@ -1652,6 +1652,17 @@ int rt722_sdca_init(struct device *dev, struct regmap *regmap, struct sdw_slave &soc_sdca_dev_rt722, rt722_sdca_dai, ARRAY_SIZE(rt722_sdca_dai)); } +static const struct dmi_system_id dmi_dell_mono_spk_quirk_table[] = { + { + .ident ="Dell Pro 5 Micro P5M1270" , + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Dell Inc" ), +DMI_EXACT_MATCH (DMI_PRODUCT_SKU ,"0EBA" ), + } + }, + {} +}; +static void rt722_sdca_dmic_preset (struct rt722_sdca_priv *rt722) {unsigned int mic_func_status;
@@ -1741,6 +1752,13 @@ static void rt722_sdca_amp_preset(struct rt722_sdca_priv *rt722)if (rt722->hw_vid ==RT722_VB )regmap_write (rt722->regmap,0x2f54 ,0x00 ); +/* This Dell machine only uses the mono speaker */ +if (dmi_check_system (dmi_dell_mono_spk_quirk_table)) { +rt722_sdca_index_write (rt722,RT722_VENDOR_REG ,RT722_CLSD_CTRL2 ,0x391a ); +rt722_sdca_index_update_bits (rt722,RT722_VENDOR_REG , +RT722_MISC_CTRL2 ,0x0010 ,0x0010 ); + } +/* clear flag */ regmap_write(rt722->regmap, SDW_SDCA_CTL(FUNC_NUM_AMP, RT722_SDCA_ENT0, RT722_SDCA_CTL_FUNC_STATUS, 0),
sound/soc/codecs/rt722-sdca.h +2 -0
@@ -68,9 +68,11 @@ struct rt722_sdca_dmic_kctrl_priv {#define RT722_ANALOG_BIAS_CTL3 0x04#define RT722_MISC_CTRL1 0x07#define RT722_JD_CTRL1 0x09 +#define RT722_MISC_CTRL2 0x0d#define RT722_LDO2_3_CTL1 0x0e#define RT722_LDO1_CTL 0x1a#define RT722_HP_JD_CTRL 0x24 +#define RT722_CLSD_CTRL2 0x38#define RT722_CLSD_CTRL6 0x3c#define RT722_COMBO_JACK_AUTO_CTL1 0x45#define RT722_COMBO_JACK_AUTO_CTL2 0x46
Signature · 1 line
2.55.0
Mark Brown
maintainerQuoted 1 line · On Wed, 21 Oct 2026 17:09:29 +0800, [email protected] wrote:
ASoC: rt722: enable mono speaker on Dell SKU 0EBA
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.4
Thanks!
[1/1] ASoC: rt722: enable mono speaker on Dell SKU 0EBA
https://git.kernel.org/broonie/sound/c/ad45d5369c56
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark