diff options
author | Jeffy Chen <jeffy.chen@rock-chips.com> | 2017-09-18 07:17:59 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-09-19 08:26:48 -0400 |
commit | e7251484f3bc3bd9203a2c39555ca7d53e988cf6 (patch) | |
tree | 319b8e819ed5c671410c2d5512aa22eaa5c7788e | |
parent | cc9fee8e1a2088e1853a1ba7b9f91d0629da0807 (diff) |
ASoC: rockchip: Add dapm route for HDMI
Add dapm route for DP codec.
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/rockchip/rk3399_gru_sound.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/rockchip/rk3399_gru_sound.c b/sound/soc/rockchip/rk3399_gru_sound.c index 1ca269ee0b7e..6463ea86a33a 100644 --- a/sound/soc/rockchip/rk3399_gru_sound.c +++ b/sound/soc/rockchip/rk3399_gru_sound.c | |||
@@ -47,6 +47,7 @@ static const struct snd_soc_dapm_widget rockchip_dapm_widgets[] = { | |||
47 | SND_SOC_DAPM_SPK("Speakers", NULL), | 47 | SND_SOC_DAPM_SPK("Speakers", NULL), |
48 | SND_SOC_DAPM_MIC("Headset Mic", NULL), | 48 | SND_SOC_DAPM_MIC("Headset Mic", NULL), |
49 | SND_SOC_DAPM_MIC("Int Mic", NULL), | 49 | SND_SOC_DAPM_MIC("Int Mic", NULL), |
50 | SND_SOC_DAPM_LINE("HDMI", NULL), | ||
50 | }; | 51 | }; |
51 | 52 | ||
52 | static const struct snd_soc_dapm_route rockchip_dapm_routes[] = { | 53 | static const struct snd_soc_dapm_route rockchip_dapm_routes[] = { |
@@ -60,6 +61,7 @@ static const struct snd_soc_dapm_route rockchip_dapm_routes[] = { | |||
60 | {"Headphones", NULL, "HPL"}, | 61 | {"Headphones", NULL, "HPL"}, |
61 | {"Headphones", NULL, "HPR"}, | 62 | {"Headphones", NULL, "HPR"}, |
62 | {"Speakers", NULL, "Speaker"}, | 63 | {"Speakers", NULL, "Speaker"}, |
64 | {"HDMI", NULL, "TX"}, | ||
63 | }; | 65 | }; |
64 | 66 | ||
65 | static const struct snd_kcontrol_new rockchip_controls[] = { | 67 | static const struct snd_kcontrol_new rockchip_controls[] = { |
@@ -67,6 +69,7 @@ static const struct snd_kcontrol_new rockchip_controls[] = { | |||
67 | SOC_DAPM_PIN_SWITCH("Speakers"), | 69 | SOC_DAPM_PIN_SWITCH("Speakers"), |
68 | SOC_DAPM_PIN_SWITCH("Headset Mic"), | 70 | SOC_DAPM_PIN_SWITCH("Headset Mic"), |
69 | SOC_DAPM_PIN_SWITCH("Int Mic"), | 71 | SOC_DAPM_PIN_SWITCH("Int Mic"), |
72 | SOC_DAPM_PIN_SWITCH("HDMI"), | ||
70 | }; | 73 | }; |
71 | 74 | ||
72 | static int rockchip_sound_max98357a_hw_params(struct snd_pcm_substream *substream, | 75 | static int rockchip_sound_max98357a_hw_params(struct snd_pcm_substream *substream, |