/linux-6.12.1/sound/soc/codecs/ |
D | max98090.c | 1 // 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 …]
|
D | es8311.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * es8311.c -- es8311 ALSA SoC audio driver 38 static const DECLARE_TLV_DB_SCALE(es8311_adc_vol_tlv, -9550, 50, 0); 68 0, 1, TLV_DB_SCALE_ITEM(-3010, 600, 0), 69 2, 3, TLV_DB_SCALE_ITEM(-2060, 250, 0), 70 4, 5, TLV_DB_SCALE_ITEM(-1610, 160, 0), 71 6, 7, TLV_DB_SCALE_ITEM(-1320, 120, 0), 72 8, 9, TLV_DB_SCALE_ITEM(-1100, 90, 0), 73 10, 11, TLV_DB_SCALE_ITEM(-930, 80, 0), 74 12, 15, TLV_DB_SCALE_ITEM(-780, 60, 0), [all …]
|
D | cs35l41.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // cs35l41.c -- CS35l41 ALSA SoC audio driver 5 // Copyright 2017-2021 Cirrus Logic, Inc. 22 #include <sound/soc-dapm.h> 33 int freq; member 105 int freq; member 155 static int cs35l41_get_fs_mon_config_index(int freq) in cs35l41_get_fs_mon_config_index() argument 160 if (cs35l41_fs_mon[i].freq == freq) in cs35l41_get_fs_mon_config_index() 164 return -EINVAL; in cs35l41_get_fs_mon_config_index() 169 1, 913, TLV_DB_MINMAX_ITEM(-10200, 1200)); [all …]
|
D | max9867.c | 1 // 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() 71 max9867->adc_dac_active |= BIT(adc_dac); in max9867_adc_dac_event() 73 max9867->adc_dac_active &= ~BIT(adc_dac); in max9867_adc_dac_event() 86 ret = regmap_read(max9867->regmap, MAX9867_CODECFLTR, ®); in max9867_filter_get() 88 return -EINVAL; in max9867_filter_get() 91 ucontrol->value.enumerated.item[0] = 1; in max9867_filter_get() [all …]
|
D | ad193x.c | 1 // 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 …]
|
D | cs42l52.c | 1 // 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 …]
|
D | cs4265.c | 1 // 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 …]
|
D | cs35l36.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // cs35l36.c -- CS35L36 ALSA SoC audio driver 27 #include <sound/soc-dapm.h> 60 int freq; member 446 TLV_DB_MINMAX_ITEM(-10200, 1200)); 463 ucontrol->value.integer.value[0] = cs35l36->ldm_mode_sel; in cs35l36_ldm_sel_get() 475 int val = (ucontrol->value.integer.value[0]) ? CS35L36_NG_AMP_EN_MASK : in cs35l36_ldm_sel_put() 478 cs35l36->ldm_mode_sel = val; in cs35l36_ldm_sel_put() 480 regmap_update_bits(cs35l36->regmap, CS35L36_NG_CFG, in cs35l36_ldm_sel_put() 492 SOC_SINGLE("Amp Gain Zero-Cross Switch", CS35L36_AMP_GAIN_CTRL, [all …]
|
D | pcm186x.c | 1 // 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 …]
|
D | da7213.c | 1 // 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 …]
|
D | es8316.c | 1 // 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> 50 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(dac_vol_tlv, -9600, 50, 1); 51 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(adc_vol_tlv, -9600, 50, 1); 52 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(alc_max_gain_tlv, -650, 150, 0); 53 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(alc_min_gain_tlv, -1200, 150, 0); 56 0, 10, TLV_DB_SCALE_ITEM(-1650, 150, 0), 57 11, 11, TLV_DB_SCALE_ITEM(-150, 0, 0), [all …]
|
D | cs35l34.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * cs35l34.c -- CS35l34 ALSA SoC audio driver 28 #include <sound/soc-dapm.h> 48 struct gpio_desc *reset_gpio; /* Active-low reset GPIO */ 235 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in cs35l34_sdin_event() 241 if (priv->tdm_mode) in cs35l34_sdin_event() 242 regmap_update_bits(priv->regmap, CS35L34_PWRCTL3, in cs35l34_sdin_event() 245 ret = regmap_update_bits(priv->regmap, CS35L34_PWRCTL1, in cs35l34_sdin_event() 248 dev_err(component->dev, "Cannot set Power bits %d\n", ret); in cs35l34_sdin_event() 254 if (priv->tdm_mode) { in cs35l34_sdin_event() [all …]
|
D | nau8824.c | 1 // SPDX-License-Identifier: GPL-2.0-only 35 static int quirk_override = -1; 37 MODULE_PARM_DESC(quirk, "Board-specific quirk override"); 40 int clk_id, unsigned int freq); 43 /* the ADC threshold of headset */ 46 /* the ADC threshold of headset */ 68 /* ratio for input clk freq */ 211 ret = down_timeout(&nau8824->jd_sem, timeout); in nau8824_sema_acquire() 213 dev_warn(nau8824->dev, "Acquire semaphore timeout\n"); in nau8824_sema_acquire() 215 ret = down_interruptible(&nau8824->jd_sem); in nau8824_sema_acquire() [all …]
|
D | mc13783.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 20 #include <sound/soc-dapm.h> 97 struct snd_soc_component *component = dai->component; in mc13783_pcm_hw_params_dac() 109 return -EINVAL; in mc13783_pcm_hw_params_dac() 116 struct snd_soc_component *component = dai->component; in mc13783_pcm_hw_params_codec() 128 return -EINVAL; in mc13783_pcm_hw_params_codec() 141 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in mc13783_pcm_hw_params_sync() 150 struct snd_soc_component *component = dai->component; in mc13783_set_fmt() 165 return -EINVAL; in mc13783_set_fmt() 192 return -EINVAL; in mc13783_set_fmt() [all …]
|
D | wm8988.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8988.c -- WM8988 ALSA SoC audio driver 154 "Mute ADC Output"}; 167 static const DECLARE_TLV_DB_SCALE(pga_tlv, -1725, 75, 0); 168 static const DECLARE_TLV_DB_SCALE(adc_tlv, -9750, 50, 1); 169 static const DECLARE_TLV_DB_SCALE(dac_tlv, -12750, 50, 1); 170 static const DECLARE_TLV_DB_SCALE(out_tlv, -12100, 100, 1); 171 static const DECLARE_TLV_DB_SCALE(bypass_tlv, -1500, 300, 0); 180 SOC_ENUM("Treble Cut-off", treble), 184 SOC_ENUM("3D Lower Cut-off", stereo_3d_lc), [all …]
|
D | cs530x.c | 1 // SPDX-License-Identifier: GPL-2.0 28 "vdd-a", 29 "vdd-io", 112 struct regmap *regmap = cs530x->regmap; in cs530x_put_volsw_vu() 130 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -1270, 50, 0); 133 "Min Phase Slow Roll-off", 134 "Min Phase Fast Roll-off", 135 "Linear Phase Slow Roll-off", 136 "Linear Phase Fast Roll-off", 229 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in cs530x_adc_event() [all …]
|
D | rt5514.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5514.c -- RT5514 ALSA SoC audio codec driver 24 #include <sound/soc-dapm.h> 31 #include "rt5514-spi.h" 120 regmap_write(rt5514->i2c_regmap, 0x18002000, 0x000010ec); in rt5514_enable_dsp_prepare() 122 regmap_write(rt5514->i2c_regmap, 0x18002200, 0x00028604); in rt5514_enable_dsp_prepare() 124 regmap_write(rt5514->i2c_regmap, 0xfafafafa, 0x00000001); in rt5514_enable_dsp_prepare() 125 /* mini-core reset */ in rt5514_enable_dsp_prepare() 126 regmap_write(rt5514->i2c_regmap, 0x18002f00, 0x0005514b); in rt5514_enable_dsp_prepare() 127 regmap_write(rt5514->i2c_regmap, 0x18002f00, 0x00055149); in rt5514_enable_dsp_prepare() [all …]
|
D | max98088.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * max98088.c -- MAX98088 ALSA SoC Audio driver 82 { 0x23, 0x00 }, /* 23 left ADC mixer */ 83 { 0x24, 0x00 }, /* 24 right ADC mixer */ 99 { 0x33, 0x00 }, /* 33 left ADC level */ 100 { 0x34, 0x00 }, /* 34 right ADC level */ 337 "Off", "100Hz", "400Hz", "600Hz", "800Hz", "1000Hz", "200-400Hz", 338 "400-600Hz", "400-800Hz", 385 unsigned int sel = ucontrol->value.integer.value[0]; in max98088_mic1pre_set() 387 max98088->mic1pre = sel; in max98088_mic1pre_set() [all …]
|
D | adau1373.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Author: Lars-Peter Clausen <lars@metafoo.de> 24 #include "adau-utils.h" 323 0, 7, TLV_DB_SCALE_ITEM(-7900, 400, 1), 324 8, 15, TLV_DB_SCALE_ITEM(-4700, 300, 0), 325 16, 23, TLV_DB_SCALE_ITEM(-2300, 200, 0), 326 24, 31, TLV_DB_SCALE_ITEM(-700, 100, 0) 329 static const DECLARE_TLV_DB_MINMAX(adau1373_digital_tlv, -9563, 0); 330 static const DECLARE_TLV_DB_SCALE(adau1373_in_pga_tlv, -1300, 100, 1); 331 static const DECLARE_TLV_DB_SCALE(adau1373_ep_tlv, -600, 600, 1); [all …]
|
D | rt286.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt286.c -- RT286 ALSA SoC audio codec driver 23 #include <sound/soc-dapm.h> 196 snd_soc_component_write(component, rt286->index_cache[i].reg, in rt286_index_sync() 197 rt286->index_cache[i].def); in rt286_index_sync() 223 if (!rt286->component) in rt286_jack_detect() 224 return -EINVAL; in rt286_jack_detect() 226 dapm = snd_soc_component_get_dapm(rt286->component); in rt286_jack_detect() 228 if (rt286->pdata.cbj_en) { in rt286_jack_detect() 229 regmap_read(rt286->regmap, RT286_GET_HP_SENSE, &buf); in rt286_jack_detect() [all …]
|
/linux-6.12.1/drivers/media/dvb-frontends/ |
D | dib0070.c | 1 // 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 …]
|
/linux-6.12.1/Documentation/devicetree/bindings/mfd/ |
D | x-powers,axp152.yaml | 1 # 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 …]
|
D | st,stmpe.yaml | 1 # 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 …]
|
/linux-6.12.1/drivers/media/tuners/ |
D | tea5767.c | 1 // SPDX-License-Identifier: GPL-2.0 16 #include "tuner-i2c.h" 40 /* Bits 0-5 for divider MSB */ 43 /* Bits 0-7 for divider LSB */ 50 /* Searches with ADC output = 10 */ 53 /* Searches with ADC output = 10 */ 56 /* Searches with ADC output = 5 */ 59 /* if on, div=4*(Frf+Fif)/Fref otherwise, div=4*(Frf-Fif)/Freq) */ 78 /* Japan freq (76-108 MHz. If disabled, 87.5-108 MHz */ 81 /* Unselected means 32.768 KHz freq as reference. Otherwise Xtal at 13 MHz */ [all …]
|
D | max2165.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 20 #include "tuner-i2c.h" 38 msg.addr = priv->config->i2c_address; in max2165_write_reg() 43 ret = i2c_transfer(priv->i2c, &msg, 1); in max2165_write_reg() 49 return (ret != 1) ? -EIO : 0; in max2165_write_reg() 55 u8 dev_addr = priv->config->i2c_address; in max2165_read_reg() 64 ret = i2c_transfer(priv->i2c, msg, 2); in max2165_read_reg() 67 return -EIO; in max2165_read_reg() 104 priv->tf_ntch_low_cfg = dat[0] >> 4; in max2165_read_rom_table() 105 priv->tf_ntch_hi_cfg = dat[0] & 0x0F; in max2165_read_rom_table() [all …]
|