[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aLAbk_0emidBCJBn@finisterre.sirena.org.uk>
Date: Thu, 28 Aug 2025 11:04:19 +0200
From: Mark Brown <broonie@...nel.org>
To: Troy Mitchell <troy.mitchell@...ux.spacemit.com>
Cc: Liam Girdwood <lgirdwood@...il.com>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Yixun Lan <dlan@...too.org>,
Jaroslav Kysela <perex@...ex.cz>, Takashi Iwai <tiwai@...e.com>,
Philipp Zabel <p.zabel@...gutronix.de>, linux-sound@...r.kernel.org,
devicetree@...r.kernel.org, linux-riscv@...ts.infradead.org,
spacemit@...ts.linux.dev, linux-kernel@...r.kernel.org,
Jinmei Wei <weijinmei@...ux.spacemit.com>
Subject: Re: [PATCH v2 2/2] ASoC: spacemit: add i2s support for K1 SoC
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.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists