Home
last modified time | relevance | path

Searched +full:codec +full:- +full:aif3 (Results 1 – 25 of 61) sorted by relevance

123

/kernel/linux/linux-5.10/Documentation/devicetree/bindings/pinctrl/
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
14 Smart CODEC and Amp devices. It allows the connection of most Cirrus
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
[all …]
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
19 between CODECs so refer to the datasheet for the CODEC for further information
30 Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
33 pinctrl-0:
38 pinctrl-names:
43 pin-settings:
50 '-pins$':
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mfd/
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
14 Smart CODEC and Amp devices. It allows the connection of most Cirrus
15 Logic devices on mini-cards, as well as allowing connection of
25 [2] include/dt-bindings/pinctrl/lochnagar.h
26 [3] include/dt-bindings/clock/lochnagar.h
28 And these documents for the required sub-node binding details:
35 - if:
[all …]
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 …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/pinctrl/
Dcirrus,madera-pinctrl.txt9 between codecs so refer to the datasheet for the codec for further information
19 Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
22 - pinctrl-names : must be "default"
23 - pinctrl-0 : a phandle to the node containing the subnodes containing default
32 - groups : name of one pin group to configure. One of:
33 aif1, aif2, aif3, aif4, mif1, mif2, mif3, pdmspk1, pdmspk2,
42 - function : name of function to assign to this group. One of:
43 aif1, aif2, aif3, aif4, mif1, mif2, mif3, pdmspk1, pdmspk2,
45 io, dsp-gpio, irq1, irq2,
46 fll1-clk, fll1-lock, fll2-clk, fll2-lock, fll3-clk, fll3-lock,
[all …]
/kernel/linux/linux-4.19/sound/soc/samsung/
Dbells.c13 #include <sound/soc-dapm.h>
64 struct bells_drvdata *bells = card->drvdata; in bells_set_bias_level()
67 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[DAI_DSP_CODEC].name); in bells_set_bias_level()
68 codec_dai = rtd->codec_dai; in bells_set_bias_level()
69 component = codec_dai->component; in bells_set_bias_level()
71 if (dapm->dev != codec_dai->dev) in bells_set_bias_level()
76 if (dapm->bias_level != SND_SOC_BIAS_STANDBY) in bells_set_bias_level()
82 bells->sysclk_rate); in bells_set_bias_level()
86 if (bells->asyncclk_rate) { in bells_set_bias_level()
90 bells->asyncclk_rate); in bells_set_bias_level()
[all …]
/kernel/linux/linux-5.10/sound/soc/samsung/
Dbells.c1 // SPDX-License-Identifier: GPL-2.0+
8 #include <sound/soc-dapm.h>
59 struct bells_drvdata *bells = card->drvdata; in bells_set_bias_level()
62 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[DAI_DSP_CODEC]); in bells_set_bias_level()
64 component = codec_dai->component; in bells_set_bias_level()
66 if (dapm->dev != codec_dai->dev) in bells_set_bias_level()
71 if (dapm->bias_level != SND_SOC_BIAS_STANDBY) in bells_set_bias_level()
77 bells->sysclk_rate); in bells_set_bias_level()
81 if (bells->asyncclk_rate) { in bells_set_bias_level()
85 bells->asyncclk_rate); in bells_set_bias_level()
[all …]
Daries_wm8994.c1 // SPDX-License-Identifier: GPL-2.0+
5 #include <linux/input-event-codes.h>
100 if (!gpiod_get_value(priv->gpio_headset_detect)) { in headset_det_irq_thread()
103 gpiod_set_value(priv->gpio_earpath_sel, 0); in headset_det_irq_thread()
107 time_left_ms -= 20; in headset_det_irq_thread()
111 ret = regulator_enable(priv->reg_headset_micbias); in headset_det_irq_thread()
115 gpiod_set_value(priv->gpio_earpath_sel, 1); in headset_det_irq_thread()
117 ret = iio_read_channel_processed(priv->adc, &adc); in headset_det_irq_thread()
129 ret = regulator_disable(priv->reg_headset_micbias); in headset_det_irq_thread()
135 gpiod_set_value(priv->gpio_earpath_sel, 0); in headset_det_irq_thread()
[all …]
Dmidas_wm1811.c1 // SPDX-License-Identifier: GPL-2.0+
17 #include <sound/soc-dapm.h>
42 struct snd_soc_card *card = rtd->card; in midas_start_fll1()
49 rate = priv->fll1_rate; in midas_start_fll1()
57 if (rate != priv->fll1_rate && priv->fll1_rate) { in midas_start_fll1()
62 dev_err(card->dev, "Unable to switch to MCLK2: %d\n", ret); in midas_start_fll1()
70 dev_err(card->dev, "Failed to set FLL1 rate: %d\n", ret); in midas_start_fll1()
73 priv->fll1_rate = rate; in midas_start_fll1()
76 priv->fll1_rate, SND_SOC_CLOCK_IN); in midas_start_fll1()
78 dev_err(card->dev, "Failed to set SYSCLK source: %d\n", ret); in midas_start_fll1()
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Dcs47l15.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // ALSA SoC Audio driver for CS47L15 codec
5 // Copyright (C) 2016-2019 Cirrus Logic, Inc. and
23 #include <linux/irqchip/irq-madera.h>
33 /* Mid-mode registers */
39 #define DRV_NAME "cs47l15-codec"
72 snd_soc_dapm_to_component(w->dapm); in cs47l15_adsp_power_ev()
74 struct madera_priv *priv = &cs47l15->core; in cs47l15_adsp_power_ev()
75 struct madera *madera = priv->madera; in cs47l15_adsp_power_ev()
79 ret = regmap_read(madera->regmap, MADERA_DSP_CLOCK_2, &freq); in cs47l15_adsp_power_ev()
[all …]
Dcs47l92.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // ALSA SoC Audio driver for CS47L92 codec
5 // Copyright (C) 2016-2019 Cirrus Logic, Inc. and
23 #include <linux/irqchip/irq-madera.h>
33 #define DRV_NAME "cs47l92-codec"
60 struct madera_priv *priv = &cs47l92->core; in cs47l92_put_demux()
61 struct madera *madera = priv->madera; in cs47l92_put_demux()
62 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in cs47l92_put_demux()
67 if (ucontrol->value.enumerated.item[0] > e->items - 1) in cs47l92_put_demux()
68 return -EINVAL; in cs47l92_put_demux()
[all …]
Dcs47l35.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // ALSA SoC Audio driver for CS47L35 codec
5 // Copyright (C) 2015-2019 Cirrus Logic, Inc. and
23 #include <linux/irqchip/irq-madera.h>
33 #define DRV_NAME "cs47l35-codec"
90 snd_soc_dapm_to_component(w->dapm); in cs47l35_adsp_power_ev()
92 struct madera_priv *priv = &cs47l35->core; in cs47l35_adsp_power_ev()
93 struct madera *madera = priv->madera; in cs47l35_adsp_power_ev()
97 ret = regmap_read(madera->regmap, MADERA_DSP_CLOCK_1, &freq); in cs47l35_adsp_power_ev()
99 dev_err(madera->dev, in cs47l35_adsp_power_ev()
[all …]
Dadau1373.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Analog Devices ADAU1373 Audio Codec drive
6 * Author: Lars-Peter Clausen <lars@metafoo.de>
25 #include "adau-utils.h"
324 0, 7, TLV_DB_SCALE_ITEM(-7900, 400, 1),
325 8, 15, TLV_DB_SCALE_ITEM(-4700, 300, 0),
326 16, 23, TLV_DB_SCALE_ITEM(-2300, 200, 0),
327 24, 31, TLV_DB_SCALE_ITEM(-700, 100, 0)
330 static const DECLARE_TLV_DB_MINMAX(adau1373_digital_tlv, -9563, 0);
331 static const DECLARE_TLV_DB_SCALE(adau1373_in_pga_tlv, -1300, 100, 1);
[all …]
Dcs47l24.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cs47l24.h -- ALSA SoC Audio driver for Cirrus Logic CS47L24
33 #define DRV_NAME "cs47l24-codec"
62 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in cs47l24_adsp_power_ev()
63 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in cs47l24_adsp_power_ev()
67 ret = regmap_read(arizona->regmap, ARIZONA_SYSTEM_CLOCK_1, &v); in cs47l24_adsp_power_ev()
69 dev_err(component->dev, "Failed to read SYSCLK state: %d\n", ret); in cs47l24_adsp_power_ev()
80 static DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0);
81 static DECLARE_TLV_DB_SCALE(digital_tlv, -6400, 50, 0);
82 static DECLARE_TLV_DB_SCALE(noise_tlv, -13200, 600, 0);
[all …]
Dwm8998.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8998.c -- ALSA SoC Audio driver for WM8998 codecs
41 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in wm8998_asrc_ev()
57 dev_warn(component->dev, in wm8998_asrc_ev()
60 return -EINVAL; in wm8998_asrc_ev()
64 dev_err(component->dev, in wm8998_asrc_ev()
67 return -EINVAL; in wm8998_asrc_ev()
77 val -= 0x8; in wm8998_asrc_ev()
81 dev_warn(component->dev, in wm8998_asrc_ev()
84 return -EINVAL; in wm8998_asrc_ev()
[all …]
Dda732x.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * da732x.c --- Dialog DA732X ALSA SoC Audio Driver
24 #include <sound/soc-dapm.h>
41 * da732x register cache - default settings
189 return -EINVAL; in da732x_get_input_div()
332 struct soc_enum *enum_ctrl = (struct soc_enum *)kcontrol->private_value; in da732x_hpf_set()
333 unsigned int reg = enum_ctrl->reg; in da732x_hpf_set()
334 unsigned int sel = ucontrol->value.enumerated.item[0]; in da732x_hpf_set()
348 return -EINVAL; in da732x_hpf_set()
360 struct soc_enum *enum_ctrl = (struct soc_enum *)kcontrol->private_value; in da732x_hpf_get()
[all …]
Dwm5102.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm5102.c -- WM5102 ALSA SoC Audio driver
34 #define DRV_NAME "wm5102-codec"
42 static DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0);
43 static DECLARE_TLV_DB_SCALE(digital_tlv, -6400, 50, 0);
44 static DECLARE_TLV_DB_SCALE(noise_tlv, -13200, 600, 0);
45 static DECLARE_TLV_DB_SCALE(ng_tlv, -10200, 600, 0);
583 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in wm5102_sysclk_ev()
584 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in wm5102_sysclk_ev()
585 struct regmap *regmap = arizona->regmap; in wm5102_sysclk_ev()
[all …]
Dcs47l85.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // ALSA SoC Audio driver for CS47L85 codec
5 // Copyright (C) 2015-2019 Cirrus Logic, Inc. and
23 #include <linux/irqchip/irq-madera.h>
30 #define DRV_NAME "cs47l85-codec"
114 snd_soc_dapm_to_component(w->dapm); in cs47l85_adsp_power_ev()
116 struct madera_priv *priv = &cs47l85->core; in cs47l85_adsp_power_ev()
117 struct madera *madera = priv->madera; in cs47l85_adsp_power_ev()
121 ret = regmap_read(madera->regmap, MADERA_DSP_CLOCK_1, &freq); in cs47l85_adsp_power_ev()
123 dev_err(madera->dev, in cs47l85_adsp_power_ev()
[all …]
Dcs47l90.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // ALSA SoC Audio driver for CS47L90 codec
5 // Copyright (C) 2015-2019 Cirrus Logic, Inc. and
23 #include <linux/irqchip/irq-madera.h>
30 #define DRV_NAME "cs47l90-codec"
114 snd_soc_dapm_to_component(w->dapm); in cs47l90_adsp_power_ev()
116 struct madera_priv *priv = &cs47l90->core; in cs47l90_adsp_power_ev()
117 struct madera *madera = priv->madera; in cs47l90_adsp_power_ev()
121 ret = regmap_read(madera->regmap, MADERA_DSP_CLOCK_2, &freq); in cs47l90_adsp_power_ev()
123 dev_err(madera->dev, in cs47l90_adsp_power_ev()
[all …]
/kernel/linux/linux-4.19/sound/soc/codecs/
Dadau1373.c2 * Analog Devices ADAU1373 Audio Codec drive
5 * Author: Lars-Peter Clausen <lars@metafoo.de>
7 * Licensed under the GPL-2 or later.
26 #include "adau-utils.h"
325 0, 7, TLV_DB_SCALE_ITEM(-7900, 400, 1),
326 8, 15, TLV_DB_SCALE_ITEM(-4700, 300, 0),
327 16, 23, TLV_DB_SCALE_ITEM(-2300, 200, 0),
328 24, 31, TLV_DB_SCALE_ITEM(-700, 100, 0)
331 static const DECLARE_TLV_DB_MINMAX(adau1373_digital_tlv, -9563, 0);
332 static const DECLARE_TLV_DB_SCALE(adau1373_in_pga_tlv, -1300, 100, 1);
[all …]
Dcs47l24.c2 * cs47l24.h -- ALSA SoC Audio driver for Cirrus Logic CS47L24
36 #define DRV_NAME "cs47l24-codec"
65 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in cs47l24_adsp_power_ev()
66 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in cs47l24_adsp_power_ev()
70 ret = regmap_read(arizona->regmap, ARIZONA_SYSTEM_CLOCK_1, &v); in cs47l24_adsp_power_ev()
72 dev_err(component->dev, "Failed to read SYSCLK state: %d\n", ret); in cs47l24_adsp_power_ev()
81 static DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0);
82 static DECLARE_TLV_DB_SCALE(digital_tlv, -6400, 50, 0);
83 static DECLARE_TLV_DB_SCALE(noise_tlv, -13200, 600, 0);
84 static DECLARE_TLV_DB_SCALE(ng_tlv, -10200, 600, 0);
[all …]
Dwm8998.c2 * wm8998.c -- ALSA SoC Audio driver for WM8998 codecs
44 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in wm8998_asrc_ev()
60 dev_warn(component->dev, in wm8998_asrc_ev()
63 return -EINVAL; in wm8998_asrc_ev()
67 dev_err(component->dev, in wm8998_asrc_ev()
70 return -EINVAL; in wm8998_asrc_ev()
80 val -= 0x8; in wm8998_asrc_ev()
84 dev_warn(component->dev, in wm8998_asrc_ev()
87 return -EINVAL; in wm8998_asrc_ev()
91 dev_err(component->dev, in wm8998_asrc_ev()
[all …]
Dda732x.c2 * da732x.c --- Dialog DA732X ALSA SoC Audio Driver
27 #include <sound/soc-dapm.h>
44 * da732x register cache - default settings
192 return -EINVAL; in da732x_get_input_div()
335 struct soc_enum *enum_ctrl = (struct soc_enum *)kcontrol->private_value; in da732x_hpf_set()
336 unsigned int reg = enum_ctrl->reg; in da732x_hpf_set()
337 unsigned int sel = ucontrol->value.enumerated.item[0]; in da732x_hpf_set()
351 return -EINVAL; in da732x_hpf_set()
363 struct soc_enum *enum_ctrl = (struct soc_enum *)kcontrol->private_value; in da732x_hpf_get()
364 unsigned int reg = enum_ctrl->reg; in da732x_hpf_get()
[all …]
Dwm5102.c2 * wm5102.c -- WM5102 ALSA SoC Audio driver
37 #define DRV_NAME "wm5102-codec"
45 static DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0);
46 static DECLARE_TLV_DB_SCALE(digital_tlv, -6400, 50, 0);
47 static DECLARE_TLV_DB_SCALE(noise_tlv, -13200, 600, 0);
48 static DECLARE_TLV_DB_SCALE(ng_tlv, -10200, 600, 0);
586 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in wm5102_sysclk_ev()
587 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in wm5102_sysclk_ev()
588 struct regmap *regmap = arizona->regmap; in wm5102_sysclk_ev()
592 switch (arizona->rev) { in wm5102_sysclk_ev()
[all …]
/kernel/linux/linux-5.10/drivers/pinctrl/cirrus/
Dpinctrl-lochnagar.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (c) 2017-2018 Cirrus Logic, Inc. and
21 #include <linux/pinctrl/pinconf-generic.h>
27 #include <dt-bindings/pinctrl/lochnagar.h>
29 #include "../pinctrl-utils.h"
33 #define LN_CDC_AIF1_STR "codec-aif1"
34 #define LN_CDC_AIF2_STR "codec-aif2"
35 #define LN_CDC_AIF3_STR "codec-aif3"
36 #define LN_DSP_AIF1_STR "dsp-aif1"
37 #define LN_DSP_AIF2_STR "dsp-aif2"
[all …]

123