| /kernel/linux/linux-5.10/drivers/gpu/drm/exynos/ |
| D | exynos_drm_mic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 30 /* Sysreg registers for MIC */ 36 /* MIC registers */ 109 static void mic_set_path(struct exynos_mic *mic, bool enable) in mic_set_path() argument 111 int ret; in mic_set_path() 112 unsigned int val; in mic_set_path() 114 ret = regmap_read(mic->sysreg, DSD_CFG_MUX, &val); in mic_set_path() 116 DRM_DEV_ERROR(mic->dev, in mic_set_path() 117 "mic: Failed to read system register\n"); in mic_set_path() 122 if (mic->i80_mode) in mic_set_path() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/ti/ |
| D | omap-twl4030.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * omap-twl4030.c -- SoC audio for TI SoC based boards with twl4030 codec 5 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com 20 #include <linux/platform_data/omap-twl4030.h> 31 #include "omap-mcbsp.h" 34 int jack_detect; /* board can detect jack events */ 38 static int omap_twl4030_hw_params(struct snd_pcm_substream *substream, in omap_twl4030_hw_params() 42 unsigned int fmt; in omap_twl4030_hw_params() 56 return -EINVAL; in omap_twl4030_hw_params() 73 SND_SOC_DAPM_MIC("Main Mic", NULL), [all …]
|
| 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")), 39 int jack_detection; /* board can detect jack events */ 40 int mclk_freq; /* MCLK frequency speed for twl6040 */ [all …]
|
| /kernel/linux/linux-5.10/sound/soc/codecs/ |
| D | jz4770.c | 1 // SPDX-License-Identifier: GPL-2.0 17 #include <sound/soc-dai.h> 18 #include <sound/soc-dapm.h> 185 static int jz4770_codec_set_bias_level(struct snd_soc_component *codec, in jz4770_codec_set_bias_level() 189 struct regmap *regmap = jz_codec->regmap; in jz4770_codec_set_bias_level() 213 static int jz4770_codec_startup(struct snd_pcm_substream *substream, in jz4770_codec_startup() 216 struct snd_soc_component *codec = dai->component; in jz4770_codec_startup() 224 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in jz4770_codec_startup() 233 struct snd_soc_component *codec = dai->component; in jz4770_codec_shutdown() 236 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in jz4770_codec_shutdown() [all …]
|
| D | wm9712.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm9712.c -- ALSA Soc WM9712 codec support 5 * Copyright 2006-12 Wolfson Microelectronics PLC. 30 unsigned int hp_mixer[2]; 74 static bool wm9712_volatile_reg(struct device *dev, unsigned int reg) in wm9712_volatile_reg() 108 static const char *wm9712_mic[] = {"Mic 1", "Differential", "Mic 2", 110 static const char *wm9712_rec_sel[] = {"Mic", "NC", "NC", "Speaker Mixer", 113 static const char *wm9712_diff_sel[] = {"Mic", "Line"}; 115 static const DECLARE_TLV_DB_SCALE(main_tlv, -3450, 150, 0); 159 SOC_SINGLE("Mic Headphone Volume", AC97_VIDEO, 12, 7, 1), [all …]
|
| D | wm9713.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm9713.c -- ALSA Soc WM9713 codec support 5 * Copyright 2006-10 Wolfson Microelectronics PLC. 8 * Features:- 38 unsigned int hp_mixer[2]; 46 static const char *wm9713_mic_mixer[] = {"Stereo", "Mic 1", "Mic 2", "Mute"}; 49 {"Mic 1", "Mic 2", "Line", "Mono In", "Headphone", "Speaker", 66 static const char *wm9713_mic_select[] = {"Mic 1", "Mic 2 A", "Mic 2 B"}; 70 SOC_ENUM_SINGLE(AC97_LINE, 3, 4, wm9713_mic_mixer), /* record mic mixer 0 */ 88 SOC_ENUM_SINGLE(AC97_3D_CONTROL, 12, 3, wm9713_mic_select), /* mic selection 18 */ [all …]
|
| D | ak4535.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * ak4535.c -- AK4535 ALSA Soc Audio driver 31 unsigned int sysclk; 55 static bool ak4535_volatile(struct device *dev, unsigned int reg) in ak4535_volatile() 65 static const char *ak4535_mono_gain[] = {"+6dB", "-17dB"}; 66 static const char *ak4535_mono_out[] = {"(L + R)/2", "Hi-Z"}; 86 SOC_SINGLE("Mic Boost (+20dB) Switch", AK4535_MIC, 0, 1, 0), 87 SOC_ENUM("Mic Select", ak4535_enum[4]), 98 SOC_SINGLE("Mic Sidetone Volume", AK4535_VOL, 4, 7, 0), 103 SOC_DAPM_SINGLE("Mic Sidetone Switch", AK4535_SIG1, 4, 1, 0), [all …]
|
| D | ak4641.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * ak4641.c -- AK4641 ALSA Soc Audio driver 52 unsigned int sysclk; 53 int deemph; 54 int playback_fs; 68 static const int deemph_settings[] = {44100, 0, 48000, 32000}; 70 static int ak4641_set_deemph(struct snd_soc_component *component) in ak4641_set_deemph() 73 int i, best = 0; in ak4641_set_deemph() 77 if (ak4641->deemph && deemph_settings[i] != 0 && in ak4641_set_deemph() 78 abs(deemph_settings[i] - ak4641->playback_fs) < in ak4641_set_deemph() [all …]
|
| D | tlv320adcx140.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/ 35 unsigned int dai_fmt; 36 unsigned int tdm_delay; 37 unsigned int slot_width; 41 "ti,gpo-config-1", 42 "ti,gpo-config-2", 43 "ti,gpo-config-3", 44 "ti,gpo-config-4", 138 static bool adcx140_volatile(struct device *dev, unsigned int reg) in adcx140_volatile() [all …]
|
| D | wm9705.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm9705.c -- ALSA Soc WM9705 codec support 88 SOC_SINGLE("Mic Playback Volume", AC97_MIC, 0, 31, 1), 89 SOC_SINGLE("Mic 20dB Boost Switch", AC97_MIC, 6, 1, 0), 94 static const char *wm9705_mic[] = {"Mic 1", "Mic 2"}; 95 static const char *wm9705_rec_sel[] = {"Mic", "CD", "NC", "NC", 109 SOC_DAPM_SINGLE("Mic Playback Switch", AC97_MIC, 15, 1, 1), 114 /* Mic source */ 126 SND_SOC_DAPM_MUX("Mic Source", SND_SOC_NOPM, 0, 0, 148 SND_SOC_DAPM_PGA("Mic PGA", SND_SOC_NOPM, 0, 0, NULL, 0), [all …]
|
| D | ab8500-codec.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) ST-Ericsson SA 2012 8 * for ST-Ericsson. 14 * for ST-Ericsson. 31 #include <linux/mfd/abx500/ab8500-sysctrl.h> 32 #include <linux/mfd/abx500/ab8500-codec.h> 41 #include <sound/soc-dapm.h> 44 #include "ab8500-codec.h" 58 /* Nr of FIR/IIR-coeff banks in ANC-block */ 74 unsigned int count; [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 …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/ |
| D | nvidia,tegra-audio-wm8903.txt | 4 - compatible : "nvidia,tegra-audio-wm8903" 5 - clocks : Must contain an entry for each entry in clock-names. 6 See ../clocks/clock-bindings.txt for details. 7 - clock-names : Must include the following entries: 8 - pll_a 9 - pll_a_out0 10 - mclk (The Tegra cdev1/extern1 clock, which feeds the CODEC's mclk) 11 - nvidia,model : The user-visible name of this sound complex. 12 - nvidia,audio-routing : A list of the connections between audio components. 19 * Int Spk [all …]
|
| D | imx-audio-es8328.txt | 4 - compatible : "fsl,imx-audio-es8328" 5 - model : The user-visible name of this sound complex 6 - ssi-controller : The phandle of the i.MX SSI controller 7 - jack-gpio : Optional GPIO for headphone jack 8 - audio-amp-supply : Power regulator for speaker amps 9 - audio-codec : The phandle of the ES8328 audio codec 10 - audio-routing : A list of the connections between audio components. 17 * audio-amp 28 * Mic PGA 33 * Mic Jack [all …]
|
| /kernel/linux/linux-5.10/sound/soc/pxa/ |
| D | spitz.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * spitz.c -- SoC audio for Sharp SL-Cxx00 models Spitz, Borzoi and Akita 22 #include <asm/mach-types.h> 25 #include "pxa2xx-i2s.h" 35 /* audio clock in Hz - rounded from 12.235MHz */ 38 static int spitz_jack_func; 39 static int spitz_spk_func; 40 static int spitz_mic_gpio; 54 /* enable and unmute hp jack, disable mic bias */ in spitz_ext_control() 56 snd_soc_dapm_disable_pin_unlocked(dapm, "Mic Jack"); in spitz_ext_control() [all …]
|
| D | tosa.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * tosa.c -- SoC audio for Tosa 12 * 1 - Jack Insertion 13 * 5 - Hookswitch (headset answer/hang up switch) 25 #include <asm/mach-types.h> 36 static int tosa_jack_func; 37 static int tosa_spk_func; 47 snd_soc_dapm_disable_pin_unlocked(dapm, "Mic (Internal)"); in tosa_ext_control() 52 snd_soc_dapm_enable_pin_unlocked(dapm, "Mic (Internal)"); in tosa_ext_control() 57 snd_soc_dapm_disable_pin_unlocked(dapm, "Mic (Internal)"); in tosa_ext_control() [all …]
|
| D | mioa701_wm9713.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 * +--------+ +-------------------+ Rear Speaker 11 * | | | | /-+ 12 * | +--->----->---+MONOIN SPKL+--->----+-+ | 14 * | +--->----->---+PCBEEP SPKR+--->----+-+ | 15 * | CHIP | | | \-+ 16 * | +---<-----<---+MONO | 18 * +--------+ | | /-+ 19 * | HPL+--->----+-+ | 21 * | OUT3+--->----+-+ | [all …]
|
| /kernel/linux/linux-5.10/include/linux/mfd/arizona/ |
| D | pdata.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 11 #include <dt-bindings/mfd/arizona.h> 12 #include <linux/regulator/arizona-ldo1.h> 13 #include <linux/regulator/arizona-micsupp.h> 36 #define ARIZONA_GPN_FN_MASK 0x007F /* GPN_FN - [6:0] */ 37 #define ARIZONA_GPN_FN_SHIFT 0 /* GPN_FN - [6:0] */ 38 #define ARIZONA_GPN_FN_WIDTH 7 /* GPN_FN - [6:0] */ 59 int mV; /** Regulated voltage */ 60 unsigned int ext_cap:1; /** External capacitor fitted */ 61 unsigned int discharge:1; /** Actively discharge */ [all …]
|
| /kernel/linux/linux-5.10/sound/pci/hda/ |
| D | hda_auto_parser.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * BIOS auto-parser helper functions for HD-audio 34 int type; 35 unsigned int is_headset_mic:1; 36 unsigned int is_headphone_mic:1; /* Mic-only in headphone jack */ 37 unsigned int has_boost_on_pin:1; 43 int input); 44 int snd_hda_get_pin_label(struct hda_codec *codec, hda_nid_t nid, 46 char *label, int maxlen, int *indexp); 50 INPUT_PIN_ATTR_INT, /* internal mic/line-in */ [all …]
|
| /kernel/linux/linux-5.10/sound/soc/samsung/ |
| D | neo1973_wm8753.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // neo1973_wm8753.c - SoC audio for Openmoko Neo1973 and Freerunner devices 18 #include "regs-iis.h" 20 #include "s3c24xx-i2s.h" 22 static int neo1973_hifi_hw_params(struct snd_pcm_substream *substream, in neo1973_hifi_hw_params() 28 unsigned int pll_out = 0, bclk = 0; in neo1973_hifi_hw_params() 29 int ret = 0; in neo1973_hifi_hw_params() 97 static int neo1973_hifi_hw_free(struct snd_pcm_substream *substream) in neo1973_hifi_hw_free() 114 static int neo1973_voice_hw_params(struct snd_pcm_substream *substream, in neo1973_voice_hw_params() 119 unsigned int pcmdiv = 0; in neo1973_voice_hw_params() [all …]
|
| /kernel/linux/linux-5.10/drivers/xen/ |
| D | mcelog.c | 69 static int xen_mce_chrdev_open_count; /* #times opened */ 70 static int xen_mce_chrdev_open_exclu; /* already open exclusive? */ 74 static int xen_mce_chrdev_open(struct inode *inode, struct file *file) in xen_mce_chrdev_open() 79 (xen_mce_chrdev_open_count && (file->f_flags & O_EXCL))) { in xen_mce_chrdev_open() 82 return -EBUSY; in xen_mce_chrdev_open() 85 if (file->f_flags & O_EXCL) in xen_mce_chrdev_open() 94 static int xen_mce_chrdev_release(struct inode *inode, struct file *file) in xen_mce_chrdev_release() 98 xen_mce_chrdev_open_count--; in xen_mce_chrdev_release() 111 int i, err; in xen_mce_chrdev_read() 118 err = -EINVAL; in xen_mce_chrdev_read() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/fsl/ |
| D | mx27vis-aic32x4.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // mx27vis-aic32x4.c 7 // Author: Javier Martin <javier.martin@vista-silicon.com> 14 #include <linux/platform_data/asoc-mx27vis.h> 18 #include <sound/soc-dapm.h> 20 #include <asm/mach-types.h> 23 #include "imx-ssi.h" 24 #include "imx-audmux.h" 29 static int mx27vis_amp_gain; 30 static int mx27vis_amp_mute; [all …]
|
| /kernel/linux/linux-5.10/net/mac80211/ |
| D | wpa.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright 2002-2004, Instant802 Networks, Inc. 5 * Copyright (C) 2016-2017 Intel Deutschland GmbH 6 * Copyright (C) 2020-2021 Intel Corporation 32 u8 *data, *key, *mic; in ieee80211_tx_h_michael_mic_add() local 34 unsigned int hdrlen; in ieee80211_tx_h_michael_mic_add() 36 struct sk_buff *skb = tx->skb; in ieee80211_tx_h_michael_mic_add() 38 int tail; in ieee80211_tx_h_michael_mic_add() 40 hdr = (struct ieee80211_hdr *)skb->data; in ieee80211_tx_h_michael_mic_add() 41 if (!tx->key || tx->key->conf.cipher != WLAN_CIPHER_SUITE_TKIP || in ieee80211_tx_h_michael_mic_add() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/intel/boards/ |
| D | cht_bsw_rt5645.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * cht-bsw-rt5645.c - ASoc Machine driver for Intel Cherryview-based platforms 25 #include <sound/soc-acpi.h> 27 #include "../atom/sst-atom-controls.h" 28 #include "../common/soc-intel-quirks.h" 31 #define CHT_CODEC_DAI1 "rt5645-aif1" 32 #define CHT_CODEC_DAI2 "rt5645-aif2" 36 int codec_type; 67 static int platform_clock_control(struct snd_soc_dapm_widget *w, in platform_clock_control() 68 struct snd_kcontrol *k, int event) in platform_clock_control() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/mediatek/mt8173/ |
| D | mt8173-max98090.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * mt8173-max98090.c -- MT8173 MAX98090 ALSA SoC machine driver 23 .pin = "Headset Mic", 30 SND_SOC_DAPM_MIC("Int Mic", NULL), 32 SND_SOC_DAPM_MIC("Headset Mic", NULL), 38 {"DMICL", NULL, "Int Mic"}, 41 {"Headset Mic", NULL, "MICBIAS"}, 42 {"IN34", NULL, "Headset Mic"}, 47 SOC_DAPM_PIN_SWITCH("Int Mic"), 49 SOC_DAPM_PIN_SWITCH("Headset Mic"), [all …]
|