diff options
author | Janusz Krzysztofik <jmkrzyszt@gmail.com> | 2018-05-18 23:09:51 +0200 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2018-05-23 11:47:32 -0700 |
commit | d65777d1a2cd0009a57222262c49fd829d15fe70 (patch) | |
tree | e36fdf14ea18c6766c4b5067dd7310e565399def /drivers/acpi/dptf | |
parent | 0486738928bf06380dd108454fb75544430cd4bb (diff) | |
download | linux-d65777d1a2cd0009a57222262c49fd829d15fe70.tar.bz2 |
ASoC: ams_delta: use GPIO lookup table
Now as the Amstrad Delta board provides GPIO lookup tables, switch from
GPIO numbers to GPIO descriptors and use the table to locate required
GPIO pins.
The card uses two pins, one for jack and the other for voice modem
codec DAI control.
For jack pin, remove hardcoded GPIO number and use GPIO descriptor
based variant of jack GPIO initialization.
For modem_codec pin, declare static variable for storing its GPIO
descriptor, obtain it on card initialization and replace obsolete
ams_delta_latch2_write() with gpiod_set_value(). For that to work,
don't request the modem_codec pin from the board init code anymore.
If the modem_codec GPIO lookup fails, skip initialization of
functionality of the card which depends on its availability.
Pin naming used by the driver should be followed while respective GPIO
lookup table is initialized by a board init code.
Created and tested against linux-4.17-rc3, on top of patch 1/6 "ARM:
OMAP1: ams-delta: add GPIO lookup tables"
Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'drivers/acpi/dptf')
0 files changed, 0 insertions, 0 deletions