diff options
author | Fletcher Woodruff <fletcherw@chromium.org> | 2019-06-14 22:48:51 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-06-17 18:12:23 +0300 |
commit | 8893cba2fa6994ac8434cbc616eeddcde211ec45 (patch) | |
tree | eafc4094551e1b05d08c10704ffd08e51d6d1881 /sound/soc/codecs/rt5665.h | |
parent | 9de7eaddfa7f47fbb1cd9cdb9aab405599ef414e (diff) | |
download | linux-8893cba2fa6994ac8434cbc616eeddcde211ec45.tar.xz |
ASoC: rt5677: fall back to DT prop names on error
The rt5677 driver uses ACPI-style property names to read from the
device API. However, these do not match the property names in _DSD
used on the Chromebook Pixel 2015, which are closer to the Device Tree
style. Unify the two functions for reading from the device API so that
they try ACPI-style names first and fall back to the DT names on error.
With this patch, plugging and unplugging the headphone jack switches
between headphones and speakers automatically.
Signed-off-by: Fletcher Woodruff <fletcherw@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5665.h')
0 files changed, 0 insertions, 0 deletions