mbox series

[v4,0/3] Fix jack detection for Chromebook Pixel

Message ID 20190503230751.168403-1-fletcherw@chromium.org (mailing list archive)
Headers show
Series Fix jack detection for Chromebook Pixel | expand

Message

Fletcher Woodruff May 3, 2019, 11:07 p.m. UTC
Headphone/mic jack detection doesn't work on the Chromebook Pixel 2015.

This patch changes the irq implementation to support polarity flipping
and fixes the configuration code so that correct GPIO pins are read
from ACPI.

With this series, plugging and unplugging the headphone jack switches
between headphones and speakers automatically, and headset microphones 
are also detected.

v4:
  - Fix incorrect void* cast in rt5677_irq() 

v3:
  - Update commit message for patch 1/3 to clarify why we implement
    our own irq_chip.

v2:
  - Split IRQ change into two patches: adding and fixing potential race
  - Change config reading code to try both DT and ACPI style names

Ben Zhang (1):
  ASoC: rt5677: allow multiple interrupt sources

Fletcher Woodruff (2):
  ASoC: rt5677: handle concurrent interrupts
  ASoC: rt5677: fall back to DT prop names on error

 sound/soc/codecs/rt5677.c | 346 ++++++++++++++++++++++++++------------
 sound/soc/codecs/rt5677.h |  14 +-
 2 files changed, 256 insertions(+), 104 deletions(-)