diff options
author | Bard Liao <bardliao@realtek.com> | 2015-03-09 09:55:23 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-03-09 19:12:48 +0100 |
commit | 485372dc24ca2eaac18ce41a51b9dd017bc11400 (patch) | |
tree | 3f18931542971cfc56369cc115c1da1e231761de /sound/soc/codecs/wm8962.c | |
parent | ASoC: rt5670: Revert Keep sysclk on patch (diff) | |
download | linux-485372dc24ca2eaac18ce41a51b9dd017bc11400.tar.xz linux-485372dc24ca2eaac18ce41a51b9dd017bc11400.zip |
ASoC: rt5670: Check sysclk source by private data
Currently, is_sys_clk_from_pll check sysclk source by reading codec
register value. And it will be invoked before updating dapm widget
power. In some machine driver, snd_soc_dai_set_sysclk is called in
dapm event to switch codec sysclk to RC clock in idle mode. And in
some use cases (such as syspend/resume) hw_params will not be called
when the dapm widget is powered up. As a result, is_sys_clk_from_pll
will return 0 although it is supposed to be 1.
To solve this, we let is_sys_clk_from_pll check sysclk sysclk_src
which is stored in private data and don't change the value of sysclk_src
when codec sysclk is switched to internal clock. The internal clock
can only be used in idle mode, so it sould be fine if we don't set
sysclk_src to internal clock.
Signed-off-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/wm8962.c')
0 files changed, 0 insertions, 0 deletions