Home
last modified time | relevance | path

Searched +full:adc +full:- +full:freq (Results 1 – 25 of 497) sorted by relevance

12345678910>>...20

/kernel/linux/linux-6.6/sound/soc/codecs/
Dmax98090.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * max98090.c -- MAX98090 ALSA SoC Audio driver
5 * Copyright 2011-2012 Maxim Integrated Products
33 { 0x08, 0x00 }, /* 08 Mic/Direct to ADC Quick */
34 { 0x09, 0x00 }, /* 09 Line to ADC Quick */
47 { 0x15, 0x00 }, /* 15 Left ADC Mixer */
48 { 0x16, 0x00 }, /* 16 Right ADC Mixer */
49 { 0x17, 0x03 }, /* 17 Left ADC Level */
50 { 0x18, 0x03 }, /* 18 Right ADC Level */
51 { 0x19, 0x00 }, /* 19 ADC Biquad Level */
[all …]
Dcs35l41.c1 // SPDX-License-Identifier: GPL-2.0
3 // cs35l41.c -- CS35l41 ALSA SoC audio driver
5 // Copyright 2017-2021 Cirrus Logic, Inc.
23 #include <sound/soc-dapm.h>
34 int freq; member
106 int freq; member
156 static int cs35l41_get_fs_mon_config_index(int freq) in cs35l41_get_fs_mon_config_index() argument
161 if (cs35l41_fs_mon[i].freq == freq) in cs35l41_get_fs_mon_config_index()
165 return -EINVAL; in cs35l41_get_fs_mon_config_index()
170 1, 913, TLV_DB_MINMAX_ITEM(-10200, 1200));
[all …]
Dmax9867.c1 // SPDX-License-Identifier: GPL-2.0
5 // Copyright 2013-2015 Maxim Integrated Products
6 // Copyright 2018 Ladislav Michl <ladis@linux-mips.org>
42 "Butterworth/8-24"
55 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in max9867_adc_dac_event()
59 if (!strcmp(w->name, "ADCL")) in max9867_adc_dac_event()
61 else if (!strcmp(w->name, "ADCR")) in max9867_adc_dac_event()
63 else if (!strcmp(w->name, "DACL")) in max9867_adc_dac_event()
65 else if (!strcmp(w->name, "DACR")) in max9867_adc_dac_event()
71 max9867->adc_dac_active |= BIT(adc_dac); in max9867_adc_dac_event()
[all …]
Dad193x.c1 // SPDX-License-Identifier: GPL-2.0-or-later
30 * AD193X volume/mute/de-emphasis etc. controls
37 static const DECLARE_TLV_DB_MINMAX(adau193x_tlv, -9563, 0);
67 /* DAC de-emphasis */
72 /* ADC switch control */
78 /* ADC high-pass filter */
79 SOC_SINGLE("ADC High Pass Filter Switch", AD193X_ADC_CTRL0,
96 SND_SOC_DAPM_ADC("ADC", "Capture", SND_SOC_NOPM, 0, 0),
105 struct snd_soc_component *component = snd_soc_dapm_to_component(source->dapm); in ad193x_check_pll()
108 return !!ad193x->sysclk; in ad193x_check_pll()
[all …]
Dcs42l52.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cs42l52.c -- CS42L52 ALSA SoC audio driver
28 #include <sound/soc-dapm.h>
63 { CS42L52_ADC_HPF_FREQ, 0x00 }, /* r0B ADC HPF Corner Freq */
64 { CS42L52_ADC_MISC_CTL, 0x00 }, /* r0C Misc. ADC Ctl */
80 { CS42L52_BEEP_FREQ, 0x00 }, /* r1C Beep Freq on Time */
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);
[all …]
Dcs4265.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cs4265.c -- CS4265 ALSA SoC audio driver
25 #include <sound/soc-dapm.h>
76 static DECLARE_TLV_DB_SCALE(pga_tlv, -1200, 50, 0);
78 static DECLARE_TLV_DB_SCALE(dac_tlv, -12750, 50, 0);
119 SOC_DAPM_ENUM("ADC Input Capture Mux", mic_linein_enum);
136 SOC_SINGLE("De-emp 44.1kHz Switch", CS4265_DAC_CTL, 1,
144 SOC_SINGLE("ADC HPF Switch", CS4265_ADC_CTL, 1,
146 SOC_SINGLE("ADC Zero Cross Switch", CS4265_ADC_CTL2, 3,
148 SOC_SINGLE("ADC Soft Ramp Switch", CS4265_ADC_CTL2, 7,
[all …]
Dcs35l36.c1 // SPDX-License-Identifier: GPL-2.0
3 // cs35l36.c -- CS35L36 ALSA SoC audio driver
27 #include <sound/soc-dapm.h>
62 int freq; member
448 TLV_DB_MINMAX_ITEM(-10200, 1200));
465 ucontrol->value.integer.value[0] = cs35l36->ldm_mode_sel; in cs35l36_ldm_sel_get()
477 int val = (ucontrol->value.integer.value[0]) ? CS35L36_NG_AMP_EN_MASK : in cs35l36_ldm_sel_put()
480 cs35l36->ldm_mode_sel = val; in cs35l36_ldm_sel_put()
482 regmap_update_bits(cs35l36->regmap, CS35L36_NG_CFG, in cs35l36_ldm_sel_put()
494 SOC_SINGLE("Amp Gain Zero-Cross Switch", CS35L36_AMP_GAIN_CTRL,
[all …]
Des8316.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * es8316.c -- es8316 ALSA SoC audio driver
6 * Authors: David Yang <yangxiaohua@everest-semi.com>,
21 #include <sound/soc-dapm.h>
51 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(dac_vol_tlv, -9600, 50, 1);
52 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(adc_vol_tlv, -9600, 50, 1);
53 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(alc_max_gain_tlv, -650, 150, 0);
54 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(alc_min_gain_tlv, -1200, 150, 0);
57 0, 10, TLV_DB_SCALE_ITEM(-1650, 150, 0),
58 11, 11, TLV_DB_SCALE_ITEM(-150, 0, 0),
[all …]
Dpcm186x.c1 // SPDX-License-Identifier: GPL-2.0
3 * Texas Instruments PCM186x Universal Audio ADC
5 * Copyright (C) 2015-2017 Texas Instruments Incorporated - https://www.ti.com
29 "avdd", /* Analog power supply. Connect to 3.3-V supply. */
30 "dvdd", /* Digital power supply. Connect to 3.3-V supply. */
31 "iovdd", /* I/O power supply. Connect to 3.3-V or 1.8-V. */
44 static const DECLARE_TLV_DB_SCALE(pcm186x_pga_tlv, -1200, 50, 0);
47 SOC_DOUBLE_R_S_TLV("ADC Capture Volume", PCM186X_PGA_VAL_CH1_L,
48 PCM186X_PGA_VAL_CH1_R, 0, -24, 80, 7, 0,
54 PCM186X_PGA_VAL_CH1_R, 0, -24, 80, 7, 0,
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Dmax98090.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * max98090.c -- MAX98090 ALSA SoC Audio driver
5 * Copyright 2011-2012 Maxim Integrated Products
34 { 0x08, 0x00 }, /* 08 Mic/Direct to ADC Quick */
35 { 0x09, 0x00 }, /* 09 Line to ADC Quick */
48 { 0x15, 0x00 }, /* 15 Left ADC Mixer */
49 { 0x16, 0x00 }, /* 16 Right ADC Mixer */
50 { 0x17, 0x03 }, /* 17 Left ADC Level */
51 { 0x18, 0x03 }, /* 18 Right ADC Level */
52 { 0x19, 0x00 }, /* 19 ADC Biquad Level */
[all …]
Dad193x.c1 // SPDX-License-Identifier: GPL-2.0-or-later
30 * AD193X volume/mute/de-emphasis etc. controls
37 static const DECLARE_TLV_DB_MINMAX(adau193x_tlv, -9563, 0);
67 /* DAC de-emphasis */
72 /* ADC switch control */
78 /* ADC high-pass filter */
79 SOC_SINGLE("ADC High Pass Filter Switch", AD193X_ADC_CTRL0,
96 SND_SOC_DAPM_ADC("ADC", "Capture", SND_SOC_NOPM, 0, 0),
105 struct snd_soc_component *component = snd_soc_dapm_to_component(source->dapm); in ad193x_check_pll()
108 return !!ad193x->sysclk; in ad193x_check_pll()
[all …]
Dcs35l36.c1 // SPDX-License-Identifier: GPL-2.0
3 // cs35l36.c -- CS35L36 ALSA SoC audio driver
27 #include <sound/soc-dapm.h>
62 int freq; member
448 TLV_DB_MINMAX_ITEM(-10200, 1200));
465 ucontrol->value.integer.value[0] = cs35l36->ldm_mode_sel; in cs35l36_ldm_sel_get()
477 int val = (ucontrol->value.integer.value[0]) ? CS35L36_NG_AMP_EN_MASK : in cs35l36_ldm_sel_put()
480 cs35l36->ldm_mode_sel = val; in cs35l36_ldm_sel_put()
482 regmap_update_bits(cs35l36->regmap, CS35L36_NG_CFG, in cs35l36_ldm_sel_put()
494 SOC_SINGLE("Amp Gain Zero-Cross Switch", CS35L36_AMP_GAIN_CTRL,
[all …]
Duda134x.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * uda134x.c -- UDA134X ALSA SoC Codec driver
76 data |= (reg - UDA134X_STATUS0) << 7; in uda134x_regmap_write()
83 data |= (reg - UDA134X_DATA000) << 6; in uda134x_regmap_write()
92 ret = l3_write(&pd->l3, in uda134x_regmap_write()
95 return -EIO; in uda134x_regmap_write()
102 ret = l3_write(&pd->l3, in uda134x_regmap_write()
105 return -EIO; in uda134x_regmap_write()
115 regmap_update_bits(uda134x->regmap, UDA134X_STATUS0, mask, mask); in uda134x_reset()
117 regmap_update_bits(uda134x->regmap, UDA134X_STATUS0, mask, 0); in uda134x_reset()
[all …]
Dcs42l52.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cs42l52.c -- CS42L52 ALSA SoC audio driver
28 #include <sound/soc-dapm.h>
63 { CS42L52_ADC_HPF_FREQ, 0x00 }, /* r0B ADC HPF Corner Freq */
64 { CS42L52_ADC_MISC_CTL, 0x00 }, /* r0C Misc. ADC Ctl */
80 { CS42L52_BEEP_FREQ, 0x00 }, /* r1C Beep Freq on Time */
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);
[all …]
Dmax9867.c1 // SPDX-License-Identifier: GPL-2.0
5 // Copyright 2013-2015 Maxim Integrated Products
6 // Copyright 2018 Ladislav Michl <ladis@linux-mips.org>
40 "Butterworth/8-24"
53 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in max9867_adc_dac_event()
57 if (!strcmp(w->name, "ADCL")) in max9867_adc_dac_event()
59 else if (!strcmp(w->name, "ADCR")) in max9867_adc_dac_event()
61 else if (!strcmp(w->name, "DACL")) in max9867_adc_dac_event()
63 else if (!strcmp(w->name, "DACR")) in max9867_adc_dac_event()
69 max9867->adc_dac_active |= BIT(adc_dac); in max9867_adc_dac_event()
[all …]
Dcs4265.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cs4265.c -- CS4265 ALSA SoC audio driver
25 #include <sound/soc-dapm.h>
76 static DECLARE_TLV_DB_SCALE(pga_tlv, -1200, 50, 0);
78 static DECLARE_TLV_DB_SCALE(dac_tlv, -12750, 50, 0);
119 SOC_DAPM_ENUM("ADC Input Capture Mux", mic_linein_enum);
136 SOC_SINGLE("De-emp 44.1kHz Switch", CS4265_DAC_CTL, 1,
144 SOC_SINGLE("ADC HPF Switch", CS4265_ADC_CTL, 1,
146 SOC_SINGLE("ADC Zero Cross Switch", CS4265_ADC_CTL2, 3,
148 SOC_SINGLE("ADC Soft Ramp Switch", CS4265_ADC_CTL2, 7,
[all …]
Dda7213.c1 // SPDX-License-Identifier: GPL-2.0-or-later
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);
53 static const DECLARE_TLV_DB_SCALE(eq_gain_tlv, -1050, 150, 0);
[all …]
Des8316.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * es8316.c -- es8316 ALSA SoC audio driver
6 * Authors: David Yang <yangxiaohua@everest-semi.com>,
21 #include <sound/soc-dapm.h>
51 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(dac_vol_tlv, -9600, 50, 1);
52 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(adc_vol_tlv, -9600, 50, 1);
53 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(alc_max_gain_tlv, -650, 150, 0);
54 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(alc_min_gain_tlv, -1200, 150, 0);
57 0, 10, TLV_DB_SCALE_ITEM(-1650, 150, 0),
58 11, 11, TLV_DB_SCALE_ITEM(-150, 0, 0),
[all …]
Dpcm186x.c1 // SPDX-License-Identifier: GPL-2.0
3 * Texas Instruments PCM186x Universal Audio ADC
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);
48 SOC_DOUBLE_R_S_TLV("ADC Capture Volume", PCM186X_PGA_VAL_CH1_L,
49 PCM186X_PGA_VAL_CH1_R, 0, -24, 80, 7, 0,
55 PCM186X_PGA_VAL_CH1_R, 0, -24, 80, 7, 0,
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/input/touchscreen/
Dstmpe.txt2 ----------------
5 - compatible: "st,stmpe-ts"
8 - st,ave-ctrl : Sample average control
9 0 -> 1 sample
10 1 -> 2 samples
11 2 -> 4 samples
12 3 -> 8 samples
13 - st,touch-det-delay : Touch detect interrupt delay (recommended is 3)
14 0 -> 10 us
15 1 -> 50 us
[all …]
/kernel/linux/linux-6.6/drivers/media/dvb-frontends/
Ddib0070.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Linux-DVB Driver for DiBcom's DiB0070 base-band RF Tuner.
5 * Copyright (C) 2005-9 DiBcom (http://www.dibcom.fr/)
73 if (mutex_lock_interruptible(&state->i2c_buffer_lock) < 0) { in dib0070_read_reg()
78 state->i2c_write_buffer[0] = reg; in dib0070_read_reg()
80 memset(state->msg, 0, 2 * sizeof(struct i2c_msg)); in dib0070_read_reg()
81 state->msg[0].addr = state->cfg->i2c_address; in dib0070_read_reg()
82 state->msg[0].flags = 0; in dib0070_read_reg()
83 state->msg[0].buf = state->i2c_write_buffer; in dib0070_read_reg()
84 state->msg[0].len = 1; in dib0070_read_reg()
[all …]
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/
Ddib0070.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Linux-DVB Driver for DiBcom's DiB0070 base-band RF Tuner.
5 * Copyright (C) 2005-9 DiBcom (http://www.dibcom.fr/)
73 if (mutex_lock_interruptible(&state->i2c_buffer_lock) < 0) { in dib0070_read_reg()
78 state->i2c_write_buffer[0] = reg; in dib0070_read_reg()
80 memset(state->msg, 0, 2 * sizeof(struct i2c_msg)); in dib0070_read_reg()
81 state->msg[0].addr = state->cfg->i2c_address; in dib0070_read_reg()
82 state->msg[0].flags = 0; in dib0070_read_reg()
83 state->msg[0].buf = state->i2c_write_buffer; in dib0070_read_reg()
84 state->msg[0].len = 1; in dib0070_read_reg()
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/mfd/
Dx-powers,axp152.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/mfd/x-powers,axp152.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: X-Powers AXP PMIC
10 - Chen-Yu Tsai <wens@csie.org>
13 - if:
18 - x-powers,axp152
19 - x-powers,axp202
20 - x-powers,axp209
[all …]
Dst,stmpe.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 touchscreen, ADC, PWM or rotator. It can contain one or several different
15 - Linus Walleij <linus.walleij@linaro.org>
18 - $ref: /schemas/spi/spi-peripheral-props.yaml#
23 - st,stmpe601
24 - st,stmpe801
25 - st,stmpe811
26 - st,stmpe1600
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mfd/
Dstmpe.txt1 * ST Microelectronics STMPE Multi-Functional Device
4 keypad, touchscreen, adc, pwm, rotator.
7 - compatible : "st,stmpe[610|801|811|1600|1601|2401|2403]"
8 - reg : I2C/SPI address of the device
11 - interrupts : The interrupt outputs from the controller
12 - interrupt-controller : Marks the device node as an interrupt controller
13 - wakeup-source : Marks the input device as wakable
14 - st,autosleep-timeout : Valid entries (ms); 4, 16, 32, 64, 128, 256, 512 and 1024
15 - irq-gpio : If present, which GPIO to use for event IRQ
17 Optional properties for devices with touch and ADC (STMPE811|STMPE610):
[all …]

12345678910>>...20