[PATCH v2 2/2] ASoC: spacemit: add i2s support for K1 SoC
Mark Brown
broonie at kernel.org
Thu Aug 28 02:04:19 PDT 2025
On Thu, Aug 28, 2025 at 11:37:33AM +0800, Troy Mitchell wrote:
> + switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
> + case SND_SOC_DAIFMT_DSP_A:
> + case SND_SOC_DAIFMT_DSP_B:
> + cpu_dai->driver->playback.channels_min = 1;
> + cpu_dai->driver->playback.channels_max = 1;
> + if ((fmt & SND_SOC_DAIFMT_FORMAT_MASK) == SND_SOC_DAIFMT_DSP_A)
> + sspsp_val |= SSPSP_FSRT;
It's weird and confusing that this isn't part of the above switch case.
> +static void spacemit_i2s_remove(struct platform_device *pdev)
> +{
> + /* resources auto-freed by devm_ */
> +}
If this can be empty remove it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-riscv/attachments/20250828/f372b3ae/attachment.sig>
More information about the linux-riscv
mailing list