Re: [PATCH 2/4] ASoC: arizona: always parse device properties regardless of platform data
From: Mark Brown
Date: Sun Nov 08 2026 - 07:55:15 EST
> Always parse device properties in the Arizona jack detection driver and
> codec drivers even when platform data is provided, allowing DT, ACPI,
> or software node properties to augment platform data configurations.
> @@ -1184,7 +1184,7 @@ static int arizona_extcon_device_get_pdata(struct device *dev,
> struct arizona *arizona)
> {
> struct arizona_pdata *pdata = &arizona->pdata;
> - unsigned int val = ARIZONA_ACCDET_MODE_HPL;
> + unsigned int val = pdata->hpdet_channel ?: ARIZONA_ACCDET_MODE_HPL;
This changes the default from ARIZONA_ACCDET_MODE_MIC to
ARIZONA_ACCDET_MODE_HPL, and might be clearer if written using a normal
logic statement.
--
Mark Brown <broonie@xxxxxxxxxx>