/linux-6.12.1/Documentation/sound/soc/ |
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-6.12.1/include/sound/sof/ |
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-6.12.1/Documentation/devicetree/bindings/sound/ |
D | st,stm32-sai.yaml | 1 # 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 …]
|
/linux-6.12.1/arch/arm/mach-sa1100/ |
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-6.12.1/drivers/iio/accel/ |
D | adxl345.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * ADXL345 3-Axis Digital Accelerometer 32 #define ADXL345_DATA_FORMAT_JUSTIFY BIT(2) /* Left-justified (MSB) mode */ 33 #define ADXL345_DATA_FORMAT_FULL_RES BIT(3) /* Up to 13-bits resolution */ 34 #define ADXL345_DATA_FORMAT_SPI_3WIRE BIT(6) /* 3-wire SPI mode */ 45 * In full-resolution mode, scale factor is maintained at ~4 mg/LSB 48 * At +/- 16g with 13-bit resolution, scale is computed as: 49 * (16 + 16) * 9.81 / (2^13 - 1) = 0.0383
|
/linux-6.12.1/sound/soc/codecs/ |
D | ak4458.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 51 * x 1 0 MSB justified Figure 3 (default)
|
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-6.12.1/sound/soc/pxa/ |
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-6.12.1/drivers/infiniband/hw/hfi1/ |
D | qsfp.h | 1 /* 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 …]
|
/linux-6.12.1/drivers/infiniband/hw/qib/ |
D | qib_qsfp.h | 15 * - 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 …]
|
/linux-6.12.1/include/uapi/sound/ |
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-6.12.1/drivers/video/fbdev/mmp/hw/ |
D | mmp_spi.c | 1 // 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_controller_get_devdata(spi->controller); 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 …]
|
/linux-6.12.1/sound/soc/meson/ |
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-6.12.1/arch/powerpc/platforms/powernv/ |
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-6.12.1/Documentation/spi/ |
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-6.12.1/arch/parisc/math-emu/ |
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-6.12.1/drivers/media/i2c/ |
D | wm8739.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2005 T. Adachi <tadachi@tadachi-net.com> 8 * - Cleanup 18 #include <media/v4l2-device.h> 19 #include <media/v4l2-ctrls.h> 29 MODULE_PARM_DESC(debug, "Debug level (0-1)"); 32 /* ------------------------------------------------------------------------ */ 59 return &container_of(ctrl->handler, struct wm8739_state, hdl)->sd; in to_sd() 62 /* ------------------------------------------------------------------------ */ 71 return -1; in wm8739_write() [all …]
|
/linux-6.12.1/include/sound/ |
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 -> CONT. GATED will be selected if both are selected. 82 * - "normal" polarity means signal is available at rising edge of BCLK 83 * - "inverted" polarity means signal is available at falling edge of BCLK 86 * - I2S: frame consists of left then right channel data. Left channel starts 88 * - Left/Right Justified: frame consists of left then right channel data. 91 * - DSP A/B: Frame starts with rising FSYNC edge. [all …]
|
/linux-6.12.1/sound/soc/bcm/ |
D | bcm2835-i2s.c | 1 // SPDX-License-Identifier: GPL-2.0-only 23 * Copyright 2007-2010 Freescale Semiconductor, Inc. 130 unsigned int provider = dev->fmt & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK; in bcm2835_i2s_start_clock() 132 if (dev->clk_prepared) in bcm2835_i2s_start_clock() 138 clk_prepare_enable(dev->clk); in bcm2835_i2s_start_clock() 139 dev->clk_prepared = true; in bcm2835_i2s_start_clock() 148 if (dev->clk_prepared) in bcm2835_i2s_stop_clock() 149 clk_disable_unprepare(dev->clk); in bcm2835_i2s_stop_clock() 150 dev->clk_prepared = false; in bcm2835_i2s_stop_clock() 171 regmap_read(dev->i2s_regmap, BCM2835_I2S_CS_A_REG, &csreg); in bcm2835_i2s_clear_fifos() [all …]
|
/linux-6.12.1/drivers/comedi/drivers/ |
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-6.12.1/drivers/media/platform/chips-media/wave5/ |
D | wave5-hw.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 3 * Wave5 series multi-standard codec IP - wave5 backend logic 5 * Copyright (C) 2021-2023 CHIPS&MEDIA INC 10 #include "wave5-vpu.h" 12 #include "wave5-regdefine.h" 87 struct device *dev = vpu_dev->dev; in _wave5_print_reg_err() 135 return -ETIMEDOUT; in wave5_wait_fio_readl() 152 dev_dbg_ratelimited(vpu_dev->dev, "FIO write timeout: addr=0x%x data=%x\n", in wave5_fio_writel() 160 if (vpu_dev->product_code == WAVE515_CODE) in wave5_wait_bus_busy() 162 if (vpu_dev->product_code == WAVE521C_CODE || in wave5_wait_bus_busy() [all …]
|
/linux-6.12.1/drivers/hwmon/ |
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-6.12.1/include/linux/ |
D | sched.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 41 #include <linux/posix-timers_types.h> 91 * We have two separate sets of flags: task->__state 92 * is about runnability, while task->exit_state are 98 /* Used in tsk->__state: */ 104 /* Used in tsk->exit_state: */ 108 /* Used in tsk->__state again: */ 121 #define TASK_ANY (TASK_STATE_MAX-1) 144 #define task_is_running(task) (READ_ONCE((task)->__state) == TASK_RUNNING) 146 #define task_is_traced(task) ((READ_ONCE(task->jobctl) & JOBCTL_TRACED) != 0) [all …]
|
/linux-6.12.1/drivers/media/pci/tw5864/ |
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-6.12.1/drivers/misc/lis3lv02d/ |
D | lis3lv02d.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * lis3lv02d.c - ST LIS3LV02DL accelerometer driver 5 * Copyright (C) 2007-2008 Yan Burman 7 * Copyright (C) 2008-2009 Pavel Machek 42 #define SELFTEST_FAIL -1 43 #define SELFTEST_IRQ -2 51 * to keep the interrupt for the free-fall event. The values are updated at 61 * LIS3LV02D spec says 1024 LSBs corresponds 1 G -> 1LSB is 1000/1024 mG 67 /* Sensitivity values for -2G +2G scale */ 72 * LIS331DLH spec says 1LSBs corresponds 4G/4096 -> 1LSB is 1000/1024 mG. [all …]
|