static int t5325_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) {
This seems a lot less common requirements. All the Marvell SoCs need it, but not many others. So i don't think it makes sense to add it directly to simple-card, otherwise simple-card quickly becomes complex-card as everybody else wants there quirks adding.
Maybe the drivers can be reworked to not require this anymore. The CODEC driver may be able to figure this out on its own.
I don't think it can, that looks like the CODEC MCLK being supplied by the SoC (it's nothing to do with a requirement from the SoC really). Ideally this would be handled through the clock API but that's a bit fail at the minute for architecture neutral code. It's a bit of a hack but specifying the ratio in the DT (which I thought we supported in simple-card already but don't seem to) would sidestep the issue.
I can go the hack route and add the ratio as a DT property. I just thought i would ask now, rather than get a NACK later when i submit the patch.
Thanks Andrew