Home
last modified time | relevance | path

Searched +full:pga +full:- +full:gain (Results 1 – 25 of 193) sorted by relevance

12345678

/kernel/linux/linux-5.10/Documentation/devicetree/bindings/hwmon/
Dti,tmp513.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Eric Tremblay <etremblay@distech-controls.com>
14 The TMP512 (dual-channel) and TMP513 (triple-channel) are system monitors
15 that include remote sensors, a local temperature sensor, and a high-side
17 remote temperatures, on-chip temperatures, and system voltage/power/current
28 - ti,tmp512
29 - ti,tmp513
34 shunt-resistor-micro-ohms:
[all …]
/kernel/linux/linux-4.19/Documentation/sound/soc/
Dpops-clicks.rst23 shutdown and follows some basic rules:-
26 Startup Order :- DAC --> Mixers --> Output PGA --> Digital Unmute
28 Shutdown Order :- Digital Mute --> Output PGA --> Mixers --> DAC
31 a PGA (programmable gain amplifier) before being output to the speakers.
43 Startup Order - Input PGA --> Mixers --> ADC
45 Shutdown Order - ADC --> Mixers --> Input PGA
51 when a volume control is changed near its maximum gain value. The zipper noise
52 is heard when the gain increase or decrease changes the mean audio signal
54 for each volume control. The ZC forces the gain change to occur when the signal
/kernel/linux/linux-5.10/Documentation/sound/soc/
Dpops-clicks.rst23 shutdown and follows some basic rules:-
26 Startup Order :- DAC --> Mixers --> Output PGA --> Digital Unmute
28 Shutdown Order :- Digital Mute --> Output PGA --> Mixers --> DAC
31 a PGA (programmable gain amplifier) before being output to the speakers.
43 Startup Order - Input PGA --> Mixers --> ADC
45 Shutdown Order - ADC --> Mixers --> Input PGA
51 when a volume control is changed near its maximum gain value. The zipper noise
52 is heard when the gain increase or decrease changes the mean audio signal
54 for each volume control. The ZC forces the gain change to occur when the signal
/kernel/linux/linux-4.19/sound/soc/codecs/
Dmax9759.c1 // SPDX-Licence-Identifier: GPL-2.0
12 #include <sound/soc-dapm.h>
22 unsigned int gain; member
28 struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); in pga_event()
32 gpiod_set_value_cansleep(priv->gpiod_shutdown, 0); in pga_event()
34 gpiod_set_value_cansleep(priv->gpiod_shutdown, 1); in pga_event()
48 ucontrol->value.integer.value[0] = priv->gain; in speaker_gain_control_get()
67 if (ucontrol->value.integer.value[0] > 3) in speaker_gain_control_put()
68 return -EINVAL; in speaker_gain_control_put()
70 priv->gain = ucontrol->value.integer.value[0]; in speaker_gain_control_put()
[all …]
Dda7213.c34 /* Gain and Volume */
36 /* -54dB */
37 0x0, 0x11, TLV_DB_SCALE_ITEM(-5400, 0, 0),
38 /* -52.5dB to 15dB */
39 0x12, 0x3f, TLV_DB_SCALE_ITEM(-5250, 150, 0)
44 /* -78dB to 12dB */
45 0x08, 0x7f, TLV_DB_SCALE_ITEM(-7800, 75, 0)
54 static const DECLARE_TLV_DB_SCALE(mic_vol_tlv, -600, 600, 0);
55 static const DECLARE_TLV_DB_SCALE(mixin_gain_tlv, -450, 150, 0);
56 static const DECLARE_TLV_DB_SCALE(eq_gain_tlv, -1050, 150, 0);
[all …]
Dmt6351.c1 // SPDX-License-Identifier: GPL-2.0
3 // mt6351.c -- mt6351 ALSA SoC audio codec driver
8 #include <linux/dma-mapping.h>
202 regmap_update_bits(cmpnt->regmap, MT6351_ZCD_CON2, in set_hp_gain_zero()
204 regmap_update_bits(cmpnt->regmap, MT6351_ZCD_CON2, in set_hp_gain_zero()
225 dev_warn(cmpnt->dev, "%s(), error rate %d, return 3", in get_cap_reg_val()
256 dev_warn(cmpnt->dev, "%s(), error rate %d, return 8", in get_play_reg_val()
266 struct snd_soc_component *cmpnt = dai->component; in mt6351_codec_dai_hw_params()
270 dev_dbg(priv->dev, "%s(), substream->stream %d, rate %d\n", in mt6351_codec_dai_hw_params()
271 __func__, substream->stream, rate); in mt6351_codec_dai_hw_params()
[all …]
Dcpcap.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2017 - 2018 Sebastian Reichel <sre@kernel.org>
8 * Copyright (C) 2007 - 2009 Motorola, Inc.
14 #include <linux/mfd/motorola-cpcap.h>
19 /* Register 513 CPCAP_REG_CC --- CODEC */
37 /* Register 514 CPCAP_REG_CDI --- CODEC Digital Audio Interface */
54 /* Register 515 CPCAP_REG_SDAC --- Stereo DAC */
68 /* Register 516 CPCAP_REG_SDACDI --- Stereo DAC Digital Audio Interface */
84 /* Register 517 CPCAP_REG_TXI --- TX Interface */
102 /* Register 518 CPCAP_REG_TXMP --- Mic Gain */
[all …]
Dtwl4030.c18 * 02110-1301 USA
42 #include <linux/mfd/twl4030-audio.h>
73 u8 ctl_cache[TWL4030_REG_PRECKR_CTL - TWL4030_REG_EAR_CTL + 1];
85 twl4030->ctl_cache[i - TWL4030_REG_EAR_CTL] = byte; in tw4030_init_ctl_cache()
95 return -EIO; in twl4030_read()
104 value = twl4030->ctl_cache[reg - TWL4030_REG_EAR_CTL]; in twl4030_read()
122 if (twl4030->earpiece_enabled) in twl4030_can_write_to_chip()
126 if (twl4030->predrivel_enabled) in twl4030_can_write_to_chip()
130 if (twl4030->predriver_enabled) in twl4030_can_write_to_chip()
134 if (twl4030->carkitl_enabled) in twl4030_can_write_to_chip()
[all …]
Dda7218.c2 * da7218.c - DA7218 ALSA SoC Codec Driver
26 #include <sound/soc-dapm.h>
41 static const DECLARE_TLV_DB_SCALE(da7218_mic_gain_tlv, -600, 600, 0);
42 static const DECLARE_TLV_DB_SCALE(da7218_mixin_gain_tlv, -450, 150, 0);
43 static const DECLARE_TLV_DB_SCALE(da7218_in_dig_gain_tlv, -8325, 75, 0);
44 static const DECLARE_TLV_DB_SCALE(da7218_ags_trigger_tlv, -9000, 600, 0);
46 static const DECLARE_TLV_DB_SCALE(da7218_alc_threshold_tlv, -9450, 150, 0);
51 static const DECLARE_TLV_DB_SCALE(da7218_dmix_gain_tlv, -4200, 150, 0);
54 static const DECLARE_TLV_DB_SCALE(da7218_dgs_trigger_tlv, -9450, 150, 0);
55 static const DECLARE_TLV_DB_SCALE(da7218_dgs_anticlip_tlv, -4200, 600, 0);
[all …]
Dda7219.c2 * da7219.c - DA7219 ALSA SoC Codec Driver
17 #include <linux/clk-provider.h>
30 #include <sound/soc-dapm.h>
37 #include "da7219-aad.h"
45 static const DECLARE_TLV_DB_SCALE(da7219_mic_gain_tlv, -600, 600, 0);
46 static const DECLARE_TLV_DB_SCALE(da7219_mixin_gain_tlv, -450, 150, 0);
47 static const DECLARE_TLV_DB_SCALE(da7219_adc_dig_gain_tlv, -8325, 75, 0);
48 static const DECLARE_TLV_DB_SCALE(da7219_alc_threshold_tlv, -9450, 150, 0);
51 static const DECLARE_TLV_DB_SCALE(da7219_sidetone_gain_tlv, -4200, 300, 0);
52 static const DECLARE_TLV_DB_SCALE(da7219_tonegen_gain_tlv, -4500, 300, 0);
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Dmax9759.c1 // SPDX-License-Identifier: GPL-2.0
12 #include <sound/soc-dapm.h>
22 unsigned int gain; member
28 struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); in pga_event()
32 gpiod_set_value_cansleep(priv->gpiod_shutdown, 0); in pga_event()
34 gpiod_set_value_cansleep(priv->gpiod_shutdown, 1); in pga_event()
48 ucontrol->value.integer.value[0] = priv->gain; in speaker_gain_control_get()
67 if (ucontrol->value.integer.value[0] > 3) in speaker_gain_control_put()
68 return -EINVAL; in speaker_gain_control_put()
70 priv->gain = ucontrol->value.integer.value[0]; in speaker_gain_control_put()
[all …]
Dda7213.c1 // SPDX-License-Identifier: GPL-2.0-or-later
31 /* Gain and Volume */
33 /* -54dB */
34 0x0, 0x11, TLV_DB_SCALE_ITEM(-5400, 0, 0),
35 /* -52.5dB to 15dB */
36 0x12, 0x3f, TLV_DB_SCALE_ITEM(-5250, 150, 0)
41 /* -78dB to 12dB */
42 0x08, 0x7f, TLV_DB_SCALE_ITEM(-7800, 75, 0)
51 static const DECLARE_TLV_DB_SCALE(mic_vol_tlv, -600, 600, 0);
52 static const DECLARE_TLV_DB_SCALE(mixin_gain_tlv, -450, 150, 0);
[all …]
Dmt6351.c1 // SPDX-License-Identifier: GPL-2.0
3 // mt6351.c -- mt6351 ALSA SoC audio codec driver
8 #include <linux/dma-mapping.h>
202 regmap_update_bits(cmpnt->regmap, MT6351_ZCD_CON2, in set_hp_gain_zero()
204 regmap_update_bits(cmpnt->regmap, MT6351_ZCD_CON2, in set_hp_gain_zero()
225 dev_warn(cmpnt->dev, "%s(), error rate %d, return 3", in get_cap_reg_val()
256 dev_warn(cmpnt->dev, "%s(), error rate %d, return 8", in get_play_reg_val()
266 struct snd_soc_component *cmpnt = dai->component; in mt6351_codec_dai_hw_params()
270 dev_dbg(priv->dev, "%s(), substream->stream %d, rate %d\n", in mt6351_codec_dai_hw_params()
271 __func__, substream->stream, rate); in mt6351_codec_dai_hw_params()
[all …]
Dmt6358.c1 // SPDX-License-Identifier: GPL-2.0
3 // mt6358.c -- mt6358 ALSA SoC audio codec driver
107 priv->mtkaif_protocol = mtkaif_protocol; in mt6358_set_mtkaif_protocol()
114 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2_CLR, in playback_gpio_set()
116 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2_SET, in playback_gpio_set()
118 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2, in playback_gpio_set()
129 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2_CLR, in playback_gpio_reset()
131 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2, in playback_gpio_reset()
133 regmap_update_bits(priv->regmap, MT6358_GPIO_DIR0, in playback_gpio_reset()
140 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE3_CLR, in capture_gpio_set()
[all …]
Dcpcap.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2017 - 2018 Sebastian Reichel <sre@kernel.org>
8 * Copyright (C) 2007 - 2009 Motorola, Inc.
14 #include <linux/mfd/motorola-cpcap.h>
19 /* Register 513 CPCAP_REG_CC --- CODEC */
37 /* Register 514 CPCAP_REG_CDI --- CODEC Digital Audio Interface */
54 /* Register 515 CPCAP_REG_SDAC --- Stereo DAC */
68 /* Register 516 CPCAP_REG_SDACDI --- Stereo DAC Digital Audio Interface */
84 /* Register 517 CPCAP_REG_TXI --- TX Interface */
102 /* Register 518 CPCAP_REG_TXMP --- Mic Gain */
[all …]
Dtwl4030.c1 // SPDX-License-Identifier: GPL-2.0-only
28 #include <linux/mfd/twl4030-audio.h>
59 u8 ctl_cache[TWL4030_REG_PRECKR_CTL - TWL4030_REG_EAR_CTL + 1];
71 twl4030->ctl_cache[i - TWL4030_REG_EAR_CTL] = byte; in tw4030_init_ctl_cache()
81 return -EIO; in twl4030_read()
90 value = twl4030->ctl_cache[reg - TWL4030_REG_EAR_CTL]; in twl4030_read()
108 if (twl4030->earpiece_enabled) in twl4030_can_write_to_chip()
112 if (twl4030->predrivel_enabled) in twl4030_can_write_to_chip()
116 if (twl4030->predriver_enabled) in twl4030_can_write_to_chip()
120 if (twl4030->carkitl_enabled) in twl4030_can_write_to_chip()
[all …]
Dda7218.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * da7218.c - DA7218 ALSA SoC Codec Driver
22 #include <sound/soc-dapm.h>
37 static const DECLARE_TLV_DB_SCALE(da7218_mic_gain_tlv, -600, 600, 0);
38 static const DECLARE_TLV_DB_SCALE(da7218_mixin_gain_tlv, -450, 150, 0);
39 static const DECLARE_TLV_DB_SCALE(da7218_in_dig_gain_tlv, -8325, 75, 0);
40 static const DECLARE_TLV_DB_SCALE(da7218_ags_trigger_tlv, -9000, 600, 0);
42 static const DECLARE_TLV_DB_SCALE(da7218_alc_threshold_tlv, -9450, 150, 0);
47 static const DECLARE_TLV_DB_SCALE(da7218_dmix_gain_tlv, -4200, 150, 0);
50 static const DECLARE_TLV_DB_SCALE(da7218_dgs_trigger_tlv, -9450, 150, 0);
[all …]
Dcs42l52.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cs42l52.c -- CS42L52 ALSA SoC audio driver
28 #include <sound/soc-dapm.h>
130 static DECLARE_TLV_DB_SCALE(hl_tlv, -10200, 50, 0);
132 static DECLARE_TLV_DB_SCALE(hpd_tlv, -9600, 50, 1);
134 static DECLARE_TLV_DB_SCALE(ipd_tlv, -9600, 100, 0);
138 static DECLARE_TLV_DB_SCALE(pga_tlv, -600, 50, 0);
140 static DECLARE_TLV_DB_SCALE(mix_tlv, -50, 50, 0);
142 static DECLARE_TLV_DB_SCALE(beep_tlv, -56, 200, 0);
145 0, 2, TLV_DB_SCALE_ITEM(-3000, 600, 0),
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/gspca/stv06xx/
Dstv06xx_hdcs.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (c) 2001 Jean-Fredric Clere, Nikolas Zimmermann, Georg Acher
4 * Mark Cave-Ayland, Carlo E Prelz, Dick Streefland
7 * Copyright (c) 2008 Chia-I Wu
10 * P/N 861050-0010: Sensor HDCS1000 ASIC STV0600
11 * P/N 861050-0020: Sensor Photobit PB100 ASIC STV0600-1 - QuickCam Express
12 * P/N 861055: Sensor ST VV6410 ASIC STV0610 - LEGO cam
13 * P/N 861075-0040: Sensor HDCS1000 ASIC
14 * P/N 961179-0700: Sensor ST VV6410 ASIC STV0602 - Dexxa WebCam USB
15 * P/N 861040-0000: Sensor ST VV6410 ASIC STV0610 - QuickCam Web
[all …]
/kernel/linux/linux-4.19/drivers/media/usb/gspca/stv06xx/
Dstv06xx_hdcs.h2 * Copyright (c) 2001 Jean-Fredric Clere, Nikolas Zimmermann, Georg Acher
3 * Mark Cave-Ayland, Carlo E Prelz, Dick Streefland
6 * Copyright (c) 2008 Chia-I Wu
19 * P/N 861050-0010: Sensor HDCS1000 ASIC STV0600
20 * P/N 861050-0020: Sensor Photobit PB100 ASIC STV0600-1 - QuickCam Express
21 * P/N 861055: Sensor ST VV6410 ASIC STV0610 - LEGO cam
22 * P/N 861075-0040: Sensor HDCS1000 ASIC
23 * P/N 961179-0700: Sensor ST VV6410 ASIC STV0602 - Dexxa WebCam USB
24 * P/N 861040-0000: Sensor ST VV6410 ASIC STV0610 - QuickCam Web
48 /* I2C Registers common for both HDCS-1000/1100 and HDCS-1020 */
[all …]
/kernel/linux/linux-4.19/drivers/hwmon/
Dads1015.c2 * ads1015.c - lm_sensors driver for ads1015 12-bit 4-input ADC
31 #include <linux/hwmon-sysfs.h>
45 /* PGA fullscale voltages in mV */
78 unsigned int pga = data->channel_data[channel].pga; in ads1015_read_adc() local
79 unsigned int data_rate = data->channel_data[channel].data_rate; in ads1015_read_adc()
81 const unsigned int * const rate_table = data->id == ads1115 ? in ads1015_read_adc()
85 mutex_lock(&data->update_lock); in ads1015_read_adc()
98 config |= (pga & 0x0007) << 9; in ads1015_read_adc()
113 res = -EIO; in ads1015_read_adc()
120 mutex_unlock(&data->update_lock); in ads1015_read_adc()
[all …]
/kernel/linux/linux-5.10/include/media/i2c/
Dcs53l32a.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 cs53l32a.h - definition for cs53l32a inputs and outputs
13 placed in two modes, the first mode bypasses the PGA (gain),
14 the second goes through the PGA. Hence there are three
/kernel/linux/linux-4.19/include/media/i2c/
Dcs53l32a.h2 cs53l32a.h - definition for cs53l32a inputs and outputs
25 placed in two modes, the first mode bypasses the PGA (gain),
26 the second goes through the PGA. Hence there are three
/kernel/linux/linux-4.19/Documentation/hwmon/
Dads101518 -----------
22 This device is a 12/16-bit A-D converter with 4 inputs.
26 The inputs can be made available by 8 sysfs input files in0_input - in7_input:
41 -------------
45 - pga is the programmable gain amplifier (values are full scale)
46 0: +/- 6.144 V
47 1: +/- 4.096 V
48 2: +/- 2.048 V
49 3: +/- 1.024 V
50 4: +/- 0.512 V
[all …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/hwmon/
Dads1015.txt3 This device is a 12-bit A-D converter with 4 inputs.
18 - pga is the programmable gain amplifier (values are full scale)
19 0: +/- 6.144 V
20 1: +/- 4.096 V
21 2: +/- 2.048 V (default)
22 3: +/- 1.024 V
23 4: +/- 0.512 V
24 5: +/- 0.256 V
25 - data_rate in samples per second
38 - compatible : must be "ti,ads1015"
[all …]

12345678