Re: [PATCH v2 2/4] ASoC: arizona: always parse device properties regardless of platform data

From: Charles Keepax

Date: Tue Nov 24 2026 - 09:24:21 EST


On Mon, Nov 23, 2026 at 03:00:55PM -0800, Dmitry Torokhov wrote:
> 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.
>
> In the jack detection driver, only validate and apply the
> wlf,hpdet-channel property when it is present, leaving any existing
> platform data value untouched when the property is absent or invalid,
> and preserve existing boolean flags using bitwise OR assignments.
>
> Default an unset headphone detection channel (0, corresponding to
> ARIZONA_ACCDET_MODE_MIC and invalid for headphone impedance polling) to
> ARIZONA_ACCDET_MODE_HPL during jack probe.
> Commit 9e86b2ad4c11 ("extcon: arizona: Add support for select
> accessory detect mode when headphone detection") originally placed this
> default only in the OF property parser, inadvertently leaving
> platform-data boards that omit the channel setting at 0.
>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
> ---

Reviewed-by: Charles Keepax <ckeepax@xxxxxxxxxxxxxxxxxxxxx>

Thanks,
Charles