On Fri, Feb 22, 2019 at 4:36 PM Russell King - ARM Linux admin linux@armlinux.org.uk wrote:
There's actually two threads of conversation going, and I recently had a reply from the maintainer of hdmi-codec suggesting a way forward - so I've coded that up as the three RFC patches you should have just received.
Thank you, that's awesome !
It probably would be better to try and find some generic way to deal with this.
After all, the I2S source probably knows which ratios it supports. Given that many sinks support a limited set of values as well, if ASoC core knew the supported set at each end of an I2S DAI format link, it could probably select a working bclk ratio automatically.
Agree, possibly the same way the ASoC core auto-matches both sides when they are connected with a dai_link? Pardon my ignorance.
Of course the auto-matching should only happen when both sides provide a bclk ratio range - to avoid having to retro-fit every single dai.