Home
last modified time | relevance | path

Searched +full:comparator +full:- +full:invert (Results 1 – 12 of 12) sorted by relevance

/linux/drivers/iio/adc/
H A Denvelope-detector.c1 // SPDX-License-Identifier: GPL-2.0
3 * Driver for an envelope detector using a DAC and a comparator
12 * signal by a binary search using the output of a comparator wired to
16 * input +------>-------|+ \
18 * .-------. | }---.
20 * | dac|-->--|- / |
24 * | irq|------<-------'
26 * '-------'
59 bool invert; member
72 * (one-bit memory) for if the interrupt has triggered since last calling
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-bus-iio-adc-envelope-detector8 of a comparator wired to an interrupt pin. Like so::
12 input +------>-------|+ \
14 .-------. | }---.
16 | dac|-->--|- / |
20 | irq|------<-------'
22 '-------'
24 The boolean invert attribute (0/1) should be set when the
27 from below in this case and will also invert the result.
37 Number of milliseconds to wait for the comparator in each
/linux/Documentation/devicetree/bindings/net/can/
H A Dnxp,sja1000.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Wolfgang Grandegger <wg@grandegger.com>
15 - enum:
16 - nxp,sja1000
17 - technologic,sja1000
18 - items:
19 - enum:
20 - renesas,r9a06g032-sja1000 # RZ/N1D
[all …]
/linux/Documentation/devicetree/bindings/iio/addac/
H A Dadi,ad74115.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Cosmin Tanislav <cosmin.tanislav@analog.com>
13 The AD74115H is a single-channel software configurable input/output
17 chip solution with an SPI interface. The device features a 16-bit ADC and a
18 14-bit DAC.
25 - adi,ad74115h
30 spi-max-frequency:
33 spi-cpol: true
[all …]
/linux/Documentation/devicetree/bindings/sound/
H A Dda7218.txt8 - compatible : Should be "dlg,da7217" or "dlg,da7218"
9 - reg: Specifies the I2C slave address
11 - VDD-supply: VDD power supply for the device
12 - VDDMIC-supply: VDDMIC power supply for the device
13 - VDDIO-supply: VDDIO power supply for the device
18 - interrupts: IRQ line info for DA7218 chip.
19 (See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt for
21 - interrupt-names : Name associated with interrupt line. Should be "wakeup" if
23 - wakeup-source: Flag to indicate this device can wake system (suspend/resume).
25 - clocks : phandle and clock specifier for codec MCLK.
[all …]
/linux/include/linux/
H A Dwm97xx.h1 /* SPDX-License-Identifier: GPL-2.0 */
62 #define WM97XX_SLT(i) ((i - 5) & 0x7) /* panel slot (5-11) */
71 #define WM9712_45W 0x1000 /* set for 5-wire touchscreen */
89 #define WM9705_BINV 0x0200 /* invert BUSY (pin47) output */
96 #define WM9705_PDD(i) (i & 0x000f) /* pen detect comparator threshold */
146 /*---------------- Return codes from sample reading functions ---------------*/
160 * The wm97xx driver provides a private API for writing platform-specific
227 * Codec driver interface - allows mapping to WM9705/12/13 and newer codecs
250 /* accelerated touch readback - coords are transmited on AC97 link */
260 /* pre and post sample - can be used to minimise any analog noise */
/linux/sound/soc/codecs/
H A Dcs42l42.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cs42l42.c -- CS42L42 ALSA SoC audio driver
29 #include <sound/soc-dapm.h>
32 #include <dt-bindings/sound/cs42l42.h>
400 static DECLARE_TLV_DB_SCALE(adc_tlv, -9700, 100, true);
401 static DECLARE_TLV_DB_SCALE(mixer_tlv, -6300, 100, true);
410 switch (ucontrol->value.integer.value[0]) { in cs42l42_slow_start_put()
418 return -EINVAL; in cs42l42_slow_start_put()
448 SOC_SINGLE("ADC Invert Switch", CS42L42_ADC_CTL,
452 SOC_SINGLE_S8_TLV("ADC Volume", CS42L42_ADC_VOLUME, -97, 12, adc_tlv),
[all …]
H A Drt711.c1 // SPDX-License-Identifier: GPL-2.0
3 // rt711.c -- rt711 ALSA SoC audio driver
24 #include <sound/soc-dapm.h>
89 struct regmap *regmap = rt711->regmap; in rt711_calibration()
92 mutex_lock(&rt711->calibrate_mutex); in rt711_calibration()
93 regmap_write(rt711->regmap, in rt711_calibration()
113 pr_err("%s, calibration time-out!\n", in rt711_calibration()
115 ret = -ETIMEDOUT; in rt711_calibration()
129 regmap_write(rt711->regmap, in rt711_calibration()
131 mutex_unlock(&rt711->calibrate_mutex); in rt711_calibration()
[all …]
H A Drt700.c1 // SPDX-License-Identifier: GPL-2.0
3 // rt700.c -- rt700 ALSA SoC audio driver
24 #include <sound/soc-dapm.h>
66 ret = rt700_index_read(rt700->regmap, RT700_IRQ_FLAG_TABLE1, &val80); in rt700_button_detect()
69 ret = rt700_index_read(rt700->regmap, RT700_IRQ_FLAG_TABLE2, &val81); in rt700_button_detect()
112 ret = rt700_index_read(rt700->regmap, in rt700_headset_detect()
122 ret = rt700_index_read(rt700->regmap, in rt700_headset_detect()
128 ret = regmap_read(rt700->regmap, reg, &jack_status); in rt700_headset_detect()
137 rt700->jack_type = SND_JACK_HEADPHONE; in rt700_headset_detect()
140 rt700->jack_type = SND_JACK_HEADSET; in rt700_headset_detect()
[all …]
H A Dwcd938x.c1 // SPDX-License-Identifier: GPL-2.0-only
2 // Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
21 #include <sound/soc-dapm.h>
24 #include "wcd-clsh-v2.h"
25 #include "wcd-mbhc-v2.h"
72 #define WCD938X_EAR_PA_GAIN_TLV(xname, reg, shift, max, invert, tlv_array) \ argument
79 .private_value = SOC_SINGLE_VALUE(reg, shift, max, invert, 0) }
193 static const SNDRV_CTL_TLVD_DECLARE_DB_MINMAX(ear_pa_gain, 600, -1800);
194 static const DECLARE_TLV_DB_SCALE(line_gain, -3000, 150, 0);
350 struct regmap *rm = wcd938x->regmap; in wcd938x_io_init()
[all …]
H A Dwcd939x.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2018-2021, The Linux Foundation. All rights reserved.
4 * Copyright (c) 2022-2023, Qualcomm Innovation Center, Inc. All rights reserved.
26 #include <sound/soc-dapm.h>
31 #include "wcd-clsh-v2.h"
32 #include "wcd-mbhc-v2.h"
217 static const SNDRV_CTL_TLVD_DECLARE_DB_MINMAX(ear_pa_gain, 600, -1800);
421 port_num = ch_info->port_num; in wcd939x_sdw_connect_port()
422 ch_mask = ch_info->ch_mask; in wcd939x_sdw_connect_port()
424 port_config->num = port_num; in wcd939x_sdw_connect_port()
[all …]
/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_reg.h3 * Copyright (c) 2007-2013 Broadcom Corporation
13 * R - Read only
14 * RC - Clear on read
15 * RW - Read/Write
16 * ST - Statistics register (clear on read)
17 * W - Write only
18 * WB - Wide bus register - the size is over 32 bits and it should be
20 * WR - Write Clear (write 1 to clear the bit)
32 /* [RW 1] Initiate the ATC array - reset all the valid bits */
56 * BRB1_IND_FREE_LIST_PRS_CRDT+2 initialize parser initial credit. Warning -
[all …]