Skip to content

Commit

Permalink
ASoC: rt5677: fixed wrong DMIC ref clock
Browse files Browse the repository at this point in the history
[ Upstream commit 60a8d62 ]

DMIC clock source is not from codec system clock directly. it is
generated from the division of system clock. And it should be 256 *
sample rate of AIF1.

Signed-off-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
  • Loading branch information
Bard Liao authored and sashalevin committed May 17, 2015
1 parent 5d76734 commit 36bcc94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/rt5677.c
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ static int set_dmic_clk(struct snd_soc_dapm_widget *w,
{
struct snd_soc_codec *codec = w->codec;
struct rt5677_priv *rt5677 = snd_soc_codec_get_drvdata(codec);
int idx = rl6231_calc_dmic_clk(rt5677->sysclk);
int idx = rl6231_calc_dmic_clk(rt5677->lrck[RT5677_AIF1] << 8);

if (idx < 0)
dev_err(codec->dev, "Failed to set DMIC clock\n");
Expand Down

0 comments on commit 36bcc94

Please sign in to comment.