| /kernel/linux/linux-6.6/drivers/gpu/drm/exynos/ |
| D | exynos_drm_mic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 31 /* Sysreg registers for MIC */ 37 /* 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/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-6.6/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 …]
|
| /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 …]
|
| /kernel/linux/linux-6.6/sound/soc/codecs/ |
| D | jz4760.c | 1 // SPDX-License-Identifier: GPL-2.0 18 #include <sound/soc-dai.h> 19 #include <sound/soc-dapm.h> 169 static int jz4760_codec_set_bias_level(struct snd_soc_component *codec, in jz4760_codec_set_bias_level() 173 struct regmap *regmap = jz_codec->regmap; in jz4760_codec_set_bias_level() 196 static int jz4760_codec_startup(struct snd_pcm_substream *substream, in jz4760_codec_startup() 199 struct snd_soc_component *codec = dai->component; in jz4760_codec_startup() 201 int ret = 0; in jz4760_codec_startup() 208 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in jz4760_codec_startup() 216 struct snd_soc_component *codec = dai->component; in jz4760_codec_shutdown() [all …]
|
| 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() 216 static int jz4770_codec_startup(struct snd_pcm_substream *substream, in jz4770_codec_startup() 219 struct snd_soc_component *codec = dai->component; in jz4770_codec_startup() 227 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in jz4770_codec_startup() 236 struct snd_soc_component *codec = dai->component; in jz4770_codec_shutdown() 239 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 …]
|
| /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 …]
|
| /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 …]
|
| /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 …]
|
| /kernel/linux/linux-6.6/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> 24 #include "pxa2xx-i2s.h" 34 /* audio clock in Hz - rounded from 12.235MHz */ 37 static int spitz_jack_func; 38 static int spitz_spk_func; 53 /* enable and unmute hp jack, disable mic bias */ in spitz_ext_control() 55 snd_soc_dapm_disable_pin_unlocked(dapm, "Mic Jack"); in spitz_ext_control() 62 /* enable mic jack and bias, mute hp */ in spitz_ext_control() [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-6.6/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-6.6/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 36 int type; 37 unsigned int is_headset_mic:1; 38 unsigned int is_headphone_mic:1; /* Mic-only in headphone jack */ 39 unsigned int has_boost_on_pin:1; 40 int order; 46 int input); 47 int snd_hda_get_pin_label(struct hda_codec *codec, hda_nid_t nid, 49 char *label, int maxlen, int *indexp); [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-6.6/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-2022 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-6.6/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/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 …]
|