/openbmc/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 …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | wm8753.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm8753.c -- WM8753 ALSA Soc Audio driver 5 * Copyright 2003-11 Wolfson Microelectronics PLC. 12 * Dual DAI:- 23 * Fast DAI switching:- 166 static const char *wm8753_line_mix[] = {"Line 1 + 2", "Line 1 - 2", 171 static const char *wm8753_rxmsel[] = {"RXP - RXN", "RXP + RXN", "RXP", "RXN"}; 172 static const char *wm8753_sidetone_mux[] = {"Left PGA", "Mic 1", "Mic 2", 178 static const char *wm8753_radcsel[] = {"PGA", "Line or RXP-RXN", "Sidetone"}; 179 static const char *wm8753_ladcsel[] = {"PGA", "Line or RXP-RXN", "Line"}; [all …]
|
H A D | tlv320adcx140.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/ 41 "ti,gpo-config-1", 42 "ti,gpo-config-2", 43 "ti,gpo-config-3", 44 "ti,gpo-config-4", 163 /* Digital Volume control. From -100 to 27 dB in 0.5 dB steps */ 164 static DECLARE_TLV_DB_SCALE(dig_vol_tlv, -10050, 50, 0); 169 /* DRE Level. From -12 dB to -66 dB in 1 dB steps */ 170 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 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 …]
|
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 | da9055.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 59 /* Input - Gain, Select and Filter Registers */ 72 /* Output - Gain, Select and Filter Registers */ 219 /* MIC bias select bit fields */ 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 …]
|
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 | mt6358.c | 1 // 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() 115 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2_CLR, in playback_gpio_set() 117 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2_SET, in playback_gpio_set() 119 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2, in playback_gpio_set() 130 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2_CLR, in playback_gpio_reset() 132 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2, in playback_gpio_reset() 134 regmap_update_bits(priv->regmap, MT6358_GPIO_DIR0, in playback_gpio_reset() 141 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE3_CLR, in capture_gpio_set() [all …]
|
/openbmc/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. */
|
/openbmc/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 …]
|
/openbmc/linux/drivers/edac/ |
H A D | cell_edac.c | 2 * Cell MIC driver for ECC counting 20 #include <asm/cell-regs.h> 36 struct cell_edac_priv *priv = mci->pvt_info; in cell_edac_count_ce() 37 struct csrow_info *csrow = mci->csrows[0]; in cell_edac_count_ce() 38 unsigned long address, pfn, offset, syndrome; in cell_edac_count_ce() local 40 dev_dbg(mci->pdev, "ECC CE err on node %d, channel %d, ar = 0x%016llx\n", in cell_edac_count_ce() 41 priv->node, chan, ar); in cell_edac_count_ce() 45 if (priv->chanmask == 0x3) in cell_edac_count_ce() 48 offset = address & ~PAGE_MASK; in cell_edac_count_ce() 53 csrow->first_page + pfn, offset, syndrome, in cell_edac_count_ce() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/i2c/ |
H A D | i2c-pnx.txt | 5 - reg: Offset and length of the register set for the device 6 - compatible: should be "nxp,pnx-i2c" 7 - interrupts: configure one interrupt line 8 - #address-cells: always 1 (for i2c addresses) 9 - #size-cells: always 0 13 - clock-frequency: desired I2C bus clock frequency in Hz, Default: 100000 Hz 18 compatible = "nxp,pnx-i2c"; 20 interrupt-parent = <&mic>; 22 #address-cells = <1>; 23 #size-cells = <0>; [all …]
|
/openbmc/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 …]
|
/openbmc/linux/sound/pci/hda/ |
H A D | patch_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...] |
/openbmc/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 50 return inb(vxp_reg_addr(chip, offset)); in vxp_inb() 54 * snd_vx_outb - write a byte on the register 55 * @offset: the register offset 58 static void vxp_outb(struct vx_core *chip, int offset, unsigned char val) in vxp_outb() argument 60 outb(val, vxp_reg_addr(chip, offset)); in vxp_outb() [all …]
|
/openbmc/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 …]
|
/openbmc/u-boot/arch/x86/dts/ |
H A D | chromebook_link.dts | 1 /dts-v1/; 3 #include <dt-bindings/gpio/x86-gpio.h> 4 #include <dt-bindings/sound/azalia.h> 16 compatible = "google,link", "intel,celeron-ivybridge"; 29 #address-cells = <1>; 30 #size-cells = <0>; 34 compatible = "intel,core-gen3"; 36 intel,apic-id = <0>; 41 compatible = "intel,core-gen3"; 43 intel,apic-id = <1>; [all …]
|
/openbmc/linux/drivers/net/wireless/cisco/ |
H A D | airo.c | 93 /* Include Wireless Extension definition and check version - Jean II */ 146 "LostSync-MaxRetry", 147 "LostSync-MissedBeacons", 148 "LostSync-ArlExceeded", 149 "LostSync-Deauth", 150 "LostSync-Disassoced", 151 "LostSync-TsfTiming", 203 "LostSync-HostReq", 213 (char*)-1 }; 260 …"If non-zero, the driver will keep looping through the authentication options until an association… [all …]
|
/openbmc/linux/drivers/staging/ks7010/ |
H A D | ks_hostif.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2005-2008 KeyStream Corp. 23 priv->sme_i.qhead = (priv->sme_i.qhead + 1) % SME_EVENT_BUFF_SIZE; in inc_smeqhead() 28 priv->sme_i.qtail = (priv->sme_i.qtail + 1) % SME_EVENT_BUFF_SIZE; in inc_smeqtail() 33 return CIRC_CNT_TO_END(priv->sme_i.qhead, priv->sme_i.qtail, in cnt_smeqbody() 41 data = *priv->rxp++; in get_byte() 43 --(priv->rx_size); in get_byte() 74 ps_status = atomic_read(&priv->psstatus.status); in ks_wlan_hw_wakeup_task() 78 time_left = wait_for_completion_interruptible_timeout(&priv->psstatus.wakeup_wait, in ks_wlan_hw_wakeup_task() 81 netdev_dbg(priv->net_dev, "wake up timeout or interrupted !!!\n"); in ks_wlan_hw_wakeup_task() [all …]
|
/openbmc/linux/arch/arm/boot/dts/ti/omap/ |
H A D | omap3-devkit8000-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 6 #include <dt-bindings/input/input.h> 16 compatible = "gpio-leds"; 18 led-heartbeat { 20 gpios = <&gpio6 26 GPIO_ACTIVE_HIGH>; /* 186 -> LED1 */ 21 default-state = "on"; 22 linux,default-trigger = "heartbeat"; 25 led-mmc { 27 gpios = <&gpio6 3 GPIO_ACTIVE_HIGH>; /* 163 -> LED2 */ 28 default-state = "on"; [all …]
|
/openbmc/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 …]
|