* [PATCH v2 1/2] ASoC: sophgo: cv1800b: document DAC overwrite handling
2026-01-27 19:08 [PATCH v2 0/2] ASoC: sophgo: cv1800b: document DAC overwrite handling Anton D. Stavinskii
@ 2026-01-27 19:08 ` Anton D. Stavinskii
2026-01-27 19:08 ` [PATCH v2 2/2] ASoC: sophgo: cv1800b: tidy Kconfig spacing Anton D. Stavinskii
2026-01-28 3:02 ` [PATCH v2 0/2] ASoC: sophgo: cv1800b: document DAC overwrite handling Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: Anton D. Stavinskii @ 2026-01-27 19:08 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Jaroslav Kysela, Takashi Iwai, Paul Walmsley,
Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Chen Wang,
Inochi Amaoto
Cc: linux-sound, sophgo, devicetree, linux-kernel, linux-riscv,
Anton D. Stavinskii
Add comments to cv1800b_dac_mute() and its caller to explain how the
overwrite mechanism works and why we force it off before playback.
Signed-off-by: Anton D. Stavinskii <stavinsky@gmail.com>
---
sound/soc/sophgo/cv1800b-sound-dac.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/sound/soc/sophgo/cv1800b-sound-dac.c b/sound/soc/sophgo/cv1800b-sound-dac.c
index ccf386174639..135322bcf6ad 100644
--- a/sound/soc/sophgo/cv1800b-sound-dac.c
+++ b/sound/soc/sophgo/cv1800b-sound-dac.c
@@ -57,6 +57,10 @@ static void cv1800b_dac_enable(struct cv1800b_priv *priv, bool enable)
writel(val, priv->regs + CV1800B_TXDAC_CTRL0);
}
+/*
+ * Control the DAC overwrite bits. When enabled, the DAC outputs the fixed
+ * overwrite value instead of samples from the I2S input.
+ */
static void cv1800b_dac_mute(struct cv1800b_priv *priv, bool enable)
{
u32 val;
@@ -105,7 +109,7 @@ static int cv1800b_dac_hw_params(struct snd_pcm_substream *substream,
dev_err(priv->dev, "rate %u is not supported\n", rate);
return -EINVAL;
}
-
+ /* Clear DAC overwrite so playback uses I2S data. */
cv1800b_dac_mute(priv, false);
/* minimal decimation for 48kHz is 64*/
ret = cv1800b_dac_decimation(priv, DECIMATION_64);
--
2.43.0
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH v2 2/2] ASoC: sophgo: cv1800b: tidy Kconfig spacing
2026-01-27 19:08 [PATCH v2 0/2] ASoC: sophgo: cv1800b: document DAC overwrite handling Anton D. Stavinskii
2026-01-27 19:08 ` [PATCH v2 1/2] " Anton D. Stavinskii
@ 2026-01-27 19:08 ` Anton D. Stavinskii
2026-01-28 3:02 ` [PATCH v2 0/2] ASoC: sophgo: cv1800b: document DAC overwrite handling Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: Anton D. Stavinskii @ 2026-01-27 19:08 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Jaroslav Kysela, Takashi Iwai, Paul Walmsley,
Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Chen Wang,
Inochi Amaoto
Cc: linux-sound, sophgo, devicetree, linux-kernel, linux-riscv,
Anton D. Stavinskii
Restore the empty line that was accidentally removed earlier
Signed-off-by: Anton D. Stavinskii <stavinsky@gmail.com>
---
sound/soc/sophgo/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/soc/sophgo/Kconfig b/sound/soc/sophgo/Kconfig
index e4786f087589..9b454261bcfd 100644
--- a/sound/soc/sophgo/Kconfig
+++ b/sound/soc/sophgo/Kconfig
@@ -28,6 +28,7 @@ config SND_SOC_CV1800B_ADC_CODEC
help
This driver provides an ASoC codec DAI for capture and basic
control of the RXADC registers.
+
Say Y or M to build support for the Sophgo CV1800B
internal analog ADC codec block (RXADC).
The module will be called cv1800b-sound-adc
--
2.43.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 0/2] ASoC: sophgo: cv1800b: document DAC overwrite handling
2026-01-27 19:08 [PATCH v2 0/2] ASoC: sophgo: cv1800b: document DAC overwrite handling Anton D. Stavinskii
2026-01-27 19:08 ` [PATCH v2 1/2] " Anton D. Stavinskii
2026-01-27 19:08 ` [PATCH v2 2/2] ASoC: sophgo: cv1800b: tidy Kconfig spacing Anton D. Stavinskii
@ 2026-01-28 3:02 ` Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2026-01-28 3:02 UTC (permalink / raw)
To: Liam Girdwood, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Jaroslav Kysela, Takashi Iwai, Paul Walmsley, Palmer Dabbelt,
Albert Ou, Alexandre Ghiti, Chen Wang, Inochi Amaoto,
Anton D. Stavinskii
Cc: linux-sound, sophgo, devicetree, linux-kernel, linux-riscv
On Tue, 27 Jan 2026 23:08:18 +0400, Anton D. Stavinskii wrote:
> An incremental patch on top of
> "[PATCH v4 5/6] ASoC: sophgo: add CV1800B internal DAC"
> adding the explanatory comments as requested.
> https://lore.kernel.org/all/20260120-cv1800b-i2s-driver-v4-0-6ef787dc6426@gmail.com/
>
> changes:
> - added description for cv1800b_dac_mute function
> - fixed "extra change" from previos commit
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/2] ASoC: sophgo: cv1800b: document DAC overwrite handling
commit: a8e3e488293118b8fa5d5e7ca786ca25b954ce12
[2/2] ASoC: sophgo: cv1800b: tidy Kconfig spacing
commit: 8cf19b19dba8814ccc8b1179dabf28b7f8eefc22
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
^ permalink raw reply [flat|nested] 4+ messages in thread