/openbmc/linux/drivers/gpu/drm/exynos/ |
H A 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 …]
|
/openbmc/linux/sound/soc/codecs/ |
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A D | jz4725b.c | 1 // SPDX-License-Identifier: GPL-2.0 167 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(jz4725b_dac_tlv, -2250, 150, 0); 169 0, 11, TLV_DB_SCALE_ITEM(-2250, 0, 0), 170 12, 31, TLV_DB_SCALE_ITEM(-2250, 150, 0), 174 0, 11, TLV_DB_SCALE_ITEM(-3350, 200, 0), 175 12, 23, TLV_DB_SCALE_ITEM(-1050, 100, 0), 204 SOC_DOUBLE_R_TLV("Mixer Mic 1 Bypass Playback Volume", 209 SOC_DOUBLE_R_TLV("Mixer Mic 2 Bypass Playback Volume", 228 SOC_SINGLE("High-Pass Filter Capture Switch", 232 SOC_ENUM("Mic Mode Capture Switch", jz4725b_mic_mode_enum), [all …]
|
H A D | tlv320adcx140.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/ 36 unsigned int dai_fmt; 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() 163 /* Digital Volume control. From -100 to 27 dB in 0.5 dB steps */ [all …]
|
H A 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 …]
|
H A 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. 29 #include <linux/mfd/abx500/ab8500-sysctrl.h> 30 #include <linux/mfd/abx500/ab8500-codec.h> 39 #include <sound/soc-dapm.h> 42 #include "ab8500-codec.h" 56 /* Nr of FIR/IIR-coeff banks in ANC-block */ 72 unsigned int count; [all …]
|
/openbmc/linux/sound/soc/ti/ |
H A 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 …]
|
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")), 39 int jack_detection; /* board can detect jack events */ 40 int mclk_freq; /* MCLK frequency speed for twl6040 */ [all …]
|
/openbmc/linux/sound/soc/pxa/ |
H A 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 …]
|
/openbmc/linux/sound/pci/hda/ |
H A 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 …]
|
/openbmc/linux/include/linux/mfd/arizona/ |
H A 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 …]
|
/openbmc/linux/drivers/xen/ |
H A 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 …]
|
/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | nvidia,tegra-audio-rt5631.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/nvidia,tegra-audio-rt5631.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jon Hunter <jonathanh@nvidia.com> 11 - Thierry Reding <thierry.reding@gmail.com> 14 - $ref: nvidia,tegra-audio-common.yaml# 19 - pattern: '^[a-z0-9]+,tegra-audio-rt5631(-[a-z0-9]+)+$' 20 - const: nvidia,tegra-audio-rt5631 22 nvidia,audio-routing: [all …]
|
H A D | nvidia,tegra-audio-wm8903.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/nvidia,tegra-audio-wm8903.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jon Hunter <jonathanh@nvidia.com> 11 - Thierry Reding <thierry.reding@gmail.com> 14 - $ref: nvidia,tegra-audio-common.yaml# 19 - items: 20 - pattern: '^[a-z0-9]+,tegra-audio-wm8903(-[a-z0-9]+)+$' 21 - const: nvidia,tegra-audio-wm8903 [all …]
|
/openbmc/linux/net/mac80211/ |
H A 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 …]
|
/openbmc/linux/sound/soc/amd/vangogh/ |
H A D | acp5x-mach.c | 1 // SPDX-License-Identifier: GPL-2.0+ 13 #include <linux/input-event-codes.h> 18 #include <sound/soc-dapm.h> 27 #define ACP5X_NAU8821_COMP_NAME "i2c-NVTN2020:00" 28 #define ACP5X_NAU8821_DAI_NAME "nau8821-hifi" 29 #define ACP5X_CS35L41_COMP_LNAME "spi-VLV1776:00" 30 #define ACP5X_CS35L41_COMP_RNAME "spi-VLV1776:01" 31 #define ACP5X_CS35L41_DAI_NAME "cs35l41-pcm" 32 #define ACP5X_MAX98388_COMP_LNAME "i2c-ADS8388:00" 33 #define ACP5X_MAX98388_COMP_RNAME "i2c-ADS8388:01" [all …]
|
/openbmc/linux/sound/soc/tegra/ |
H A D | tegra_asoc_machine.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * tegra_asoc_machine.c - Universal ASoC machine driver for NVIDIA Tegra boards. 43 { .pin = "Headset Mic", .mask = SND_JACK_MICROPHONE }, 53 /* Mic Jack */ 54 static int coupled_mic_hp_check(void *data) in coupled_mic_hp_check() 58 /* Detect mic insertion only if 3.5 jack is in */ in coupled_mic_hp_check() 59 if (gpiod_get_value_cansleep(machine->gpiod_hp_det) && in coupled_mic_hp_check() 60 gpiod_get_value_cansleep(machine->gpiod_mic_det)) in coupled_mic_hp_check() 69 { .pin = "Mic Jack", .mask = SND_JACK_MICROPHONE }, 70 { .pin = "Headset Mic", .mask = SND_JACK_MICROPHONE }, [all …]
|
/openbmc/linux/sound/soc/intel/boards/ |
H A 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 …]
|
/openbmc/linux/sound/soc/amd/ |
H A D | acp3x-rt5682-max9836.c | 1 // SPDX-License-Identifier: GPL-2.0+ 11 #include <sound/soc-dapm.h> 37 .pin = "Headset Mic", 53 static int acp3x_5682_init(struct snd_soc_pcm_runtime *rtd) in acp3x_5682_init() 55 int ret; in acp3x_5682_init() 56 struct snd_soc_card *card = rtd->card; in acp3x_5682_init() 58 struct snd_soc_component *component = codec_dai->component; in acp3x_5682_init() 60 dev_info(rtd->dev, "codec dai name = %s\n", codec_dai->name); in acp3x_5682_init() 67 dev_err(rtd->card->dev, in acp3x_5682_init() 76 dev_err(rtd->dev, "can't set rt5682 PLL: %d\n", ret); in acp3x_5682_init() [all …]
|
H A D | acp-rt5645.c | 33 #include <sound/soc-dapm.h> 51 .pin = "Headset Mic", 56 static int cz_aif1_hw_params(struct snd_pcm_substream *substream, in cz_aif1_hw_params() 59 int ret = 0; in cz_aif1_hw_params() 66 dev_err(rtd->dev, "can't set codec pll: %d\n", ret); in cz_aif1_hw_params() 73 dev_err(rtd->dev, "can't set codec sysclk: %d\n", ret); in cz_aif1_hw_params() 80 static int cz_init(struct snd_soc_pcm_runtime *rtd) in cz_init() 82 int ret; in cz_init() 86 codec = asoc_rtd_to_codec(rtd, 0)->component; in cz_init() 87 card = rtd->card; in cz_init() [all …]
|