]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rockchip_max98090: Optionally support HDMI use case
authorCheng-Yi Chiang <cychiang@chromium.org>
Mon, 28 Oct 2019 07:19:27 +0000 (15:19 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 29 Oct 2019 12:30:39 +0000 (12:30 +0000)
commite5f2e5c95bf368818bae61ad5b740640afdf61f4
tree2fc36ad7a6f6c4ded126c0d94c52338d8f803da9
parent21257ebf51971e4ba8845b06b588fb192d149fbc
ASoC: rockchip_max98090: Optionally support HDMI use case

Support three different use cases with rockchip_max98090 driver.

The three use cases:
- max98090 only: Current usage, where HDMI link is missing.
- HDMI only: Needed use case for veyron_mickey board.
- max98090 + HDMI: Ideal use case for veyron_jerry, veyron_minnie..etc.

The presence of max98090 is determined by the presence of
rockchip,audio-codec device property.

The presence of HDMI is determined by the presence of
rockchip,hdmi-codec device property.

Create different sound card based on the configuration.
Note that we keep max98090 only usage for backward compatibility.

Signed-off-by: Cheng-Yi Chiang <cychiang@chromium.org>
Link: https://lore.kernel.org/r/20191028071930.145899-4-cychiang@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rockchip_max98090.c