Home
last modified time | relevance | path

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

12345

/Linux-v5.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 …]
/Linux-v5.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
/Linux-v5.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 …]
Dwm8940.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8940.c -- WM8940 ALSA Soc Audio driver
14 * No means to obtain current gain if alc enabled.
141 { 0x2d, 0x0050 }, /* PGA Gain */
153 static const char *wm8940_companding[] = { "Off", "NC", "u-law", "A-law" };
171 static DECLARE_TLV_DB_SCALE(wm8940_spk_vol_tlv, -5700, 100, 1);
172 static DECLARE_TLV_DB_SCALE(wm8940_att_tlv, -1000, 1000, 0);
173 static DECLARE_TLV_DB_SCALE(wm8940_pga_vol_tlv, -1200, 75, 0);
174 static DECLARE_TLV_DB_SCALE(wm8940_alc_min_tlv, -1200, 600, 0);
176 static DECLARE_TLV_DB_SCALE(wm8940_alc_tar_tlv, -2250, 50, 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 …]
Dml26124.c1 // SPDX-License-Identifier: GPL-2.0-only
53 static const DECLARE_TLV_DB_SCALE(digital_tlv, -7150, 50, 0);
55 static const DECLARE_TLV_DB_SCALE(alclvl, -2250, 150, 0);
56 static const DECLARE_TLV_DB_SCALE(mingain, -1200, 600, 0);
57 static const DECLARE_TLV_DB_SCALE(maxgain, -675, 600, 0);
58 static const DECLARE_TLV_DB_SCALE(boost_vol, -1200, 75, 0);
60 static const char * const ml26124_companding[] = {"16bit PCM", "u-law",
61 "A-law"};
119 SOC_DAPM_SINGLE("PGA Switch", ML26124_SPK_AMP_OUT, 5, 1, 0),
145 SND_SOC_DAPM_PGA("PGA", ML26124_PW_IN_PW_MNG, 3, 0, NULL, 0),
[all …]
Dda7219.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * da7219.c - DA7219 ALSA SoC Codec Driver
13 #include <linux/clk-provider.h>
26 #include <sound/soc-dapm.h>
33 #include "da7219-aad.h"
41 static const DECLARE_TLV_DB_SCALE(da7219_mic_gain_tlv, -600, 600, 0);
42 static const DECLARE_TLV_DB_SCALE(da7219_mixin_gain_tlv, -450, 150, 0);
43 static const DECLARE_TLV_DB_SCALE(da7219_adc_dig_gain_tlv, -8325, 75, 0);
44 static const DECLARE_TLV_DB_SCALE(da7219_alc_threshold_tlv, -9450, 150, 0);
47 static const DECLARE_TLV_DB_SCALE(da7219_sidetone_gain_tlv, -4200, 300, 0);
[all …]
Dda9055.c1 // SPDX-License-Identifier: GPL-2.0-or-later
59 /* Input - Gain, Select and Filter Registers */
72 /* Output - Gain, Select and Filter Registers */
286 /* Gain and Volume */
289 0x0, 0x10, TLV_DB_SCALE_ITEM(-5400, 0, 0),
290 /* -54dB to 15dB */
291 0x11, 0x3f, TLV_DB_SCALE_ITEM(-5400, 150, 0)
296 /* -78dB to 12dB */
297 0x08, 0x7f, TLV_DB_SCALE_ITEM(-7800, 75, 0)
306 static const DECLARE_TLV_DB_SCALE(mic_vol_tlv, -600, 600, 0);
[all …]
Dssm2602.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
50 #define LINVOL_LIN_VOL 0x01F /* Left Channel PGA Volume control …
55 #define RINVOL_RIN_VOL 0x01F /* Right Channel PGA Volume control …
70 #define APANA_ENABLE_MIC_BOOST 0x001 /* Primary Microphone Amplifier gain booster contr…
77 #define APANA_ENABLE_MIC_BOOST2 0x100 /* Secondary Microphone Amplifier gain booster con…
81 #define APDIGI_DE_EMPHASIS 0x006 /* De-Emphasis Control …
107 #define SRATE_BOS_RATE 0x002 /* Base Over-Sampling rate …
Dwm8983.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8983.c -- WM8983 ALSA SoC Audio driver
29 { 0x01, 0x0000 }, /* R1 - Power management 1 */
30 { 0x02, 0x0000 }, /* R2 - Power management 2 */
31 { 0x03, 0x0000 }, /* R3 - Power management 3 */
32 { 0x04, 0x0050 }, /* R4 - Audio Interface */
33 { 0x05, 0x0000 }, /* R5 - Companding control */
34 { 0x06, 0x0140 }, /* R6 - Clock Gen control */
35 { 0x07, 0x0000 }, /* R7 - Additional control */
36 { 0x08, 0x0000 }, /* R8 - GPIO Control */
[all …]
Dtpa6130a2.c1 // SPDX-License-Identifier: GPL-2.0-only
17 #include <sound/tpa6130a2-plat.h>
45 ret = regulator_enable(data->supply); in tpa6130a2_power()
47 dev_err(data->dev, in tpa6130a2_power()
52 if (data->power_gpio >= 0) in tpa6130a2_power()
53 gpio_set_value(data->power_gpio, 1); in tpa6130a2_power()
56 regcache_cache_only(data->regmap, false); in tpa6130a2_power()
57 ret = regcache_sync(data->regmap); in tpa6130a2_power()
59 dev_err(data->dev, in tpa6130a2_power()
61 regcache_cache_only(data->regmap, true); in tpa6130a2_power()
[all …]
Dmt6359.c1 // SPDX-License-Identifier: GPL-2.0
3 // mt6359.c -- mt6359 ALSA SoC audio codec driver
24 regmap_write(priv->regmap, MT6359_GPIO_MODE2_CLR, 0x0ffe); in mt6359_set_playback_gpio()
25 regmap_write(priv->regmap, MT6359_GPIO_MODE2_SET, 0x0249); in mt6359_set_playback_gpio()
28 regmap_write(priv->regmap, MT6359_GPIO_MODE3_CLR, 0x6); in mt6359_set_playback_gpio()
29 regmap_write(priv->regmap, MT6359_GPIO_MODE3_SET, 0x1); in mt6359_set_playback_gpio()
39 regmap_write(priv->regmap, MT6359_GPIO_MODE2_CLR, 0x0ff8); in mt6359_reset_playback_gpio()
40 regmap_update_bits(priv->regmap, MT6359_GPIO_DIR0, 0x7 << 9, 0x0); in mt6359_reset_playback_gpio()
46 regmap_write(priv->regmap, MT6359_GPIO_MODE3_CLR, 0x0e00); in mt6359_set_capture_gpio()
47 regmap_write(priv->regmap, MT6359_GPIO_MODE3_SET, 0x0200); in mt6359_set_capture_gpio()
[all …]
Dwm8510.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8510.c -- WM8510 ALSA Soc Audio driver
113 static const char *wm8510_companding[] = { "Off", "NC", "u-law", "A-law" };
131 SOC_ENUM("Playback De-emphasis", wm8510_enum[2]),
150 SOC_SINGLE("ALC Capture Max Gain", WM8510_ALC1, 3, 7, 0),
151 SOC_SINGLE("ALC Capture Min Gain", WM8510_ALC1, 0, 7, 0),
164 SOC_SINGLE("Capture PGA ZC Switch", WM8510_INPPGA, 7, 1, 0),
165 SOC_SINGLE("Capture PGA Volume", WM8510_INPPGA, 0, 63, 0),
191 SOC_DAPM_SINGLE("Mic PGA Switch", WM8510_INPPGA, 6, 1, 1),
216 SND_SOC_DAPM_MIXER("Mic PGA", WM8510_POWER2, 2, 0,
[all …]
/Linux-v5.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 …]
/Linux-v5.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
/Linux-v5.10/drivers/net/wireless/broadcom/b43/
Dphy_g.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 /* OFDM PHY registers are defined in the A-PHY header. */
9 #define B43_PHY_VERSION_CCK B43_PHY_CCK(0x00) /* Versioning register for B-PHY */
11 #define B43_PHY_PGACTL B43_PHY_CCK(0x15) /* PGA control */
24 /* Extended G-PHY Registers */
26 #define B43_PHY_GTABCTL B43_PHY_EXTG(0x03) /* G-PHY table control (see below) */
27 #define B43_PHY_GTABOFF 0x03FF /* G-PHY table offset (see below) */
28 #define B43_PHY_GTABNR 0xFC00 /* G-PHY table number (see below) */
30 #define B43_PHY_GTABDATA B43_PHY_EXTG(0x04) /* G-PHY table data */
49 /*** G-PHY table numbers */
[all …]
/Linux-v5.10/drivers/hwmon/
Dads7871.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * ads7871 - driver for TI ADS7871 A/D converter
20 #define REG_PGA_VALID 2 /*PGA Valid Register*/
22 #define REG_GAIN_MUX 4 /*Gain/Mux Register*/
44 #define MUX_G_BV 4 /*allows for reg = (gain << MUX_G_BV) | ...*/
59 #include <linux/hwmon-sysfs.h>
95 struct spi_device *spi = pdata->spi; in voltage_show()
100 channel = attr->index; in voltage_show()
103 * other than single ended with a gain of 1 in voltage_show()
106 /*This is also where the gain of the PGA would be set*/ in voltage_show()
[all …]
Dtmp513.c1 // SPDX-License-Identifier: GPL-2.0
15 * Copyright (C) 2019 Eric Tremblay <etremblay@distech-controls.com>
110 // Max possible value is -256 to +256 but datasheet indicated -40 to 125.
112 #define MIN_TEMP_LIMIT -40000
176 // Set the shift based on the gain 8=4, 4=3, 2=2, 1=1
179 return 5 - ffs(data->pga_gain); in tmp51x_get_pga_shift()
196 * on the pga gain setting. 1lsb = 10uV in tmp51x_get_value()
198 *val = sign_extend32(regval, 17 - tmp51x_get_pga_shift(data)); in tmp51x_get_value()
199 *val = DIV_ROUND_CLOSEST(*val * 10000, data->shunt_uohms); in tmp51x_get_value()
210 *val = regval * data->pwr_lsb_uw; in tmp51x_get_value()
[all …]
/Linux-v5.10/Documentation/devicetree/bindings/iio/adc/
Dti,ads1015.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Daniel Baluta <daniel.baluta@nxp.com>
23 "#address-cells":
26 "#size-cells":
29 "#io-channel-cells":
33 - compatible
34 - reg
35 - "#address-cells"
[all …]

12345