]> git.itanic.dy.fi Git - linux-stable/commit
ASoC: rockchip: Convert RK3288 HDMI to GPIO descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 28 Sep 2023 22:12:54 +0000 (00:12 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 9 Oct 2023 12:14:12 +0000 (13:14 +0100)
commit15b26d8165b39a07f038fb4d2b67a04c50463eb9
tree0acd9051b52d0dd8f36b5bcb255802821c381388
parent85a6af284d1c720d78683b550bb5d32bc84e3cfc
ASoC: rockchip: Convert RK3288 HDMI to GPIO descriptors

This converts the Rockchip RK3288 HDMI driver to use GPIO
descriptors:

- Look up the HP EN GPIO as an optional descriptor and handle
  it directly, the gpiod API is NULL-tolerant so no special
  guards are needed.

- Let the Jack detection core obtain and handle the HP detection
  GPIO, just pass the right name and gpiod_dev and it will
  do the job. Make sure to check that the GPIO property
  is there first, so it becomes optional.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20230929-descriptors-asoc-rockchip-v2-1-2d2c0e043aab@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rk3288_hdmi_analog.c