Home
last modified time | relevance | path

Searched +full:pdm +full:- +full:mute (Results 1 – 25 of 29) sorted by relevance

12

/kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/
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
21 include/dt-bindings/sound/madera.h
26 '#sound-dai-cells':
35 INnAR INnBL INnBR. For non-muxed inputs the first two cells
43 $ref: /schemas/types.yaml#/definitions/uint32-array
51 cirrus,out-mono:
55 $ref: /schemas/types.yaml#/definitions/uint32-array
[all …]
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 '#sound-dai-cells':
28 signals. Valid values are 0 (Differential), 1 (Single-ended) and
35 $ref: /schemas/types.yaml#/definitions/uint32-array
43 wlf,out-mono:
47 (eg. First entry in the list corresponds to output 1). A non-zero
51 $ref: /schemas/types.yaml#/definitions/uint32-array
[all …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/sound/
Dwlf,arizona.txt12 - wlf,inmode : A list of INn_MODE register values, where n is the number
13 of input signals. Valid values are 0 (Differential), 1 (Single-ended) and
20 - wlf,out-mono : A list of boolean values indicating whether each output is
22 (eg. First entry in the list corresponds to output 1). A non-zero value
27 - wlf,dmic-ref : DMIC reference voltage source for each input, can be
29 (ARIZONA_DMIC_xxxx) are provided in <dt-bindings/mfd/arizona.txt>. If
33 - wlf,max-channels-clocked : The maximum number of channels to be clocked on
41 - wlf,spk-fmt : PDM speaker data format, must contain 2 cells (OUT5 and OUT6).
46 - wlf,spk-mute : PDM speaker mute setting, must contain 2 cells (OUT5 and OUT6).
51 - wlf,out-volume-limit : The volume limit value that should be applied to each
/kernel/linux/linux-5.10/include/sound/
Dmadera-pdata.h1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Copyright (C) 2016-2019 Cirrus Logic, Inc. and
35 * values. Two-dimensional array
41 * @pdm_fmt: PDM speaker data format. See the PDM_SPKn_FMT field in
43 * @pdm_mute: PDM mute format. See the PDM_SPKn_CTRL_1 register
/kernel/linux/linux-5.10/include/sound/sof/
Ddai-intel.h1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
55 /* SSP Configuration Request - SOF_IPC_DAI_SSP_CONFIG */
87 /* HDA Configuration Request - SOF_IPC_DAI_HDA_CONFIG */
95 /* ALH Configuration Request - SOF_IPC_DAI_ALH_CONFIG */
106 /* DMIC Configuration Request - SOF_IPC_DAI_DMIC_CONFIG */
108 /* This struct is defined per 2ch PDM controller available in the platform.
120 * 3. If PDM bit errors are seen in capture (poor quality) the skew parameter
127 uint16_t id; /**< PDM controller ID */
136 uint16_t skew; /**< Adjust PDM data sampling vs. clock (0..15) */
141 /* This struct contains the global settings for all 2ch PDM controllers. The
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Dtwl6040.c1 // SPDX-License-Identifier: GPL-2.0-only
21 #include <sound/soc-dapm.h>
61 u8 dl12_cache[TWL6040_REG_HFRCTL - TWL6040_REG_HSLCTL + 1];
69 /* set of rates for each pll: low-power and high-performance */
95 #define to_twl6040(component) dev_get_drvdata((component)->dev->parent)
104 return -EIO; in twl6040_read()
112 value = priv->dl12_cache[reg - TWL6040_REG_HSLCTL]; in twl6040_read()
132 return priv->dl1_unmuted; in twl6040_can_write_to_chip()
135 return priv->dl2_unmuted; in twl6040_can_write_to_chip()
152 priv->dl12_cache[reg - TWL6040_REG_HSLCTL] = value; in twl6040_update_dl12_cache()
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
5 # setting - SPI can't be modular so that case doesn't need to be covered.
386 tristate "Analog Devices AU1761 CODEC - I2C"
392 tristate "Analog Devices AU1761 CODEC - SPI"
429 tristate "Analog Devices ADAU7002 Stereo PDM-to-I2S/TDM Converter"
435 tristate "Analog Devices ADAU7118 8 Channel PDM-to-I2S/TDM Converter - HW Mode"
438 Enable support for the Analog Devices ADAU7118 8 Channel PDM-to-I2S/TDM
444 will be called snd-soc-adau7118-hw.
447 tristate "Analog Devices ADAU7118 8 Channel PDM-to-I2S/TDM Converter - I2C"
452 Enable support for the Analog Devices ADAU7118 8 Channel PDM-to-I2S/TDM
[all …]
Dcs35l36.c1 // SPDX-License-Identifier: GPL-2.0
3 // cs35l36.c -- CS35L36 ALSA SoC audio driver
27 #include <sound/soc-dapm.h>
447 static DECLARE_TLV_DB_SCALE(dig_vol_tlv, -10200, 25, 0);
464 ucontrol->value.integer.value[0] = cs35l36->ldm_mode_sel; in cs35l36_ldm_sel_get()
476 int val = (ucontrol->value.integer.value[0]) ? CS35L36_NG_AMP_EN_MASK : in cs35l36_ldm_sel_put()
479 cs35l36->ldm_mode_sel = val; in cs35l36_ldm_sel_put()
481 regmap_update_bits(cs35l36->regmap, CS35L36_NG_CFG, in cs35l36_ldm_sel_put()
493 SOC_SINGLE("Amp Gain Zero-Cross Switch", CS35L36_AMP_GAIN_CTRL,
495 SOC_SINGLE("PDM LDM Enter Ramp Switch", CS35L36_DAC_MSM_CFG,
[all …]
Dmadera.c1 // SPDX-License-Identifier: GPL-2.0-only
5 // Copyright (C) 2015-2019 Cirrus Logic, Inc. and
18 #include <linux/irqchip/irq-madera.h>
22 #include <sound/madera-pdata.h>
24 #include <dt-bindings/sound/madera.h>
143 dev_err(_fll->madera->dev, "FLL%d: " fmt, _fll->id, ##__VA_ARGS__)
145 dev_warn(_fll->madera->dev, "FLL%d: " fmt, _fll->id, ##__VA_ARGS__)
147 dev_dbg(_fll->madera->dev, "FLL%d: " fmt, _fll->id, ##__VA_ARGS__)
150 dev_err(_dai->dev, "AIF%d: " fmt, _dai->id, ##__VA_ARGS__)
152 dev_warn(_dai->dev, "AIF%d: " fmt, _dai->id, ##__VA_ARGS__)
[all …]
Dwm8995.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * wm8995.h -- WM8995 ALSA SoC Audio driver
753 * R0 (0x00) - Software Reset
755 #define WM8995_SW_RESET_MASK 0xFFFF /* SW_RESET - [15:0] */
756 #define WM8995_SW_RESET_SHIFT 0 /* SW_RESET - [15:0] */
757 #define WM8995_SW_RESET_WIDTH 16 /* SW_RESET - [15:0] */
760 * R1 (0x01) - Power Management (1)
792 * R2 (0x02) - Power Management (2)
812 * R3 (0x03) - Power Management (3)
872 * R4 (0x04) - Power Management (4)
[all …]
Dwm8996.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * wm8996.h - WM8996 audio codec interface
744 * R0 (0x00) - Software Reset
746 #define WM8996_SW_RESET_MASK 0xFFFF /* SW_RESET - [15:0] */
747 #define WM8996_SW_RESET_SHIFT 0 /* SW_RESET - [15:0] */
748 #define WM8996_SW_RESET_WIDTH 16 /* SW_RESET - [15:0] */
751 * R1 (0x01) - Power Management (1)
783 * R2 (0x02) - Power Management (2)
803 * R3 (0x03) - Power Management (3)
847 * R4 (0x04) - Power Management (4)
[all …]
/kernel/linux/linux-4.19/sound/soc/codecs/
Dtwl6040.c18 * 02110-1301 USA
35 #include <sound/soc-dapm.h>
75 u8 dl12_cache[TWL6040_REG_HFRCTL - TWL6040_REG_HSLCTL + 1];
83 /* set of rates for each pll: low-power and high-performance */
109 #define to_twl6040(component) dev_get_drvdata((component)->dev->parent)
118 return -EIO; in twl6040_read()
126 value = priv->dl12_cache[reg - TWL6040_REG_HSLCTL]; in twl6040_read()
146 return priv->dl1_unmuted; in twl6040_can_write_to_chip()
149 return priv->dl2_unmuted; in twl6040_can_write_to_chip()
166 priv->dl12_cache[reg - TWL6040_REG_HSLCTL] = value; in twl6040_update_dl12_cache()
[all …]
Dwm8995.h2 * wm8995.h -- WM8995 ALSA SoC Audio driver
756 * R0 (0x00) - Software Reset
758 #define WM8995_SW_RESET_MASK 0xFFFF /* SW_RESET - [15:0] */
759 #define WM8995_SW_RESET_SHIFT 0 /* SW_RESET - [15:0] */
760 #define WM8995_SW_RESET_WIDTH 16 /* SW_RESET - [15:0] */
763 * R1 (0x01) - Power Management (1)
795 * R2 (0x02) - Power Management (2)
815 * R3 (0x03) - Power Management (3)
875 * R4 (0x04) - Power Management (4)
919 * R5 (0x05) - Power Management (5)
[all …]
Dwm8996.h2 * wm8996.h - WM8996 audio codec interface
748 * R0 (0x00) - Software Reset
750 #define WM8996_SW_RESET_MASK 0xFFFF /* SW_RESET - [15:0] */
751 #define WM8996_SW_RESET_SHIFT 0 /* SW_RESET - [15:0] */
752 #define WM8996_SW_RESET_WIDTH 16 /* SW_RESET - [15:0] */
755 * R1 (0x01) - Power Management (1)
787 * R2 (0x02) - Power Management (2)
807 * R3 (0x03) - Power Management (3)
851 * R4 (0x04) - Power Management (4)
887 * R5 (0x05) - Power Management (5)
[all …]
Drt5670.c2 * rt5670.c -- RT5670 ALSA SoC audio codec driver
28 #include <sound/soc-dapm.h>
35 #include "rt5670-dsp.h"
54 MODULE_PARM_DESC(quirk, "Board-specific quirk override");
426 * rt5670_headset_detect - Detect headset.
461 rt5670->jack_type = SND_JACK_HEADSET; in rt5670_headset_detect()
468 rt5670->jack_type = SND_JACK_HEADPHONE; in rt5670_headset_detect()
475 rt5670->jack_type = 0; in rt5670_headset_detect()
480 return rt5670->jack_type; in rt5670_headset_detect()
487 rt5670->jack_type_saved = rt5670->jack_type; in rt5670_jack_suspend()
[all …]
/kernel/linux/linux-5.10/include/linux/mfd/arizona/
Dpdata.h1 /* SPDX-License-Identifier: GPL-2.0-only */
11 #include <dt-bindings/mfd/arizona.h>
12 #include <linux/regulator/arizona-ldo1.h>
13 #include <linux/regulator/arizona-micsupp.h>
36 #define ARIZONA_GPN_FN_MASK 0x007F /* GPN_FN - [6:0] */
37 #define ARIZONA_GPN_FN_SHIFT 0 /* GPN_FN - [6:0] */
38 #define ARIZONA_GPN_FN_WIDTH 7 /* GPN_FN - [6:0] */
178 /** PDM speaker mute setting */
181 /** PDM speaker format */
/kernel/linux/linux-4.19/include/linux/mfd/arizona/
Dpdata.h14 #include <dt-bindings/mfd/arizona.h>
15 #include <linux/regulator/arizona-ldo1.h>
16 #include <linux/regulator/arizona-micsupp.h>
39 #define ARIZONA_GPN_FN_MASK 0x007F /* GPN_FN - [6:0] */
40 #define ARIZONA_GPN_FN_SHIFT 0 /* GPN_FN - [6:0] */
41 #define ARIZONA_GPN_FN_WIDTH 7 /* GPN_FN - [6:0] */
181 /** PDM speaker mute setting */
184 /** PDM speaker format */
/kernel/linux/linux-5.10/include/uapi/sound/sof/
Dtokens.h1 /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */
32 * Tokens - must match values in topology configurations
102 /* DMIC PDM */
130 /* Led control for mute switches */
/kernel/linux/linux-5.10/sound/soc/sof/
Dtopology.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
19 #include "sof-priv.h"
20 #include "sof-audio.h"
26 * from dB gain 20th root of 10 in Q1.16 fixed-point notation
29 /* 40th root of 10 in Q1.16 fixed-point notation*/
61 struct snd_soc_component *scomp = swidget->scomp; in ipc_pcm_params()
71 spcm = snd_sof_find_spcm_name(scomp, swidget->widget->sname); in ipc_pcm_params()
73 dev_err(scomp->dev, "error: cannot find PCM for %s\n", in ipc_pcm_params()
74 swidget->widget->name); in ipc_pcm_params()
75 return -EINVAL; in ipc_pcm_params()
[all …]
/kernel/linux/linux-5.10/drivers/pinctrl/meson/
Dpinctrl-meson-a1.c1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
9 #include <dt-bindings/gpio/meson-a1-gpio.h>
10 #include "pinctrl-meson.h"
11 #include "pinctrl-meson-axg-pmx.h"
244 /* pdm */
338 /* mute */
858 FUNCTION(pdm),
875 FUNCTION(mute),
907 .name = "periphs-banks",
923 .compatible = "amlogic,meson-a1-periphs-pinctrl",
[all …]
/kernel/linux/linux-4.19/sound/pci/hda/
Dpatch_realtek.c23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
44 /* extra amp-initialization sequence types */
95 /* mute LED for HP laptops, see alc269_fixup_mic_mute_hook() */
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()
[all …]
/kernel/linux/linux-4.19/sound/soc/stm/
Dstm32_sai_sub.c4 * Copyright (C) 2016, STMicroelectronics - All Rights Reserved
50 #define STM_SAI_IS_PLAYBACK(ip) ((ip)->dir == SNDRV_PCM_STREAM_PLAYBACK)
51 #define STM_SAI_IS_CAPTURE(ip) ((ip)->dir == SNDRV_PCM_STREAM_CAPTURE)
56 #define STM_SAI_IS_SUB_A(x) ((x)->id == STM_SAI_A_ID)
57 #define STM_SAI_IS_SUB_B(x) ((x)->id == STM_SAI_B_ID)
58 #define STM_SAI_BLOCK_NAME(x) (((x)->id == STM_SAI_A_ID) ? "A" : "B")
64 #define STM_SAI_PROTOCOL_IS_SPDIF(ip) ((ip)->spdif)
65 #define STM_SAI_HAS_SPDIF(x) ((x)->pdata->conf->has_spdif)
66 #define STM_SAI_HAS_EXT_SYNC(x) (!STM_SAI_IS_F4(sai->pdata))
72 * struct stm32_sai_sub_data - private data of SAI sub block (block A or B)
[all …]
/kernel/linux/linux-4.19/sound/soc/
Dsoc-core.c1 // SPDX-License-Identifier: GPL-2.0+
3 // soc-core.c -- ALSA SoC Audio Layer
11 // with code, comments and ideas from :-
39 #include <sound/soc-dpcm.h>
40 #include <sound/soc-topology.h>
66 * "Type2 - Board Manufacturer" or "Type1 - TBD by OEM"), it will be taken
84 return sprintf(buf, "%ld\n", rtd->pmdown_time); in pmdown_time_show()
94 ret = kstrtol(buf, 10, &rtd->pmdown_time); in pmdown_time_set()
115 return attr->mode; /* always visible */ in soc_dev_attr_is_visible()
116 return rtd->num_codecs ? attr->mode : 0; /* enabled only with codec */ in soc_dev_attr_is_visible()
[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 */
90 /* mute LED for HP laptops, see vref_mute_led_set() */
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()
[all …]
/kernel/linux/linux-5.10/sound/soc/stm/
Dstm32_sai_sub.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2016, STMicroelectronics - All Rights Reserved
10 #include <linux/clk-provider.h>
41 #define STM_SAI_IS_PLAYBACK(ip) ((ip)->dir == SNDRV_PCM_STREAM_PLAYBACK)
42 #define STM_SAI_IS_CAPTURE(ip) ((ip)->dir == SNDRV_PCM_STREAM_CAPTURE)
47 #define STM_SAI_IS_SUB_A(x) ((x)->id == STM_SAI_A_ID)
48 #define STM_SAI_IS_SUB_B(x) ((x)->id == STM_SAI_B_ID)
49 #define STM_SAI_BLOCK_NAME(x) (((x)->id == STM_SAI_A_ID) ? "A" : "B")
55 #define STM_SAI_PROTOCOL_IS_SPDIF(ip) ((ip)->spdif)
56 #define STM_SAI_HAS_SPDIF(x) ((x)->pdata->conf.has_spdif_pdm)
[all …]

12