Hi,
2014-09-19 1:50 GMT+02:00 Nicolin Chen nicoleotsuka@gmail.com:
On Thu, Sep 18, 2014 at 08:35:31PM -0300, Fabio Estevam wrote:
On Thu, Sep 18, 2014 at 3:39 PM, Nicolin Chen nicoleotsuka@gmail.com wrote:
It actually is merged into broonie/for-next and even linux-next I think. I'll later send a patch to Shawn's tree for imx_v6_v7_defconfig changes after next merge window's done.
Ok, I see it now, but master/slave configuration is still hardcoded there:
} else if (of_device_is_compatible(np, "fsl,imx-audio-sgtl5000")) { priv->codec_priv.mclk_id = SGTL5000_SYSCLK; priv->dai_fmt |= SND_SOC_DAIFMT_CBM_CFM;
It's just a combinational driver and also made to be compatible with old DTs. Unless we refine the DT binding like simple-card, this hard- code is inevitable. As long as this dai_fmt has been defined, at least AUDMUX part will be automatically configured.
I made this driver was initially to support ASRC for imx-cs42888. But merging the code from imx-sgtl5000 and imx-wm8962 allows us to omit a branch of duplicated code. And that's it :)
Well, I may have missed something, I don't have fsl-asoc-card in my linux tree (vanilla). Where can I find it ? I can test a SGTL5000 master mode on i.MX6Q.
Thanks, JM