ASoC: qcom: sc8280xp: configure codec sysclk for QCS615
Subsystems (4)
PATCH 1/1 ASoC: qcom: sc8280xp: configure codec sysclk for QCS615
Continuous high-amplitude noise could occur in the DA7213 microphone capture path after a Bluetooth out-of-range/reset event followed by reconnection. The noise was present in both the raw ALSA capture and PipeWire input, confirming that it originated before Bluetooth encoding.
The codec already obtains and enables MCLK through its DT clock and bias-level handling. However, the machine driver did not explicitly configure the codec sysclk during hw_params(). Enable codec_sysclk_set for QCS615 so that the DA7213 clock source and rate are configured before the codec power-up sequence.
Verified on QCS615 Talos with repeated Bluetooth disconnect and reconnect cycles. The noise was no longer reproducible.
---
This patch depends on:
ASoC: qcom: sc8280xp: enhance machine driver for board-specific config
The prerequisite patch introduces qcs615_priv_data and the codec_sysclk_set field used by this change. It has not yet been merged into linux-next.
sound/soc/qcom/sc8280xp.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/qcom/sc8280xp.c +1 -0
@@ -306,6 +306,7 @@ static const struct snd_soc_common qcs615_priv_data = { .driver_name = "qcs615", .dapm_widgets = sc8280xp_dapm_widgets, .num_dapm_widgets = ARRAY_SIZE(sc8280xp_dapm_widgets), + .codec_sysclk_set = true, };static const struct snd_soc_common qcm6490_priv_data = {
Signature · 1 line
2.34.1
Quoted 19 lines · On 8/7/2026 6:54 AM, Le Qi wrote:
Continuous high-amplitude noise could occur in the DA7213 microphone capture path after a Bluetooth out-of-range/reset event followed by reconnection. The noise was present in both the raw ALSA capture and PipeWire input, confirming that it originated before Bluetooth encoding.
The codec already obtains and enables MCLK through its DT clock and bias-level handling. However, the machine driver did not explicitly configure the codec sysclk during
hw_params(). Enablecodec_sysclk_setfor QCS615 so that the DA7213 clock source and rate are configured before the codec power-up sequence.Verified on QCS615 Talos with repeated Bluetooth disconnect and reconnect cycles. The noise was no longer reproducible.
Signed-off-by Le Qi <[email protected]>---
This patch depends on:
Quoted 7 lines
ASoC: qcom: sc8280xp: enhance machine driver for board-specific config
The prerequisite patch introduces
qcs615_priv_dataand thecodec_sysclk_setfield used by this change. It has not yet been merged into linux-next.
Drop this dependency flag, as the change has already been applied.
Thanks & Regards,
Rafi.
Quoted 16 lines
sound/soc/qcom/sc8280xp.c | 1 + 1 file changed, 1 insertion(+)sound/soc/qcom/sc8280xp.c +1
-0@@ -306,6 +306,7 @@ static const struct snd_soc_common qcs615_priv_data = { .driver_name = "qcs615", .dapm_widgets = sc8280xp_dapm_widgets, .num_dapm_widgets = ARRAY_SIZE(sc8280xp_dapm_widgets), + .codec_sysclk_set = true, };static const struct snd_soc_common qcm6490_priv_data = {
Mark Brown
maintainerQuoted 5 lines · On Fri, Aug 07, 2026 at 09:24:50AM +0800, Le Qi wrote:
Continuous high-amplitude noise could occur in the DA7213 microphone capture path after a Bluetooth out-of-range/reset event followed by reconnection. The noise was present in both the raw ALSA capture and PipeWire input, confirming that it originated before Bluetooth encoding.
This doesn't apply against current code, please check and resend.