| /linux/Documentation/sound/soc/ |
| H A D | dai.rst | 35 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.
|
| /linux/include/sound/sof/ |
| H A D | dai.h | 1 /* 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 …]
|
| /linux/arch/arm/mach-sa1100/ |
| H A D | ssp.c | 1 // 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 …]
|
| /linux/sound/soc/codecs/ |
| H A D | ak4458.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 51 * x 1 0 MSB justified Figure 3 (default)
|
| H A D | ak4642.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // ak4642.c -- AK4642/AK4643 ALSA Soc Audio driver 23 #include <linux/clk-provider.h> 102 #define LOPS (1 << 6) /* Stero Line-out Power Save Mode */ 153 * min : 0xFE : -115.0 dB 156 static const DECLARE_TLV_DB_SCALE(out_tlv, -11550, 50, 1); 177 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in ak4642_lout_event() 280 int is_play = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; in ak4642_dai_startup() 281 struct snd_soc_component *component = dai->component; in ak4642_dai_startup() 288 * Audio I/F Format :MSB justified (ADC & DAC) in ak4642_dai_startup() [all …]
|
| /linux/sound/soc/pxa/ |
| H A D | pxa2xx-i2s.c | 1 // 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 …]
|
| /linux/include/uapi/sound/ |
| H A D | asoc.h | 1 /* 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 …]
|
| /linux/sound/soc/meson/ |
| H A D | axg-spdifout.c | 1 // 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 …]
|
| /linux/arch/powerpc/platforms/powernv/ |
| H A D | opal-lpc.c | 1 // 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 …]
|
| /linux/Documentation/spi/ |
| H A D | spidev.rst | 5 SPI devices have a limited userspace API, supporting basic half-duplex 19 * Prototyping in an environment that's not crash-prone; stray pointers 38 - struct spi_device_id spidev_spi_ids[]: list of devices that can be 42 - struct of_device_id spidev_dt_ids[]: list of devices that can be 46 - struct acpi_device_id spidev_acpi_ids[]: list of devices that can 52 post a patch for spidev to the linux-spi@vger.kernel.org mailing list. 101 Since this is a standard Linux device driver -- even though it just happens 102 to expose a low level API to userspace -- it can be associated with any number 112 Standard read() and write() operations are obviously only half-duplex, and 113 the chipselect is deactivated between those operations. Full-duplex access, [all …]
|
| /linux/arch/parisc/math-emu/ |
| H A D | sfmpy.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Linux/PA-RISC Project (http://www.parisc-linux.org/) 5 * Floating-point emulation code 6 * Copyright (C) 2001 Hewlett-Packard (Paul Bame) <bame@debian.org> 15 * Single Precision Floating-point Multiply 33 * Single Precision Floating-point Multiply 154 dest_exponent = Sgl_exponent(opnd1) + Sgl_exponent(opnd2) - SGL_BIAS; in sgl_fmpy() 175 /* opnd2 needs to have hidden bit set with msb in hidden bit */ in sgl_fmpy() 209 /* make sure result is left-justified */ in sgl_fmpy() 220 dest_exponent--; in sgl_fmpy() [all …]
|
| /linux/include/sound/ |
| H A D | soc-dai.h | 1 /* SPDX-License-Identifier: GPL-2.0 3 * linux/sound/soc-dai.h -- ALSA SoC Layer 5 * Copyright: 2005-2008 Wolfson Microelectronics. PLC. 35 /* left and right justified also known as MSB and LSB respectively */ 66 * define GATED -> CON [all...] |
| /linux/drivers/comedi/drivers/ |
| H A D | das6402.c | 1 // SPDX-License-Identifier: GPL-2.0+ 14 * Devices: [Keithley Metrabyte] DAS6402-12 (das6402-12), 15 * DAS6402-16 (das6402-16) 17 * Updated: Fri, 14 Mar 2014 10:18:43 -0700 21 * [0] - I/O base address 22 * [1] - IRQ (optional, needed for async command support) 122 .name = "das6402-12", 125 .name = "das6402-16", 138 outb(DAS6402_MODE_ENHANCED | mode, dev->iobase + DAS6402_MODE_REG); in das6402_set_mode() 144 outb(DAS6402_STATUS_W_EXTEND, dev->iobase + DAS6402_STATUS_REG); in das6402_set_extended() [all …]
|
| /linux/drivers/hwmon/ |
| H A D | f75375s.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * f75375s.c - driver for the Fintek F75375/SP, F75373 and 5 * Copyright (C) 2006-2007 Riku Voipio 22 #include <linux/hwmon-sysfs.h> 105 * f75387: For remote temperature reading, it uses signed 11-bit 106 * values with LSB = 0.125 degree Celsius, left-justified in 16-bit 107 * registers. For original 8-bit temp readings, the LSB just is 0. 144 if (data->kind == f75387) in f75375_write_pwm() 145 f75375_write16(client, F75375_REG_FAN_EXP(nr), data->pwm[nr]); in f75375_write_pwm() 148 data->pwm[nr]); in f75375_write_pwm() [all …]
|
| /linux/drivers/media/pci/tw5864/ |
| H A D | tw5864-reg.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * TW5864 driver - registers description 8 /* According to TW5864_datasheet_0.6d.pdf, tw5864b1-ds.pdf */ 10 /* Register Description - Direct Map Space */ 11 /* 0x0000 ~ 0x1ffc - H264 Register Map */ 76 * 0->3 4 VLC data buffer in DDR (1M each) 77 * 0->7 8 VLC data buffer in DDR (512k each) 147 /* DDR-DPR Burst Read Enable */ 157 * 0 Single R/W Access (Host <-> DDR) 158 * 1 Burst R/W Access (Host <-> DPR) [all …]
|
| /linux/include/linux/spi/ |
| H A D | spi.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later 38 * INTERFACES between SPI controller-side drivers and SPI target protocol handlers, 44 * struct spi_statistics - statistics for spi transfers 45 * @syncp: seqcount to protect members in this struct for per-cpu update 46 * on 32-bit systems 48 * @messages: number of spi-message [all...] |
| /linux/kernel/locking/ |
| H A D | lockdep.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 * - lock inversion scenarios 16 * - circular lock dependencies 17 * - hardirq/softirq safe/unsafe locking bugs 124 if (current->lockdep_recursion) in lockdep_enabled() 134 * This is one of the rare exceptions where it's justified 135 * to use a raw spinlock - we really dont want the spinlock 217 #define KEYHASH_BITS (MAX_LOCKDEP_KEYS_BITS - 1) 229 unsigned int class_idx = hlock->class_idx; in hlock_class() 231 /* Don't re-read hlock->class_idx, can't use READ_ONCE() on bitfield */ in hlock_class() [all …]
|