diff options
author | Hans de Goede <hdegoede@redhat.com> | 2018-03-04 15:36:10 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-03-07 15:19:51 +0100 |
commit | c22969d70fc9253112e88da55116e04074cdeac4 (patch) | |
tree | 8ceff5f94586cfd1c18df389869fd01c4bba9d85 | |
parent | ASoC: Intel: bytcr_rt5651: Change defaults to enable jack-detect, analog mics (diff) | |
download | linux-c22969d70fc9253112e88da55116e04074cdeac4.tar.xz linux-c22969d70fc9253112e88da55116e04074cdeac4.zip |
ASoC: Intel: bytcr_rt5651: Select RCCLK on init()
When the BYT_RT5651_MCLK_EN quirk is set, we disable the MCLK from
byt_rt5651_init(), we need to select the RCCLK as sysclk before doing this
to make sure that jack-detect works directly after boot.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/intel/boards/bytcr_rt5651.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/intel/boards/bytcr_rt5651.c b/sound/soc/intel/boards/bytcr_rt5651.c index 6efd7c9e7407..53ce313024f1 100644 --- a/sound/soc/intel/boards/bytcr_rt5651.c +++ b/sound/soc/intel/boards/bytcr_rt5651.c @@ -457,6 +457,11 @@ static int byt_rt5651_init(struct snd_soc_pcm_runtime *runtime) card->dapm.idle_bias_off = true; + /* Start with RC clk for jack-detect (we disable MCLK below) */ + if (byt_rt5651_quirk & BYT_RT5651_MCLK_EN) + snd_soc_component_update_bits(codec, RT5651_GLB_CLK, + RT5651_SCLK_SRC_MASK, RT5651_SCLK_SRC_RCCLK); + switch (BYT_RT5651_MAP(byt_rt5651_quirk)) { case BYT_RT5651_IN1_MAP: custom_map = byt_rt5651_intmic_in1_map; |