On Mon, Apr 1, 2019 at 11:06 PM Mark Brown broonie@kernel.org wrote:
On Mon, Apr 01, 2019 at 02:55:19PM -0600, Fletcher Woodruff wrote:
The rt5677 driver is using the wrong property names to read from ACPI. Update the property names to match those from _DSD, so that the correct GPIO pin numbers are read and that plug-detection works.
With this patch, plugging and unplugging the headphone jack switches between headphones and speakers automatically.
What makes you say that these properties are wrong? Are you sure that this isn't just some other systems using different ACPI properties given the poor standardization for ACPI? Your new ones look like they're DT properties pulled into ACPI while the existing ones look more idiomatic for ACPI.
The code to read those properties was originally added by commit 89128534f, specifically to support the device I am trying to fix, the Chromebook Pixel 2015. Admittedly, it's possible some other device came along and matched these property names since then, but I'm inclined to think we might be the only ones.
It'd be fine to add your new DT style properties but this might break existing systems.
That said, I agree it would be safer to use the idiomatic ACPI names, and then fall back to the DT style names if the idiomatic names fail. Does that sound reasonable?