Home
last modified time | relevance | path

Searched +full:msb +full:- +full:justified (Results 1 – 25 of 53) sorted by relevance

123

/kernel/linux/linux-6.6/Documentation/sound/soc/
Ddai.rst35 I2S has several different operating modes:-
38 MSB is transmitted on the falling edge of the first BCLK after LRC
41 Left Justified
42 MSB is transmitted on transition of LRC.
44 Right Justified
45 MSB is transmitted sample size BCLKs before LRC transition.
58 Common PCM operating modes:-
61 MSB is transmitted on falling edge of first BCLK after FRAME/SYNC.
64 MSB is transmitted on rising edge of FRAME/SYNC.
/kernel/linux/linux-5.10/Documentation/sound/soc/
Ddai.rst35 I2S has several different operating modes:-
38 MSB is transmitted on the falling edge of the first BCLK after LRC
41 Left Justified
42 MSB is transmitted on transition of LRC.
44 Right Justified
45 MSB is transmitted sample size BCLKs before LRC transition.
58 Common PCM operating modes:-
61 MSB is transmitted on falling edge of first BCLK after FRAME/SYNC.
64 MSB is transmitted on rising edge of FRAME/SYNC.
/kernel/linux/linux-5.10/include/sound/sof/
Ddai.h1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
13 #include <sound/sof/dai-intel.h>
14 #include <sound/sof/dai-imx.h>
23 #define SOF_DAI_FMT_RIGHT_J 2 /**< Right Justified mode */
24 #define SOF_DAI_FMT_LEFT_J 3 /**< Left Justified mode */
25 #define SOF_DAI_FMT_DSP_A 4 /**< L data MSB after FRM LRC */
26 #define SOF_DAI_FMT_DSP_B 5 /**< L data MSB during FRM LRC */
61 uint32_t type; /**< DAI type - enum sof_ipc_dai_type */
/kernel/linux/linux-6.6/include/sound/sof/
Ddai.h1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
13 #include <sound/sof/dai-intel.h>
14 #include <sound/sof/dai-imx.h>
15 #include <sound/sof/dai-amd.h>
16 #include <sound/sof/dai-mediatek.h>
25 #define SOF_DAI_FMT_RIGHT_J 2 /**< Right Justified mode */
26 #define SOF_DAI_FMT_LEFT_J 3 /**< Left Justified mode */
27 #define SOF_DAI_FMT_DSP_A 4 /**< L data MSB after FRM LRC */
28 #define SOF_DAI_FMT_DSP_B 5 /**< L data MSB during FRM LRC */
57 * representing when the IPC is sent. The 4 MSB bits are used to add quirks along with the above
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/
Dst,stm32-sai.txt4 as I2S standards, LSB or MSB-justified, PCM/DSP, TDM, and AC'97.
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.
11 - clocks: Must contain phandle and clock specifier pairs for each entry
12 in clock-names.
13 - clock-names: Must contain "pclk" "x8k" and "x11k"
15 Mandatory for "st,stm32h7-sai" compatible.
16 Not used for "st,stm32f4-sai" compatible.
19 - interrupts: cpu DAI interrupt line shared by SAI sub-blocks
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/sound/
Dst,stm32-sai.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/sound/st,stm32-sai.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Olivier Moysan <olivier.moysan@foss.st.com>
14 protocols as I2S standards, LSB or MSB-justified, PCM/DSP, TDM, and AC'97.
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.
[all …]
/kernel/linux/linux-6.6/arch/arm/mach-sa1100/
Dssp.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/arch/arm/mach-sa1100/ssp.c
8 * IO-based SSP applications.
38 * ssp_write_word - write a word to the SSP port
39 * @data: 16-bit, MSB justified data to write.
48 * %-ETIMEDOUT timeout occurred
56 if (!--timeout) in ssp_write_word()
57 return -ETIMEDOUT; in ssp_write_word()
65 if (!--timeout) in ssp_write_word()
66 return -ETIMEDOUT; in ssp_write_word()
[all …]
/kernel/linux/linux-5.10/arch/arm/mach-sa1100/
Dssp.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/arch/arm/mach-sa1100/ssp.c
8 * IO-based SSP applications.
38 * ssp_write_word - write a word to the SSP port
39 * @data: 16-bit, MSB justified data to write.
48 * %-ETIMEDOUT timeout occurred
56 if (!--timeout) in ssp_write_word()
57 return -ETIMEDOUT; in ssp_write_word()
65 if (!--timeout) in ssp_write_word()
66 return -ETIMEDOUT; in ssp_write_word()
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Dak4458.h1 /* SPDX-License-Identifier: GPL-2.0 */
51 * x 1 0 MSB justified Figure 3 (default)
/kernel/linux/linux-6.6/sound/soc/codecs/
Dak4458.h1 /* SPDX-License-Identifier: GPL-2.0 */
51 * x 1 0 MSB justified Figure 3 (default)
/kernel/linux/linux-5.10/sound/soc/pxa/
Dpxa2xx-i2s.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * pxa2xx-i2s.c -- ALSA Soc Audio Layer
21 #include <sound/pxa2xx-lib.h>
27 #include "pxa2xx-i2s.h"
33 #define SACR1 __REG(0x40400004) /* Serial Audio I 2 S/MSB-Justified Control Register */
34 #define SASR0 __REG(0x4040000C) /* Serial Audio I 2 S/MSB-Justified Interface and FIFO Status Reg…
151 return -ENODEV; in pxa2xx_i2s_set_dai_sysclk()
163 return -EINVAL; in pxa2xx_i2s_hw_params()
168 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in pxa2xx_i2s_hw_params()
184 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in pxa2xx_i2s_hw_params()
[all …]
/kernel/linux/linux-6.6/sound/soc/pxa/
Dpxa2xx-i2s.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * pxa2xx-i2s.c -- ALSA Soc Audio Layer
21 #include <sound/pxa2xx-lib.h>
24 #include <linux/platform_data/asoc-pxa.h>
26 #include "pxa2xx-i2s.h"
32 #define SACR1 (0x0004) /* Serial Audio I 2 S/MSB-Justified Control Register */
33 #define SASR0 (0x000C) /* Serial Audio I 2 S/MSB-Justified Interface and FIFO Status Register */
149 return -ENODEV; in pxa2xx_i2s_set_dai_sysclk()
161 return -EINVAL; in pxa2xx_i2s_hw_params()
166 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in pxa2xx_i2s_hw_params()
[all …]
/kernel/linux/linux-6.6/drivers/infiniband/hw/hfi1/
Dqsfp.h1 /* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */
34 /* Byte 1 is reserved "status MSB" */
37 #define QSFP_MONITOR_RANGE (QSFP_MONITOR_VAL_END - QSFP_MONITOR_VAL_START + 1)
54 /* byte 140 is nominal bit-rate, in units of 100Mbits/sec */
82 /* Bytes 148..163 are Vendor Name, Left-justified Blank-filled */
93 /* Bytes 184,185 are Vendor Rev. Left Justified, Blank-filled */
118 /* Bytes 212..219 are date-code YYMMDD (MM==1 for Jan) */
121 /* Bytes 218,219 are optional lot-code, string */
160 * it will be part of port-specific data if a board supports QSFP.
162 * Since multiple board-types use QSFP, and their pport_data structs
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/qib/
Dqib_qsfp.h15 * - Redistributions of source code must retain the above
19 * - Redistributions in binary form must reproduce the above
54 /* Byte 1 is reserved "status MSB" */
70 /* byte 140 is nominal bit-rate, in units of 100Mbits/sec Not QLogic req'd */
97 /* Bytes 148..163 are Vendor Name, Left-justified Blank-filled */
108 /* Bytes 184,185 are Vendor Rev. Left Justified, Blank-filled */
126 /* Bytes 212..219 are date-code YYMMDD (MM==1 for Jan) */
129 /* Bytes 218,219 are optional lot-code, string */
138 * it will be part of port-chip-specific data if a board supports QSFP.
140 * Since multiple board-types use QSFP, and their pport_data structs
[all …]
/kernel/linux/linux-6.6/drivers/infiniband/hw/qib/
Dqib_qsfp.h15 * - Redistributions of source code must retain the above
19 * - Redistributions in binary form must reproduce the above
54 /* Byte 1 is reserved "status MSB" */
70 /* byte 140 is nominal bit-rate, in units of 100Mbits/sec Not QLogic req'd */
97 /* Bytes 148..163 are Vendor Name, Left-justified Blank-filled */
108 /* Bytes 184,185 are Vendor Rev. Left Justified, Blank-filled */
126 /* Bytes 212..219 are date-code YYMMDD (MM==1 for Jan) */
129 /* Bytes 218,219 are optional lot-code, string */
138 * it will be part of port-chip-specific data if a board supports QSFP.
140 * Since multiple board-types use QSFP, and their pport_data structs
[all …]
/kernel/linux/linux-5.10/include/uapi/sound/
Dasoc.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
3 * uapi/sound/asoc.h -- ALSA SoC Firmware Controls and DAPM
42 /* individual kcontrol info types - can be mixed with other types */
53 /* individual widget kcontrol info types - can be mixed with other types */
60 /* DAPM widget types - add new items to the end */
120 /* vendor block IDs - please add new vendor types to end */
155 #define SND_SOC_DAI_FORMAT_RIGHT_J 2 /* Right Justified mode */
156 #define SND_SOC_DAI_FORMAT_LEFT_J 3 /* Left Justified mode */
157 #define SND_SOC_DAI_FORMAT_DSP_A 4 /* L data MSB after FRM LRC */
158 #define SND_SOC_DAI_FORMAT_DSP_B 5 /* L data MSB during FRM LRC */
[all …]
/kernel/linux/linux-6.6/include/uapi/sound/
Dasoc.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
3 * uapi/sound/asoc.h -- ALSA SoC Firmware Controls and DAPM
38 /* individual kcontrol info types - can be mixed with other types */
49 /* individual widget kcontrol info types - can be mixed with other types */
56 /* DAPM widget types - add new items to the end */
116 /* vendor block IDs - please add new vendor types to end */
151 #define SND_SOC_DAI_FORMAT_RIGHT_J 2 /* Right Justified mode */
152 #define SND_SOC_DAI_FORMAT_LEFT_J 3 /* Left Justified mode */
153 #define SND_SOC_DAI_FORMAT_DSP_A 4 /* L data MSB after FRM LRC */
154 #define SND_SOC_DAI_FORMAT_DSP_B 5 /* L data MSB during FRM LRC */
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Dqsfp.h24 * - Redistributions of source code must retain the above copyright
26 * - Redistributions in binary form must reproduce the above copyright
30 * - Neither the name of Intel Corporation nor the names of its
76 /* Byte 1 is reserved "status MSB" */
79 #define QSFP_MONITOR_RANGE (QSFP_MONITOR_VAL_END - QSFP_MONITOR_VAL_START + 1)
96 /* byte 140 is nominal bit-rate, in units of 100Mbits/sec */
124 /* Bytes 148..163 are Vendor Name, Left-justified Blank-filled */
135 /* Bytes 184,185 are Vendor Rev. Left Justified, Blank-filled */
160 /* Bytes 212..219 are date-code YYMMDD (MM==1 for Jan) */
163 /* Bytes 218,219 are optional lot-code, string */
[all …]
/kernel/linux/linux-5.10/drivers/video/fbdev/mmp/hw/
Dmmp_spi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
19 * spi_write - write command to the SPI port
20 * @data: can be 8/16/32-bit, MSB justified data to write.
27 * %-ETIMEDOUT timeout occurred
35 *(void **)spi_master_get_devdata(spi->master); in lcd_spi_write()
40 switch (spi->bits_per_word) { in lcd_spi_write()
51 dev_err(&spi->dev, "Wrong spi bit length\n"); in lcd_spi_write()
64 if (!--timeout) { in lcd_spi_write()
65 ret = -ETIMEDOUT; in lcd_spi_write()
66 dev_err(&spi->dev, "spi cmd send time out\n"); in lcd_spi_write()
[all …]
/kernel/linux/linux-6.6/drivers/video/fbdev/mmp/hw/
Dmmp_spi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
19 * spi_write - write command to the SPI port
21 * @data: can be 8/16/32-bit, MSB justified data to write.
27 * %-ETIMEDOUT timeout occurred
35 *(void **)spi_master_get_devdata(spi->master); in lcd_spi_write()
40 switch (spi->bits_per_word) { in lcd_spi_write()
51 dev_err(&spi->dev, "Wrong spi bit length\n"); in lcd_spi_write()
64 if (!--timeout) { in lcd_spi_write()
65 ret = -ETIMEDOUT; in lcd_spi_write()
66 dev_err(&spi->dev, "spi cmd send time out\n"); in lcd_spi_write()
[all …]
/kernel/linux/linux-5.10/sound/soc/meson/
Daxg-spdifout.c1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
11 #include <sound/soc-dai.h>
97 axg_spdifout_enable(priv->map); in axg_spdifout_trigger()
103 axg_spdifout_disable(priv->map); in axg_spdifout_trigger()
107 return -EINVAL; in axg_spdifout_trigger()
116 regmap_update_bits(priv->map, SPDIFOUT_CTRL0, SPDIFOUT_CTRL0_VSET, in axg_spdifout_mute()
137 dev_err(dai->dev, "too many channels for spdif dai: %u\n", in axg_spdifout_sample_fmt()
139 return -EINVAL; in axg_spdifout_sample_fmt()
142 regmap_update_bits(priv->map, SPDIFOUT_CTRL0, in axg_spdifout_sample_fmt()
152 /* 4 samples of 16 bits - right justified */ in axg_spdifout_sample_fmt()
[all …]
/kernel/linux/linux-6.6/sound/soc/meson/
Daxg-spdifout.c1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
11 #include <sound/soc-dai.h>
97 axg_spdifout_enable(priv->map); in axg_spdifout_trigger()
103 axg_spdifout_disable(priv->map); in axg_spdifout_trigger()
107 return -EINVAL; in axg_spdifout_trigger()
116 regmap_update_bits(priv->map, SPDIFOUT_CTRL0, SPDIFOUT_CTRL0_VSET, in axg_spdifout_mute()
137 dev_err(dai->dev, "too many channels for spdif dai: %u\n", in axg_spdifout_sample_fmt()
139 return -EINVAL; in axg_spdifout_sample_fmt()
142 regmap_update_bits(priv->map, SPDIFOUT_CTRL0, in axg_spdifout_sample_fmt()
152 /* 4 samples of 16 bits - right justified */ in axg_spdifout_sample_fmt()
[all …]
/kernel/linux/linux-5.10/Documentation/spi/
Dspidev.rst5 SPI devices have a limited userspace API, supporting basic half-duplex
19 * Prototyping in an environment that's not crash-prone; stray pointers
73 Since this is a standard Linux device driver -- even though it just happens
74 to expose a low level API to userspace -- it can be associated with any number
84 Standard read() and write() operations are obviously only half-duplex, and
85 the chipselect is deactivated between those operations. Full-duplex access,
86 and composite operation without chipselect de-activation, is available using
109 transfer SPI words. Zero indicates MSB-first; other values indicate
110 the less common LSB-first encoding. In both cases the specified value
111 is right-justified in each word, so that unused (TX) or undefined (RX)
[all …]
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/
Dopal-lpc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
20 #include <asm/isa-bridge.h>
22 static int opal_lpc_chip_id = -1;
120 while(c--) in opal_lpc_insb()
128 while(c--) in opal_lpc_insw()
136 while(c--) in opal_lpc_insl()
144 while(c--) in opal_lpc_outsb()
152 while(c--) in opal_lpc_outsw()
160 while(c--) in opal_lpc_outsl()
187 struct lpc_debugfs_entry *lpc = filp->private_data; in lpc_debug_read()
[all …]
/kernel/linux/linux-6.6/arch/powerpc/platforms/powernv/
Dopal-lpc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
20 #include <asm/isa-bridge.h>
22 static int opal_lpc_chip_id = -1;
120 while(c--) in opal_lpc_insb()
128 while(c--) in opal_lpc_insw()
136 while(c--) in opal_lpc_insl()
144 while(c--) in opal_lpc_outsb()
152 while(c--) in opal_lpc_outsw()
160 while(c--) in opal_lpc_outsl()
187 struct lpc_debugfs_entry *lpc = filp->private_data; in lpc_debug_read()
[all …]

123