Skip to content

Commit

Permalink
ASoC: cs35l41: Add 12288000 clk freq to cs35l41_fs_mon clk config
Browse files Browse the repository at this point in the history
There are 8 cs35l41 speaker amplifier connected to TDM
in my Xiaomi Mi Pad 5 Pro tablet. In this case, it's necessary
to set 12288000 (48000 * 32 * 8) clk freq for it.

rate=48000, slot_width=32, slots=8.

Signed-off-by: Jianhua Lu <lujianhua000@gmail.com>
Reviewed-by: David Rhodes <David.Rhodes@cirrus.com>
Link: https://lore.kernel.org/r/20230318141440.29023-1-lujianhua000@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Jianhua Lu authored and Mark Brown committed Mar 20, 2023
1 parent 446967a commit 00a7ef3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/codecs/cs35l41.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ static const struct cs35l41_fs_mon_config cs35l41_fs_mon[] = {
{ 5644800, 16, 24 },
{ 6000000, 16, 24 },
{ 6144000, 16, 24 },
{ 12288000, 0, 0 },
};

static int cs35l41_get_fs_mon_config_index(int freq)
Expand Down

0 comments on commit 00a7ef3

Please sign in to comment.