| /linux/sound/soc/codecs/ |
| H A 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 …]
|
| H A 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(-161 642 es8311_set_sysclk(struct snd_soc_dai * codec_dai,int clk_id,unsigned int freq,int dir) es8311_set_sysclk() argument [all...] |
| H A D | cs42l52.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * cs42l52.c -- CS42L52 ALSA SoC audio driver 29 #include <sound/soc-dapm.h> 43 /* MICA mode selection Differential or Single-ended */ 46 /* MICB mode selection Differential or Single-ended */ 49 /* Charge Pump Freq 732 cs42l52_set_sysclk(struct snd_soc_dai * codec_dai,int clk_id,unsigned int freq,int dir) cs42l52_set_sysclk() argument [all...] |
| H A 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->regma in max9867_filter_get() 328 int value, freq = 0; max9867_dai_hw_params() local 430 max9867_set_dai_sysclk(struct snd_soc_dai * codec_dai,int clk_id,unsigned int freq,int dir) max9867_set_dai_sysclk() argument [all...] |
| H A 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> 52 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(dac_vol_tlv, -9600, 50, 1); 53 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(adc_vol_tlv, -960 365 es8316_set_dai_sysclk(struct snd_soc_dai * codec_dai,int clk_id,unsigned int freq,int dir) es8316_set_dai_sysclk() argument [all...] |
| H A 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 hig 282 ad193x_set_dai_sysclk(struct snd_soc_dai * codec_dai,int clk_id,unsigned int freq,int dir) ad193x_set_dai_sysclk() argument [all...] |
| H A 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)); 462 ucontrol->value.integer.value[0] = cs35l36->ldm_mode_se in cs35l36_ldm_sel_get() 908 cs35l36_dai_set_sysclk(struct snd_soc_dai * dai,int clk_id,unsigned int freq,int dir) cs35l36_dai_set_sysclk() argument 940 cs35l36_get_clk_config(struct cs35l36_private * cs35l36,int freq) cs35l36_get_clk_config() argument 992 cs35l36_component_set_sysclk(struct snd_soc_component * component,int clk_id,int source,unsigned int freq,int dir) cs35l36_component_set_sysclk() argument [all...] |
| H A D | da7213.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 34 /* -54dB */ 35 0x0, 0x11, TLV_DB_SCALE_ITEM(-5400, 0, 0), 36 /* -52.5dB to 15dB */ 37 0x12, 0x3f, TLV_DB_SCALE_ITEM(-5250, 150, 0) 42 /* -78dB to 12dB */ 43 0x08, 0x7f, TLV_DB_SCALE_ITEM(-7800, 75, 0) 52 static const DECLARE_TLV_DB_SCALE(mic_vol_tlv, -600, 600, 0); 53 static const DECLARE_TLV_DB_SCALE(mixin_gain_tlv, -450, 150, 0); 54 static const DECLARE_TLV_DB_SCALE(eq_gain_tlv, -1050, 150, 0); [all …]
|
| H A 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 …]
|
| H A D | twl4030.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include <linux/mfd/twl4030-audio.h> 64 u8 ctl_cache[TWL4030_REG_PRECKR_CTL - TWL4030_REG_EAR_CTL + 1]; 76 twl4030->ctl_cache[i - TWL4030_REG_EAR_CTL] = byte; in tw4030_init_ctl_cache() 86 return -EIO; in twl4030_read() 95 value = twl4030->ctl_cach in twl4030_read() 1810 twl4030_set_dai_sysclk(struct snd_soc_dai * codec_dai,int clk_id,unsigned int freq,int dir) twl4030_set_dai_sysclk() argument 2011 twl4030_voice_set_dai_sysclk(struct snd_soc_dai * codec_dai,int clk_id,unsigned int freq,int dir) twl4030_voice_set_dai_sysclk() argument [all...] |
| H A D | cs42l56.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * cs42l56.c -- CS42L56 ALSA SoC audio driver 30 #include <sound/soc-dapm.h> 43 /* Analog Input 1A Reference 0=Single 1=Pseudo-Differential */ 46 /* Analog Input 2A Reference 0=Single 1=Pseudo-Differential */ 49 /* Analog Input 1B Reference 0=Single 1=Pseudo-Differentia 747 cs42l56_set_sysclk(struct snd_soc_dai * codec_dai,int clk_id,unsigned int freq,int dir) cs42l56_set_sysclk() argument [all...] |
| H A 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_regma in rt5514_enable_dsp_prepare() 862 rt5514_set_dai_sysclk(struct snd_soc_dai * dai,int clk_id,unsigned int freq,int dir) rt5514_set_dai_sysclk() argument [all...] |
| H A D | rt5660.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5660.c -- RT5660 ALSA SoC audio codec driver 24 #include <sound/soc-dapm.h> 296 static const DECLARE_TLV_DB_SCALE(rt5660_out_vol_tlv, -4650, 150, 0); 297 static const DECLARE_TLV_DB_SCALE(rt5660_dac_vol_tlv, -6525, 75, 0); 298 static const DECLARE_TLV_DB_SCALE(rt5660_adc_vol_tlv, -172 969 rt5660_set_dai_sysclk(struct snd_soc_dai * dai,int clk_id,unsigned int freq,int dir) rt5660_set_dai_sysclk() argument [all...] |
| H A D | pcm3060.c | 1 // SPDX-License-Identifier: GPL-2.0 17 unsigned int freq, int dir) in pcm3060_set_sysclk() argument 19 struct snd_soc_component *comp = dai->component; in pcm3060_set_sysclk() 25 dev_err(comp->dev, "unsupported sysclock dir: %d\n", dir); in pcm3060_set_sysclk() 26 return -EINVAL; in pcm3060_set_sysclk() 35 val = (dai->id == PCM3060_DAI_ID_DAC ? PCM3060_REG_CSEL : 0); in pcm3060_set_sysclk() 39 val = (dai->id == PCM3060_DAI_ID_DAC ? 0 : PCM3060_REG_CSEL); in pcm3060_set_sysclk() 43 dev_err(comp->dev, "unsupported sysclock id: %d\n", clk_id); in pcm3060_set_sysclk() 44 return -EINVAL; in pcm3060_set_sysclk() 47 if (dai->id == PCM3060_DAI_ID_DAC) in pcm3060_set_sysclk() [all …]
|
| H A D | adav80x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Author: Lars-Peter Clausen <lars@metafoo.de> 113 #define ADAV80X_PLL_OUTE_SYSCLKPD(x) BIT(2 - (x)) 155 "ADC", 185 SND_SOC_DAPM_ADC("ADC", NULL, ADAV80X_ADC_CTRL1, 5, 1), 214 struct snd_soc_component *component = snd_soc_dapm_to_component(source->dap in adav80x_dapm_sysclk_check() 539 adav80x_set_sysclk(struct snd_soc_component * component,int clk_id,int source,unsigned int freq,int dir) adav80x_set_sysclk() argument [all...] |
| H A D | es7241.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 39 gpiod_set_value_cansleep(priv->reset, 0); in es7241_set_mode() 42 gpiod_set_value_cansleep(priv->m0, m0); in es7241_set_mode() 43 gpiod_set_value_cansleep(priv->m1, m1); in es7241_set_mode() 45 /* take the device out of reset - datasheet does not specify a delay */ in es7241_set_mode() 46 gpiod_set_value_cansleep(priv->reset, 1); in es7241_set_mode() 58 for (j = 0; j < mode->slv_mfs_num; j++) { in es7241_set_consumer_mode() 59 if (mode->slv_mfs[j] == mfs) in es7241_set_consumer_mode() 63 return -EINVAL; in es7241_set_consumer_mode() 78 if (mfs && mfs != mode->mst_mfs) in es7241_set_provider_mode() [all …]
|
| H A D | ssm2602.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 85 48, 127, TLV_DB_SCALE_ITEM(-7400, 100, 0) 88 static const DECLARE_TLV_DB_SCALE(ssm260x_inpga_tlv, -3450, 150, 0); 89 static const DECLARE_TLV_DB_SCALE(ssm260x_sidetone_tlv, -1500, 300, 0); 96 SOC_SINGLE("ADC High Pass Filter Switch", SSM2602_APDIGI, 0, 1, 1), 99 SOC_ENUM("Playback De-emphasi 371 ssm2602_set_dai_sysclk(struct snd_soc_dai * codec_dai,int clk_id,unsigned int freq,int dir) ssm2602_set_dai_sysclk() argument [all...] |
| H A D | wm8731.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8731.c -- WM8731 ALSA SoC Audio driver 6 * Copyright 2006-12 Wolfson Microelectronics, plc 76 if (wm8731->deemph) { in wm8731_set_deemph() 79 if (abs(wm8731_deemph[i] - wm8731->playback_f in wm8731_set_deemph() 362 wm8731_set_dai_sysclk(struct snd_soc_dai * codec_dai,int clk_id,unsigned int freq,int dir) wm8731_set_dai_sysclk() argument [all...] |
| H A D | tlv320aic23.c | 1 // SPDX-License-Identifier: GPL-2.0-only 73 static const DECLARE_TLV_DB_SCALE(out_gain_tlv, -12100, 100, 0); 74 static const DECLARE_TLV_DB_SCALE(input_gain_tlv, -1725, 75, 0); 75 static const DECLARE_TLV_DB_SCALE(sidetone_vol_tlv, -1800, 300, 0); 83 val = (ucontrol->value.integer.value[0] & 0x07); in snd_soc_tlv320aic23_put_volsw() 86 * 000 = -6db in snd_soc_tlv320aic23_put_volsw() 87 * 001 = - in snd_soc_tlv320aic23_put_volsw() 229 get_score(int adc,int adc_l,int adc_h,int need_adc,int dac,int dac_l,int dac_h,int need_dac) get_score() argument 264 int adc; find_rate() local 300 int adc = (val * sr_adc_mult_table[sr]) / SR_MULT; get_current_sample_rates() local 324 u32 adc, dac; set_sample_rate_control() local 471 tlv320aic23_set_dai_sysclk(struct snd_soc_dai * codec_dai,int clk_id,unsigned int freq,int dir) tlv320aic23_set_dai_sysclk() argument [all...] |
| /linux/drivers/media/dvb-frontends/ |
| H A 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/Documentation/devicetree/bindings/mfd/ |
| H A 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 …]
|
| H A 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/drivers/media/tuners/ |
| H A 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 …]
|
| /linux/drivers/media/i2c/ |
| H A D | max2175.c | 1 // SPDX-License-Identifier: GPL-2.0 23 #include <media/v4l2-ctrls.h> 24 #include <media/v4l2-device.h> 30 #define mxm_dbg(ctx, fmt, arg...) dev_dbg(&ctx->client->dev, fmt, ## arg) 31 #define mxm_err(ctx, fmt, arg...) dev_err(&ctx->client->dev, fmt, ## arg) 36 u32 freq; /* Default freq in Hz */ member 264 struct v4l2_subdev sd; /* Sub-device */ 273 struct v4l2_ctrl *hsls; /* High-side/Low-side polarity */ 280 u32 freq; /* Tuned freq In Hz */ member 285 unsigned long xtal_freq; /* Ref Oscillator freq in Hz */ [all …]
|
| /linux/arch/arm64/boot/dts/allwinner/ |
| H A D | axp803.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 10 interrupt-controller; 11 #interrupt-cells = <1>; 13 ac_power_supply: ac-power { 14 compatible = "x-powers,axp803-ac-power-supply", 15 "x-powers,axp813-ac-power-supply"; 19 axp_adc: adc { 20 compatible = "x-powers,axp803-adc", "x-powers,axp813-adc"; 21 #io-channel-cells = <1>; 25 compatible = "x-powers,axp803-gpio", "x-powers,axp813-gpio"; [all …]
|