diff options
author | Meiyou Chen <cmy@rock-chips.com> | 2018-10-26 15:05:15 +0800 |
---|---|---|
committer | Tao Huang <huangtao@rock-chips.com> | 2018-10-31 14:17:01 +0800 |
commit | ff5c8869774df73e7e49c982b918e335473910d9 (patch) | |
tree | 8ea68f6d57d53648d7f00e8c0869b4dda6d92393 /sound | |
parent | 1c36317df0d7ddc0ed40a70858700ad021a833ba (diff) |
ASoC: codecs: rockchip_rt5651_tc358749x: add HDMIIN widget for complete audio path
Change-Id: I9750a05ffe242c5946389b2e90902f22cfdf18e8
Signed-off-by: Meiyou Chen <cmy@rock-chips.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/rockchip/rockchip_rt5651_tc358749x.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sound/soc/rockchip/rockchip_rt5651_tc358749x.c b/sound/soc/rockchip/rockchip_rt5651_tc358749x.c index 21f8ee22f3bf..1d45beaa3210 100644 --- a/sound/soc/rockchip/rockchip_rt5651_tc358749x.c +++ b/sound/soc/rockchip/rockchip_rt5651_tc358749x.c @@ -29,6 +29,7 @@ static const struct snd_soc_dapm_widget rockchip_dapm_widgets[] = { SND_SOC_DAPM_SPK("Lineout", NULL), SND_SOC_DAPM_MIC("Headset Mic", NULL), SND_SOC_DAPM_MIC("Int Mic", NULL), + SND_SOC_DAPM_MIC("HDMIIN", NULL), }; static const struct snd_soc_dapm_route rockchip_dapm_routes[] = { @@ -36,6 +37,7 @@ static const struct snd_soc_dapm_route rockchip_dapm_routes[] = { {"Headphones", NULL, "HPOR"}, {"Lineout", NULL, "LOUTL"}, {"Lineout", NULL, "LOUTR"}, + {"AIF2 Playback", NULL, "HDMIIN"}, }; static const struct snd_kcontrol_new rockchip_controls[] = { @@ -80,7 +82,10 @@ static int rockchip_rt5651_hw_params(struct snd_pcm_substream *substream, return ret; } - ret = snd_soc_dai_set_sysclk(codec_dai, 0, mclk, SND_SOC_CLOCK_IN); + snd_soc_dai_set_pll(codec_dai, 0, RT5651_PLL1_S_MCLK, mclk, mclk * 2); + + ret = snd_soc_dai_set_sysclk(codec_dai, RT5651_SCLK_S_PLL1, mclk * 2, + SND_SOC_CLOCK_IN); if (ret < 0) { dev_err(codec_dai->dev, "Can't set codec clock in %d\n", ret); return ret; |