Home
last modified time | relevance | path

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

12345

/OK3568_Linux_fs/kernel/sound/soc/stm/
H A Dstm32_sai_sub.c3 * STM32 ALSA SoC Digital Audio Interface (SAI) driver.
58 #define STM_SAI_HAS_EXT_SYNC(x) (!STM_SAI_IS_F4(sai->pdata))
67 * struct stm32_sai_sub_data - private data of SAI sub block (block A or B)
69 * @regmap: SAI register map pointer
70 * @regmap_config: SAI sub block register map configuration pointer
75 * @pdata: SAI block parent data pointer
77 * @sai_ck: kernel clock feeding the SAI clock generator
78 * @sai_mclk: master clock from SAI mclk provider
79 * @phys_addr: SAI registers physical base address
80 * @mclk_rate: SAI block master clock frequency (Hz). set at init
[all …]
H A 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 …]
H A 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 …]
H A 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
H A DKconfig5 tristate "STM32 SAI interface (Serial Audio Interface) support"
13 Say Y if you want to enable SAI for STM32
/OK3568_Linux_fs/kernel/sound/soc/fsl/
H A Dfsl_sai.c3 // Freescale ALSA SoC Digital Audio Interface (SAI) driver.
43 * SAI supports synchronous mode using bit/frame clocks of either Transmitter's
47 * @sai: SAI context
50 static inline bool fsl_sai_dir_is_synced(struct fsl_sai *sai, int dir) in fsl_sai_dir_is_synced() argument
55 return !sai->synchronous[dir] && sai->synchronous[adir]; in fsl_sai_dir_is_synced()
60 struct fsl_sai *sai = (struct fsl_sai *)devid; in fsl_sai_isr() local
61 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_isr()
62 struct device *dev = &sai->pdev->dev; in fsl_sai_isr()
74 regmap_read(sai->regmap, FSL_SAI_TCSR(ofs), &xcsr); in fsl_sai_isr()
104 regmap_write(sai->regmap, FSL_SAI_TCSR(ofs), flags | xcsr); in fsl_sai_isr()
[all …]
H A Dfsl_sai.h16 /* SAI Register Map Register */
17 #define FSL_SAI_VERID 0x00 /* SAI Version ID Register */
18 #define FSL_SAI_PARAM 0x04 /* SAI Parameter Register */
19 #define FSL_SAI_TCSR(ofs) (0x00 + ofs) /* SAI Transmit Control */
20 #define FSL_SAI_TCR1(ofs) (0x04 + ofs) /* SAI Transmit Configuration 1 */
21 #define FSL_SAI_TCR2(ofs) (0x08 + ofs) /* SAI Transmit Configuration 2 */
22 #define FSL_SAI_TCR3(ofs) (0x0c + ofs) /* SAI Transmit Configuration 3 */
23 #define FSL_SAI_TCR4(ofs) (0x10 + ofs) /* SAI Transmit Configuration 4 */
24 #define FSL_SAI_TCR5(ofs) (0x14 + ofs) /* SAI Transmit Configuration 5 */
25 #define FSL_SAI_TDR0 0x20 /* SAI Transmit Data 0 */
[all …]
H A DMakefile14 # Freescale SSI/DMA/SAI/SPDIF Support
18 snd-soc-fsl-sai-objs := fsl_sai.o
32 obj-$(CONFIG_SND_SOC_FSL_SAI) += snd-soc-fsl-sai.o
/OK3568_Linux_fs/kernel/sound/soc/rockchip/
H A Drockchip_sai.c3 * ALSA SoC Audio Layer - Rockchip SAI Controller driver
23 #define DRV_NAME "rockchip-sai"
75 struct rk_sai_dev *sai = dev_get_drvdata(dev); in rockchip_sai_runtime_suspend() local
79 if (sai->is_master_mode) in rockchip_sai_runtime_suspend()
80 regmap_update_bits(sai->regmap, SAI_XFER, in rockchip_sai_runtime_suspend()
86 ret = regmap_read_poll_timeout_atomic(sai->regmap, SAI_XFER, val, in rockchip_sai_runtime_suspend()
89 dev_warn(sai->dev, "Failed to idle FS\n"); in rockchip_sai_runtime_suspend()
91 regcache_cache_only(sai->regmap, true); in rockchip_sai_runtime_suspend()
107 clk_disable_unprepare(sai->mclk); in rockchip_sai_runtime_suspend()
108 clk_disable_unprepare(sai->hclk); in rockchip_sai_runtime_suspend()
[all …]
H A DKconfig60 tristate "Rockchip SAI Controller Driver"
64 Say Y or M if you want to add support for SAI driver for
65 Rockchip SAI Controller. The Controller supports up to maximum of
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/sound/
H A Dst,stm32-sai.txt1 STMicroelectronics STM32 Serial Audio Interface (SAI).
3 The SAI interface (Serial Audio Interface) offers a wide set of audio protocols
5 The SAI contains two independent audio sub-blocks. Each sub-block has
9 - compatible: Should be "st,stm32f4-sai" or "st,stm32h7-sai"
10 - reg: Base address and size of SAI common register set.
15 Mandatory for "st,stm32h7-sai" compatible.
16 Not used for "st,stm32f4-sai" compatible.
17 "x8k": SAI parent clock for sampling rates multiple of 8kHz.
18 "x11k": SAI parent clock for sampling rates multiple of 11.025kHz.
19 - interrupts: cpu DAI interrupt line shared by SAI sub-blocks
[all …]
H A Dfsl-sai.txt1 Freescale Synchronous Audio Interface (SAI).
3 The SAI is based on I2S module that used communicating with audio codecs,
10 - compatible : Compatible list, contains "fsl,vf610-sai",
11 "fsl,imx6sx-sai", "fsl,imx6ul-sai",
12 "fsl,imx7ulp-sai", "fsl,imx8mq-sai" or
13 "fsl,imx8qm-sai".
38 - fsl,sai-synchronous-rx: This is a boolean property. If present, indicating
39 that SAI will work in the synchronous mode (sync Tx
44 - fsl,sai-asynchronous: This is a boolean property. If present, indicating
45 that SAI will work in the asynchronous mode, which
[all …]
H A 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
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/clock/
H A 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";
/OK3568_Linux_fs/kernel/fs/xfs/scrub/
H A Dagheader.c629 struct xchk_agfl_info *sai = priv; in xchk_agfl_block() local
630 struct xfs_scrub *sc = sai->sc; in xchk_agfl_block()
634 sai->nr_entries < sai->sz_entries) in xchk_agfl_block()
635 sai->entries[sai->nr_entries++] = agbno; in xchk_agfl_block()
692 struct xchk_agfl_info sai; in xchk_agfl() local
720 memset(&sai, 0, sizeof(sai)); in xchk_agfl()
721 sai.sc = sc; in xchk_agfl()
722 sai.sz_entries = agflcount; in xchk_agfl()
723 sai.entries = kmem_zalloc(sizeof(xfs_agblock_t) * agflcount, in xchk_agfl()
725 if (!sai.entries) { in xchk_agfl()
[all …]
/OK3568_Linux_fs/kernel/drivers/clk/
H A Dclk-fsl-sai.c3 * Freescale SAI BCLK as a generic clock driver
86 { .compatible = "fsl,vf610-sai-clock" },
95 .name = "fsl-sai-clk",
101 MODULE_DESCRIPTION("Freescale SAI bitclock-as-a-clock driver");
104 MODULE_ALIAS("platform:fsl-sai-clk");
/OK3568_Linux_fs/u-boot/board/freescale/ls1012aqds/
H A DREADME37 - 5 SAI
38 - One SAI port with audio codec SGTL5000:
41 - One SAI port terminated at 2x6 header
42 - Three SAI Tx/Rx ports terminated at 2x3 headers
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/freescale/
H A Dimx8mm.dtsi272 sai1: sai@30010000 {
274 compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
286 sai2: sai@30020000 {
288 compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
300 sai3: sai@30030000 {
302 compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
314 sai5: sai@30050000 {
316 compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
328 sai6: sai@30060000 {
330 compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
H A Dfsl-ls1028a.dtsi755 compatible = "fsl,vf610-sai";
764 fsl,sai-asynchronous;
770 compatible = "fsl,vf610-sai";
779 fsl,sai-asynchronous;
785 compatible = "fsl,vf610-sai";
794 fsl,sai-asynchronous;
800 compatible = "fsl,vf610-sai";
809 fsl,sai-asynchronous;
815 compatible = "fsl,vf610-sai";
824 fsl,sai-asynchronous;
[all …]
/OK3568_Linux_fs/u-boot/board/freescale/ls1012afrdm/
H A DREADME35 - SAI Audio interface
36 - One SAI port, SAI 2 with full duplex support
/OK3568_Linux_fs/u-boot/arch/arm/dts/
H A Dls1021a.dtsi313 sai1: sai@2b50000 {
314 compatible = "fsl,vf610-sai";
318 clock-names = "sai";
326 sai2: sai@2b60000 {
327 compatible = "fsl,vf610-sai";
331 clock-names = "sai";
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/dma/
H A Dfsl-edma.txt102 sai2: sai@40031000 {
103 compatible = "fsl,vf610-sai";
106 clock-names = "sai";
/OK3568_Linux_fs/kernel/arch/arm/boot/dts/
H A Dstm32mp151.dtsi800 sai1: sai@4400a000 {
801 compatible = "st,stm32h7-sai";
813 compatible = "st,stm32-sai-sub-a";
823 compatible = "st,stm32-sai-sub-b";
832 sai2: sai@4400b000 {
833 compatible = "st,stm32h7-sai";
844 compatible = "st,stm32-sai-sub-a";
854 compatible = "st,stm32-sai-sub-b";
863 sai3: sai@4400c000 {
864 compatible = "st,stm32h7-sai";
[all …]
H A 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";
/OK3568_Linux_fs/kernel/drivers/dma/
H A 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 …]

12345