mbox series

[0/2] ASoC: ti: davinci-mcasp: Master AUXCLK FS ration support

Message ID 20190611122941.10708-1-peter.ujfalusi@ti.com (mailing list archive)
Headers show
Series ASoC: ti: davinci-mcasp: Master AUXCLK FS ration support | expand

Message

Peter Ujfalusi June 11, 2019, 12:29 p.m. UTC
Hi,

The AUXCLK of McASP which is used as the master clock for I2S signal generation
usually is a static clock.
The driver (and bindings) assumes this setup, however if the AUXCLK can change
with the stream's FS then this assumption breaks the audio support as it sets
constraint rules in startup, these rules run pre hw_params and in hw_params we
are going to be notified of the new reference clock (which is some multiple of
the FS).

Regards,
Peter
---
Peter Ujfalusi (2):
  bindings: sound: davinci-mcasp: Add support for optional
    auxclk-fs-ratio
  ASoC: ti: davinci-mcasp: Support for auxclk-fs-ratio

 .../bindings/sound/davinci-mcasp-audio.txt    |  3 ++
 sound/soc/ti/davinci-mcasp.c                  | 52 ++++++++++++++++---
 2 files changed, 47 insertions(+), 8 deletions(-)