Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/sound/
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
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 …]
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 '#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 …]
/OK3568_Linux_fs/kernel/include/sound/
H A 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
/OK3568_Linux_fs/kernel/include/sound/sof/
H A 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 …]
/OK3568_Linux_fs/kernel/sound/soc/codecs/
H A 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 …]
H A Des7202.c2 * ALSA SoC ES7202 pdm adc driver
4 * Author: David Yang, <yangxiaohua@everest-semi.com>
14 * ES7202 is 2-ch ADC with PDM interface
34 #include <sound/soc-dapm.h>
77 if (!client || !client->adapter) in es7202_read()
78 return -1; in es7202_read()
83 return -1; in es7202_read()
89 return -1; in es7202_read()
100 if (!client || !client->adapter) in es7202_write()
101 return -1; in es7202_write()
[all …]
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
5 # setting - SPI can't be modular so that case doesn't need to be covered.
400 tristate "Analog Devices AU1761 CODEC - I2C"
406 tristate "Analog Devices AU1761 CODEC - SPI"
443 tristate "Analog Devices ADAU7002 Stereo PDM-to-I2S/TDM Converter"
449 tristate "Analog Devices ADAU7118 8 Channel PDM-to-I2S/TDM Converter - HW Mode"
452 Enable support for the Analog Devices ADAU7118 8 Channel PDM-to-I2S/TDM
458 will be called snd-soc-adau7118-hw.
461 tristate "Analog Devices ADAU7118 8 Channel PDM-to-I2S/TDM Converter - I2C"
466 Enable support for the Analog Devices ADAU7118 8 Channel PDM-to-I2S/TDM
[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>
296 ucontrol->value.integer.value[0] = rt5651->asrc_en; in rt5651_asrc_get()
307 rt5651->asrc_en = ucontrol->value.integer.value[0]; in rt5651_asrc_put()
308 if (rt5651->asrc_en) { in rt5651_asrc_put()
309 regmap_write(rt5651->regmap, 0x80, 0x4000); in rt5651_asrc_put()
310 regmap_write(rt5651->regmap, 0x81, 0x0302); in rt5651_asrc_put()
311 regmap_write(rt5651->regmap, 0x82, 0x0800); in rt5651_asrc_put()
312 regmap_write(rt5651->regmap, 0x73, 0x1004); in rt5651_asrc_put()
[all …]
H A Dcs35l36.c1 // SPDX-License-Identifier: GPL-2.0
3 // cs35l36.c -- CS35L36 ALSA SoC audio driver
27 #include <sound/soc-dapm.h>
448 TLV_DB_MINMAX_ITEM(-10200, 1200));
465 ucontrol->value.integer.value[0] = cs35l36->ldm_mode_sel; in cs35l36_ldm_sel_get()
477 int val = (ucontrol->value.integer.value[0]) ? CS35L36_NG_AMP_EN_MASK : in cs35l36_ldm_sel_put()
480 cs35l36->ldm_mode_sel = val; in cs35l36_ldm_sel_put()
482 regmap_update_bits(cs35l36->regmap, CS35L36_NG_CFG, in cs35l36_ldm_sel_put()
494 SOC_SINGLE("Amp Gain Zero-Cross Switch", CS35L36_AMP_GAIN_CTRL,
496 SOC_SINGLE("PDM LDM Enter Ramp Switch", CS35L36_DAC_MSM_CFG,
[all …]
H A 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 …]
H A 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 …]
H A 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 …]
H A Drt5670.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rt5670.c -- RT5670 ALSA SoC audio codec driver
25 #include <sound/soc-dapm.h>
31 #include "rt5670-dsp.h"
50 MODULE_PARM_DESC(quirk, "Board-specific quirk override");
422 * rt5670_headset_detect - Detect headset.
457 rt5670->jack_type = SND_JACK_HEADSET; in rt5670_headset_detect()
464 rt5670->jack_type = SND_JACK_HEADPHONE; in rt5670_headset_detect()
471 rt5670->jack_type = 0; in rt5670_headset_detect()
476 return rt5670->jack_type; in rt5670_headset_detect()
[all …]
/OK3568_Linux_fs/kernel/include/linux/mfd/arizona/
H A 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 */
/OK3568_Linux_fs/kernel/include/uapi/sound/sof/
H A 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 */
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/rockchip/
H A Drk3326-evb-ai-va-v10.dts4 * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 /dts-v1/;
8 #include <dt-bindings/display/drm_mipi_dsi.h>
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/pinctrl/rockchip.h>
12 #include <dt-bindings/sensor-dev.h>
14 #include "rk3326-863-cif-sensor.dtsi"
15 #include "px30-android.dtsi"
19 compatible = "rockchip,rk3326-evb-ai-va-v10", "rockchip,rk3326";
[all …]
H A Drk3326-evb-ai-va-v12.dts4 * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 /dts-v1/;
8 #include <dt-bindings/display/drm_mipi_dsi.h>
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/pinctrl/rockchip.h>
12 #include <dt-bindings/sensor-dev.h>
14 #include "rk3326-863-cif-sensor.dtsi"
15 #include "px30-android.dtsi"
19 compatible = "rockchip,rk3326-evb-ai-va-v12", "rockchip,rk3326";
[all …]
H A Drk3326-evb-ai-va-v11.dts4 * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 /dts-v1/;
8 #include <dt-bindings/display/drm_mipi_dsi.h>
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/pinctrl/rockchip.h>
12 #include <dt-bindings/sensor-dev.h>
14 #include "rk3326-863-cif-sensor.dtsi"
15 #include "px30-android.dtsi"
19 compatible = "rockchip,rk3326-evb-ai-va-v11", "rockchip,rk3326";
[all …]
H A Drk3326-evb-ai-va-v11-i2s-dmic.dts4 * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 /dts-v1/;
8 #include <dt-bindings/display/drm_mipi_dsi.h>
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/pinctrl/rockchip.h>
12 #include <dt-bindings/sensor-dev.h>
14 #include "rk3326-863-cif-sensor.dtsi"
15 #include "px30-android.dtsi"
18 model = "Rockchip rk3326 ai voice assistant evb v11 i2s-dmic board";
[all …]
/OK3568_Linux_fs/kernel/sound/soc/sof/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/pinctrl/meson/
H A 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 …]
/OK3568_Linux_fs/kernel/sound/soc/codecs/aw883xx/
H A Daw883xx.c1 // SPDX-License-Identifier: GPL-2.0+
71 aw883xx->aw_pa->platform = AW_QCOM; in aw883xx_platform_init()
74 aw883xx->aw_pa->platform = AW_MTK; in aw883xx_platform_init()
77 aw883xx->aw_pa->platform = AW_SPRD; in aw883xx_platform_init()
80 return -EINVAL; in aw883xx_platform_init()
90 return -ENOMEM; in aw883xx_get_version()
116 int i2cbus = aw883xx->i2c->adapter->nr; in aw883xx_append_i2c_suffix()
117 int addr = aw883xx->i2c->addr; in aw883xx_append_i2c_suffix()
120 *change_name = aw883xx_devm_kstrdup(aw883xx->dev, buf); in aw883xx_append_i2c_suffix()
122 return -ENOMEM; in aw883xx_append_i2c_suffix()
[all …]
/OK3568_Linux_fs/kernel/sound/pci/hda/
H A 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() */
139 struct alc_spec *spec = codec->spec; in coef_mutex_lock()
142 mutex_lock(&spec->coef_mutex); in coef_mutex_lock()
147 struct alc_spec *spec = codec->spec; in coef_mutex_unlock()
149 mutex_unlock(&spec->coef_mutex); in coef_mutex_unlock()
201 if (val != -1) in __alc_update_coefex_idx()
221 struct alc_spec *spec = codec->spec; in alc_get_coef0()
223 if (!spec->coef0) in alc_get_coef0()
[all …]
/OK3568_Linux_fs/kernel/sound/soc/stm/
H A 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 …]
/OK3568_Linux_fs/kernel/sound/soc/
H A Dsoc-core.c1 // SPDX-License-Identifier: GPL-2.0+
3 // soc-core.c -- ALSA SoC Audio Layer
11 // with code, comments and ideas from :-
40 #include <sound/soc-dpcm.h>
41 #include <sound/soc-topology.h>
42 #include <sound/soc-link.h>
76 return sprintf(buf, "%ld\n", rtd->pmdown_time); in pmdown_time_show()
86 ret = kstrtol(buf, 10, &rtd->pmdown_time); in pmdown_time_set()
110 return attr->mode; /* always visible */ in soc_dev_attr_is_visible()
111 return rtd->num_codecs ? attr->mode : 0; /* enabled only with codec */ in soc_dev_attr_is_visible()
[all …]

12