[alsa-devel] No sound captured with SGTL5000 on i.MX6 in I²S master mode
Nicolin Chen
nicoleotsuka at gmail.com
Fri Sep 19 01:50:46 CEST 2014
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 at 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 :)
Nicolin
More information about the Alsa-devel
mailing list