Home
last modified time | relevance | path

Searched +full:headset +full:- +full:detect +full:- +full:gpios (Results 1 – 25 of 44) sorted by relevance

12

/kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/
Dsamsung,aries-wm8994.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/sound/samsung,aries-wm8994.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Jonathan Bakker <xc-racer2@live.ca>
16 - samsung,aries-wm8994
18 - samsung,fascinate4g-wm8994
22 description: The user-visible name of this sound complex.
27 sound-dai:
30 $ref: /schemas/types.yaml#/definitions/phandle-array
[all …]
Dnvidia,tegra-audio-wm8903.txt4 - 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.
23 - nvidia,i2s-controller : The phandle of the Tegra I2S1 controller
[all …]
Dsirf-audio.txt4 - compatible: "sirf,sirf-audio-card"
5 - sirf,audio-platform: phandle for the platform node
6 - sirf,audio-codec: phandle for the SiRF internal codec node
9 - hp-pa-gpios: Need to be present if the board need control external
11 - spk-pa-gpios: Need to be present if the board need control external
13 - hp-switch-gpios: Need to be present if the board capable to detect jack
16 Available audio endpoints for the audio-routing table:
19 * Headset Stereophone
34 compatible = "sirf,sirf-audio-card";
35 sirf,audio-codec = <&audiocodec>;
[all …]
Dcs42l42.txt5 - compatible : "cirrus,cs42l42"
7 - reg : the I2C address of the device for I2C.
9 - VP-supply, VCP-supply, VD_FILT-supply, VL-supply, VA-supply :
15 - reset-gpios : a GPIO spec for the reset pin. If specified, it will be
18 - interrupts : IRQ line info CS42L42.
19 (See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
22 - cirrus,ts-inv : Boolean property. For jacks that invert the tip sense
27 0 = (Default) Non-inverted
30 - cirrus,ts-dbnc-rise : Debounce the rising edge of TIP_SENSE_PLUG. With no
33 0 - 0ms,
[all …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/sound/
Dsirf-audio.txt4 - compatible: "sirf,sirf-audio-card"
5 - sirf,audio-platform: phandle for the platform node
6 - sirf,audio-codec: phandle for the SiRF internal codec node
9 - hp-pa-gpios: Need to be present if the board need control external
11 - spk-pa-gpios: Need to be present if the board need control external
13 - hp-switch-gpios: Need to be present if the board capable to detect jack
16 Available audio endpoints for the audio-routing table:
19 * Headset Stereophone
34 compatible = "sirf,sirf-audio-card";
35 sirf,audio-codec = <&audiocodec>;
[all …]
Dcs42l42.txt5 - compatible : "cirrus,cs42l42"
7 - reg : the I2C address of the device for I2C.
9 - VP-supply, VCP-supply, VD_FILT-supply, VL-supply, VA-supply :
15 - reset-gpios : a GPIO spec for the reset pin. If specified, it will be
18 - interrupts : IRQ line info CS42L42.
19 (See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
22 - cirrus,ts-inv : Boolean property. For jacks that invert the tip sense
27 0 = (Default) Non-inverted
30 - cirrus,ts-dbnc-rise : Debounce the rising edge of TIP_SENSE_PLUG. With no
33 0 - 0ms,
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Ds5pv210-galaxys.dts1 // SPDX-License-Identifier: GPL-2.0
3 /dts-v1/;
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include "s5pv210-aries.dtsi"
9 model = "Samsung Galaxy S1 (GT-I9000) based on S5PV210";
13 stdout-path = &uart2;
16 nand_pwrseq: nand-pwrseq {
17 compatible = "mmc-pwrseq-simple";
18 reset-gpios = <&gpj2 7 GPIO_ACTIVE_LOW>;
[all …]
Ds5pv210-fascinate4g.dts1 // SPDX-License-Identifier: GPL-2.0
3 /dts-v1/;
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include "s5pv210-aries.dtsi"
9 model = "Samsung Galaxy S Fascinate 4G (SGH-T959P) based on S5PV210";
13 stdout-path = &uart2;
16 gpio-keys {
17 compatible = "gpio-keys";
21 gpios = <&gph2 6 GPIO_ACTIVE_LOW>;
[all …]
Domap4-duovero.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
7 #include "omap4-mcpdm.dtsi"
11 compatible = "gumstix,omap4-duovero", "ti,omap4430", "ti,omap4";
14 stdout-path = &uart3;
23 compatible = "ti,abe-twl6040";
26 ti,mclk-freq = <38400000>;
33 ti,audio-routing =
34 "Headset Stereophone", "HSOL",
35 "Headset Stereophone", "HSOR",
36 "HSMIC", "Headset Mic",
[all …]
/kernel/linux/linux-5.10/sound/soc/intel/boards/
Dbytcr_rt5651.c1 // 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 */
92 /* Default: jack-detect on JD1_1, internal mic on in2, headsetmic on in3 */
96 static int quirk_override = -1;
98 MODULE_PARM_DESC(quirk, "Board-specific quirk override");
111 dev_info(dev, "quirk realtek,jack-detect-source %ld\n", in log_quirks()
[all …]
Dcht_bsw_rt5672.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cht_bsw_rt5672.c - ASoc Machine driver for Intel Cherryview-based platforms
21 #include <sound/soc-acpi.h>
23 #include "../atom/sst-atom-controls.h"
28 #define CHT_CODEC_DAI "rt5670-aif1"
31 struct snd_soc_jack headset; member
36 /* Headset jack detection DAPM pins */
39 .pin = "Headset Mic",
51 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control()
52 struct snd_soc_card *card = dapm->card; in platform_clock_control()
[all …]
Dcht_bsw_max98090_ti.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cht-bsw-max98090.c - ASoc Machine driver for Intel Cherryview-based
24 #include <sound/soc-acpi.h>
27 #include "../atom/sst-atom-controls.h"
45 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control()
46 struct snd_soc_card *card = dapm->card; in platform_clock_control()
52 if (ctx->quirks & QUIRK_PMC_PLT_CLK_0) in platform_clock_control()
57 dev_err(card->dev, "Codec dai not found; Unable to set platform clock\n"); in platform_clock_control()
58 return -EIO; in platform_clock_control()
62 ret = clk_prepare_enable(ctx->mclk); in platform_clock_control()
[all …]
Dbytcht_es8316.c1 // 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 */
55 static int quirk_override = -1;
57 MODULE_PARM_DESC(quirk, "Board-specific quirk override");
76 struct snd_soc_card *card = w->dapm->card; in byt_cht_es8316_speaker_power_event()
[all …]
/kernel/linux/linux-4.19/sound/soc/intel/boards/
Dcht_bsw_max98090_ti.c2 * cht-bsw-max98090.c - ASoc Machine driver for Intel Cherryview-based
33 #include "../atom/sst-atom-controls.h"
51 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control()
52 struct snd_soc_card *card = dapm->card; in platform_clock_control()
58 if (ctx->quirks & QUIRK_PMC_PLT_CLK_0) in platform_clock_control()
63 dev_err(card->dev, "Codec dai not found; Unable to set platform clock\n"); in platform_clock_control()
64 return -EIO; in platform_clock_control()
68 ret = clk_prepare_enable(ctx->mclk); in platform_clock_control()
70 dev_err(card->dev, in platform_clock_control()
75 clk_disable_unprepare(ctx->mclk); in platform_clock_control()
[all …]
Dcht_bsw_rt5672.c2 * cht_bsw_rt5672.c - ASoc Machine driver for Intel Cherryview-based platforms
27 #include <sound/soc-acpi.h>
29 #include "../atom/sst-atom-controls.h"
34 #define CHT_CODEC_DAI "rt5670-aif1"
37 struct snd_soc_jack headset; member
42 /* Headset jack detection DAPM pins */
45 .pin = "Headset Mic",
57 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control()
58 struct snd_soc_card *card = dapm->card; in platform_clock_control()
65 dev_err(card->dev, "Codec dai not found; Unable to set platform clock\n"); in platform_clock_control()
[all …]
Dbytcr_rt5651.c2 * bytcr_rt5651.c - ASoc Machine driver for Intel Byt CR platform
34 #include <asm/intel-family.h>
40 #include <sound/soc-acpi.h>
42 #include "../atom/sst-atom-controls.h"
89 /* jack-detect-source + dmic-en + ovcd-th + -sf + terminating empty entry */
98 /* Default: jack-detect on JD1_1, internal mic on in2, headsetmic on in3 */
113 dev_info(dev, "quirk realtek,jack-detect-source %ld\n", in log_quirks()
115 dev_info(dev, "quirk realtek,over-current-threshold-microamp %ld\n", in log_quirks()
117 dev_info(dev, "quirk realtek,over-current-scale-factor %ld\n", in log_quirks()
136 #define BYT_CODEC_DAI1 "rt5651-aif1"
[all …]
/kernel/linux/linux-5.10/sound/soc/ti/
Domap-twl4030.c1 // 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 */
56 return -EINVAL; in omap_twl4030_hw_params()
69 SND_SOC_DAPM_HP("Headset Stereophone", NULL),
75 SND_SOC_DAPM_MIC("Headset Mic", NULL),
83 /* Headset Stereophone: HSOL, HSOR */
[all …]
/kernel/linux/linux-4.19/sound/soc/omap/
Domap-twl4030.c2 * omap-twl4030.c -- SoC audio for TI SoC based boards with twl4030 codec
4 * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com
29 * 02110-1301 USA
34 #include <linux/platform_data/omap-twl4030.h>
45 #include "omap-mcbsp.h"
48 int jack_detect; /* board can detect jack events */
55 struct snd_soc_pcm_runtime *rtd = substream->private_data; in omap_twl4030_hw_params()
70 return -EINVAL; in omap_twl4030_hw_params()
83 SND_SOC_DAPM_HP("Headset Stereophone", NULL),
89 SND_SOC_DAPM_MIC("Headset Mic", NULL),
[all …]
/kernel/linux/linux-4.19/arch/arm/boot/dts/
Domap4-duovero.dtsi13 compatible = "gumstix,omap4-duovero", "ti,omap4430", "ti,omap4";
16 stdout-path = &uart3;
25 compatible = "ti,abe-twl6040";
28 ti,mclk-freq = <38400000>;
35 ti,audio-routing =
36 "Headset Stereophone", "HSOL",
37 "Headset Stereophone", "HSOR",
38 "HSMIC", "Headset Mic",
39 "Headset Mic", "Headset Mic Bias";
44 compatible = "usb-nop-xceiv";
[all …]
/kernel/linux/linux-4.19/Documentation/driver-api/gpio/
Ddrivers-on-gpio.rst6 the right in-kernel and userspace APIs/ABIs for the job, and that these
10 - leds-gpio: drivers/leds/leds-gpio.c will handle LEDs connected to GPIO
13 - ledtrig-gpio: drivers/leds/trigger/ledtrig-gpio.c will provide a LED trigger,
15 (and that LED may in turn use the leds-gpio as per above).
17 - gpio-keys: drivers/input/keyboard/gpio_keys.c is used when your GPIO line
20 - gpio-keys-polled: drivers/input/keyboard/gpio_keys_polled.c is used when your
24 - gpio_mouse: drivers/input/mouse/gpio_mouse.c is used to provide a mouse with
25 up to three buttons by simply using GPIOs and no mouse port. You can cut the
29 - gpio-beeper: drivers/input/misc/gpio-beeper.c is used to provide a beep from
32 - extcon-gpio: drivers/extcon/extcon-gpio.c is used when you need to read an
[all …]
/kernel/linux/linux-5.10/Documentation/driver-api/gpio/
Ddrivers-on-gpio.rst6 the right in-kernel and userspace APIs/ABIs for the job, and that these
10 - leds-gpio: drivers/leds/leds-gpio.c will handle LEDs connected to GPIO
13 - ledtrig-gpio: drivers/leds/trigger/ledtrig-gpio.c will provide a LED trigger,
15 (and that LED may in turn use the leds-gpio as per above).
17 - gpio-keys: drivers/input/keyboard/gpio_keys.c is used when your GPIO line
20 - gpio-keys-polled: drivers/input/keyboard/gpio_keys_polled.c is used when your
24 - gpio_mouse: drivers/input/mouse/gpio_mouse.c is used to provide a mouse with
25 up to three buttons by simply using GPIOs and no mouse port. You can cut the
29 - gpio-beeper: drivers/input/misc/gpio-beeper.c is used to provide a beep from
32 - extcon-gpio: drivers/extcon/extcon-gpio.c is used when you need to read an
[all …]
/kernel/linux/linux-5.10/sound/soc/tegra/
Dtegra_wm8903.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * tegra_wm8903.c - Tegra machine ASoC driver for boards using WM8903 codec.
6 * Copyright (C) 2010-2012 - NVIDIA, Inc.
33 #define DRV_NAME "tegra-snd-wm8903"
49 struct snd_soc_card *card = rtd->card; in tegra_wm8903_hw_params()
69 err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); in tegra_wm8903_hw_params()
71 dev_err(card->dev, "Can't configure clocks\n"); in tegra_wm8903_hw_params()
78 dev_err(card->dev, "codec_dai clock not set\n"); in tegra_wm8903_hw_params()
99 .name = "headphone detect",
117 struct snd_soc_dapm_context *dapm = w->dapm; in tegra_wm8903_event_int_spk()
[all …]
/kernel/linux/linux-4.19/sound/soc/tegra/
Dtegra_wm8903.c2 * tegra_wm8903.c - Tegra machine ASoC driver for boards using WM8903 codec.
5 * Copyright (C) 2010-2012 - NVIDIA, Inc.
27 * 02110-1301 USA
47 #define DRV_NAME "tegra-snd-wm8903"
61 struct snd_soc_pcm_runtime *rtd = substream->private_data; in tegra_wm8903_hw_params()
62 struct snd_soc_dai *codec_dai = rtd->codec_dai; in tegra_wm8903_hw_params()
63 struct snd_soc_card *card = rtd->card; in tegra_wm8903_hw_params()
83 err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); in tegra_wm8903_hw_params()
85 dev_err(card->dev, "Can't configure clocks\n"); in tegra_wm8903_hw_params()
92 dev_err(card->dev, "codec_dai clock not set\n"); in tegra_wm8903_hw_params()
[all …]
/kernel/linux/linux-5.10/sound/pci/hda/
Dpatch_realtek.c1 // SPDX-License-Identifier: GPL-2.0-or-later
32 /* extra amp-initialization sequence types */
165 if (val != -1) in alc_update_coefex_idx()
176 struct alc_spec *spec = codec->spec; in alc_get_coef0()
178 if (!spec->coef0) in alc_get_coef0()
179 spec->coef0 = alc_read_coef_idx(codec, 0); in alc_get_coef0()
180 return spec->coef0; in alc_get_coef0()
193 #define WRITE_COEFEX(_nid, _idx, _val) UPDATE_COEFEX(_nid, _idx, -1, _val)
200 for (; fw->nid; fw++) { in alc_process_coef_fw()
201 if (fw->mask == (unsigned short)-1) in alc_process_coef_fw()
[all …]
/kernel/linux/linux-4.19/arch/arm64/boot/dts/rockchip/
Drk3399-gru.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
5 * Copyright 2016-2017 Google, Inc
8 #include <dt-bindings/input/input.h>
10 #include "rk3399-op1-opp.dtsi"
14 stdout-path = "serial2:115200n8";
23 * - Rails that only connect to the EC (or devices that the EC talks to)
25 * - Rails _are_ included if the rails go to the AP even if the AP
34 * - The EC controls the enable and the EC always enables a rail as
36 * - The rails are actually connected to each other by a jumper and
41 ppvar_sys: ppvar-sys {
[all …]

12