Message ID | 87d11267e2d93256e071ee7d86775cc7@denx.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | imx8mn: Trying to get EASRC to work | expand |
On 16/06/2023 16:39, Fabio Estevam wrote: > Hi, > > I am working on an imx8mn-based board with an ES9080 codec and I am > trying to get > EASCR to work. (The ES9080 driver is not upstreamed yet). > > Audio playback works fine via simple-audio-card and here are my changes > to > get EASRC to work: > > > - sound-ess { > - compatible = "simple-audio-card"; > - simple-audio-card,name = "ess-audio"; > - simple-audio-card,format = "left_j"; > - simple-audio-card,frame-master = <&s2cpu>; > - simple-audio-card,bitclock-master = <&s2cpu>; > - > - s2cpu: simple-audio-card,cpu { > - sound-dai = <&sai2>; > - dai-tdm-slot-num = <8>; fsl-asoc-card does not take the number of slots into account. I have sent a patch adding support for it. Now I can get audio output and will be running more tests. Thanks
diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c index 8d14b5593658..27b8f2c0cd65 100644 --- a/sound/soc/fsl/fsl-asoc-card.c +++ b/sound/soc/fsl/fsl-asoc-card.c @@ -624,6 +624,14 @@ static int fsl_asoc_card_probe(struct platform_device *pdev) codec_dai_name = "sgtl5000"; priv->codec_priv.mclk_id = SGTL5000_SYSCLK; priv->dai_fmt |= SND_SOC_DAIFMT_CBP_CFP; + } else if (of_device_is_compatible(np, "fsl,imx-audio-es9080")) { + codec_dai_name = "es9080"; + priv->dai_fmt |= SND_SOC_DAIFMT_CBC_CFC; + priv->dai_link[1].dpcm_capture = 0; + priv->dai_link[2].dpcm_capture = 0; + priv->cpu_priv.slot_width = 32; + priv->card.dapm_routes = audio_map_tx; + priv->card.num_dapm_routes = ARRAY_SIZE(audio_map_tx); } else if (of_device_is_compatible(np, "fsl,imx-audio-tlv320aic32x4")) {