Skip to content

RFC Support BCLK input clock in tlv320aic31xx

Ariel D'Alessandro alsa-devel linuxppc-dev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ASoC: tlv320aic31xx: Fix typo in BCLK clock namesound/soc/codecs/tlv320aic31xx.h+1 -10 replies
2/5ASoC: tlv320aic31xx: Add support for pll_r coefficientsound/soc/codecs/tlv320aic31xx.c+36 -353 replies
3/5ASoC: tlv320aic31xx: Add divs for bclk as clk_insound/soc/codecs/tlv320aic31xx.c+20 -00 replies
4/5ASoC: tlv320aic31xx: Handle BCLK set as PLL input configurationsound/soc/codecs/tlv320aic31xx.c+14 -00 replies
5/5ASoC: fsl-asoc-card: Support fsl,imx-audio-tlv320aic31xx codecsound/soc/fsl/fsl-asoc-card.c+12 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC patch 0/5] Support BCLK input clock in tlv320aic31xx

The tlv320aic31xx codec allows using BCLK as the input clock for PLL, deriving all the frequencies through a set of divisors.

In this case, codec sysclk is determined by the hwparams sample rate/format. So its frequency must be updated from the codec itself when these are changed.

This patchset modifies the tlv320aic31xx driver to update its sysclk if BCLK is used as the input clock. This allows to be used by the generic fsl-asoc-card, without having to add a specific driver.

Ariel D'Alessandro (5):
ASoC: tlv320aic31xx: Fix typo in BCLK clock name
ASoC: tlv320aic31xx: Add support for pll_r coefficient
ASoC: tlv320aic31xx: Add divs for bclk as clk_in
ASoC: tlv320aic31xx: Handle BCLK set as PLL input configuration
ASoC: fsl-asoc-card: Support fsl,imx-audio-tlv320aic31xx codec

 sound/soc/codecs/tlv320aic31xx.c | 105 ++++++++++++++++++++-----------
 sound/soc/codecs/tlv320aic31xx.h |   2 +-
 sound/soc/fsl/fsl-asoc-card.c    |  12 ++++
 3 files changed, 83 insertions(+), 36 deletions(-)
Signature · 1 line
2.30.2