Home
last modified time | relevance | path

Searched +full:jack +full:- +full:pol (Results 1 – 16 of 16) sorted by relevance

/kernel/linux/linux-6.6/Documentation/devicetree/bindings/sound/
Deverest,es8326.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - David Yang <yangxiaohua@everest-semi.com>
21 - description: clock for master clock (MCLK)
23 clock-names:
25 - const: mclk
27 "#sound-dai-cells":
30 everest,jack-pol:
33 just the value of reg 57. Bit(3) decides whether the jack polarity is inverted.
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/extcon/
Dwlf,arizona.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - patches@opensource.cirrus.com
20 wlf,hpdet-channel:
30 wlf,use-jd2:
32 Use the additional JD input along with JD1 for dual pin jack detection.
35 wlf,use-jd2-nopull:
37 Internal pull on JD2 is disabled when used for jack detection.
40 wlf,jd-invert:
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/extcon/
Dwlf,arizona.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - patches@opensource.cirrus.com
20 wlf,hpdet-channel:
30 wlf,use-jd2:
32 Use the additional JD input along with JD1 for dual pin jack detection.
35 wlf,use-jd2-nopull:
37 Internal pull on JD2 is disabled when used for jack detection.
40 wlf,jd-invert:
[all …]
/kernel/linux/linux-6.6/sound/soc/codecs/
Des8326.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // es8326.c -- es8326 ALSA SoC audio driver
6 // Authors: David Yang <yangxiaohua@everest-semi.com>
14 #include <sound/jack.h>
17 #include <sound/soc-dapm.h>
28 struct snd_soc_jack *jack; member
48 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(dac_vol_tlv, -9550, 50, 0);
49 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(adc_vol_tlv, -9550, 50, 0);
53 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(drc_target_tlv, -3200, 200, 0);
54 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(drc_recovery_tlv, -125, 250, 0);
[all …]
Dmt6359-accdet.c1 // SPDX-License-Identifier: GPL-2.0
3 // mt6359-accdet.c -- ALSA SoC mt6359 accdet driver
28 #include <sound/jack.h>
31 #include "mt6359-accdet.h"
35 #define REGISTER_VAL(x) ((x) - 1)
77 if (priv->data->eint_detect_mode == 0x3 || in adjust_eint_analog_setting()
78 priv->data->eint_detect_mode == 0x4) { in adjust_eint_analog_setting()
80 regmap_update_bits(priv->regmap, in adjust_eint_analog_setting()
83 if (priv->data->eint_detect_mode == 0x4) { in adjust_eint_analog_setting()
84 if (priv->caps & ACCDET_PMIC_EINT0) { in adjust_eint_analog_setting()
[all …]
Darizona-jack.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * extcon-arizona.c - Extcon driver Wolfson Arizona devices
5 * Copyright (C) 2012-2014 Wolfson Microelectronics plc
20 #include <sound/jack.h>
26 #include <dt-bindings/mfd/arizona.h>
33 * The hardware supports 8 ranges / buttons, but the snd-jack interface
34 * only supports 6 buttons (button 0-5).
100 struct arizona *arizona = info->arizona; in arizona_extcon_hp_clamp()
105 switch (arizona->type) { in arizona_extcon_hp_clamp()
122 ret = regmap_update_bits(arizona->regmap, in arizona_extcon_hp_clamp()
[all …]
Dwm8903.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8903.c -- WM8903 ALSA SoC Audio driver
5 * Copyright 2008-12 Wolfson Microelectronics
6 * Copyright 2011-2012 NVIDIA, Inc.
11 * - TDM mode configuration.
28 #include <sound/jack.h>
41 { 4, 0x0018 }, /* R4 - Bias Control 0 */
42 { 5, 0x0000 }, /* R5 - VMID Control 0 */
43 { 6, 0x0000 }, /* R6 - Mic Bias Control 0 */
44 { 8, 0x0001 }, /* R8 - Analogue DAC 0 */
[all …]
Dwm8962.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8962.c -- WM8962 ALSA SoC Audio driver
5 * Copyright 2010-2 Wolfson Microelectronics plc
27 #include <sound/jack.h>
71 struct snd_soc_jack *jack; member
98 regcache_mark_dirty(wm8962->regmap); \
113 { 0, 0x009F }, /* R0 - Left Input volume */
114 { 1, 0x049F }, /* R1 - Right Input volume */
115 { 2, 0x0000 }, /* R2 - HPOUTL volume */
116 { 3, 0x0000 }, /* R3 - HPOUTR volume */
[all …]
Dwm8962.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * wm8962.h -- WM8962 ASoC driver
1178 * R0 (0x00) - Left Input volume
1192 #define WM8962_INL_VOL_MASK 0x003F /* INL_VOL - [5:0] */
1193 #define WM8962_INL_VOL_SHIFT 0 /* INL_VOL - [5:0] */
1194 #define WM8962_INL_VOL_WIDTH 6 /* INL_VOL - [5:0] */
1197 * R1 (0x01) - Right Input volume
1199 #define WM8962_CUST_ID_MASK 0xF000 /* CUST_ID - [15:12] */
1200 #define WM8962_CUST_ID_SHIFT 12 /* CUST_ID - [15:12] */
1201 #define WM8962_CUST_ID_WIDTH 4 /* CUST_ID - [15:12] */
[all …]
/kernel/linux/linux-6.6/drivers/mfd/
Darizona-spi.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * arizona-spi.c -- Arizona SPI bus interface
21 #include <uapi/linux/input-event-codes.h>
32 { "reset-gpios", &reset_gpios, 1, },
33 { "wlf,ldoena-gpios", &ldoena_gpios, 1 },
38 * The ACPI resources for the device only describe external GPIO-s. They do
39 * not provide mappings for the GPIO-s coming from the Arizona codec itself.
42 { "arizona", 2, "wlf,spkvdd-ena", 0, GPIO_ACTIVE_HIGH },
43 { "arizona", 4, "wlf,micd-pol", 0, GPIO_ACTIVE_LOW },
58 /* Add mappings for the 2 ACPI declared GPIOs used for reset and ldo-ena */ in arizona_spi_acpi_windows_probe()
[all …]
/kernel/linux/linux-5.10/sound/pci/hda/
Dpatch_realtek.c1 // SPDX-License-Identifier: GPL-2.0-or-later
22 #include <sound/jack.h>
32 /* extra amp-initialization sequence types */
140 struct alc_spec *spec = codec->spec; in coef_mutex_lock()
143 mutex_lock(&spec->coef_mutex); in coef_mutex_lock()
148 struct alc_spec *spec = codec->spec; in coef_mutex_unlock()
150 mutex_unlock(&spec->coef_mutex); in coef_mutex_unlock()
202 if (val != -1) in __alc_update_coefex_idx()
222 struct alc_spec *spec = codec->spec; in alc_get_coef0()
224 if (!spec->coef0) in alc_get_coef0()
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Dwm8903.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8903.c -- WM8903 ALSA SoC Audio driver
5 * Copyright 2008-12 Wolfson Microelectronics
6 * Copyright 2011-2012 NVIDIA, Inc.
11 * - TDM mode configuration.
12 * - Digital microphone support.
29 #include <sound/jack.h>
42 { 4, 0x0018 }, /* R4 - Bias Control 0 */
43 { 5, 0x0000 }, /* R5 - VMID Control 0 */
44 { 6, 0x0000 }, /* R6 - Mic Bias Control 0 */
[all …]
Dwm8962.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8962.c -- WM8962 ALSA SoC Audio driver
5 * Copyright 2010-2 Wolfson Microelectronics plc
27 #include <sound/jack.h>
71 struct snd_soc_jack *jack; member
98 regcache_mark_dirty(wm8962->regmap); \
113 { 0, 0x009F }, /* R0 - Left Input volume */
114 { 1, 0x049F }, /* R1 - Right Input volume */
115 { 2, 0x0000 }, /* R2 - HPOUTL volume */
116 { 3, 0x0000 }, /* R3 - HPOUTR volume */
[all …]
Dwm8962.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * wm8962.h -- WM8962 ASoC driver
1178 * R0 (0x00) - Left Input volume
1192 #define WM8962_INL_VOL_MASK 0x003F /* INL_VOL - [5:0] */
1193 #define WM8962_INL_VOL_SHIFT 0 /* INL_VOL - [5:0] */
1194 #define WM8962_INL_VOL_WIDTH 6 /* INL_VOL - [5:0] */
1197 * R1 (0x01) - Right Input volume
1199 #define WM8962_CUST_ID_MASK 0xF000 /* CUST_ID - [15:12] */
1200 #define WM8962_CUST_ID_SHIFT 12 /* CUST_ID - [15:12] */
1201 #define WM8962_CUST_ID_WIDTH 4 /* CUST_ID - [15:12] */
[all …]
/kernel/linux/linux-6.6/sound/pci/hda/
Dpatch_realtek.c1 // SPDX-License-Identifier: GPL-2.0-or-later
23 #include <sound/jack.h>
34 /* extra amp-initialization sequence types */
145 struct alc_spec *spec = codec->spec; in coef_mutex_lock()
148 mutex_lock(&spec->coef_mutex); in coef_mutex_lock()
153 struct alc_spec *spec = codec->spec; in coef_mutex_unlock()
155 mutex_unlock(&spec->coef_mutex); in coef_mutex_unlock()
207 if (val != -1) in __alc_update_coefex_idx()
227 struct alc_spec *spec = codec->spec; in alc_get_coef0()
229 if (!spec->coef0) in alc_get_coef0()
[all …]
/kernel/linux/linux-5.10/drivers/extcon/
Dextcon-arizona.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * extcon-arizona.c - Extcon driver Wolfson Arizona devices
5 * Copyright (C) 2012-2014 Wolfson Microelectronics plc
21 #include <linux/extcon-provider.h>
28 #include <dt-bindings/mfd/arizona.h>
143 struct arizona *arizona = info->arizona; in arizona_extcon_hp_clamp()
148 switch (arizona->type) { in arizona_extcon_hp_clamp()
165 ret = regmap_update_bits(arizona->regmap, in arizona_extcon_hp_clamp()
170 dev_warn(arizona->dev, in arizona_extcon_hp_clamp()
180 snd_soc_dapm_mutex_lock(arizona->dapm); in arizona_extcon_hp_clamp()
[all …]