Home
last modified time | relevance | path

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

123

/linux/Documentation/devicetree/bindings/iio/adc/
H A Dti,ads1119.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - João Paulo Gonçalves <jpaulo.silvagoncalves@gmail.com>
13 The TI ADS1119 is a precision 16-bit ADC over I2C that offers single-ended and
28 reset-gpios:
31 avdd-supply: true
32 dvdd-supply: true
34 vref-supply:
38 "#address-cells":
[all …]
H A Dadi,ad4170-4.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/iio/adc/adi,ad4170-4.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Analog Devices AD4170-4 and similar Analog to Digital Converters
10 - Marcelo Schmitt <marcelo.schmitt@analog.com>
13 Analog Devices AD4170-4 series of Sigma-delta Analog to Digital Converters.
15 https://www.analog.com/media/en/technical-documentation/data-sheets/ad4170-4.pdf
16 https://www.analog.com/media/en/technical-documentation/data-sheets/ad4190-4.pdf
17 https://www.analog.com/media/en/technical-documentation/data-sheets/ad4195-4.pdf
[all …]
H A Dmicrochip,mcp3564.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Marius Cristea <marius.cristea@microchip.com>
13 Bindings for the Microchip family of 153.6 ksps, Low-Noise 16/24-Bit
14 Delta-Sigma ADCs with an SPI interface. Datasheet can be found here:
16 …s/aemDocuments/documents/MSLD/ProductDocuments/DataSheets/MCP3561-2-4-Family-Data-Sheet-DS20006181…
18 …ds/aemDocuments/documents/APID/ProductDocuments/DataSheets/MCP3561_2_4R-Data-Sheet-DS200006391C.pdf
20 …ProductDocuments/DataSheets/MCP3461-2-4-Two-Four-Eight-Channel-153.6-ksps-Low-Noise-16-Bit-Delta-S…
22 …/aemDocuments/documents/APID/ProductDocuments/DataSheets/MCP3461-2-4R-Family-Data-Sheet-DS20006404…
[all …]
H A Dadi,max11410.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Ibrahim Tilki <Ibrahim.Tilki@analog.com>
21 - adi,max11410
30 interrupt-names:
34 - enum: [gpio0, gpio1]
35 - const: gpio1
37 '#address-cells':
40 '#size-cells':
[all …]
H A Dadi,ad4851.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Sergiu Cuciurean <sergiu.cuciurean@analog.com>
12 - Dragos Bogdan <dragos.bogdan@analog.com>
13 - Antoniu Miclaus <antoniu.miclaus@analog.com>
16 Analog Devices AD485X fully buffered, 8-channel simultaneous sampling,
17 16/20-bit, 1 MSPS data acquisition system (DAS) with differential, wide
18 common-mode range inputs.
20 https://www.analog.com/media/en/technical-documentation/data-sheets/ad4855.pdf
[all …]
H A 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 …]
/linux/drivers/iio/adc/
H A Dstm32-adc.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2016, STMicroelectronics - All Rights Reserved
13 #include <linux/dma-mapping.h>
17 #include <linux/iio/timer/stm32-lptim-trigger.h>
18 #include <linux/iio/timer/stm32-timer-trigger.h>
26 #include <linux/nvmem-consumer.h>
31 #include "stm32-adc-core.h"
39 #define STM32_ADC_CH_MAX 20 /* max number of channels */
58 /* extsel - trigger mux selection value */
84 STM32_ADC_INT_CH_NONE = -1,
[all …]
H A Dad7124.c1 // SPDX-License-Identifier: GPL-2.0+
12 #include <linux/clk-provider.h>
64 #define AD7124_ADC_CONTROL_MODE_INT_OFFSET_CALIB 5 /* Internal Zero-Scale Calibration */
65 #define AD7124_ADC_CONTROL_MODE_INT_GAIN_CALIB 6 /* Internal Full-Scale Calibration */
66 #define AD7124_ADC_CONTROL_MODE_SYS_OFFSET_CALIB 7 /* System Zero-Scale Calibration */
67 #define AD7124_ADC_CONTROL_MODE_SYS_GAIN_CALIB 8 /* System Full-Scale Calibration */
212 struct ad7124_channel *channels; member
221 * Stores the power-on reset value for the GAIN(x) registers which are
229 .name = "ad7124-4",
235 .name = "ad7124-8",
[all …]
H A Dti-ads1119.c1 // SPDX-License-Identifier: GPL-2.0-only
121 unsigned int config = st->cached_config; in ads1119_upd_cfg_reg()
127 ret = i2c_smbus_write_byte_data(st->client, ADS1119_CMD_WREG, config); in ads1119_upd_cfg_reg()
131 st->cached_config = config; in ads1119_upd_cfg_reg()
140 status = i2c_smbus_read_byte_data(st->client, ADS1119_CMD_RREG_STATUS); in ads1119_data_ready()
149 st->cached_config = 0; in ads1119_reset()
151 if (!st->reset_gpio) in ads1119_reset()
152 return i2c_smbus_write_byte(st->client, ADS1119_CMD_RESET); in ads1119_reset()
154 gpiod_set_value_cansleep(st->reset_gpio, 1); in ads1119_reset()
156 gpiod_set_value_cansleep(st->reset_gpio, 0); in ads1119_reset()
[all …]
H A Dad7292.c1 // SPDX-License-Identifier: GPL-2.0
93 st->d8[0] = AD7292_RD_FLAG_MSK(addr); in ad7292_spi_reg_read()
95 ret = spi_write_then_read(st->spi, st->d8, 1, &st->d16, 2); in ad7292_spi_reg_read()
99 return be16_to_cpu(st->d16); in ad7292_spi_reg_read()
105 unsigned int shift = 16 - (8 * len); in ad7292_spi_subreg_read()
108 st->d8[0] = AD7292_RD_FLAG_MSK(addr); in ad7292_spi_subreg_read()
109 st->d8[1] = sub_addr; in ad7292_spi_subreg_read()
111 ret = spi_write_then_read(st->spi, st->d8, 2, &st->d16, len); in ad7292_spi_subreg_read()
115 return (be16_to_cpu(st->d16) >> shift); in ad7292_spi_subreg_read()
125 .tx_buf = &st->d8, in ad7292_single_conversion()
[all …]
/linux/sound/core/
H A Dpcm_lib.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Abramo Bagnara <abramo@alsa-project.org>
43 delta = new_ptr - ptr; in update_silence_vars()
47 delta += runtime->boundary; in update_silence_vars()
48 if ((snd_pcm_uframes_t)delta < runtime->silence_filled) in update_silence_vars()
49 runtime->silence_filled -= delta; in update_silence_vars()
51 runtime->silence_filled = 0; in update_silence_vars()
52 runtime->silence_start = new_ptr; in update_silence_vars()
57 * runtime->silence_start: starting pointer to silence area
58 * runtime->silence_filled: size filled with silence
[all …]
/linux/arch/arm64/boot/dts/ti/
H A Dk3-am62p-verdin-ivy.dtsi1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
7 * https://www.toradex.com/computer-on-modules/verdin-arm-family/ti-am62p
8 * https://www.toradex.com/products/carrier-board/ivy-carrier-board
11 #include <dt-bindings/mux/mux.h>
12 #include <dt-bindings/leds/common.h>
13 #include <dt-bindings/net/ti-dp83867.h>
21 ain1_voltage_unmanaged: voltage-divider-ain1 {
22 compatible = "voltage-divider";
23 #io-channel-cells = <1>;
24 io-channels = <&ivy_adc1 0>;
[all …]
H A Dk3-am62-verdin-ivy.dtsi1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
7 * https://www.toradex.com/computer-on-modules/verdin-arm-family/ti-am62
8 * https://www.toradex.com/products/carrier-board/ivy-carrier-board
11 #include <dt-bindings/mux/mux.h>
12 #include <dt-bindings/leds/common.h>
13 #include <dt-bindings/net/ti-dp83867.h>
17 ain1_voltage_unmanaged: voltage-divider-ain1 {
18 compatible = "voltage-divider";
19 #io-channel-cells = <1>;
20 io-channels = <&ivy_adc1 0>;
[all …]
/linux/tools/testing/selftests/alsa/
H A Dpcm-test.c1 // SPDX-License-Identifier: GPL-2.0
21 #include "alsa-local.h"
69 timestamp_t now, diff; in timestamp_diff_ms() local
71 if (tstamp->tv_nsec > now.tv_nsec) { in timestamp_diff_ms()
72 diff.tv_sec = now.tv_sec - tstamp->tv_sec - 1; in timestamp_diff_ms()
73 diff.tv_nsec = (now.tv_nsec + 1000000000L) - tstamp->tv_nsec; in timestamp_diff_ms()
75 diff.tv_sec = now.tv_sec - tstamp->tv_sec; in timestamp_diff_ms()
76 diff.tv_nsec = now.tv_nsec - tstamp->tv_nsec; in timestamp_diff_ms()
78 return (diff.tv_sec * 1000) + ((diff.tv_nsec + 500000L) / 1000000L); in timestamp_diff_ms()
92 return -1; in device_from_id()
[all …]
/linux/Documentation/devicetree/bindings/iio/proximity/
H A Dtyhx,hx9023s.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Yasin Lee <yasin.lee.x@gmail.com>
29 vdd-supply: true
31 firmware-name:
34 "#address-cells":
37 "#size-cells":
41 "^channel@[0-4]$":
53 - compatible
[all …]
/linux/drivers/iio/proximity/
H A Dhx9023s.c1 // SPDX-License-Identifier: GPL-2.0
118 s16 diff; /* Difference of Low Pass Data and Base Line Data */ member
147 __le16 channels[HX9023S_CH_NUM]; member
313 return regmap_update_bits(data->regmap, HX9023S_INTERRUPT_CFG, in hx9023s_interrupt_enable()
319 return regmap_update_bits(data->regmap, HX9023S_INTERRUPT_CFG, in hx9023s_interrupt_disable()
326 return regmap_update_bits(data->regmap, in hx9023s_data_lock()
331 return regmap_update_bits(data->regmap, in hx9023s_data_lock()
347 ch_pos[i] = data->ch_data[i].channel_positive == HX9023S_NOT_CONNECTED ? in hx9023s_ch_cfg()
348 HX9023S_NOT_CONNECTED : conn_cs[data->ch_data[i].channel_positive]; in hx9023s_ch_cfg()
349 ch_neg[i] = data->ch_data[i].channel_negative == HX9023S_NOT_CONNECTED ? in hx9023s_ch_cfg()
[all …]
/linux/net/rxrpc/
H A 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"
39 atomic_inc(&bundle->active); in rxrpc_activate_bundle()
48 idr_remove(&local->conn_ids, conn->proto.cid >> RXRPC_CIDSHIFT); in rxrpc_put_client_connection_id()
59 if (!idr_is_empty(&local->conn_ids)) { in rxrpc_destroy_client_conn_ids()
60 idr_for_each_entry(&local->conn_ids, conn, id) { in rxrpc_destroy_client_conn_ids()
62 conn, refcount_read(&conn->ref)); in rxrpc_destroy_client_conn_ids()
67 idr_destroy(&local->conn_ids); in rxrpc_destroy_client_conn_ids()
[all …]
/linux/Documentation/devicetree/bindings/mux/
H A 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.yaml
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 …]
/linux/sound/soc/fsl/
H A Dlpc3xxx-i2s.c1 // SPDX-License-Identifier: GPL-2.0-or-later
23 #include "lpc3xxx-i2s.h"
42 u32 diff, trate, baseclk; in __lpc3xxx_find_clkdiv() local
44 /* Adjust rate for sample size (bits) and 2 channels and offset for in __lpc3xxx_find_clkdiv()
56 diff = ~0; in __lpc3xxx_find_clkdiv()
60 if (abs(trate - i2srate) < diff) { in __lpc3xxx_find_clkdiv()
61 diff = abs(trate - i2srate); in __lpc3xxx_find_clkdiv()
72 struct device *dev = i2s_info_p->dev; in lpc3xxx_i2s_startup()
76 guard(mutex)(&i2s_info_p->lock); in lpc3xxx_i2s_startup()
78 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in lpc3xxx_i2s_startup()
[all …]
H A Dfsl_sai.c1 // SPDX-License-Identifier: GPL-2.0+
5 // Copyright 2012-2015 Freescale Semiconductor, Inc.
23 #include <linux/mfd/syscon/imx6q-iomuxc-gpr.h>
27 #include "imx-pcm.h"
91 * fsl_sai_dir_is_synced - Check if stream is synced by the opposite stream
105 return !sai->synchronous[dir] && sai->synchronous[adir]; in fsl_sai_dir_is_synced()
112 if (sai->is_pdm_mode) { in fsl_sai_get_pins_state()
115 state = pinctrl_lookup_state(sai->pinctrl, "dsd512"); in fsl_sai_get_pins_state()
119 state = pinctrl_lookup_state(sai->pinctrl, "dsd"); in fsl_sai_get_pins_state()
123 state = pinctrl_lookup_state(sai->pinctrl, "pcm_b2m"); in fsl_sai_get_pins_state()
[all …]
/linux/sound/usb/usx2y/
H A Dusbusx2y.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * usbusx2y.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 …]
/linux/drivers/input/keyboard/
H A 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
62 /* struct lradc_variant - Describe sun4i-a10-lradc-keys hardware variant
111 u32 i, ints, val, voltage, diff, keycode = 0, closest = 0xffffffff; in sun4i_lradc_irq() local
113 ints = readl(lradc->base + LRADC_INTS); in sun4i_lradc_irq()
121 input_report_key(lradc->input, lradc->chan0_keycode, 0); in sun4i_lradc_irq()
122 lradc->chan0_keycode = 0; in sun4i_lradc_irq()
125 if ((ints & CHAN0_KEYDOWN_IRQ) && lradc->chan0_keycode == 0) { in sun4i_lradc_irq()
126 val = readl(lradc->base + LRADC_DATA0) & 0x3f; in sun4i_lradc_irq()
127 voltage = val * lradc->vref / 63; in sun4i_lradc_irq()
[all …]
/linux/sound/drivers/
H A 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>
41 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
43 static bool enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 0};
44 static int pcm_substreams[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 8};
55 MODULE_PARM_DESC(pcm_substreams, "PCM substreams # (1-8) for loopback driver.");
57 MODULE_PARM_DESC(pcm_notify, "Break capture when PCM format/rate/channels changes.");
59 …timer to be used. Empty string for jiffies timer [default], 'hrtimer' for high-resolution timer.");
72 * call in loopback->cable_lock
[all …]
/linux/drivers/iio/imu/
H A Dadis16480.c1 // SPDX-License-Identifier: GPL-2.0-only
115 ADIS16480_REG((page) + 1, (x) - 60 + 8))
141 const struct iio_chan_spec *channels; member
198 struct adis16480 *adis16480 = file->private_data; in adis16480_show_firmware_revision()
204 ret = adis_read_reg_16(&adis16480->adis, ADIS16480_REG_FIRM_REV, &rev); in adis16480_show_firmware_revision()
223 struct adis16480 *adis16480 = file->private_data; in adis16480_show_firmware_date()
229 ret = adis_read_reg_16(&adis16480->adis, ADIS16480_REG_FIRM_Y, &year); in adis16480_show_firmware_date()
233 ret = adis_read_reg_16(&adis16480->adis, ADIS16480_REG_FIRM_DM, &md); in adis16480_show_firmware_date()
237 len = snprintf(buf, sizeof(buf), "%.2x-%.2x-%.4x\n", in adis16480_show_firmware_date()
256 ret = adis_read_reg_16(&adis16480->adis, ADIS16480_REG_SERIAL_NUM, in adis16480_show_serial_number()
[all …]
/linux/drivers/comedi/drivers/
H A 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 …]

123