/Linux-v6.1/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 unsigned int is_headphone_mic:1; /* Mic-only in headphone jack */ 42 const struct auto_pin_cfg *cfg, 45 const struct auto_pin_cfg *cfg, 50 INPUT_PIN_ATTR_INT, /* internal mic/line-in */ 51 INPUT_PIN_ATTR_DOCK, /* docking mic/line-in */ 52 INPUT_PIN_ATTR_NORMAL, /* mic/line-in jack */ 53 INPUT_PIN_ATTR_REAR, /* mic/line-in jack in rear */ 54 INPUT_PIN_ATTR_FRONT, /* mic/line-in jack in front */ [all …]
|
D | hda_auto_parser.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * BIOS auto-parser helper functions for HD-audio 38 return (int)(a->seq - b->seq); in compare_seq() 55 /* add the found input-pin to the cfg->inputs[] table */ 56 static void add_auto_cfg_input_pin(struct hda_codec *codec, struct auto_pin_cfg *cfg, in add_auto_cfg_input_pin() argument 59 if (cfg->num_inputs < AUTO_CFG_MAX_INS) { in add_auto_cfg_input_pin() 60 cfg->inputs[cfg->num_inputs].pin = nid; in add_auto_cfg_input_pin() 61 cfg->inputs[cfg->num_inputs].type = type; in add_auto_cfg_input_pin() 62 cfg->inputs[cfg->num_inputs].has_boost_on_pin = in add_auto_cfg_input_pin() 64 cfg->num_inputs++; in add_auto_cfg_input_pin() [all …]
|
D | hda_generic.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 32 * snd_hda_gen_spec_init - initialize hda_gen_spec struct 39 snd_array_init(&spec->kctls, sizeof(struct snd_kcontrol_new), 32); in snd_hda_gen_spec_init() 40 snd_array_init(&spec->paths, sizeof(struct nid_path), 8); in snd_hda_gen_spec_init() 41 snd_array_init(&spec->loopback_list, sizeof(struct hda_amp_list), 8); in snd_hda_gen_spec_init() 42 mutex_init(&spec->pcm_mutex); in snd_hda_gen_spec_init() 48 * snd_hda_gen_add_kctl - Add a new kctl_new struct from the template 62 struct snd_kcontrol_new *knew = snd_array_new(&spec->kctls); in snd_hda_gen_add_kctl() 67 knew->name = kstrdup(name, GFP_KERNEL); in snd_hda_gen_add_kctl() 68 else if (knew->name) in snd_hda_gen_add_kctl() [all …]
|
D | patch_conexant.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Tobin Davis <tdavis@dsl-only.net> 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 -ENOMEM; in set_beep_amp() 69 knew->private_value = beep_amp; in set_beep_amp() 76 struct conexant_spec *spec = codec->spec; in cx_auto_parse_beep() 95 struct conexant_spec *spec = codec->spec; in cx_auto_parse_eapd() 103 spec->eapds[spec->num_eapds++] = nid; in cx_auto_parse_eapd() 104 if (spec->num_eapds >= ARRAY_SIZE(spec->eapds)) in cx_auto_parse_eapd() [all …]
|
D | hda_jack.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Jack-detection handling for HD-audio 20 * is_jack_detectable - Check whether the given pin is jack-detectable 31 if (codec->no_jack_detect) in is_jack_detectable() 39 !codec->jackpoll_interval) in is_jack_detectable() 51 if (!codec->no_trigger_sense) { in read_pin_sense() 59 if (codec->inv_jack_detect) in read_pin_sense() 65 * snd_hda_jack_tbl_get_mst - query the jack-table entry for the given NID 73 struct hda_jack_tbl *jack = codec->jacktbl.list; in snd_hda_jack_tbl_get_mst() 78 for (i = 0; i < codec->jacktbl.used; i++, jack++) in snd_hda_jack_tbl_get_mst() [all …]
|
D | patch_analog.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright (c) 2005-2007 Takashi Iwai <tiwai@suse.de> 44 ((spec)->beep_amp = HDA_COMPOSE_AMP_VAL(nid, 1, idx, dir)) /* mono */ 52 struct ad198x_spec *spec = codec->spec; in create_beep_ctls() 55 if (!spec->beep_amp) in create_beep_ctls() 58 for (knew = ad_beep_mixer ; knew->name; knew++) { in create_beep_ctls() 63 return -ENOMEM; in create_beep_ctls() 64 kctl->private_value = spec->beep_amp; in create_beep_ctls() 81 !codec->inv_eapd ? 0x00 : 0x02); in ad198x_power_eapd_write() 84 !codec->inv_eapd ? 0x00 : 0x02); in ad198x_power_eapd_write() [all …]
|
D | hda_generic.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Generic BIOS auto-parser helper functions for HD-audio 13 /* table entry for multi-io paths */ 15 hda_nid_t pin; /* multi-io widget pin NID */ 17 unsigned int ctl_in; /* cached input-pin control value */ 22 * For output, stored in the order of DAC -> ... -> pin, 23 * for input, pin -> ... -> ADC. 27 * multi[] indicates whether it's a selector widget with multi-connectors 53 /* mic/line-in auto switching entry */ 59 int idx; /* imux index, -1 = invalid */ [all …]
|
D | patch_realtek.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 34 /* extra amp-initialization sequence types */ 144 struct alc_spec *spec = codec->spec; in coef_mutex_lock() 147 mutex_lock(&spec->coef_mutex); in coef_mutex_lock() 152 struct alc_spec *spec = codec->spec; in coef_mutex_unlock() 154 mutex_unlock(&spec->coef_mutex); in coef_mutex_unlock() 206 if (val != -1) in __alc_update_coefex_idx() 226 struct alc_spec *spec = codec->spec; in alc_get_coef0() 228 if (!spec->coef0) in alc_get_coef0() 229 spec->coef0 = alc_read_coef_idx(codec, 0); in alc_get_coef0() [all …]
|
/Linux-v6.1/sound/soc/codecs/ |
D | da7219-aad.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * da7219-aad.c - Dialog DA7219 ALSA SoC AAD Driver 24 #include "da7219-aad.h" 35 da7219->aad->jack = jack; in da7219_aad_jack_det() 36 da7219->aad->jack_inserted = false; in da7219_aad_jack_det() 56 struct snd_soc_component *component = da7219_aad->component; in da7219_aad_btn_det_work() 74 /* Make sure mic bias is up */ in da7219_aad_btn_det_work() 75 snd_soc_dapm_force_enable_pin(dapm, "Mic Bias"); in da7219_aad_btn_det_work() 87 dev_warn(component->dev, "Mic bias status check timed out"); in da7219_aad_btn_det_work() 89 da7219->micbias_on_event = true; in da7219_aad_btn_det_work() [all …]
|
D | wcd-mbhc-v2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // Copyright (c) 2015-2021, The Linux Foundation. All rights reserved. 14 #include "wcd-mbhc-v2.h" 49 struct wcd_mbhc_config *cfg; member 72 /* Holds type of Headset - Mono/Stereo */ 74 /* Holds mbhc detection method - ADC/Legacy */ 81 if (!mbhc->fields[field].reg) in wcd_mbhc_write_field() 84 return snd_soc_component_write_field(mbhc->component, in wcd_mbhc_write_field() 85 mbhc->fields[field].reg, in wcd_mbhc_write_field() 86 mbhc->fields[field].mask, val); in wcd_mbhc_write_field() [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/sound/ |
D | da7219.txt | 8 - compatible : Should be "dlg,da7219" 9 - reg: Specifies the I2C slave address 11 - interrupts : IRQ line info for DA7219. 12 (See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt for 15 - VDD-supply: VDD power supply for the device 16 - VDDMIC-supply: VDDMIC power supply for the device 17 - VDDIO-supply: VDDIO power supply for the device 22 - interrupt-names : Name associated with interrupt line. Should be "wakeup" if 24 - wakeup-source: Flag to indicate this device can wake system (suspend/resume). 26 - #clock-cells : Should be set to '<1>', two clock sources provided; [all …]
|
D | wlf,wm8903.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 30 - patches@opensource.cirrus.com 39 gpio-controller: true 40 '#gpio-cells': 46 micdet-cfg: 49 description: Default register value for R6 (Mic Bias). 51 micdet-delay: 56 gpio-cfg: [all …]
|
D | wlf,wm8962.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Wolfson WM8962 Ultra-Low Power Stereo CODEC 10 - patches@opensource.cirrus.com 25 "#sound-dai-cells": 28 AVDD-supply: 31 CPVDD-supply: 34 DBVDD-supply: 37 DCVDD-supply: [all …]
|
/Linux-v6.1/sound/pci/vx222/ |
D | vx222.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 22 unsigned int regCFG; /* current CFG register */ 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 */ 57 /* Constants used to access the CFG register (0x24). */
|
/Linux-v6.1/sound/soc/intel/boards/ |
D | bytcht_es8316.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * bytcht_es8316.c - ASoc Machine driver for Intel Baytrail/Cherrytrail 7 * Authors: David Yang <yangxiaohua@everest-semi.com>, 29 #include <sound/soc-acpi.h> 30 #include "../atom/sst-atom-controls.h" 31 #include "../common/soc-intel-quirks.h" 33 /* jd-inv + terminating entry */ 56 static int quirk_override = -1; 58 MODULE_PARM_DESC(quirk, "Board-specific quirk override"); 77 struct snd_soc_card *card = w->dapm->card; in byt_cht_es8316_speaker_power_event() [all …]
|
D | bytcr_rt5651.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * bytcr_rt5651.c - ASoc Machine driver for Intel Byt CR platform 29 #include <sound/soc-acpi.h> 31 #include "../atom/sst-atom-controls.h" 32 #include "../common/soc-intel-quirks.h" 80 /* jack-detect-source + inv + dmic-en + ovcd-th + -sf + terminating entry */ 93 /* Default: jack-detect on JD1_1, internal mic on in2, headsetmic on in3 */ 97 static int quirk_override = -1; 99 MODULE_PARM_DESC(quirk, "Board-specific quirk override"); 112 dev_info(dev, "quirk realtek,jack-detect-source %ld\n", in log_quirks() [all …]
|
D | bytcr_rt5640.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * byt_cr_dpcm_rt5640.c - ASoc Machine driver for Intel Byt CR platform 29 #include <sound/soc-acpi.h> 30 #include <dt-bindings/sound/rt5640.h> 32 #include "../atom/sst-atom-controls.h" 33 #include "../common/soc-intel-quirks.h" 74 #define BYT_RT5640_DIFF_MIC BIT(18) /* default is single-ended */ 94 /* in-diff or dmic-pin + jdsrc + ovcd-th + -sf + jd-inv + terminating entry */ 108 static int quirk_override = -1; 110 MODULE_PARM_DESC(quirk, "Board-specific quirk override"); [all …]
|
/Linux-v6.1/arch/arm/boot/dts/ |
D | tegra20-tec.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "tegra20-tamonten.dtsi" 20 interrupt-parent = <&gpio>; 23 gpio-controller; 24 #gpio-cells = <2>; 26 micdet-cfg = <0>; 27 micdet-delay = <100>; 28 gpio-cfg = <0xffffffff 45 compatible = "ad,tegra-audio-wm8903-tec", [all …]
|
D | tegra20-plutux.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "tegra20-tamonten.dtsi" 20 interrupt-parent = <&gpio>; 23 gpio-controller; 24 #gpio-cells = <2>; 26 micdet-cfg = <0>; 27 micdet-delay = <100>; 28 gpio-cfg = <0xffffffff 37 compatible = "ad,tegra-audio-plutux", [all …]
|
D | tegra20-medcom-wide.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "tegra20-tamonten.dtsi" 7 model = "Avionic Design Medcom-Wide board"; 8 compatible = "ad,medcom-wide", "ad,tamonten", "nvidia,tegra20"; 15 stdout-path = "serial0:115200n8"; 35 interrupt-parent = <&gpio>; 38 gpio-controller; 39 #gpio-cells = <2>; 41 micdet-cfg = <0>; [all …]
|
D | tegra30-asus-tf300t.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "tegra30-asus-transformer-common.dtsi" 5 #include "tegra30-asus-lvds-display.dtsi" 12 tf300t-init-hog { 13 gpio-hog; 15 output-low; 27 nvidia,enable-input = <TEGRA_PIN_ENABLE>; 35 nvidia,enable-input = <TEGRA_PIN_ENABLE>; 43 nvidia,enable-input = <TEGRA_PIN_ENABLE>; [all …]
|
D | imx6ul-14x14-evk.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 7 stdout-path = &uart1; 15 backlight_display: backlight-display { 16 compatible = "pwm-backlight"; 18 brightness-levels = <0 4 8 16 32 64 128 255>; 19 default-brightness-level = <6>; 24 reg_sd1_vmmc: regulator-sd1-vmmc { 25 compatible = "regulator-fixed"; 26 regulator-name = "VSD_3V3"; 27 regulator-min-microvolt = <3300000>; [all …]
|
/Linux-v6.1/arch/arm64/boot/dts/mediatek/ |
D | mt8183-kukui-audio-da7219.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 10 pinctrl-names = "default"; 11 pinctrl-0 = <&da7219_pins>; 14 interrupt-parent = <&pio>; 17 dlg,micbias-lvl = <2600>; 18 dlg,mic-amp-in-sel = "diff"; 19 VDD-supply = <&pp1800_alw>; 20 VDDMIC-supply = <&pp3300_alw>; 21 VDDIO-supply = <&pp1800_alw>; 26 dlg,adc-1bit-rpt = <1>; [all …]
|
/Linux-v6.1/drivers/net/wireless/intersil/orinoco/ |
D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 5 orinoco-objs := main.o fw.o hw.o mic.o scan.o wext.o hermes_dld.o hermes.o cfg.o 7 obj-$(CONFIG_HERMES) += orinoco.o 8 obj-$(CONFIG_PCMCIA_HERMES) += orinoco_cs.o 9 obj-$(CONFIG_APPLE_AIRPORT) += airport.o 10 obj-$(CONFIG_PLX_HERMES) += orinoco_plx.o 11 obj-$(CONFIG_PCI_HERMES) += orinoco_pci.o 12 obj-$(CONFIG_TMD_HERMES) += orinoco_tmd.o 13 obj-$(CONFIG_NORTEL_HERMES) += orinoco_nortel.o 14 obj-$(CONFIG_PCMCIA_SPECTRUM) += spectrum_cs.o [all …]
|
/Linux-v6.1/sound/isa/es1688/ |
D | es1688_lib.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 28 for (i = 10000; i; i--) in snd_es1688_dsp_command() 43 for (i = 1000; i; i--) in snd_es1688_dsp_get_byte() 47 return -ENODEV; in snd_es1688_dsp_get_byte() 62 return -1; in snd_es1688_read() 64 return -1; in snd_es1688_read() 92 outb(3, ES1688P(chip, RESET)); /* valid only for ESS chips, SB -> 1 */ in snd_es1688_reset() 98 snd_printd("ess_reset at 0x%lx: failed!!!\n", chip->port); in snd_es1688_reset() 99 return -ENODEV; in snd_es1688_reset() 116 spin_lock_irqsave(&chip->reg_lock, flags); /* Some ESS1688 cards need this */ in snd_es1688_probe() [all …]
|