Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/sound/soc/codecs/
H A Dadau7118.c1 // SPDX-License-Identifier: GPL-2.0
3 // Analog Devices ADAU7118 8 channel PDM-to-I2S/TDM Converter driver
65 /* PDM Clocks */
128 snd_soc_component_get_drvdata(dai->component); in adau7118_set_channel_map()
131 dev_dbg(st->dev, "Set channel map, %d", tx_num); in adau7118_set_channel_map()
134 ret = snd_soc_component_update_bits(dai->component, in adau7118_set_channel_map()
145 static int adau7118_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) in adau7118_set_fmt() argument
148 snd_soc_component_get_drvdata(dai->component); in adau7118_set_fmt()
152 dev_dbg(st->dev, "Set format, fmt:%d\n", fmt); in adau7118_set_fmt()
154 switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) { in adau7118_set_fmt()
[all …]
H A Dmax98926.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * max98926.c -- ALSA SoC MAX98926 driver
4 * Copyright 2013-15 Maxim Integrated Products
104 SOC_DAPM_SINGLE("PDM Single Switch", MAX98926_SPK_AMP,
141 SND_SOC_DAPM_MUX("PDM CH1 Source",
145 SND_SOC_DAPM_MUX("PDM CH0 Source",
159 {"PDM CH1 Source", "Current", "DAI_OUT"},
160 {"PDM CH1 Source", "Voltage", "DAI_OUT"},
161 {"PDM CH0 Source", "Current", "DAI_OUT"},
162 {"PDM CH0 Source", "Voltage", "DAI_OUT"},
[all …]
H A Dtlv320adcx140.c1 // SPDX-License-Identifier: GPL-2.0
3 // Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/
41 "ti,gpo-config-1",
42 "ti,gpo-config-2",
43 "ti,gpo-config-3",
44 "ti,gpo-config-4",
163 /* Digital Volume control. From -100 to 27 dB in 0.5 dB steps */
164 static DECLARE_TLV_DB_SCALE(dig_vol_tlv, -10050, 50, 0);
169 /* DRE Level. From -12 dB to -66 dB in 1 dB steps */
170 static DECLARE_TLV_DB_SCALE(dre_thresh_tlv, -6600, 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>
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 Drt5659.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rt5659.c -- RT5659/RT5658 ALSA SoC audio codec driver
26 #include <sound/soc-dapm.h>
1137 static const DECLARE_TLV_DB_SCALE(hp_vol_tlv, -2325, 75, 0);
1138 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0);
1139 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -65625, 375, 0);
1140 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0);
1141 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -17625, 375, 0);
1143 static const DECLARE_TLV_DB_SCALE(in_bst_tlv, -1200, 75, 0);
1250 * rt5659_headset_detect - Detect headset.
[all …]
H A Dcs35l35.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cs35l35.c -- CS35L35 ALSA SoC audio driver
28 #include <sound/soc-dapm.h>
163 gpiod_set_value_cansleep(cs35l35->reset_gpio, 0); in cs35l35_reset()
165 gpiod_set_value_cansleep(cs35l35->reset_gpio, 1); in cs35l35_reset()
173 if (cs35l35->pdata.ext_bst) { in cs35l35_wait_for_pdn()
178 reinit_completion(&cs35l35->pdn_done); in cs35l35_wait_for_pdn()
180 ret = wait_for_completion_timeout(&cs35l35->pdn_done, in cs35l35_wait_for_pdn()
183 dev_err(cs35l35->dev, "PDN_DONE did not complete\n"); in cs35l35_wait_for_pdn()
184 return -ETIMEDOUT; in cs35l35_wait_for_pdn()
[all …]
H A Drt5665.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rt5665.c -- RT5665/RT5658 ALSA SoC audio codec driver
27 #include <sound/soc-dapm.h>
888 static const DECLARE_TLV_DB_SCALE(hp_vol_tlv, -2250, 150, 0);
889 static const DECLARE_TLV_DB_SCALE(mono_vol_tlv, -1400, 150, 0);
890 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0);
891 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -65625, 375, 0);
892 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0);
893 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -17625, 375, 0);
895 static const DECLARE_TLV_DB_SCALE(in_bst_tlv, -1200, 75, 0);
[all …]
H A Dmax98927.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * max98927.c -- MAX98927 ALSA Soc Audio driver
5 * Copyright (C) 2016-2017 Maxim Integrated Products
139 static int max98927_dai_set_fmt(struct snd_soc_dai *codec_dai, unsigned int fmt) in max98927_dai_set_fmt() argument
141 struct snd_soc_component *component = codec_dai->component; in max98927_dai_set_fmt()
148 dev_dbg(component->dev, "%s: fmt 0x%08X\n", __func__, fmt); in max98927_dai_set_fmt()
150 switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) { in max98927_dai_set_fmt()
155 max98927->master = true; in max98927_dai_set_fmt()
159 dev_err(component->dev, "DAI clock mode unsupported\n"); in max98927_dai_set_fmt()
160 return -EINVAL; in max98927_dai_set_fmt()
[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>
142 #define madera_fll_err(_fll, fmt, ...) \ argument
143 dev_err(_fll->madera->dev, "FLL%d: " fmt, _fll->id, ##__VA_ARGS__)
144 #define madera_fll_warn(_fll, fmt, ...) \ argument
145 dev_warn(_fll->madera->dev, "FLL%d: " fmt, _fll->id, ##__VA_ARGS__)
146 #define madera_fll_dbg(_fll, fmt, ...) \ argument
[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 Dwm2200.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm2200.c -- WM2200 ALSA SoC Audio driver
169 { 0x000B, 0x0000 }, /* R11 - Tone Generator 1 */
170 { 0x0102, 0x0000 }, /* R258 - Clocking 3 */
171 { 0x0103, 0x0011 }, /* R259 - Clocking 4 */
172 { 0x0111, 0x0000 }, /* R273 - FLL Control 1 */
173 { 0x0112, 0x0000 }, /* R274 - FLL Control 2 */
174 { 0x0113, 0x0000 }, /* R275 - FLL Control 3 */
175 { 0x0114, 0x0000 }, /* R276 - FLL Control 4 */
176 { 0x0116, 0x0177 }, /* R278 - FLL Control 6 */
[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 …]
H A Drt5645.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rt5645.c -- RT5645 ALSA SoC audio codec driver
27 #include <sound/soc-dapm.h>
41 static unsigned int quirk = -1;
638 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0);
639 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -6525, 75, 0);
640 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0);
641 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -1725, 75, 0);
655 /* {-6, -4.5, -3, -1.5, 0, 0.82, 1.58, 2.28} dB */
657 0, 4, TLV_DB_SCALE_ITEM(-600, 150, 0),
[all …]
H A Drt5677.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rt5677.c -- RT5677 ALSA SoC audio codec driver
31 #include <sound/soc-dapm.h>
37 #include "rt5677-spi.h"
554 * rt5677_dsp_mode_i2c_write_addr - Write value to address on DSP mode.
565 struct snd_soc_component *component = rt5677->component; in rt5677_dsp_mode_i2c_write_addr()
568 mutex_lock(&rt5677->dsp_cmd_lock); in rt5677_dsp_mode_i2c_write_addr()
570 ret = regmap_write(rt5677->regmap_physical, RT5677_DSP_I2C_ADDR_MSB, in rt5677_dsp_mode_i2c_write_addr()
573 dev_err(component->dev, "Failed to set addr msb value: %d\n", ret); in rt5677_dsp_mode_i2c_write_addr()
577 ret = regmap_write(rt5677->regmap_physical, RT5677_DSP_I2C_ADDR_LSB, in rt5677_dsp_mode_i2c_write_addr()
[all …]
/OK3568_Linux_fs/kernel/sound/soc/rockchip/
H A Drockchip_pdm.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Rockchip PDM ALSA SoC Digital Audio Interface(DAI) driver
34 #define CLK_PPM_MIN (-1000)
100 static unsigned int get_pdm_clk(struct rk_pdm_dev *pdm, unsigned int sr, in get_pdm_clk() argument
115 if ((div & (div - 1)) == 0) { in get_pdm_clk()
117 if (pdm->clk_calibrate) { in get_pdm_clk()
122 rate = clk_round_rate(pdm->clk, clkref[i].clk); in get_pdm_clk()
124 if (rate < clkref[i].clk - delta || in get_pdm_clk()
134 clk = clk_round_rate(pdm->clk, signoff); in get_pdm_clk()
210 static void rockchip_pdm_rxctrl(struct rk_pdm_dev *pdm, int on) in rockchip_pdm_rxctrl() argument
[all …]
/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/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/sound/soc/intel/skylake/
H A Dskl-messages.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * skl-message.c - HDA DSP interface for FW registration, Pipe and Module
16 #include <uapi/sound/skl-tplg-interface.h>
17 #include "skl-sst-dsp.h"
18 #include "cnl-sst-dsp.h"
19 #include "skl-sst-ipc.h"
21 #include "../common/sst-dsp.h"
22 #include "../common/sst-dsp-priv.h"
23 #include "skl-topology.h"
47 skl_ipc_set_large_config(&skl->ipc, &msg, data); in skl_dsp_set_astate_cfg()
[all …]
H A Dskl-topology.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * skl-topology.c - Implements Platform component ALSA controls/widget
6 * Copyright (C) 2014-2015 Intel Corp
15 #include <sound/intel-nhlt.h>
17 #include <sound/soc-acpi.h>
18 #include <sound/soc-topology.h>
20 #include <uapi/sound/skl-tplg-interface.h>
21 #include "skl-sst-dsp.h"
22 #include "skl-sst-ipc.h"
23 #include "skl-topology.h"
[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/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/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 …]
/OK3568_Linux_fs/recovery/
HDrootfs.cpio.gz ... then 81 /usr/share/command-not-found/command-not-found -- "$ ...
/OK3568_Linux_fs/device/rockchip/common/images/userdata/userdata_normal/media/
H A Dyuv420_p352x288.yuv1-,)('''())*),,***********)())+)**)))**+*))*+**+*)((**++*+*++)))))*+*,))*'&**(**()+)(+++*+'(*)*,+**…
2-=Ris]U|zXjsnppooqqqtsrststuttstssutrtrroqsonopnmmnmlmmnlkmmlllkjiiihhjhfggffffgggghffhgfggdaa^[YW…
4 …411./1/--../0.--,--,.--/-.,ccbddcbbbccceccddcbdedddcccdddddccdehlpqqqoljgcdedefffggffffhiiiiijkki…
5 C=#B`L\y}����������������SY�x���UD:NrfRYaaku|����~{vqmf__J21,OS-$(9^�jg�
6 …411/010--//0/.1.*-.--...,0/ccddccdbcdbbeccddbceeddddddeeddddeffiopqrrpljgddedegfffhffhfhiijjijkki…
7-/1/,.2/,-.0-.0.,1/cbdcbcdcbdbcdcccdcdddeccddddedddddfginrrsrokieeeeeegffghhgggggijjjkjjijiihiikm…
8-,./-,.-..-...../-0,bbcdccddcdddeddeeddccdccddcceddeeceginssrqnkhegffffgffhgfgggfgiijjiiiiihhihik…
9-Gipopoprqqpqqpppppqpooqooqooonmmmmmmlnljjkkjjjijjiiiigfgfgeeeedeededceddcbcccb`^[WTPPNKFA=:732111…