Home
last modified time | relevance | path

Searched +full:diff +full:- +full:channels (Results 1 – 25 of 94) sorted by relevance

1234

/kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/adc/
Dadi,ad7124.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Stefan Popa <stefan.popa@analog.com>
16 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7124-8.pdf
21 - adi,ad7124-4
22 - adi,ad7124-8
32 clock-names:
34 - const: mclk
40 '#address-cells':
[all …]
Dadc.txt4 - bipolar : Boolean, if set the channel is used in bipolar mode.
5 - diff-channels : Differential channels muxed for this ADC. The first value
15 diff-channels = <0 1>;
20 diff-channels = <2 3>;
Dst,stm32-adc.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: "http://devicetree.org/schemas/iio/adc/st,stm32-adc.yaml#"
5 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
10 STM32 ADC is a successive approximation analog-to-digital converter.
11 It has several multiplexed input channels. Conversions can be performed
13 stored in a left-aligned or right-aligned 32-bit data register.
17 voltage goes beyond the user-defined, higher or lower thresholds.
22 - Fabrice Gasnier <fabrice.gasnier@st.com>
27 - st,stm32f4-adc-core
[all …]
Dadi,ad7292.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Analog Devices AD7292 10-Bit Monitor and Control System
10 - Marcelo Schmitt <marcelo.schmitt1@gmail.com>
13 Analog Devices AD7292 10-Bit Monitor and Control System with ADC, DACs,
17 https://www.analog.com/media/en/technical-documentation/data-sheets/ad7292.pdf
22 - adi,ad7292
27 vref-supply:
31 spi-cpha: true
[all …]
/kernel/linux/linux-5.10/include/linux/iio/
Devents.h1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* The industrial I/O - event passing to userspace
4 * Copyright (c) 2008-2011 Jonathan Cameron
13 * IIO_EVENT_CODE() - create event identifier
15 * @diff: Whether the event is for an differential channel or not.
19 * @chan: Channel number for non-differential channels.
20 * @chan1: First channel number for differential channels.
21 * @chan2: Second channel number for differential channels.
24 #define IIO_EVENT_CODE(chan_type, diff, modifier, direction, \ argument
26 (((u64)type << 56) | ((u64)diff << 55) | \
[all …]
/kernel/linux/linux-5.10/sound/core/
Dpcm_lib.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Abramo Bagnara <abramo@alsa-project.org>
38 * runtime->silence_start: starting pointer to silence area
39 * runtime->silence_filled: size filled with silence
40 * runtime->silence_threshold: threshold from application
41 * runtime->silence_size: maximal size from application
43 * when runtime->silence_size >= runtime->boundary - fill processed area with silence immediately
47 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_playback_silence()
51 if (runtime->silence_size < runtime->boundary) { in snd_pcm_playback_silence()
53 snd_pcm_uframes_t appl_ptr = READ_ONCE(runtime->control->appl_ptr); in snd_pcm_playback_silence()
[all …]
/kernel/linux/linux-5.10/drivers/iio/adc/
Dstm32-adc.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2016, STMicroelectronics - All Rights Reserved
11 #include <linux/dma-mapping.h>
15 #include <linux/iio/timer/stm32-lptim-trigger.h>
16 #include <linux/iio/timer/stm32-timer-trigger.h>
29 #include "stm32-adc-core.h"
37 #define STM32_ADC_CH_MAX 20 /* max number of channels */
55 /* extsel - trigger mux selection value */
81 * struct stm32_adc_trig_info - ADC trigger info
91 * struct stm32_adc_calib - optional adc calibration data
[all …]
Dstx104.c1 // SPDX-License-Identifier: GPL-2.0-only
27 #define STX104_IN_CHAN(chan, diff) { \ argument
35 .differential = diff \
48 * struct stx104_iio - IIO device private data structure
49 * @chan_out_states: channels' output states
58 * struct stx104_gpio - GPIO device private data structure
82 adc_config = inb(priv->base + 11); in stx104_read_raw()
88 if (chan->output) { in stx104_read_raw()
89 *val = priv->chan_out_states[chan->channel]; in stx104_read_raw()
94 outb(chan->channel | (chan->channel << 4), priv->base + 2); in stx104_read_raw()
[all …]
Dad7292.c1 // SPDX-License-Identifier: GPL-2.0
91 st->d8[0] = AD7292_RD_FLAG_MSK(addr); in ad7292_spi_reg_read()
93 ret = spi_write_then_read(st->spi, st->d8, 1, &st->d16, 2); in ad7292_spi_reg_read()
97 return be16_to_cpu(st->d16); in ad7292_spi_reg_read()
103 unsigned int shift = 16 - (8 * len); in ad7292_spi_subreg_read()
106 st->d8[0] = AD7292_RD_FLAG_MSK(addr); in ad7292_spi_subreg_read()
107 st->d8[1] = sub_addr; in ad7292_spi_subreg_read()
109 ret = spi_write_then_read(st->spi, st->d8, 2, &st->d16, len); in ad7292_spi_subreg_read()
113 return (be16_to_cpu(st->d16) >> shift); in ad7292_spi_subreg_read()
123 .tx_buf = &st->d8, in ad7292_single_conversion()
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Dpcm186x.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2015-2017 Texas Instruments Incorporated - https://www.ti.com
30 "avdd", /* Analog power supply. Connect to 3.3-V supply. */
31 "dvdd", /* Digital power supply. Connect to 3.3-V supply. */
32 "iovdd", /* I/O power supply. Connect to 3.3-V or 1.8-V. */
45 static const DECLARE_TLV_DB_SCALE(pcm186x_pga_tlv, -1200, 50, 0);
49 PCM186X_PGA_VAL_CH1_R, 0, -24, 80, 7, 0,
55 PCM186X_PGA_VAL_CH1_R, 0, -24, 80, 7, 0,
58 PCM186X_PGA_VAL_CH2_R, 0, -24, 80, 7, 0,
85 "{VIN1P, VIN1M}[DIFF]",
[all …]
/kernel/linux/linux-5.10/drivers/dma/
Ddmatest.c1 // SPDX-License-Identifier: GPL-2.0-only
12 #include <linux/dma-mapping.h>
41 "Maximum number of channels to use (default: all)");
51 "dmatest 0-memcpy 1-memset (default: 0)");
66 "Pass -1 for infinite timeout");
80 static int alignment = -1;
82 …M_DESC(alignment, "Custom data address alignment taken as 2^(alignment) (default: not used (-1))");
93 * struct dmatest_params - test parameters.
98 * @max_channels: maximum number of channels to use
102 * @timeout: transfer timeout in msec, -1 for infinite timeout
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mux/
Dadi,adg792a.txt4 - compatible : "adi,adg792a" or "adi,adg792g"
5 - #mux-control-cells : <0> if parallel (the three muxes are bound together
8 * Standard mux-controller bindings as described in mux-controller.txt
11 - gpio-controller : if present, #gpio-cells below is required.
12 - #gpio-cells : should be <2>
13 - First cell is the GPO line number, i.e. 0 or 1
14 - Second cell is used to specify active high (0)
18 - idle-state : if present, array of states that the mux controllers will have
32 mux: mux-controller@50 {
35 #mux-control-cells = <1>;
[all …]
/kernel/linux/patches/linux-5.10/yangfan_patch/
Dsound.patch1 diff --git a/sound/Makefile b/sound/Makefile
3 --- a/sound/Makefile
5 @@ -5,7 +5,8 @@
6 obj-$(CONFIG_SOUND) += soundcore.o
7 obj-$(CONFIG_DMASOUND) += oss/dmasound/
8 obj-$(CONFIG_SND) += core/ i2c/ drivers/ isa/ pci/ ppc/ arm/ sh/ synth/ usb/ \
9 - firewire/ sparc/ spi/ parisc/ pcmcia/ mips/ soc/ atmel/ hda/ x86/ xen/
12 obj-$(CONFIG_SND_AOA) += aoa/
15 diff --git a/sound/drivers/aloop.c b/sound/drivers/aloop.c
17 --- a/sound/drivers/aloop.c
[all …]
/kernel/linux/linux-5.10/net/rxrpc/
Dconn_client.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* Client connection-specific management code.
13 * (2) DONT_REUSE - The connection should be discarded as soon as possible and
31 #include "ar-internal.h"
38 * We use machine-unique IDs for our client connections.
52 struct rxrpc_net *rxnet = conn->params.local->rxnet; in rxrpc_get_client_connection_id()
68 conn->proto.epoch = rxnet->epoch; in rxrpc_get_client_connection_id()
69 conn->proto.cid = id << RXRPC_CIDSHIFT; in rxrpc_get_client_connection_id()
70 set_bit(RXRPC_CONN_HAS_IDR, &conn->flags); in rxrpc_get_client_connection_id()
71 _leave(" [CID %x]", conn->proto.cid); in rxrpc_get_client_connection_id()
[all …]
/kernel/linux/linux-5.10/sound/pci/pcxhr/
Dpcxhr_mix22.c1 // SPDX-License-Identifier: GPL-2.0-or-later
36 #define PCXHR_INPB(mgr, x) inb((mgr)->port[PCXHR_DSP] + (x))
37 #define PCXHR_OUTPB(mgr, x, data) outb((data), (mgr)->port[PCXHR_DSP] + (x))
72 /* values for PCHR_XLX_STATUS register - READ */
78 /* values for PCHR_XLX_STATUS register - WRITE */
96 /* values for PCXHR_XLX_SELMIC register - WRITE */
103 0x00, /* [000] -49.5 dB: AKM[000] = -1.#INF dB (mute) */
104 0x01, /* [001] -49.0 dB: AKM[001] = -48.131 dB (diff=0.86920 dB) */
105 0x01, /* [002] -48.5 dB: AKM[001] = -48.131 dB (diff=0.36920 dB) */
106 0x01, /* [003] -48.0 dB: AKM[001] = -48.131 dB (diff=0.13080 dB) */
[all …]
/kernel/linux/linux-5.10/drivers/input/keyboard/
Dsun4i-lradc-keys.c1 // SPDX-License-Identifier: GPL-2.0-or-later
13 * There are 2 channels, currently this driver only supports channel 0 since
58 /* struct lradc_variant - Describe sun4i-a10-lradc-keys hardware variant
97 u32 i, ints, val, voltage, diff, keycode = 0, closest = 0xffffffff; in sun4i_lradc_irq() local
99 ints = readl(lradc->base + LRADC_INTS); in sun4i_lradc_irq()
107 input_report_key(lradc->input, lradc->chan0_keycode, 0); in sun4i_lradc_irq()
108 lradc->chan0_keycode = 0; in sun4i_lradc_irq()
111 if ((ints & CHAN0_KEYDOWN_IRQ) && lradc->chan0_keycode == 0) { in sun4i_lradc_irq()
112 val = readl(lradc->base + LRADC_DATA0) & 0x3f; in sun4i_lradc_irq()
113 voltage = val * lradc->vref / 63; in sun4i_lradc_irq()
[all …]
/kernel/linux/linux-5.10/drivers/iio/imu/
Dadis16480.c1 // SPDX-License-Identifier: GPL-2.0-only
109 ADIS16480_REG((page) + 1, (x) - 60 + 8))
131 const struct iio_chan_spec *channels; member
178 struct adis16480 *adis16480 = file->private_data; in adis16480_show_firmware_revision()
184 ret = adis_read_reg_16(&adis16480->adis, ADIS16480_REG_FIRM_REV, &rev); in adis16480_show_firmware_revision()
203 struct adis16480 *adis16480 = file->private_data; in adis16480_show_firmware_date()
209 ret = adis_read_reg_16(&adis16480->adis, ADIS16480_REG_FIRM_Y, &year); in adis16480_show_firmware_date()
213 ret = adis_read_reg_16(&adis16480->adis, ADIS16480_REG_FIRM_DM, &md); in adis16480_show_firmware_date()
217 len = snprintf(buf, sizeof(buf), "%.2x-%.2x-%.4x\n", in adis16480_show_firmware_date()
236 ret = adis_read_reg_16(&adis16480->adis, ADIS16480_REG_SERIAL_NUM, in adis16480_show_serial_number()
[all …]
/kernel/linux/linux-5.10/sound/usb/usx2y/
Dusbusx2y.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * usbusy2y.c - ALSA USB US-428 Driver
5 2005-04-14 Karsten Wiese
8 Tested ok with kernel 2.6.12-rc2.
10 2004-12-14 Karsten Wiese
12 …snd_pcm_open for rawusb pcm-devices now returns -EBUSY if called without rawusb's hwdep device bei…
14 2004-12-02 Karsten Wiese
18 2004-10-26 Karsten Wiese
22 2004-10-21 Karsten Wiese
26 2004-10-03 Karsten Wiese
[all …]
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/
Damplc_pci230.c1 // SPDX-License-Identifier: GPL-2.0+
8 * COMEDI - Linux Control and Measurement Device Interface
35 * --------- ---------
43 * The AI subdevice has 16 single-ended channels or 8 differential
44 * channels.
46 * The PCI230 and PCI260 cards have 12-bit resolution. The PCI230+ and
47 * PCI260+ cards have 16-bit resolution.
51 * or PCI260 then it actually uses a "pseudo-differential" mode where the
62 * 0 => [-10, +10] V
63 * 1 => [-5, +5] V
[all …]
Dni_daq_700.c1 // SPDX-License-Identifier: GPL-2.0+
4 * Driver for DAQCard-700 DIO/AI
7 * COMEDI - Linux Control and Measurement Device Interface
13 * Description: National Instruments PCMCIA DAQCard-700
16 * Devices: [National Instruments] PCMCIA DAQ-Card-700 (ni_daq_700)
20 * The daqcard-700 appears in Comedi as a digital I/O subdevice (0) with
21 * 16 channels and a analog input subdevice (1) with 16 single-ended channels
22 * or 8 differential channels, and three input ranges.
24 * Digital: The channel 0 corresponds to the daqcard-700's output
27 * Digital direction configuration: channels 0-7 output, 8-15 input.
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/rcar-du/
Drcar_lvds.c1 // SPDX-License-Identifier: GPL-2.0
3 * rcar_lvds.c -- R-Car LVDS Encoder
5 * Copyright (C) 2013-2018 Renesas Electronics Corporation
51 #define RCAR_LVDS_QUIRK_DUAL_LINK BIT(4) /* Supports dual-link operation */
88 iowrite32(data, lvds->mmio + reg); in rcar_lvds_write()
91 /* -----------------------------------------------------------------------------
99 return drm_panel_get_modes(lvds->panel, connector); in rcar_lvds_connector_get_modes()
111 if (!conn_state->crtc) in rcar_lvds_connector_atomic_check()
114 if (list_empty(&connector->modes)) { in rcar_lvds_connector_atomic_check()
115 dev_dbg(lvds->dev, "connector: empty modes list\n"); in rcar_lvds_connector_atomic_check()
[all …]
Drcar_du_crtc.c1 // SPDX-License-Identifier: GPL-2.0+
3 * rcar_du_crtc.c -- R-Car Display Unit CRTCs
5 * Copyright (C) 2013-2015 Renesas Electronics Corporation
37 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_read()
39 return rcar_du_read(rcdu, rcrtc->mmio_offset + reg); in rcar_du_crtc_read()
44 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_write()
46 rcar_du_write(rcdu, rcrtc->mmio_offset + reg, data); in rcar_du_crtc_write()
51 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_clr()
53 rcar_du_write(rcdu, rcrtc->mmio_offset + reg, in rcar_du_crtc_clr()
54 rcar_du_read(rcdu, rcrtc->mmio_offset + reg) & ~clr); in rcar_du_crtc_clr()
[all …]
/kernel/linux/linux-5.10/sound/drivers/
Daloop.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 * More accurate positioning and full-duplex support:
9 * Copyright (c) Ahmet İnan <ainan at mathematik.uni-freiburg.de>
40 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
42 static bool enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 0};
43 static int pcm_substreams[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 8};
54 MODULE_PARM_DESC(pcm_substreams, "PCM substreams # (1-8) for loopback driver.");
56 MODULE_PARM_DESC(pcm_notify, "Break capture when PCM format/rate/channels changes.");
71 * call in loopback->cable_lock
75 * call in cable->lock
[all …]
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/
D0009_linux_sound.patch7 Change-Id: Ic34341fbcce5e6d02fefc2acad4ea1058da94b66
9 diff --git a/sound/core/pcm_dmaengine.c b/sound/core/pcm_dmaengine.c
11 --- a/sound/core/pcm_dmaengine.c
13 @@ -125,6 +125,8 @@ void snd_dmaengine_pcm_set_config_from_dai_data(
16 slave_config->slave_id = dma_data->slave_id;
17 + slave_config->peripheral_config = dma_data->peripheral_config;
18 + slave_config->peripheral_size = dma_data->peripheral_size;
22 diff --git a/sound/soc/codecs/hdmi-codec.c b/sound/soc/codecs/hdmi-codec.c
24 --- a/sound/soc/codecs/hdmi-codec.c
25 +++ b/sound/soc/codecs/hdmi-codec.c
[all …]
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0032_linux_drivers_regulator_remoteproc_reset_rpmsg_rtc.patch7 Change-Id: I70798f1381ce7dac1b89f11aa3a0c5633845487e
9 diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
11 --- a/drivers/regulator/core.c
13 @@ -3499,6 +3499,16 @@ static int _regulator_do_set_suspend_voltage(struct regulator_dev *rdev,
21 + if (rdev->desc->ops->get_bypass)
22 + rdev->desc->ops->get_bypass(rdev, &bypassed);
30 @@ -3568,8 +3578,9 @@ int regulator_set_voltage_rdev(struct regulator_dev *rdev, int min_uV,
31 if (rdev->supply &&
32 regulator_ops_is_valid(rdev->supply->rdev,
34 - (rdev->desc->min_dropout_uV || !(rdev->desc->ops->get_voltage ||
[all …]

1234