ASoC: rt712-sdca: reconfigure PLL2 to fix calibration time-out
Subsystems (3)
PATCH v2 1/1 ASoC: rt712-sdca: reconfigure PLL2 to fix calibration time-out
From: Jack Yu <[email protected]>
Add pll2 reconfiguration sequence in order to fix calibration time-out issue and to support 24.576MHz MCLK on specific platforms.
--- sound/soc/codecs/rt712-sdca-sdw.c | 8 +++ sound/soc/codecs/rt712-sdca.c | 86 +++++++++++++++++++++++++++++-- sound/soc/codecs/rt712-sdca.h | 18 +++++++ 3 files changed, 109 insertions(+), 3 deletions(-)
sound/soc/codecs/rt712-sdca-sdw.c +8 -0
@@ -18,12 +18,16 @@static bool rt712_sdca_readable_register (struct device *dev,unsigned int reg) {switch (reg) { +case 0x004d : case 0x201a ... 0x201f: case 0x2029 ... 0x202a: case 0x202d ... 0x2034: case 0x2230 ... 0x2232: case 0x2f01 ... 0x2f0a: case 0x2f35 ... 0x2f36: +case 0x2f3a : +case 0x2f3d : +case 0x2f41 :case 0x2f50 :case 0x2f54 : case 0x2f58 ... 0x2f5d:
@@ -48,6 +52,7 @@ static bool rt712_sdca_readable_register(struct device *dev, unsigned int reg)static bool rt712_sdca_volatile_register (struct device *dev,unsigned int reg) {switch (reg) { +case 0x004d :case 0x201b :case 0x201c :case 0x201d :
@@ -56,6 +61,9 @@ static bool rt712_sdca_volatile_register(struct device *dev, unsigned int reg)case 0x2230 :case 0x2f01 :case 0x2f35 : +case 0x2f3a : +case 0x2f3d : +case 0x2f41 :case 0x320c :case SDW_SDCA_CTL (FUNC_NUM_JACK_CODEC ,RT712_SDCA_ENT_GE49 ,RT712_SDCA_CTL_DETECTED_MODE ,0 ): case SDW_SDCA_CTL(FUNC_NUM_HID, RT712_SDCA_ENT_HID01, RT712_SDCA_CTL_HIDTX_CURRENT_OWNER, 0) ...
sound/soc/codecs/rt712-sdca.c +83 -3
120 lines not on this page · raw message
sound/soc/codecs/rt712-sdca.h +18 -0
@@ -162,6 +162,16 @@ struct rt712_dmic_kctrl_priv {#define RT712_EAPD_HIGH 0x2#define RT712_EAPD_LOW 0x0 +/* SDW clock root frequency */ +#define RT712_SDW_ROOT_CLK 0x004d +#define RT712_SDW_SCALE_CLK0 0x0062 +#define RT712_SDW_SCALE_CLK1 0x0072 + +/* PLL2 config */ +#define RT712_PLL2_CONF1 0x2f3a +#define RT712_PLL2_CONF2 0x2f3d +#define RT712_PLL2_CONF3 0x2f41 +/* RC Calibration register */ #define RT712_RC_CAL 0x3201
@@ -254,6 +264,14 @@ enum rt712_sdca_version { RT712_VB, }; +enum { +RT712_CLK_FREQ_19_2_MHZ =1 , +RT712_CLK_FREQ_24MHZ =2 , +RT712_CLK_FREQ_24_576MHZ =3 , +RT712_CLK_FREQ_22_5792MHZ =4 , +}; + +int rt712_sdca_io_init (struct device *dev,struct sdw_slave *slave);int rt712_sdca_init (struct device *dev,struct regmap *regmap,struct regmap *mbq_regmap,struct sdw_slave *slave);
Signature · 1 line
2.54.0
Mark Brown
maintainerQuoted 1 line · On Wed, 09 Sep 2026 16:54:49 +0800, [email protected] wrote:
ASoC: rt712-sdca: reconfigure PLL2 to fix calibration time-out
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.3
Thanks!
[1/1] ASoC: rt712-sdca: reconfigure PLL2 to fix calibration time-out
https://git.kernel.org/broonie/sound/c/d56fe35c1bce
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