Re: [PATCH v1 2/2] ASoC: amd: acp3x-es83xx: Keep an owned codec device reference
From: Mark Brown
Date: Mon Sep 21 2026 - 04:50:59 EST
On Sat, Sep 19, 2026 at 08:13:18PM +0800, Yibo Tan wrote:
> @@ -428,7 +433,7 @@ static int acp3x_es83xx_probe(struct snd_soc_card *card)
> return -ENXIO;
> }
>
> - codec_dev = acpi_get_first_physical_node(adev);
> + codec_dev = acpi_bus_get_primary_device(adev);
> acpi_dev_put(adev);
> if (!codec_dev) {
> dev_warn(dev, "Error cannot find codec device, will defer probe\n");
This function is declared in acpi/acpi_bus.h which is only included by
linux/acpi.h if CONFIG_ACPI is enabled, this will break the build
otherwise.
Attachment:
signature.asc
Description: PGP signature