[alsa-devel] No sound captured with SGTL5000 on i.MX6 in I²S master mode

Jean-Michel Hautbois jean-michel.hautbois at vodalys.com
Fri Sep 19 11:18:40 CEST 2014


2014-09-19 9:52 GMT+02:00 Nicolin Chen <nicoleotsuka at 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 at 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 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 :)
>> >
>>
>> 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


More information about the Alsa-devel mailing list