Home
last modified time | relevance | path

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

/openbmc/linux/Documentation/devicetree/bindings/sound/
H A 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 …]
/openbmc/linux/Documentation/devicetree/bindings/extcon/
H A 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 …]
/openbmc/linux/sound/soc/codecs/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
/openbmc/linux/drivers/mfd/
H A 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 …]
/openbmc/linux/sound/pci/hda/
H A 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->spe in coef_mutex_unlock()
378 alc_update_knob_master(struct hda_codec * codec,struct hda_jack_callback * jack) alc_update_knob_master() argument
2235 alc887_asus_hp_automute_hook(struct hda_codec * codec,struct hda_jack_callback * jack) alc887_asus_hp_automute_hook() argument
3233 alc_headset_btn_callback(struct hda_codec * codec,struct hda_jack_callback * jack) alc_headset_btn_callback() argument
4189 alc269_x101_hp_automute_hook(struct hda_codec * codec,struct hda_jack_callback * jack) alc269_x101_hp_automute_hook() argument
4339 int pol, pin; alc269_fixup_hp_mute_led() local
5840 alc_update_headset_jack_cb(struct hda_codec * codec,struct hda_jack_callback * jack) alc_update_headset_jack_cb() argument
5954 alc288_update_headset_jack_cb(struct hda_codec * codec,struct hda_jack_callback * jack) alc288_update_headset_jack_cb() argument
6211 alc283_hp_automute_hook(struct hda_codec * codec,struct hda_jack_callback * jack) alc283_hp_automute_hook() argument
6359 alc280_hp_gpio4_automute_hook(struct hda_codec * codec,struct hda_jack_callback * jack) alc280_hp_gpio4_automute_hook() argument
11671 alc662_usi_automute_hook(struct hda_codec * codec,struct hda_jack_callback * jack) alc662_usi_automute_hook() argument
11759 alc897_hp_automute_hook(struct hda_codec * codec,struct hda_jack_callback * jack) alc897_hp_automute_hook() argument
[all...]