Le mercredi 19 juin 2024 à 13:13 +0200, Markus Elfring a écrit :
> > > Would you dare to transform the remaining goto chain into further
> > > applications
> > > of scope-based resource management?
> >
> > We discussed this after v6 or v7, DRM/DMABUF maintainers were not
> > keen
> > on doing that *just yet*.
>
> * Would you like to add any links for corresponding development
> discussions?
https://lore.kernel.org/linux-iio/219abc43b4fdd4a13b307ed2efaa0e6869e68e3f.…
(and responses below)
It's more nuanced than I remembered. Christian was OK to add cleanup.h
support to the DMABUF code as long as the examples were updated as
well, but those aren't good candidates as they don't free up the
resources in all code paths.
>
> * Will the desire grow for further collateral evolution according to
> affected software components?
Not sure what you mean by that.
Cheers,
-Paul
Hi Markus,
Le mercredi 19 juin 2024 à 12:03 +0200, Markus Elfring a écrit :
> …
> > All errors (new ones prefixed by >>):
> >
> > > > drivers/iio/industrialio-buffer.c:1715:3: error: cannot jump
> > > > from this goto statement to its label
> > 1715 | goto err_dmabuf_unmap_attachment;
> …
>
> Would you dare to transform the remaining goto chain into further
> applications
> of scope-based resource management?
We discussed this after v6 or v7, DRM/DMABUF maintainers were not keen
on doing that *just yet*.
Cheers,
-Paul
Il 14/06/24 09:27, Alexandre Mergnat ha scritto:
> Add audio front end support of MT8365 SoC.
> Update the file header.
>
> Signed-off-by: Alexandre Mergnat <amergnat(a)baylibre.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno(a)collabora.com>
Il 14/06/24 09:27, Alexandre Mergnat ha scritto:
> - Add specific config to enable:
> - MT8365 sound support
> - MT6357 audio codec support
> - Add the mt8365 directory and all drivers under it.
>
> Signed-off-by: Alexandre Mergnat <amergnat(a)baylibre.com>
> ---
> sound/soc/mediatek/Kconfig | 20 ++++++++++++++++++++
> sound/soc/mediatek/Makefile | 1 +
> sound/soc/mediatek/mt8365/Makefile | 15 +++++++++++++++
> 3 files changed, 36 insertions(+)
>
> diff --git a/sound/soc/mediatek/Kconfig b/sound/soc/mediatek/Kconfig
> index 5a8476e1ecca..c1c86ecc0601 100644
> --- a/sound/soc/mediatek/Kconfig
> +++ b/sound/soc/mediatek/Kconfig
> @@ -298,3 +298,23 @@ config SND_SOC_MT8195_MT6359
> boards with the MT6359 and other I2S audio codecs.
> Select Y if you have such device.
> If unsure select "N".
> +
> +config SND_SOC_MT8365
> + tristate "ASoC support for Mediatek MT8365 chip"
> + depends on ARCH_MEDIATEK
> + select SND_SOC_MEDIATEK
> + help
> + This adds ASoC platform driver support for Mediatek MT8365 chip
> + that can be used with other codecs.
> + Select Y if you have such device.
> + If unsure select "N".
> +
> +config SND_SOC_MT8365_MT6357
> + tristate "ASoC Audio driver for MT8365 with MT6357 codec"
> + depends on SND_SOC_MT8365 && MTK_PMIC_WRAP
> + select SND_SOC_MT6357
> + help
> + This adds support for ASoC machine driver for Mediatek MT8365
s/Mediatek/MediaTek/g (here and everywhere else in other commits as well)
> + boards with the MT6357 codec.
MT6357 PMIC codec
after which
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno(a)collabora.com>
Il 14/06/24 09:27, Alexandre Mergnat ha scritto:
> Add soundcard bindings for the MT8365 SoC with the MT6357 audio codec.
>
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski(a)linaro.org>
> Signed-off-by: Alexandre Mergnat <amergnat(a)baylibre.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno(a)collabora.com>