ASoC: rt5650: enhance spk protection function
Subsystems (3)
PATCH 1/1 ASoC: rt5650: enhance spk protection function
From: Shuming Fan <[email protected]>
This patch adjusts several default settings to ensure the speaker protection function can be enabled safely.
--- sound/soc/codecs/rt5645.c | 6 ++---- sound/soc/codecs/rt5645.h | 1 + 2 files changed, 3 insertions(+), 4 deletions(-)
sound/soc/codecs/rt5645.c +2 -4
@@ -83,6 +83,8 @@ static const struct reg_sequence rt5650_init_list[] = { {RT5645_PWR_ANLG1, 0x02}, {RT5645_IL_CMD3, 0x6728}, {RT5645_PR_BASE + 0x3a, 0x0000}, + {RT5645_CLSD_OUT_CTRL1, 0x4059}, + {RT5645_GEN_CTRL3, 0x0200}, }; static const struct reg_default rt5645_reg[] = {
@@ -1855,13 +1857,9 @@ static int rt5645_spk_event(struct snd_soc_dapm_widget *w,RT5645_PWR_CLS_D_L ,RT5645_PWR_CLS_D |RT5645_PWR_CLS_D_R | RT5645_PWR_CLS_D_L); -snd_soc_component_update_bits (component,RT5645_GEN_CTRL3 , -RT5645_DET_CLK_MASK ,RT5645_DET_CLK_MODE1 );break ;case SND_SOC_DAPM_PRE_PMD : -snd_soc_component_update_bits (component,RT5645_GEN_CTRL3 , -RT5645_DET_CLK_MASK ,RT5645_DET_CLK_DIS );snd_soc_component_write (component,RT5645_EQ_CTRL2 ,0 ); snd_soc_component_update_bits(component, RT5645_PWR_DIG1, RT5645_PWR_CLS_D | RT5645_PWR_CLS_D_R |
sound/soc/codecs/rt5645.h +1 -0
@@ -118,6 +118,7 @@#define RT5645_A_JD_CTRL1 0x94#define RT5645_VAD_CTRL4 0x9d#define RT5645_CLSD_OUT_CTRL 0xa0 +#define RT5645_CLSD_OUT_CTRL1 0xa1/* Function - Digital */ #define RT5645_ADC_EQ_CTRL1 0xae#define RT5645_ADC_EQ_CTRL2 0xaf
Signature · 1 line
2.54.0
Mark Brown
maintainerQuoted 1 line · On Mon, 15 Jun 2026 17:10:12 +0800, [email protected] wrote:
ASoC: rt5650: enhance spk protection function
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.2
Thanks!
[1/1] ASoC: rt5650: enhance spk protection function
https://git.kernel.org/broonie/sound/c/5096a1634def
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