From: Sascha Hauer <s.hauer@pengutronix.de>
To: Shengjiu Wang <shengjiu.wang@gmail.com>
Cc: alsa-devel@alsa-project.org, Xiubo Li <Xiubo.Lee@gmail.com>,
Fabio Estevam <festevam@gmail.com>,
Sascha Hauer <kernel@pengutronix.de>,
Vinod Koul <vkoul@kernel.org>, NXP Linux Team <linux-imx@nxp.com>,
dmaengine@vger.kernel.org, joy.zou@nxp.com
Subject: Re: [PATCH 10/19] dma: imx-sdma: Add multi fifo support
Date: Thu, 17 Mar 2022 11:19:50 +0100 [thread overview]
Message-ID: <20220317101950.GU405@pengutronix.de> (raw)
In-Reply-To: <CAA+D8APw-OHdz4s=oy9bWZOw6kj8mD8nss3OKXsYQty52=tb2Q@mail.gmail.com>
On Thu, Mar 17, 2022 at 05:08:55PM +0800, Shengjiu Wang wrote:
> On Thu, Mar 17, 2022 at 4:28 PM Sascha Hauer <[1]s.hauer@pengutronix.de>
> wrote:
>
> +struct sdma_peripheral_config {
> + int n_fifos_src;
> + int n_fifos_dst;
> + bool sw_done;
> +};
> +
> #endif
>
> Hi Sascha
> This is our internal definition for this sdma_peripheral_config.
> Could you please adopt this?
This structure is completely internal to the kernel and can be adjusted
when we need it. I don't see a reason to add unused fields to it just to
be compatible with a downstream kernel.
Sascha
> /**
> * struct sdma_audio_config - special sdma config for audio case
> * @src_fifo_num: source fifo number for mcu_2_sai/sai_2_mcu script
> * For example, if there are 4 fifos, sdma will fetch
> * fifos one by one and roll back to the first fifo after
> * the 4th fifo fetch.
> * @dst_fifo_num: similar as src_fifo_num, but dest fifo instead.
> * @src_fifo_off: source fifo offset, 0 means all fifos are continuous, 1
> * means 1 word offset between fifos. All offset between
> * fifos should be same.
> * @dst_fifo_off: dst fifo offset, similar as @src_fifo_off.
> * @words_per_fifo: numbers of words per fifo fetch/fill, 0 means
> * one channel per fifo, 1 means 2 channels per fifo..
> * If 'src_fifo_num = 4' and 'chans_per_fifo = 1', it
> * means the first two words(channels) fetch from fifo1
> * and then jump to fifo2 for next two words, and so on
> * after the last fifo4 fetched, roll back to fifo1.
> * @sw_done_sel: software done selector, PDM need enable software done
> feature
> * in mcu_2_sai/sai_2_mcu script.
> * Bit31: sw_done eanbled or not
> * Bit16~Bit0: selector
> * For example: 0x80000000 means sw_done enabled for done0
> * sector which is for PDM on i.mx8mm.
> */
> struct sdma_audio_config {
> u8 src_fifo_num;
> u8 dst_fifo_num;
> u8 src_fifo_off;
> u8 dst_fifo_off;
> u8 words_per_fifo;
> u32 sw_done_sel;
> };
> best regards
> wang shengjiu
>
>
> References
>
> Visible links
> 1. mailto:s.hauer@pengutronix.de
> 2. mailto:s.hauer@pengutronix.de
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2022-03-17 10:20 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-17 8:27 [PATCH 00/19] ASoC: fsl_micfil: Driver updates Sascha Hauer
2022-03-17 8:28 ` [PATCH 01/19] ASoC: fsl_micfil: Drop unnecessary register read Sascha Hauer
2022-03-17 8:28 ` [PATCH 02/19] ASoC: fsl_micfil: Drop unused " Sascha Hauer
2022-03-17 8:28 ` [PATCH 03/19] ASoC: fsl_micfil: drop fsl_micfil_set_mclk_rate() Sascha Hauer
2022-03-17 8:28 ` [PATCH 04/19] ASoC: fsl_micfil: do not define SHIFT/MASK for single bits Sascha Hauer
2022-03-17 8:28 ` [PATCH 05/19] ASoC: fsl_micfil: use GENMASK to define register bit fields Sascha Hauer
2022-03-17 17:06 ` kernel test robot
2022-03-17 8:28 ` [PATCH 06/19] ASoC: fsl_micfil: use clear/set bits Sascha Hauer
2022-03-17 8:28 ` [PATCH 07/19] ASoC: fsl_micfil: drop error messages from failed register accesses Sascha Hauer
2022-03-17 8:28 ` [PATCH 08/19] ASoC: fsl_micfil: drop unused variables Sascha Hauer
2022-03-17 8:28 ` [PATCH 09/19] dma: imx-sdma: error out on unsupported transfer types Sascha Hauer
2022-03-17 8:28 ` [PATCH 10/19] dma: imx-sdma: Add multi fifo support Sascha Hauer
[not found] ` <CAA+D8APw-OHdz4s=oy9bWZOw6kj8mD8nss3OKXsYQty52=tb2Q@mail.gmail.com>
2022-03-17 10:19 ` Sascha Hauer [this message]
[not found] ` <CAA+D8AMdTzqfEQCH4pcQE3K1P-4oo71ctiGW1DD7XJPQDcVbTg@mail.gmail.com>
2022-03-17 14:41 ` Sascha Hauer
[not found] ` <CAA+D8AM5bm3Hncrf0=xdPNpC_rz_yMbokN6J-8z4tHi7-==jgA@mail.gmail.com>
2022-03-18 8:04 ` Sascha Hauer
2022-03-17 8:28 ` [PATCH 11/19] ASoC: fsl_micfil: add " Sascha Hauer
2022-03-17 8:28 ` [PATCH 12/19] ASoC: fsl_micfil: use define for OSR default value Sascha Hauer
2022-03-17 8:28 ` [PATCH 13/19] ASoC: fsl_micfil: Drop get_pdm_clk() Sascha Hauer
2022-03-17 8:28 ` [PATCH 14/19] ASoC: fsl_micfil: simplify clock setting Sascha Hauer
2022-03-17 8:28 ` [PATCH 15/19] ASoC: fsl_micfil: rework quality setting Sascha Hauer
2022-03-17 8:28 ` [PATCH 16/19] ASoC: fsl_micfil: drop unused include Sascha Hauer
2022-03-17 8:28 ` [PATCH 17/19] ASoC: fsl_micfil: drop only once used defines Sascha Hauer
2022-03-17 8:28 ` [PATCH 18/19] ASoC: fsl_micfil: drop support for undocumented property Sascha Hauer
2022-03-17 8:28 ` [PATCH 19/19] ASoC: fsl_micfil: fold fsl_set_clock_params() into its only user Sascha Hauer
-- strict thread matches above, loose matches on Subject: below --
2022-03-17 10:18 [PATCH 10/19] dma: imx-sdma: Add multi fifo support S.J. Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220317101950.GU405@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=Xiubo.Lee@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=dmaengine@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=joy.zou@nxp.com \
--cc=kernel@pengutronix.de \
--cc=linux-imx@nxp.com \
--cc=shengjiu.wang@gmail.com \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox