Home
last modified time | relevance | path

Searched +full:aif2 +full:- +full:pins (Results 1 – 18 of 18) sorted by relevance

/linux/Documentation/devicetree/bindings/pinctrl/
H A Dcirrus,lochnagar.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
15 Logic devices on mini-cards, as well as allowing connection of various
26 [2] Pinctrl: ../pinctrl/pinctrl-bindings.txt
29 [3] include/dt-bindings/pinctrl/lochnagar.h
37 - cirrus,lochnagar-pinctrl
39 gpio-controller: true
41 '#gpio-cells':
[all …]
H A Dcirrus,madera.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
15 Certain groups of GPIO pins also have an alternate function, normally as an
30 Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
33 pin-settings:
40 '-pins$':
43 - $ref: pincfg-node.yaml#
44 - $ref: pinmux-node.yaml#
[all …]
/linux/Documentation/devicetree/bindings/mfd/
H A Dcirrus,madera.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Cirrus Logic Madera class audio CODECs Multi-Functional Device
10 - patches@opensource.cirrus.com
23 - $ref: /schemas/pinctrl/cirrus,madera.yaml#
24 - $ref: /schemas/regulator/wlf,arizona.yaml#
25 - $ref: /schemas/sound/cirrus,madera.yaml#
26 - if:
31 - cirrus,cs47l85
[all …]
/linux/drivers/pinctrl/cirrus/
H A Dpinctrl-cs47l15.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2018-2019 Cirrus Logic, Inc. and
12 #include "pinctrl-madera.h"
20 * the group names for that function's pins
22 * Note - all 1 less than in datasheet because these are zero-indexed
31 { "aif2", cs47l15_aif2_pins, ARRAY_SIZE(cs47l15_aif2_pins) },
H A Dpinctrl-cs47l92.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2018-2019 Cirrus Logic, Inc. and
12 #include "pinctrl-madera.h"
20 * the group names for that function's pins
22 * Note - all 1 less than in datasheet because these are zero-indexed
31 { "aif2", cs47l92_aif2_pins, ARRAY_SIZE(cs47l92_aif2_pins) },
H A Dpinctrl-cs47l35.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2016-2017 Cirrus Logic
11 #include "pinctrl-madera.h"
19 * the group names for that function's pins
21 * Note - all 1 less than in datasheet because these are zero-indexed
31 { "aif2", cs47l35_aif2_pins, ARRAY_SIZE(cs47l35_aif2_pins) },
H A Dpinctrl-cs47l90.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2016-2017 Cirrus Logic
11 #include "pinctrl-madera.h"
19 * the group names for that function's pins
21 * Note - all 1 less than in datasheet because these are zero-indexed
37 { "aif2", cs47l90_aif2_pins, ARRAY_SIZE(cs47l90_aif2_pins) },
H A Dpinctrl-cs47l85.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2016-2017 Cirrus Logic
11 #include "pinctrl-madera.h"
19 * the group names for that function's pins
21 * Note - all 1 less than in datasheet because these are zero-indexed
38 { "aif2", cs47l85_aif2_pins, ARRAY_SIZE(cs47l85_aif2_pins) },
H A Dpinctrl-madera-core.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2016-2018 Cirrus Logic
17 #include <linux/pinctrl/pinconf-generic.h>
25 #include "../pinctrl-utils.h"
27 #include "pinctrl-madera.h"
31 * NOTE: IDs are zero-indexed for coding convenience
77 * All single-pin functions can be mapped to any GPIO, however pinmux applies
80 * that the functions can be described as applying to all pins.
81 * Since these do not correspond to anything in the actual hardware - they are
82 * merely an adaptation to pinctrl's view of the world - we use the same name
[all …]
/linux/sound/soc/samsung/
H A Dlowland.c1 // SPDX-License-Identifier: GPL-2.0+
8 #include <sound/soc-dapm.h>
21 /* Headset jack detection DAPM pins */
39 struct snd_soc_component *component = snd_soc_rtd_to_codec(rtd, 0)->component; in lowland_wm5100_init()
58 ret = snd_soc_card_jack_new_pins(rtd->card, "Headset", in lowland_wm5100_init()
73 struct snd_soc_component *component = snd_soc_rtd_to_codec(rtd, 0)->component; in lowland_wm9081_init()
75 snd_soc_dapm_nc_pin(&rtd->card->dapm, "LINEOUT"); in lowland_wm9081_init()
91 DAILINK_COMP_ARRAY(COMP_CPU("samsung-i2s.0")),
92 DAILINK_COMP_ARRAY(COMP_CODEC("wm5100.1-001a", "wm5100-aif1")),
93 DAILINK_COMP_ARRAY(COMP_PLATFORM("samsung-i2s.0")));
[all …]
H A Dspeyside.c1 // SPDX-License-Identifier: GPL-2.0+
8 #include <sound/soc-dapm.h>
27 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[1]); in speyside_set_bias_level()
30 if (dapm->dev != codec_dai->dev) in speyside_set_bias_level()
63 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[1]); in speyside_set_bias_level_post()
66 if (dapm->dev != codec_dai->dev) in speyside_set_bias_level_post()
71 if (card->dapm.bias_level == SND_SOC_BIAS_STANDBY) { in speyside_set_bias_level_post()
93 card->dapm.bias_level = level; in speyside_set_bias_level_post()
100 /* Headset jack detection DAPM pins */
128 /* Re-run DAPM to make sure we're using the correct mic bias */ in speyside_set_polarity()
[all …]
H A Dmidas_wm1811.c1 // SPDX-License-Identifier: GPL-2.0+
12 #include <linux/input-event-codes.h>
17 #include <sound/soc-dapm.h>
77 struct midas_priv *priv = snd_soc_card_get_drvdata(codec->card); in headset_jack_check()
81 if (!gpiod_get_value_cansleep(priv->gpio_headset_detect)) in headset_jack_check()
85 ret = snd_soc_dapm_force_enable_pin(dapm, "headset-mic-bias"); in headset_jack_check()
96 ret = iio_read_channel_processed(priv->adc_headset_detect, &adc); in headset_jack_check()
105 jack_type = snd_soc_jack_get_type(&priv->headset_jack, adc); in headset_jack_check()
108 ret = snd_soc_dapm_disable_pin(dapm, "headset-mic-bias"); in headset_jack_check()
120 struct midas_priv *priv = snd_soc_card_get_drvdata(codec->card); in headset_key_check()
[all …]
/linux/drivers/pinctrl/sunxi/
H A Dpinctrl-sun8i-a33.c6 * Based on pinctrl-sun8i-a23.c, which is:
7 * Copyright (C) 2014 Chen-Yu Tsai <wens@csie.org>
8 * Copyright (C) 2014 Maxime Ripard <maxime.ripard@free-electrons.com>
20 #include "pinctrl-sunxi.h"
50 SUNXI_FUNCTION(0x3, "aif2"), /* SYNC */
56 SUNXI_FUNCTION(0x3, "aif2"), /* BCLK */
62 SUNXI_FUNCTION(0x3, "aif2"), /* DOUT */
68 SUNXI_FUNCTION(0x3, "aif2"), /* DIN */
486 .pins = sun8i_a33_pins,
500 { .compatible = "allwinner,sun8i-a33-pinctrl", },
[all …]
H A Dpinctrl-sun50i-a64.c4 * Copyright (C) 2016 - ARM Ltd.
7 * Based on pinctrl-sun7i-a20.c, which is:
8 * Copyright (C) 2014 Maxime Ripard <maxime.ripard@free-electrons.com>
20 #include "pinctrl-sunxi.h"
54 SUNXI_FUNCTION(0x2, "aif2"), /* SYNC */
61 SUNXI_FUNCTION(0x2, "aif2"), /* BCLK */
68 SUNXI_FUNCTION(0x2, "aif2"), /* DOUT */
75 SUNXI_FUNCTION(0x2, "aif2"), /* DIN */
577 .pins = a64_pins,
589 { .compatible = "allwinner,sun50i-a64-pinctrl", },
[all …]
/linux/sound/soc/codecs/
H A Dwm8996.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * wm8996.c - WM8996 audio codec interface
5 * Copyright 2011-2 Wolfson Microelectronics PLC.
108 regcache_mark_dirty(wm8996->regmap); \
299 static const DECLARE_TLV_DB_SCALE(sidetone_tlv, -3600, 150, 0);
300 static const DECLARE_TLV_DB_SCALE(digital_tlv, -7200, 75, 1);
301 static const DECLARE_TLV_DB_SCALE(out_digital_tlv, -1200, 150, 0);
302 static const DECLARE_TLV_DB_SCALE(out_tlv, -900, 75, 0);
303 static const DECLARE_TLV_DB_SCALE(spk_tlv, -900, 150, 0);
304 static const DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0);
[all …]
H A Drt5651.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rt5651.c -- RT5651 ALSA SoC audio codec driver
23 #include <sound/soc-dapm.h>
287 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0);
288 static const DECLARE_TLV_DB_MINMAX(dac_vol_tlv, -6562, 0);
289 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0);
290 static const DECLARE_TLV_DB_MINMAX(adc_vol_tlv, -1762, 3000);
369 * set_dmic_clk - Set parameter of dmic.
379 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in set_dmic_clk()
383 rate = rt5651->sysclk / rl6231_get_pre_div(rt5651->regmap, in set_dmic_clk()
[all …]
H A Drt5640.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rt5640.c -- RT5640/RT5639 ALSA SoC audio codec driver
27 #include <sound/soc-dapm.h>
340 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0);
341 static const DECLARE_TLV_DB_MINMAX(dac_vol_tlv, -6562, 0);
342 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0);
343 static const DECLARE_TLV_DB_MINMAX(adc_vol_tlv, -1762, 3000);
451 * set_dmic_clk - Set parameter of dmic.
461 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in set_dmic_clk()
465 rate = rt5640->sysclk / rl6231_get_pre_div(rt5640->regmap, in set_dmic_clk()
[all …]
H A Drt5677.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rt5677.c -- RT5677 ALSA SoC audio codec driver
29 #include <sound/soc-dapm.h>
35 #include "rt5677-spi.h"
552 * rt5677_dsp_mode_i2c_write_addr - Write value to address on DSP mode.
563 struct snd_soc_component *component = rt5677->component; in rt5677_dsp_mode_i2c_write_addr()
566 mutex_lock(&rt5677->dsp_cmd_lock); in rt5677_dsp_mode_i2c_write_addr()
568 ret = regmap_write(rt5677->regmap_physical, RT5677_DSP_I2C_ADDR_MSB, in rt5677_dsp_mode_i2c_write_addr()
571 dev_err(component->dev, "Failed to set addr msb value: %d\n", ret); in rt5677_dsp_mode_i2c_write_addr()
575 ret = regmap_write(rt5677->regmap_physical, RT5677_DSP_I2C_ADDR_LSB, in rt5677_dsp_mode_i2c_write_addr()
[all …]