| /linux/Documentation/devicetree/bindings/sound/ |
| H A D | atmel,sama5d2-pdmic.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/sound/atmel,sama5d2-pdmic.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Claudiu Beznea <claudiu.beznea@microchip.com> 20 const: atmel,sama5d2-pdmic 30 - description: peripheral clock 31 - description: generated clock 33 clock-names: 35 - const: pclk [all …]
|
| H A D | rt5663.txt | 7 - compatible : "realtek,rt5663". 9 - reg : The I2C address of the device. 11 - interrupts : The CODEC's interrupt output. 13 - avdd-supply: Power supply for AVDD, providing 1.8V. 15 - cpvdd-supply: Power supply for CPVDD, providing 3.5V. 19 - "realtek,dc_offset_l_manual" 20 - "realtek,dc_offset_r_manual" 21 - "realtek,dc_offset_l_manual_mic" 22 - "realtek,dc_offset_r_manual_mic" 23 Based on the different PCB layout, add the manual offset value to [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | tlv320adcx140.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/ 40 "ti,gpo-config-1", 41 "ti,gpo-config-2", 42 "ti,gpo-config-3", 43 "ti,gpo-config-4", 162 /* Digital Volume control. From -100 to 27 dB in 0.5 dB steps */ 163 static DECLARE_TLV_DB_SCALE(dig_vol_tlv, -10050, 50, 0); 168 /* DRE Level. From -12 dB to -66 dB in 1 dB steps */ 169 static DECLARE_TLV_DB_SCALE(dre_thresh_tlv, -6600, 100, 0); [all …]
|
| H A D | rt5677-spi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5677-spi.c -- RT5677 ALSA SoC audio codec driver 30 #include "rt5677-spi.h" 39 * DataPhase word size of 16-bit commands is 2 bytes. 40 * DataPhase word size of 32-bit commands is 4 bytes. 42 * The DSP CPU is little-endian. 54 #define RT5677_MIC_BUF_BYTES ((u32)(RT5677_BUF_BYTES_TOTAL - \ 66 size_t dma_offset; /* zero-based offset into runtime->dma_area */ 68 u32 mic_read_offset; /* zero-based offset into DSP's mic buffer */ 87 /* The DAI name "rt5677-dsp-cpu-dai" is not used. The actual DAI name [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 /* -7 [all...] |
| H A D | da7219.c | 1 // 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 …]
|
| H A D | mt6351.c | 1 // 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 …]
|
| H A D | ssm2602.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 71 "Line", "Mic", 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); 97 SOC_SINGLE("Store DC Offset Switch", SSM2602_APDIGI, 4, 1, 0), 99 SOC_ENUM("Playback De-emphasis", ssm2602_enum[1]), 110 SOC_SINGLE("Mic Boost (+20dB)", SSM2602_APANA, 0, 1, 0), 111 SOC_SINGLE("Mic Boost2 (+20dB)", SSM2602_APANA, 8, 1, 0), 118 SOC_DAPM_SINGLE("Mic Sidetone Switch", SSM2602_APANA, 5, 1, 0), [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 61 static const char *wm8731_input_select[] = {"Line In", "Mic"}; 76 if (wm8731->deemph) { in wm8731_set_deemph() 79 if (abs(wm8731_deemph[i] - wm8731->playback_fs) < in wm8731_set_deemph() 80 abs(wm8731_deemph[best] - wm8731->playback_fs)) in wm8731_set_deemph() 90 dev_dbg(component->dev, "Set deemphasis %d (%dHz)\n", in wm8731_set_deemph() 102 ucontrol->value.integer.value[0] = wm8731->deemph; in wm8731_get_deemph() 112 unsigned int deemph = ucontrol->value.integer.value[0]; in wm8731_put_deemph() [all …]
|
| H A D | da7218.c | 1 // 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 …]
|
| H A D | wm8940.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8940.c -- WM8940 ALSA Soc Audio driver 155 static const char *wm8940_companding[] = { "Off", "NC", "u-law", "A-law" }; 173 static DECLARE_TLV_DB_SCALE(wm8940_spk_vol_tlv, -5700, 100, 1); 174 static DECLARE_TLV_DB_SCALE(wm8940_att_tlv, -1000, 1000, 0); 175 static DECLARE_TLV_DB_SCALE(wm8940_pga_vol_tlv, -1200, 75, 0); 176 static DECLARE_TLV_DB_SCALE(wm8940_alc_min_tlv, -1200, 600, 0); 178 static DECLARE_TLV_DB_SCALE(wm8940_alc_tar_tlv, -2250, 50, 0); 180 static DECLARE_TLV_DB_SCALE(wm8940_lim_thresh_tlv, -600, 100, 0); 181 static DECLARE_TLV_DB_SCALE(wm8940_adc_tlv, -12750, 50, 1); [all …]
|
| H A D | tlv320aic31xx.h | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2014-2017 Texas Instruments Incorporated - https://www.ti.com/ 50 #define AIC31XX_PLLPR AIC31XX_REG(0, 5) /* PLL P and R-VAL register */ 51 #define AIC31XX_PLLJ AIC31XX_REG(0, 6) /* PLL J-VAL register */ 52 #define AIC31XX_PLLDMSB AIC31XX_REG(0, 7) /* PLL D-VAL MSB register */ 53 #define AIC31XX_PLLDLSB AIC31XX_REG(0, 8) /* PLL D-VAL LSB register */ 65 #define AIC31XX_DATA_OFFSET AIC31XX_REG(0, 28) /* Audio Data Slot Offset Programming */ 90 #define AIC31XX_ADCSETUP AIC31XX_REG(0, 81) /* ADC Digital Mic */ 96 #define AIC31XX_SPKAMP AIC31XX_REG(1, 32) /* Class-D Speakear Amplifier */ 98 #define AIC31XX_SPPGARAMP AIC31XX_REG(1, 34) /* Output Driver PGA Ramp-Down Period Control */ [all …]
|
| /linux/net/sunrpc/auth_gss/ |
| H A D | auth_gss.c | 1 // SPDX-License-Identifier: BSD-3-Clause 53 * This compile-time check verifies that we will not exceed the 70 * using integrity (two 4-byte integers): */ 95 * for the new text-based upcall; dentry[0] is named after the 97 * backwards-compatibility with older gssd's. 116 refcount_inc(&ctx->count); in gss_get_ctx() 123 if (refcount_dec_and_test(&ctx->count)) in gss_put_ctx() 130 * and a new one is protected by the pipe->lock. 137 if (!test_bit(RPCAUTH_CRED_NEW, &cred->cr_flags)) in gss_cred_set_ctx() 140 rcu_assign_pointer(gss_cred->gc_ctx, ctx); in gss_cred_set_ctx() [all …]
|
| /linux/sound/pci/vx222/ |
| H A D | vx222.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 23 unsigned int regSELMIC; /* current SELMIC reg. (for VX222 Mic) */ 25 int input_level[2]; /* input level for vx222 mic */ 26 int mic_level; /* mic level for vx222 mic */ 37 /* Offset of registers with base equal to portDSP. */
|
| /linux/sound/soc/ti/ |
| H A D | omap-abe-twl6040.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * omap-abe-twl6040.c -- SoC audio for TI OMAP based boards with ABE and 20 #include "omap-dmic.h" 21 #include "omap-mcpdm.h" 26 DAILINK_COMP_ARRAY(COMP_CODEC("twl6040-codec", 27 "twl6040-legacy")), 32 DAILINK_COMP_ARRAY(COMP_CODEC("dmic-codec", 33 "dmic-hifi")), 50 struct snd_soc_card *card = rtd->card; in omap_abe_hw_params() 55 clk_id = twl6040_get_clk_id(codec_dai->component); in omap_abe_hw_params() [all …]
|
| /linux/sound/hda/codecs/ |
| H A D | conexant.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Tobin Davis <tdavis@dsl-only.net> 38 unsigned int dc_input_bias; /* offset into olpc_xo_dc_bias */ 63 spec->gen.beep_nid = nid; in set_beep_amp() 65 knew = snd_hda_gen_add_kctl(&spec->gen, NULL, in set_beep_amp() 68 return -ENOME in set_beep_amp() [all...] |
| /linux/sound/soc/atmel/ |
| H A D | atmel-pdmic.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 18 #include "atmel-pdmic.h" 40 .compatible = "atmel,sama5d2-pdmic", 52 struct device_node *np = dev->of_node; in atmel_pdmic_dt_init() 57 return ERR_PTR(-EINVAL); in atmel_pdmic_dt_init() 62 return ERR_PTR(-ENOMEM); in atmel_pdmic_dt_init() 64 if (of_property_read_string(np, "atmel,model", &pdata->card_name)) in atmel_pdmic_dt_init() 65 pdata->card_name = "PDMIC"; in atmel_pdmic_dt_init() 67 if (of_property_read_u32(np, "atmel,mic-min-freq", in atmel_pdmic_dt_init() 68 &pdata->mic_min_freq)) { in atmel_pdmic_dt_init() [all …]
|
| /linux/sound/pcmcia/vx/ |
| H A D | vxp_ops.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 41 return chip->port + vxp_reg_offset[reg]; in vxp_reg_addr() 45 * snd_vx_inb - read a byte from the register 46 * @offset: register offset 48 static unsigned char vxp_inb(struct vx_core *chip, int offset) in vxp_inb() argument 58 vxp_outb(struct vx_core * chip,int offset,unsigned char val) vxp_outb() argument 359 int offset = pipe->hw_ptr; vxp_dma_write() local 399 int offset = pipe->hw_ptr; vxp_dma_read() local [all...] |
| /linux/sound/soc/samsung/ |
| H A D | speyside.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 #include <sound/soc-dapm.h> 27 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[1]); in speyside_set_bias_level() 30 if (dapm->dev != codec_dai->dev) in speyside_set_bias_level() 63 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[1]); in speyside_set_bias_level_post() 66 if (dapm->dev != codec_dai->dev) in speyside_set_bias_level_post() 71 if (card->dapm.bias_level == SND_SOC_BIAS_STANDBY) { in speyside_set_bias_level_post() 101 .pin = "Headset Mic", 127 /* Re-run DAPM to make sure we're using the correct mic bias */ in speyside_set_polarity() 146 struct snd_soc_component *component = dai->component; in speyside_wm8996_init() [all …]
|
| /linux/sound/pci/ca0106/ |
| H A D | ca0106.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (c) 2004 James Courtier-Dutton <James@superbug.demon.co.uk> 50 * Implement support for Line-in capture on SB Live 24bit. 73 #define IPR_MIDI_RX_B 0x00020000 /* MIDI UART-B Receive buffer non-empty */ 74 #define IPR_MIDI_TX_B 0x00010000 /* MIDI UART-B Transmit buffer empty */ 87 #define IPR_MIDI_RX_A 0x00000004 /* MIDI UART-A Receive buffer non-empty */ 88 #define IPR_MIDI_TX_A 0x00000002 /* MIDI UART-A Transmit buffer empty */ 93 #define INTE_MIDI_RX_B 0x00020000 /* MIDI UART-B Receive buffer non-empty */ 94 #define INTE_MIDI_TX_B 0x00010000 /* MIDI UART-B Transmit buffer empty */ 107 #define INTE_MIDI_RX_A 0x00000004 /* MIDI UART-A Receive buffer non-empty */ [all …]
|
| /linux/net/rxrpc/ |
| H A D | rxgk_common.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* Common bits for GSSAPI-based RxRPC security. 13 * Per-key number context. This is replaced when the connection is rekeyed. 65 * offset and length are updated to reflect the actual content of the encrypted 76 size_t offset = 0, len = *_len; in rxgk_decrypt_skb() local 85 &offset, &len); in rxgk_decrypt_skb() 88 *_offset += offset; in rxgk_decrypt_skb() 91 case -EBADMSG: /* Checksum mismatch. */ in rxgk_decrypt_skb() 92 case -EPROTO: in rxgk_decrypt_skb() 95 case -EMSGSIZE: in rxgk_decrypt_skb() [all …]
|
| /linux/drivers/usb/typec/mux/ |
| H A D | wcd939x-usbss.c | 1 // SPDX-License-Identifier: GPL-2.0-only 72 #define WCD_USBSS_SWITCH_SELECT0_DP_AUXP_SWITCHES BIT(7) /* 1-> MG2 */ 73 #define WCD_USBSS_SWITCH_SELECT0_DP_AUXM_SWITCHES BIT(6) /* 1-> MG2 */ 76 #define WCD_USBSS_SWITCH_SELECT0_SENSE_SWITCHES BIT(1) /* 1-> SBU2 */ 77 #define WCD_USBSS_SWITCH_SELECT0_MIC_SWITCHES BIT(0) /* 1-> MG2 */ 89 #define WCD_USBSS_SWITCH_SELECT1_AGND_SWITCHES BIT(0) /* 1-> MG2 */ 224 unsigned int offset; member 242 bool reverse = (usbss->orientation == TYPEC_ORIENTATION_REVERSE); in wcd939x_usbss_set() 249 if (usbss->mode < TYPEC_STATE_MODAL || in wcd939x_usbss_set() 250 (!usbss->svid && (usbss->mode == TYPEC_MODE_USB2 || in wcd939x_usbss_set() [all …]
|
| /linux/sound/pci/ac97/ |
| H A D | ac97_patch.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 33 err = snd_ctl_add(ac97->bus->card, snd_ac97_cnew(&controls[idx], ac97)); in patch_build_controls() 46 kctl = snd_ctl_find_id_mixer(ac97->bus->card, name); in reset_tlv() 47 if (kctl && kctl->tl in reset_tlv() [all...] |
| /linux/sound/pci/oxygen/ |
| H A D | xonar_pcm179x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 * ------ 932 s8 offset; st_hp_volume_offset_put() local [all...] |
| /linux/drivers/pinctrl/cirrus/ |
| H A D | pinctrl-cs42l43.c | 1 // SPDX-License-Identifier: GPL-2.0 14 #include <linux/mfd/cs42l43-regs.h> 25 #include <linux/pinctrl/pinconf-generic.h> 28 #include "../pinctrl-utils.h" 139 "gpio", "spdif", "irq", "mic-shutter", "spk-shutter", 154 PINCTRL_PINFUNCTION("mic-shutter", cs42l43_pin_shutter_groups, 156 PINCTRL_PINFUNCTION("spk-shutter", cs42l43_pin_shutter_groups, 191 dev_dbg(priv->dev, "Setting %s to %s\n", in cs42l43_pin_set_mux() 213 if (priv->shutters_locked && reg == CS42L43_SHUTTER_CONTROL) { in cs42l43_pin_set_mux() 214 dev_err(priv->dev, "Shutter configuration not available\n"); in cs42l43_pin_set_mux() [all …]
|