IMX6DL SSI1 imx-pcm-fiq传输AUDIO的读写数据问题咨询

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX6DL SSI1 imx-pcm-fiq传输AUDIO的读写数据问题咨询

1,577 Views
2570624484
Contributor II

IMX6DL 想使用imx-pcm-fiq这个驱动来匹配SSI 1 来传输数据,在ssi1加入fsl,fiq-stream-filter;

&ssi1 {
 fsl,fiq-stream-filter;
 fsl,mode = "i2s-master";
 status = "okay";
};

CONFIG_FIQ=y 和CONFIG_SND_SOC_IMX_PCM_FIQ=y 在编译出来的.config也已经包含,

现在在出发传输的时候,已经调到snd_imx_pcm_trigger ,但只有时钟出来(SYNC 和BITCLK),数据没有,应该没有出发中断,请问还有啥需要修改,才能真正让数据出来。

下面是和audio fiq有关的文件我找到的

\kernel_imx\sound\soc\fsl\imx-pcm-fiq.c 

\kernel_imx\arch\arm\mach-imx\ssi-fiq.S

Labels (1)
0 Kudos
5 Replies

1,440 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi Liang

&ssi1 {
 fsl,fiq-stream-filter;   // 这个是中断方式收发,还是DMA方式收发。
// fsl,mode = "i2s-master"; 配置Master还是Slave, 在Machine driver里配置即可。
 status = "okay";
};

从fsl_ssi.c driver里看,上面的配置就够了。 使用 pcm-fiq方式时,不使用DMA。

但是,我们不推荐这种方式,因为不使用DMA时,会一直由CPU来管,对系统的性能影响较大。在 ssi driver里,在中断服务例程fsl_ssi_isr()之前,有注释说明。

所以,请使用DMA方式。

Have a nice day!

BR,

Weidong

0 Kudos

1,440 Views
2570624484
Contributor II

Hl,weidong,先不考虑性能,主要是按照上面的改动,在播放的时候,没有触发中断去搬运数据。想先解决这个问题。

-原始邮件-

发件人: "weidong.sun"<admin@community.nxp.com&gt;

发送时间: 2019年9月9日(星期一) 下午2:28

收件人: "lou liang"<2570624484@qq.com&gt;;

主题: Re: - Re: IMX6D L SSI1 imx-pcm-fiq传输AUDIO的读写数据问题咨询

NXP Community

Re: IMX6DL SSI1 imx-pcm-fiq传输AUDIO的读写数据问题咨询

reply from Wigros Sun in i.MX Processors - View the full discussion

Hi Liang

 

&amp;ssi1 {

 fsl,fiq-stream-filter;   // 这个是中断方式收发,还是DMA方式收发。

// fsl,mode = "i2s-master"; 配置Master还是Slave, 在Machine driver里配置即可。

 status = "okay";

};

从fsl_ssi.c driver里看,上面的配置就够了。 使用 pcm-fiq方式时,不使用DMA。

但是,我们不推荐这种方式,因为不使用DMA时,会一直由CPU来管,对系统的性能影响较大。在 ssi driver里,在中断服务例程fsl_ssi_isr()之前,有注释说明。

 

所以,请使用DMA方式。

 

Have a nice day!

BR,

Weidong

Reply to this message by replying to this email, or go to the message on NXP Community

Start a new discussion in i.MX Processors by email or at NXP Community

Following Re: IMX6DL SSI1 imx-pcm-fiq传输AUDIO的读写数据问题咨询 in these streams: Inbox

This email was sent by NXP Community because you are a registered user.

You may unsubscribe instantly from NXP Community, or adjust email frequency in your email preferences

0 Kudos

1,440 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi Liang,

    今天和I.MX Expert team讨论了你遇到的FIQ的问题,得知imx-pcm-fiq.c代码不是NXP写的,我们这边无法确认这些代码是否存在问题。

     Expert team建议您直接给 imx-pcm-fiq.c的作者发邮件,询问有关情况。

weidong

0 Kudos

1,440 Views
2570624484
Contributor II

ok,非常感谢。

-原始邮件-

发件人: "weidong.sun"<admin@community.nxp.com&gt;

发送时间: 2019年9月11日(星期三) 下午3:57

收件人: "lou liang"<2570624484@qq.com&gt;;

主题: Re: - Re: IMX6D L SSI1 imx-pcm-fiq传输AUDIO的读写数据问题咨询

NXP Community

Re: IMX6DL SSI1 imx-pcm-fiq传输AUDIO的读写数据问题咨询

reply from Wigros Sun in i.MX Processors - View the full discussion

Hi Liang,

 

    今天和I.MX Expert team讨论了你遇到的FIQ的问题,得知imx-pcm-fiq.c代码不是NXP写的,我们这边无法确认这些代码是否存在问题。

     Expert team建议您直接给 imx-pcm-fiq.c的作者发邮件,询问有关情况。

 

weidong

Reply to this message by replying to this email, or go to the message on NXP Community

Start a new discussion in i.MX Processors by email or at NXP Community

Following Re: IMX6DL SSI1 imx-pcm-fiq传输AUDIO的读写数据问题咨询 in these streams: Inbox

This email was sent by NXP Community because you are a registered user.

You may unsubscribe instantly from NXP Community, or adjust email frequency in your email preferences

0 Kudos

1,440 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Below is the suggestions from i.MX Expert team:

That FIQ code is third-party code, not NXP code, please suggest customer check with third-party directly.

 

Third-party original patches: https://linux-arm-kernel.infradead.narkive.com/wxhXhzIn/patch-v5-04-10-asoc-fsl-ssi-add-support-for-...

weidong

0 Kudos