linux-stable/sound/soc/meson
Jerome Brunet 23d57b99ca ASoC: meson: axg-tdm-interface: fix mclk setup without mclk-fs
[ Upstream commit e3741a8d28 ]

By default, when mclk-fs is not provided, the tdm-interface driver
requests an MCLK that is 4x the bit clock, SCLK.

However there is no justification for this:

* If the codec needs MCLK for its operation, mclk-fs is expected to be set
  according to the codec requirements.
* If the codec does not need MCLK the minimum is 2 * SCLK, because this is
  minimum the divider between SCLK and MCLK can do.

Multiplying by 4 may cause problems because the PLL limit may be reached
sooner than it should, so use 2x instead.

Fixes: d60e4f1e4b ("ASoC: meson: add tdm interface driver")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://msgid.link/r/20240223175116.2005407-2-jbrunet@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:22:22 -04:00
..
Kconfig ASoC: meson: g12a: extract codec-to-codec utils 2024-01-15 18:25:26 +01:00
Makefile ASoC: meson: g12a: extract codec-to-codec utils 2024-01-15 18:25:26 +01:00
axg-card.c ASoC: meson: fixes the missed kfree() for axg_card_add_tdm_loopback 2020-08-19 08:16:13 +02:00
axg-fifo.c ASoC: meson: add missing free_irq() in error path 2020-06-24 17:50:19 +02:00
axg-fifo.h ASoC: meson: axg-fifo: fix fifo threshold setup 2020-02-11 04:35:44 -08:00
axg-frddr.c ASoC: meson: axg-fifo: fix fifo threshold setup 2020-02-11 04:35:44 -08:00
axg-pdm.c
axg-spdifin.c ASoC: meson: spdifin: start hw on dai probe 2023-10-10 21:46:36 +02:00
axg-spdifout.c
axg-tdm-formatter.c ASoC: meson: axg-tdm-formatter: fix channel slot allocation 2023-08-30 16:27:18 +02:00
axg-tdm-formatter.h ASoC: meson: axg-tdm-formatters: fix sclk inversion 2020-08-19 08:16:18 +02:00
axg-tdm-interface.c ASoC: meson: axg-tdm-interface: fix mclk setup without mclk-fs 2024-03-26 18:22:22 -04:00
axg-tdm.h
axg-tdmin.c ASoC: meson: axg-tdmin: fix axg skew offset 2021-01-19 18:26:16 +01:00
axg-tdmout.c ASoC: meson: axg-tdm-formatters: fix sclk inversion 2020-08-19 08:16:18 +02:00
axg-toddr.c ASoC: meson: axg-toddr: fix channel order on g12 platforms 2020-09-23 12:40:39 +02:00
g12a-tohdmitx.c ASoC: meson: g12a-tohdmitx: Fix event generation for S/PDIF mux 2024-01-15 18:25:26 +01:00
meson-codec-glue.c ASoC: meson: codec-glue: fix pcm format cast warning 2024-01-15 18:25:30 +01:00
meson-codec-glue.h ASoC: meson: g12a: extract codec-to-codec utils 2024-01-15 18:25:26 +01:00