aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/codecs/rt5640.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/sound/soc/codecs/rt5640.c b/sound/soc/codecs/rt5640.c
index 6cd84fb2196a..863c190c5076 100644
--- a/sound/soc/codecs/rt5640.c
+++ b/sound/soc/codecs/rt5640.c
@@ -1902,21 +1902,12 @@ static int rt5640_set_dai_pll(struct snd_soc_dai *dai, int pll_id, int source,
1902 RT5640_PLL1_SRC_MASK, RT5640_PLL1_SRC_MCLK); 1902 RT5640_PLL1_SRC_MASK, RT5640_PLL1_SRC_MCLK);
1903 break; 1903 break;
1904 case RT5640_PLL1_S_BCLK1: 1904 case RT5640_PLL1_S_BCLK1:
1905 snd_soc_update_bits(codec, RT5640_GLB_CLK,
1906 RT5640_PLL1_SRC_MASK, RT5640_PLL1_SRC_BCLK1);
1907 break;
1905 case RT5640_PLL1_S_BCLK2: 1908 case RT5640_PLL1_S_BCLK2:
1906 dai_sel = get_sdp_info(codec, dai->id); 1909 snd_soc_update_bits(codec, RT5640_GLB_CLK,
1907 if (dai_sel < 0) { 1910 RT5640_PLL1_SRC_MASK, RT5640_PLL1_SRC_BCLK2);
1908 dev_err(codec->dev,
1909 "Failed to get sdp info: %d\n", dai_sel);
1910 return -EINVAL;
1911 }
1912 if (dai_sel & RT5640_U_IF1) {
1913 snd_soc_update_bits(codec, RT5640_GLB_CLK,
1914 RT5640_PLL1_SRC_MASK, RT5640_PLL1_SRC_BCLK1);
1915 }
1916 if (dai_sel & RT5640_U_IF2) {
1917 snd_soc_update_bits(codec, RT5640_GLB_CLK,
1918 RT5640_PLL1_SRC_MASK, RT5640_PLL1_SRC_BCLK2);
1919 }
1920 break; 1911 break;
1921 default: 1912 default:
1922 dev_err(codec->dev, "Unknown PLL source %d\n", source); 1913 dev_err(codec->dev, "Unknown PLL source %d\n", source);