Home
last modified time | relevance | path

Searched full:sai (Results 1 – 25 of 87) sorted by relevance

1234

/Linux-v6.1/sound/soc/stm/
Dstm32_sai_sub.c3 * STM32 ALSA SoC Digital Audio Interface (SAI) driver.
56 #define STM_SAI_HAS_EXT_SYNC(x) (!STM_SAI_IS_F4(sai->pdata))
65 * struct stm32_sai_sub_data - private data of SAI sub block (block A or B)
67 * @regmap: SAI register map pointer
68 * @regmap_config: SAI sub block register map configuration pointer
73 * @pdata: SAI block parent data pointer
75 * @sai_ck: kernel clock feeding the SAI clock generator
76 * @sai_mclk: master clock from SAI mclk provider
77 * @phys_addr: SAI registers physical base address
78 * @mclk_rate: SAI block master clock frequency (Hz). set at init
[all …]
Dstm32_sai.c3 * STM32 ALSA SoC Digital Audio Interface (SAI) driver.
40 { .compatible = "st,stm32f4-sai", .data = (void *)&stm32_sai_conf_f4 },
41 { .compatible = "st,stm32h7-sai", .data = (void *)&stm32_sai_conf_h7 },
47 struct stm32_sai_data *sai = dev_get_drvdata(dev); in stm32_sai_pclk_disable() local
49 clk_disable_unprepare(sai->pclk); in stm32_sai_pclk_disable()
56 struct stm32_sai_data *sai = dev_get_drvdata(dev); in stm32_sai_pclk_enable() local
59 ret = clk_prepare_enable(sai->pclk); in stm32_sai_pclk_enable()
61 dev_err(&sai->pdev->dev, "failed to enable clock: %d\n", ret); in stm32_sai_pclk_enable()
68 static int stm32_sai_sync_conf_client(struct stm32_sai_data *sai, int synci) in stm32_sai_sync_conf_client() argument
73 ret = stm32_sai_pclk_enable(&sai->pdev->dev); in stm32_sai_sync_conf_client()
[all …]
Dstm32_sai.h3 * STM32 ALSA SoC Digital Audio Interface (SAI) driver.
11 /******************** SAI Register Map **************************************/
233 /* Registers below apply to SAI version 2.1 and more */
252 /* SAI version numbers are 1.x for F4. Major version number set to 1 for F4 */
268 * struct stm32_sai_conf - SAI configuration
269 * @version: SAI version
270 * @fifo_size: SAI fifo size as words number
271 * @has_spdif_pdm: SAI S/PDIF and PDM features support flag
280 * struct stm32_sai_data - private data of SAI instance driver
283 * @pclk: SAI bus clock
[all …]
DMakefile2 # SAI
3 snd-soc-stm32-sai-sub-objs := stm32_sai_sub.o
4 obj-$(CONFIG_SND_SOC_STM32_SAI) += snd-soc-stm32-sai-sub.o
6 snd-soc-stm32-sai-objs := stm32_sai.o
7 obj-$(CONFIG_SND_SOC_STM32_SAI) += snd-soc-stm32-sai.o
DKconfig5 tristate "STM32 SAI interface (Serial Audio Interface) support"
13 Say Y if you want to enable SAI for STM32
/Linux-v6.1/sound/soc/fsl/
Dfsl_sai.c3 // Freescale ALSA SoC Digital Audio Interface (SAI) driver.
47 * SAI supports synchronous mode using bit/frame clocks of either Transmitter's
51 * @sai: SAI context
54 static inline bool fsl_sai_dir_is_synced(struct fsl_sai *sai, int dir) in fsl_sai_dir_is_synced() argument
59 return !sai->synchronous[dir] && sai->synchronous[adir]; in fsl_sai_dir_is_synced()
62 static struct pinctrl_state *fsl_sai_get_pins_state(struct fsl_sai *sai, u32 bclk) in fsl_sai_get_pins_state() argument
66 if (sai->is_pdm_mode) { in fsl_sai_get_pins_state()
69 state = pinctrl_lookup_state(sai->pinctrl, "dsd512"); in fsl_sai_get_pins_state()
73 state = pinctrl_lookup_state(sai->pinctrl, "dsd"); in fsl_sai_get_pins_state()
77 state = pinctrl_lookup_state(sai->pinctrl, "pcm_b2m"); in fsl_sai_get_pins_state()
[all …]
Dfsl_sai.h20 /* SAI Register Map Register */
21 #define FSL_SAI_VERID 0x00 /* SAI Version ID Register */
22 #define FSL_SAI_PARAM 0x04 /* SAI Parameter Register */
23 #define FSL_SAI_TCSR(ofs) (0x00 + ofs) /* SAI Transmit Control */
24 #define FSL_SAI_TCR1(ofs) (0x04 + ofs) /* SAI Transmit Configuration 1 */
25 #define FSL_SAI_TCR2(ofs) (0x08 + ofs) /* SAI Transmit Configuration 2 */
26 #define FSL_SAI_TCR3(ofs) (0x0c + ofs) /* SAI Transmit Configuration 3 */
27 #define FSL_SAI_TCR4(ofs) (0x10 + ofs) /* SAI Transmit Configuration 4 */
28 #define FSL_SAI_TCR5(ofs) (0x14 + ofs) /* SAI Transmit Configuration 5 */
29 #define FSL_SAI_TDR0 0x20 /* SAI Transmit Data 0 */
[all …]
Dfsl_rpmsg.h22 * @ipg: ipg clock for cpu dai (SAI)
23 * @mclk: master clock for cpu dai (SAI)
DMakefile14 # Freescale SSI/DMA/SAI/SPDIF Support
18 snd-soc-fsl-sai-objs := fsl_sai.o
35 obj-$(CONFIG_SND_SOC_FSL_SAI) += snd-soc-fsl-sai.o
DKconfig18 tristate "Synchronous Audio Interface (SAI) module support"
24 Say Y if you want to add Synchronous Audio Interface (SAI)
322 ESAI/SAI/SSI and connect with external CODECs such as WM8962, CS42888,
342 SAI/AUD2HTX and connect with internal HDMI IP or external module
/Linux-v6.1/Documentation/devicetree/bindings/sound/
Dfsl,sai.yaml4 $id: http://devicetree.org/schemas/sound/fsl,sai.yaml#
7 title: Freescale Synchronous Audio Interface (SAI).
13 The SAI is based on I2S module that used communicating with audio codecs,
22 - fsl,vf610-sai
23 - fsl,imx6sx-sai
24 - fsl,imx6ul-sai
25 - fsl,imx7ulp-sai
26 - fsl,imx8mq-sai
27 - fsl,imx8qm-sai
28 - fsl,imx8ulp-sai
[all …]
Dst,stm32-sai.yaml4 $id: http://devicetree.org/schemas/sound/st,stm32-sai.yaml#
7 title: STMicroelectronics STM32 Serial Audio Interface (SAI)
13 The SAI interface (Serial Audio Interface) offers a wide set of audio
15 The SAI contains two independent audio sub-blocks. Each sub-block has
21 - st,stm32f4-sai
22 - st,stm32h7-sai
26 - description: Base address and size of SAI common register set.
27 - description: Base address and size of SAI identification register set.
65 Two subnodes corresponding to SAI sub-block instances A et B
70 description: Compatible for SAI sub-block A or B.
[all …]
Dfsl,audmix.txt6 modules (SAI). Each input serial interface carries 8 audio channels in its
13 receive path of normal audio SAI module for readback by the CPU.
38 to SAI interfaces to be provided, the first SAI in the
/Linux-v6.1/Documentation/devicetree/bindings/clock/
Dfsl,sai-clock.yaml4 $id: http://devicetree.org/schemas/clock/fsl,sai-clock.yaml#
7 title: Freescale SAI bitclock-as-a-clock binding
13 It is possible to use the BCLK pin of a SAI module as a generic clock
16 LS1028A SoC you can only enable SAIs in pairs. If you use only one SAI,
18 clock of the second SAI as a MCLK clock for an audio codec, for example.
24 const: fsl,vf610-sai-clock
50 compatible = "fsl,vf610-sai-clock";
/Linux-v6.1/drivers/clk/
Dclk-fsl-sai.c3 * Freescale SAI BCLK as a generic clock driver
75 { .compatible = "fsl,vf610-sai-clock" },
83 .name = "fsl-sai-clk",
89 MODULE_DESCRIPTION("Freescale SAI bitclock-as-a-clock driver");
92 MODULE_ALIAS("platform:fsl-sai-clk");
/Linux-v6.1/fs/xfs/scrub/
Dagheader.c640 struct xchk_agfl_info *sai = priv; in xchk_agfl_block() local
641 struct xfs_scrub *sc = sai->sc; in xchk_agfl_block()
644 sai->nr_entries < sai->sz_entries) in xchk_agfl_block()
645 sai->entries[sai->nr_entries++] = agbno; in xchk_agfl_block()
699 struct xchk_agfl_info sai; in xchk_agfl() local
725 memset(&sai, 0, sizeof(sai)); in xchk_agfl()
726 sai.sc = sc; in xchk_agfl()
727 sai.sz_entries = agflcount; in xchk_agfl()
728 sai.entries = kmem_zalloc(sizeof(xfs_agblock_t) * agflcount, in xchk_agfl()
730 if (!sai.entries) { in xchk_agfl()
[all …]
/Linux-v6.1/include/linux/dma/
Dimx-dma.h41 IMX_DMATYPE_SAI, /* SAI */
85 * Some i.MX Audio devices (SAI, micfil) have multiple successive FIFO
86 * registers. For multichannel recording/playback the SAI/micfil have
/Linux-v6.1/arch/arm64/boot/dts/freescale/
Dimx8mn.dtsi295 sai2: sai@30020000 {
296 compatible = "fsl,imx8mn-sai", "fsl,imx8mq-sai";
309 sai3: sai@30030000 {
310 compatible = "fsl,imx8mn-sai", "fsl,imx8mq-sai";
323 sai5: sai@30050000 {
324 compatible = "fsl,imx8mn-sai", "fsl,imx8mq-sai";
339 sai6: sai@30060000 {
340 compatible = "fsl,imx8mn-sai", "fsl,imx8mq-sai";
396 sai7: sai@300b0000 {
397 compatible = "fsl,imx8mn-sai", "fsl,imx8mq-sai";
Dimx8mm.dtsi315 sai1: sai@30010000 {
317 compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
329 sai2: sai@30020000 {
331 compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
343 sai3: sai@30030000 {
345 compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
357 sai5: sai@30050000 {
359 compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
371 sai6: sai@30060000 {
373 compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
Dfsl-ls1028a.dtsi875 compatible = "fsl,vf610-sai";
890 fsl,sai-asynchronous;
896 compatible = "fsl,vf610-sai";
911 fsl,sai-asynchronous;
917 compatible = "fsl,vf610-sai";
932 fsl,sai-asynchronous;
938 compatible = "fsl,vf610-sai";
953 fsl,sai-asynchronous;
959 compatible = "fsl,vf610-sai";
974 fsl,sai-asynchronous;
[all …]
/Linux-v6.1/arch/arm/boot/dts/
Dvfxxx.dtsi186 sai0: sai@4002f000 {
187 compatible = "fsl,vf610-sai";
200 sai1: sai@40030000 {
201 compatible = "fsl,vf610-sai";
214 sai2: sai@40031000 {
215 compatible = "fsl,vf610-sai";
228 sai3: sai@40032000 {
229 compatible = "fsl,vf610-sai";
Dstm32mp151.dtsi868 sai1: sai@4400a000 {
869 compatible = "st,stm32h7-sai";
881 compatible = "st,stm32-sai-sub-a";
891 compatible = "st,stm32-sai-sub-b";
900 sai2: sai@4400b000 {
901 compatible = "st,stm32h7-sai";
912 compatible = "st,stm32-sai-sub-a";
922 compatible = "st,stm32-sai-sub-b";
931 sai3: sai@4400c000 {
932 compatible = "st,stm32h7-sai";
[all …]
/Linux-v6.1/drivers/dma/
Dtxx9dmac.c334 u32 sai, dai; in txx9dmac_dostart() local
352 sai = ds->reg_width; in txx9dmac_dostart()
355 sai = 0; in txx9dmac_dostart()
359 sai = 8; in txx9dmac_dostart()
362 channel64_writel(dc, SAIR, sai); in txx9dmac_dostart()
373 sai = ds->reg_width; in txx9dmac_dostart()
376 sai = 0; in txx9dmac_dostart()
380 sai = 4; in txx9dmac_dostart()
383 channel32_writel(dc, SAIR, sai); in txx9dmac_dostart()
830 u32 sai, dai; in txx9dmac_prep_slave_sg() local
[all …]
/Linux-v6.1/tools/testing/selftests/resctrl/
DREADME5 Sai Praneeth Prakhya <sai.praneeth.prakhya@intel.com>,
/Linux-v6.1/sound/soc/sof/
Dipc3-topology.c222 /* SAI */
311 [SOF_SAI_TOKENS] = {"SAI tokens", sai_tokens, ARRAY_SIZE(sai_tokens)},
1039 memset(&config->sai, 0, sizeof(config->sai)); in sof_link_sai_load()
1042 /* parse one set of SAI tokens */ in sof_link_sai_load()
1043 ret = sof_update_ipc_object(scomp, &config->sai, SOF_SAI_TOKENS, slink->tuples, in sof_link_sai_load()
1048 config->sai.mclk_rate = le32_to_cpu(hw_config->mclk_rate); in sof_link_sai_load()
1049 config->sai.bclk_rate = le32_to_cpu(hw_config->bclk_rate); in sof_link_sai_load()
1050 config->sai.fsync_rate = le32_to_cpu(hw_config->fsync_rate); in sof_link_sai_load()
1051 config->sai.mclk_direction = hw_config->mclk_direction; in sof_link_sai_load()
1053 config->sai.tdm_slots = le32_to_cpu(hw_config->tdm_slots); in sof_link_sai_load()
[all …]

1234