Home
last modified time | relevance | path

Searched +full:ssi +full:- +full:all (Results 1 – 25 of 227) sorted by relevance

12345678910

/kernel/linux/linux-6.6/sound/soc/fsl/
Dfsl_ssi.c1 // SPDX-License-Identifier: GPL-2.0
3 // Freescale SSI ALSA SoC Digital Audio Interface (DAI) driver
7 // Copyright 2007-2010 Freescale Semiconductor, Inc.
9 // Some notes why imx-pcm-fiq is used instead of DMA on some boards:
11 // The i.MX SSI core has some nasty limitations in AC97 mode. While most
13 // one FIFO which combines all valid receive slots. We cannot even select
16 // we receive in our (PCM-) data stream. The only chance we have is to
43 #include <linux/dma/imx-dma.h>
53 #include "imx-pcm.h"
55 /* Define RX and TX to index ssi->regvals array; Can be 0 or 1 only */
[all …]
Dfsl_utils.c1 // SPDX-License-Identifier: GPL-2.0
10 #include <linux/clk-provider.h>
18 * fsl_asoc_get_dma_channel - determine the dma channel for a SSI node
20 * @ssi_np: pointer to the SSI device tree node
26 * This function determines the dma and channel id for given SSI node. It
42 return -EINVAL; in fsl_asoc_get_dma_channel()
44 if (!of_device_is_compatible(dma_channel_np, "fsl,ssi-dma-channel")) { in fsl_asoc_get_dma_channel()
46 return -EINVAL; in fsl_asoc_get_dma_channel()
52 * the CPU (SSI) device. It's all ugly and hackish, but it works (for in fsl_asoc_get_dma_channel()
55 * dai->platform name should already point to an allocated buffer. in fsl_asoc_get_dma_channel()
[all …]
/kernel/linux/linux-5.10/sound/soc/fsl/
Dfsl_ssi.c1 // SPDX-License-Identifier: GPL-2.0
3 // Freescale SSI ALSA SoC Digital Audio Interface (DAI) driver
7 // Copyright 2007-2010 Freescale Semiconductor, Inc.
9 // Some notes why imx-pcm-fiq is used instead of DMA on some boards:
11 // The i.MX SSI core has some nasty limitations in AC97 mode. While most
13 // one FIFO which combines all valid receive slots. We cannot even select
16 // we receive in our (PCM-) data stream. The only chance we have is to
52 #include "imx-pcm.h"
54 /* Define RX and TX to index ssi->regvals array; Can be 0 or 1 only */
59 * FSLSSI_I2S_FORMATS: audio formats supported by the SSI
[all …]
Dimx-ssi.c1 // SPDX-License-Identifier: GPL-2.0+
3 // imx-ssi.c -- ALSA Soc Audio Layer
10 // The i.MX SSI core has some nasty limitations in AC97 mode. While most
12 // one FIFO which combines all valid receive slots. We cannot even select
15 // we receive in our (PCM-) data stream. The only chance we have is to
30 #include <linux/dma-mapping.h>
43 #include <linux/platform_data/asoc-imx-ssi.h>
45 #include "imx-ssi.h"
51 * SSI Network Mode or TDM slots configuration.
57 struct imx_ssi *ssi = snd_soc_dai_get_drvdata(cpu_dai); in imx_ssi_set_dai_tdm_slot() local
[all …]
Dfsl_utils.c1 // SPDX-License-Identifier: GPL-2.0
16 * fsl_asoc_get_dma_channel - determine the dma channel for a SSI node
18 * @ssi_np: pointer to the SSI device tree node
24 * This function determines the dma and channel id for given SSI node. It
40 return -EINVAL; in fsl_asoc_get_dma_channel()
42 if (!of_device_is_compatible(dma_channel_np, "fsl,ssi-dma-channel")) { in fsl_asoc_get_dma_channel()
44 return -EINVAL; in fsl_asoc_get_dma_channel()
50 * the CPU (SSI) device. It's all ugly and hackish, but it works (for in fsl_asoc_get_dma_channel()
53 * dai->platform name should already point to an allocated buffer. in fsl_asoc_get_dma_channel()
60 snprintf((char *)dai->platforms->name, DAI_NAME_SIZE, "%llx.%pOFn", in fsl_asoc_get_dma_channel()
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/sound/
Drenesas,rsnd.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Renesas R-Car Sound Driver
10 - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
13 port-def:
14 $ref: audio-graph-port.yaml#/definitions/port-base
17 "^endpoint(@[0-9a-f]+)?":
18 $ref: audio-graph-port.yaml#/definitions/endpoint-base
21 $ref: /schemas/types.yaml#/definitions/phandle-array
[all …]
Dfsl,ssi.txt3 The SSI is a serial device that communicates with audio codecs. It can
4 be programmed in AC97, I2S, left-justified, or right-justified modes.
7 - compatible: Compatible list, should contain one of the following
9 fsl,mpc8610-ssi
10 fsl,imx51-ssi
11 fsl,imx35-ssi
12 fsl,imx21-ssi
13 - cell-index: The SSI, <0> = SSI1, <1> = SSI2, and so on.
14 - reg: Offset and length of the register set for the device.
15 - interrupts: <a b> where a is the interrupt number and b is a
[all …]
/kernel/linux/linux-6.6/sound/soc/sh/
Drz-ssi.c1 // SPDX-License-Identifier: GPL-2.0
3 // Renesas RZ/G2L ASoC Serial Sound Interface (SSIF-2) Driver
28 /* SSI REGISTER BITS */
74 #define SSI_RATES SNDRV_PCM_RATE_8000_48000 /* 8k-44.1kHz */
85 int fifo_sample_size; /* sample capacity of SSI FIFO */
97 int (*transfer)(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm);
117 * The SSI supports full-duplex transmission and reception.
120 * So it is better to use as half-duplex (playing and recording
140 writel(data, (priv->base + reg)); in rz_ssi_reg_writel()
145 return readl(priv->base + reg); in rz_ssi_reg_readl()
[all …]
/kernel/linux/linux-5.10/drivers/hsi/controllers/
Domap_ssi_port.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* OMAP SSI port driver.
4 * Copyright (C) 2010 Nokia Corporation. All rights reserved.
12 #include <linux/dma-mapping.h>
36 return gpiod_get_value(omap_port->wake_gpio); in ssi_wakein()
44 debugfs_remove_recursive(omap_port->dir); in ssi_debug_remove_port()
49 struct hsi_port *port = m->private; in ssi_port_regs_show()
51 struct hsi_controller *ssi = to_hsi_controller(port->device.parent); in ssi_port_regs_show() local
52 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_port_regs_show()
53 void __iomem *base = omap_ssi->sys; in ssi_port_regs_show()
[all …]
Domap_ssi_core.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* OMAP SSI driver.
4 * Copyright (C) 2010 Nokia Corporation. All rights reserved.
17 #include <linux/dma-mapping.h>
40 struct hsi_controller *ssi = m->private; in ssi_regs_show() local
41 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_regs_show()
42 void __iomem *sys = omap_ssi->sys; in ssi_regs_show()
44 pm_runtime_get_sync(ssi->device.parent); in ssi_regs_show()
48 pm_runtime_put(ssi->device.parent); in ssi_regs_show()
55 struct hsi_controller *ssi = m->private; in ssi_gdd_regs_show() local
[all …]
Domap_ssi.h1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* OMAP SSI internal interface.
4 * Copyright (C) 2010 Nokia Corporation. All rights reserved.
23 #define SSI_BYTES_TO_FRAMES(x) ((((x) - 1) >> 2) + 1)
28 * struct omap_ssm_ctx - OMAP synchronous serial module (TX/RX) context
50 * struct omap_ssi_port - OMAP SSI port data
53 * @sst_dma: SSI transmitter physical base address
54 * @ssr_dma: SSI receiver physical base address
55 * @sst_base: SSI transmitter base address
56 * @ssr_base: SSI receiver base address
[all …]
/kernel/linux/linux-6.6/drivers/hsi/controllers/
Domap_ssi_port.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* OMAP SSI port driver.
4 * Copyright (C) 2010 Nokia Corporation. All rights reserved.
12 #include <linux/dma-mapping.h>
36 return gpiod_get_value(omap_port->wake_gpio); in ssi_wakein()
44 debugfs_remove_recursive(omap_port->dir); in ssi_debug_remove_port()
49 struct hsi_port *port = m->private; in ssi_port_regs_show()
51 struct hsi_controller *ssi = to_hsi_controller(port->device.parent); in ssi_port_regs_show() local
52 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_port_regs_show()
53 void __iomem *base = omap_ssi->sys; in ssi_port_regs_show()
[all …]
Domap_ssi_core.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* OMAP SSI driver.
4 * Copyright (C) 2010 Nokia Corporation. All rights reserved.
17 #include <linux/dma-mapping.h>
42 struct hsi_controller *ssi = m->private; in ssi_regs_show() local
43 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_regs_show()
44 void __iomem *sys = omap_ssi->sys; in ssi_regs_show()
46 pm_runtime_get_sync(ssi->device.parent); in ssi_regs_show()
50 pm_runtime_put(ssi->device.parent); in ssi_regs_show()
57 struct hsi_controller *ssi = m->private; in ssi_gdd_regs_show() local
[all …]
Domap_ssi.h1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* OMAP SSI internal interface.
4 * Copyright (C) 2010 Nokia Corporation. All rights reserved.
23 #define SSI_BYTES_TO_FRAMES(x) ((((x) - 1) >> 2) + 1)
28 * struct omap_ssm_ctx - OMAP synchronous serial module (TX/RX) context
50 * struct omap_ssi_port - OMAP SSI port data
53 * @sst_dma: SSI transmitter physical base address
54 * @ssr_dma: SSI receiver physical base address
55 * @sst_base: SSI transmitter base address
56 * @ssr_base: SSI receiver base address
[all …]
/kernel/liteos_m/arch/xtensa/lx6/gcc/
Dlos_arch_macro.h2 * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
3 * Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
144 ssi f0, \SP, CONTEXT_OFF_F0
145 ssi f1, \SP, CONTEXT_OFF_F1
146 ssi f2, \SP, CONTEXT_OFF_F2
147 ssi f3, \SP, CONTEXT_OFF_F3
148 ssi f4, \SP, CONTEXT_OFF_F4
149 ssi f5, \SP, CONTEXT_OFF_F5
150 ssi f6, \SP, CONTEXT_OFF_F6
151 ssi f7, \SP, CONTEXT_OFF_F7
[all …]
/kernel/linux/linux-6.6/sound/soc/sh/rcar/
Dssi.c1 // SPDX-License-Identifier: GPL-2.0
3 // Renesas R-Car SSIU/SSI support
13 * SSI interrupt status debug message when debugging
61 #define EN (1 << 0) /* SSI Module Enable */
77 #define SSI_NAME "ssi"
101 #define RSND_SSI_NO_BUSIF (1 << 1) /* SSI+DMA without BUSIF */
107 ((pos) = ((struct rsnd_ssi *)(priv)->ssi + i)); \
110 #define rsnd_ssi_get(priv, id) ((struct rsnd_ssi *)(priv->ssi) + id)
111 #define rsnd_ssi_nr(priv) ((priv)->ssi_nr)
113 #define rsnd_ssi_is_parent(ssi, io) ((ssi) == rsnd_io_to_mod_ssip(io)) argument
[all …]
/kernel/linux/linux-5.10/sound/soc/sh/rcar/
Dssi.c1 // SPDX-License-Identifier: GPL-2.0
3 // Renesas R-Car SSIU/SSI support
13 * SSI interrupt status debug message when debugging
61 #define EN (1 << 0) /* SSI Module Enable */
77 #define SSI_NAME "ssi"
101 #define RSND_SSI_NO_BUSIF (1 << 1) /* SSI+DMA without BUSIF */
107 ((pos) = ((struct rsnd_ssi *)(priv)->ssi + i)); \
110 #define rsnd_ssi_get(priv, id) ((struct rsnd_ssi *)(priv->ssi) + id)
111 #define rsnd_ssi_nr(priv) ((priv)->ssi_nr)
113 #define rsnd_ssi_is_parent(ssi, io) ((ssi) == rsnd_io_to_mod_ssip(io)) argument
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/
Drenesas,rsnd.txt1 Renesas R-Car sound
7 Renesas R-Car and RZ/G sound is constructed from below modules
11 - SRC : Sampling Rate Converter
12 - CMD
13 - CTU : Channel Transfer Unit
14 - MIX : Mixer
15 - DVC : Digital Volume and Mute Function
17 SSI : Serial Sound Interface
25 Multi channel is supported by Multi-SSI, or TDM-SSI.
27 Multi-SSI : 6ch case, you can use stereo x 3 SSI
[all …]
Dfsl,ssi.txt3 The SSI is a serial device that communicates with audio codecs. It can
4 be programmed in AC97, I2S, left-justified, or right-justified modes.
7 - compatible: Compatible list, should contain one of the following
9 fsl,mpc8610-ssi
10 fsl,imx51-ssi
11 fsl,imx35-ssi
12 fsl,imx21-ssi
13 - cell-index: The SSI, <0> = SSI1, <1> = SSI2, and so on.
14 - reg: Offset and length of the register set for the device.
15 - interrupts: <a b> where a is the interrupt number and b is a
[all …]
/kernel/linux/linux-5.10/drivers/hsi/clients/
Dssi_protocol.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Implementation of the SSI McSAAB improved protocol.
7 * Copyright (C) 2010 Nokia Corporation. All rights reserved.
44 #define SSIP_MAX_CMDS 5 /* Number of pre-allocated commands buffers */
45 #define SSIP_BYTES_TO_FRAMES(x) ((((x) - 1) >> 2) + 1)
48 * SSI protocol command definitions
104 * struct ssi_protocol - SSI protocol (McSAAB) data
114 * @keep_alive: Workaround for SSI HW bug
135 struct timer_list keep_alive; /* wake-up workaround */
148 /* List of ssi protocol instances */
[all …]
/kernel/linux/linux-6.6/drivers/hsi/clients/
Dssi_protocol.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Implementation of the SSI McSAAB improved protocol.
7 * Copyright (C) 2010 Nokia Corporation. All rights reserved.
42 #define SSIP_MAX_CMDS 5 /* Number of pre-allocated commands buffers */
43 #define SSIP_BYTES_TO_FRAMES(x) ((((x) - 1) >> 2) + 1)
46 * SSI protocol command definitions
102 * struct ssi_protocol - SSI protocol (McSAAB) data
112 * @keep_alive: Workaround for SSI HW bug
133 struct timer_list keep_alive; /* wake-up workaround */
146 /* List of ssi protocol instances */
[all …]
/kernel/linux/linux-6.6/include/linux/dma/
Dimx-dma.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright 2004-2009 Freescale Semiconductor, Inc. All Rights Reserved.
17 IMX_DMATYPE_SSI, /* MCU domain SSI */
18 IMX_DMATYPE_SSI_SP, /* Shared SSI */
39 IMX_DMATYPE_SSI_DUAL, /* SSI Dual FIFO */
61 return !strcmp(dev_name(chan->device->dev), "ipu-core"); in imx_dma_is_ipu()
66 return !strcmp(chan->device->dev->driver->name, "imx-sdma") || in imx_dma_is_general_purpose()
67 !strcmp(chan->device->dev->driver->name, "imx-dma"); in imx_dma_is_general_purpose()
71 * struct sdma_peripheral_config - SDMA config for audio
74 * @stride_fifos_src: FIFO address stride for recording, 0 means all FIFOs are
[all …]
/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/
DIt_posix_pthread.h2 * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
3 * Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
57 #define PTHREAD_IS_ERROR (-1)
66 #define INVALID_PSHARED_VALUE (-100)
70 #define TCOUNT 5 // Number of single-threaded polling
87 #define PRIORITY_OTHER (-1)
93 #define CASE(det, expl, scp, spa, sco, sta, gua, ssi, desc, res) \ argument
95 { 0 }, det, expl, scp, spa, sco, sta, gua, ssi, desc, NULL, res, \
100 …ine CASE_POS(det, expl, scp, spa, sco, sta, gua, ssi, desc) CASE(det, expl, scp, spa, sco, sta, gu… argument
101 …ine CASE_NEG(det, expl, scp, spa, sco, sta, gua, ssi, desc) CASE(det, expl, scp, spa, sco, sta, gu… argument
[all …]
/kernel/linux/linux-5.10/include/linux/platform_data/
Ddma-imx.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright 2004-2009 Freescale Semiconductor, Inc. All Rights Reserved.
17 IMX_DMATYPE_SSI, /* MCU domain SSI */
18 IMX_DMATYPE_SSI_SP, /* Shared SSI */
39 IMX_DMATYPE_SSI_DUAL, /* SSI Dual FIFO */
59 return !strcmp(dev_name(chan->device->dev), "ipu-core"); in imx_dma_is_ipu()
64 return !strcmp(chan->device->dev->driver->name, "imx-sdma") || in imx_dma_is_general_purpose()
65 !strcmp(chan->device->dev->driver->name, "imx-dma"); in imx_dma_is_general_purpose()
/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/
DIt_posix_pthread.h2 * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
3 * Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
53 #define LOS_HwiCreate(ID, prio, mode, Func, arg) (-1)
64 #define PTHREAD_IS_ERROR (-1)
73 #define INVALID_PSHARED_VALUE (-100)
77 #define TCOUNT 5 // Number of single-threaded polling
94 #define PRIORITY_OTHER (-1)
100 #define CASE(det, expl, scp, spa, sco, sta, gua, ssi, desc, res) \ argument
102 { 0 }, det, expl, scp, spa, sco, sta, gua, ssi, desc, NULL, res, \
107 …ine CASE_POS(det, expl, scp, spa, sco, sta, gua, ssi, desc) CASE(det, expl, scp, spa, sco, sta, gu… argument
[all …]

12345678910