]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: sun4i-codec: Set quirks.playback_only for H616 codec
authorChen-Yu Tsai <wens@kernel.org>
Tue, 14 Jul 2026 11:33:03 +0000 (19:33 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 14 Jul 2026 14:23:08 +0000 (15:23 +0100)
The H616 codec does not have capture capabilities. Set the
.playback_only quirks flag to denote this.

This was somehow missing from the original driver patch, even though
the patch prior to it in the series added this quirk.

Fixes: 9155c321a1d0 ("ASoC: sun4i-codec: support allwinner H616 codec")
Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
Link: https://patch.msgid.link/20260714113304.270224-1-wens@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun4i-codec.c

index f4e22af594fa356022b7754292fe0445891a7b59..93f511fb61905ee31f669203655808fe29959e47 100644 (file)
@@ -2237,6 +2237,7 @@ static const struct sun4i_codec_quirks sun50i_h616_codec_quirks = {
        .reg_dac_fifoc  = REG_FIELD(SUN50I_H616_CODEC_DAC_FIFOC, 0, 31),
        .reg_dac_txdata = SUN8I_H3_CODEC_DAC_TXDATA,
        .has_reset      = true,
+       .playback_only  = true,
        .dma_max_burst  = SUN4I_DMA_MAX_BURST,
 };