Hi,
2014-09-19 11:18 GMT+02:00 Jean-Michel Hautbois jean-michel.hautbois@vodalys.com:
2014-09-19 9:52 GMT+02:00 Nicolin Chen nicoleotsuka@gmail.com:
On Fri, Sep 19, 2014 at 09:42:22AM +0200, Jean-Michel Hautbois wrote:
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.
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
for-next branch.
Nicolin
Thanks, now I need to modify my DT in order to have fsl-asoc-card loaded :). JM
FYI, This is working ! I can capture my sound from line in with this : sound { compatible = "fsl,imx6q-vbx3-sgtl5000", "fsl,imx-audio-sgtl5000"; model = "imx6q-vbx3-sgtl5000"; ssi-controller = <&ssi1>; audio-codec = <&codec>; audio-routing = "A1N1L", "Line In Jack", "A1N1R", "Line In Jack"; mux-int-port = <1>; mux-ext-port = <5>; };
Now, I will add mic support, and I still need to modprobe manually, I need to know why...
Thanks, JM