mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] ASoC: da7219: BCLK and TDM flexibility improvements
@ 2019-02-14 10:13 Adam Thomson
  2019-02-14 10:13 ` [PATCH v2 1/2] ASoC: da7219: Add support for master mode BCLK rate adjustment Adam Thomson
  2019-02-14 10:13 ` [PATCH v2 2/2] ASoC: da7219: Update TDM usage to be more flexible Adam Thomson
  0 siblings, 2 replies; 4+ messages in thread
From: Adam Thomson @ 2019-02-14 10:13 UTC (permalink / raw)
  To: Mark Brown, Liam Girdwood, Takashi Iwai, Jaroslav Kysela
  Cc: Akshu Agrawal, alsa-devel, linux-kernel, Support Opensource

This patch set updates the driver to be more flexible regarding the BCLK and
TDM configurations of the device.

Previously the BCLK rate was fixed at 64 periods per WCLK, when the codec is
DAI clock master, but to satisfy devices which prefer a lower rate, and to save
power, the BCLK rate is now calculated based on hw_params() data.

As a fallout of the BCLK efforts it was also apparent that the TDM code could be
made more flexible as well. The device is capable of automatically detecting
the BCLK rate when it is clock slave, so previous limitations imposed were
not necessary. The mask handling is now used as an input to determine the BCLK
offset to align closer with other examples within ALSA.

Changes in v2:
 - Update 0001 patch to use '&&' instead of '&' in hw_params() to decide if
   BCLK rate should be configured or not.

Adam Thomson (2):
  ASoC: da7219: Add support for master mode BCLK rate adjustment
  ASoC: da7219: Update TDM usage to be more flexible

 sound/soc/codecs/da7219.c | 116 +++++++++++++++++++++++++++++-----------------
 sound/soc/codecs/da7219.h |   1 +
 2 files changed, 74 insertions(+), 43 deletions(-)

-- 
1.9.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-02-14 14:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-14 10:13 [PATCH v2 0/2] ASoC: da7219: BCLK and TDM flexibility improvements Adam Thomson
2019-02-14 10:13 ` [PATCH v2 1/2] ASoC: da7219: Add support for master mode BCLK rate adjustment Adam Thomson
2019-02-14 14:51   ` Applied "ASoC: da7219: Add support for master mode BCLK rate adjustment" to the asoc tree Mark Brown
2019-02-14 10:13 ` [PATCH v2 2/2] ASoC: da7219: Update TDM usage to be more flexible Adam Thomson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome