OSDN Git Service

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)
commit05b754f5f41c1ea5366c37c8f0ee04c4b4899ff9
tree2fc36ad7a6f6c4ded126c0d94c52338d8f803da9
parentf03412b78a947857bbd20899e1423482fba55761
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