Home
last modified time | relevance | path

Searched +full:tdm +full:- +full:data +full:- +full:delay (Results 1 – 25 of 81) sorted by relevance

1234

/Linux-v6.1/Documentation/devicetree/bindings/sound/
Dqcom,q6dsp-lpass-ports.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: "http://devicetree.org/schemas/sound/qcom,q6dsp-lpass-ports.yaml#"
5 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
10 - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
18 - qcom,q6afe-dais
19 - qcom,q6apm-lpass-dais
21 '#sound-dai-cells':
24 '#address-cells':
27 '#size-cells':
[all …]
/Linux-v6.1/sound/soc/qcom/qdsp6/
Dq6afe-dai.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2011-2017, The Linux Foundation. All rights reserved.
14 #include "q6dsp-lpass-ports.h"
40 struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev); in q6slim_hw_params()
41 struct q6afe_slim_cfg *slim = &dai_data->port_config[dai->id].slim; in q6slim_hw_params()
43 slim->sample_rate = params_rate(params); in q6slim_hw_params()
48 slim->bit_width = 16; in q6slim_hw_params()
51 slim->bit_width = 24; in q6slim_hw_params()
54 slim->bit_width = 32; in q6slim_hw_params()
59 return -EINVAL; in q6slim_hw_params()
[all …]
/Linux-v6.1/sound/soc/codecs/
Dtas5720.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * tas5720.c - ALSA SoC Texas Instruments TAS5720 Mono Audio Amplifier
5 * Copyright (C)2015-2016 Texas Instruments Incorporated - https://www.ti.com
18 #include <linux/delay.h>
23 #include <sound/soc-dapm.h>
37 "dvdd", /* Digital power supply. Connect to 3.3-V supply. */
38 "pvdd", /* Class-D amp and analog power supply (connected). */
57 struct snd_soc_component *component = dai->component; in tas5720_hw_params()
72 dev_err(component->dev, "unsupported sample rate: %u\n", rate); in tas5720_hw_params()
73 return -EINVAL; in tas5720_hw_params()
[all …]
Dak4613.c1 // SPDX-License-Identifier: GPL-2.0
3 // ak4613.c -- Asahi Kasei ALSA Soc Audio driver
14 * +-------+
16 * SDTO1 <-| |
18 * SDTI1 ->| |
19 * SDTI2 ->| |
20 * SDTI3 ->| |
21 * +-------+
23 * +---+
66 * Tested TDM is very limited.
[all …]
Drt5659.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rt5659.c -- RT5659/RT5658 ALSA SoC audio codec driver
13 #include <linux/delay.h>
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);
[all …]
Dadau7118.c1 // SPDX-License-Identifier: GPL-2.0
3 // Analog Devices ADAU7118 8 channel PDM-to-I2S/TDM Converter driver
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()
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()
156 ret = snd_soc_component_update_bits(dai->component, in adau7118_set_fmt()
162 ret = snd_soc_component_update_bits(dai->component, in adau7118_set_fmt()
168 st->right_j = true; in adau7118_set_fmt()
[all …]
Dtas2552.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * tas2552.c - ALSA SoC Texas Instruments TAS2552 Mono Audio Amplifier
5 * Copyright (C) 2014 Texas Instruments Incorporated - https://www.ti.com
26 #include <sound/soc-dapm.h>
28 #include <sound/tas2552-plat.h>
29 #include <dt-bindings/sound/tas2552.h>
83 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in tas2552_post_event()
144 if (!tas2552->component) in tas2552_sw_shutdown()
150 snd_soc_component_update_bits(tas2552->component, TAS2552_CFG_1, TAS2552_SWS, in tas2552_sw_shutdown()
158 struct tas2552_data *tas2552 = dev_get_drvdata(component->dev); in tas2552_setup_pll()
[all …]
Dpcm186x.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2015-2017 Texas Instruments Incorporated - https://www.ti.com
13 #include <linux/delay.h>
30 "avdd", /* Analog power supply. Connect to 3.3-V supply. */
31 "dvdd", /* Digital power supply. Connect to 3.3-V supply. */
32 "iovdd", /* I/O power supply. Connect to 3.3-V or 1.8-V. */
45 static const DECLARE_TLV_DB_SCALE(pcm186x_pga_tlv, -1200, 50, 0);
49 PCM186X_PGA_VAL_CH1_R, 0, -24, 80, 7, 0,
55 PCM186X_PGA_VAL_CH1_R, 0, -24, 80, 7, 0,
58 PCM186X_PGA_VAL_CH2_R, 0, -24, 80, 7, 0,
[all …]
Drt5677.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rt5677.c -- RT5677 ALSA SoC audio codec driver
14 #include <linux/delay.h>
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.
555 * @rt5677: Private Data.
557 * @value: Address data.
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()
[all …]
Dtas6424.c1 // SPDX-License-Identifier: GPL-2.0
3 * ALSA SoC Texas Instruments TAS6424 Quad-Channel Audio Amplifier
5 * Copyright (C) 2016-2017 Texas Instruments Incorporated - https://www.ti.com/
18 #include <linux/delay.h>
24 #include <sound/soc-dapm.h>
33 "dvdd", /* Digital power supply. Connect to 3.3-V supply. */
35 "pvdd", /* Class-D amp output FETs supply. */
53 * DAC digital volumes. From -103.5 to 24 dB in 0.5 dB steps. Note that
54 * setting the gain below -100 dB (register value <0x7) is effectively a MUTE
57 static DECLARE_TLV_DB_SCALE(dac_tlv, -10350, 50, 0);
[all …]
Dad193x.c1 // SPDX-License-Identifier: GPL-2.0-or-later
22 /* codec private data */
30 * AD193X volume/mute/de-emphasis etc. controls
37 static const DECLARE_TLV_DB_MINMAX(adau193x_tlv, -9563, 0);
67 /* DAC de-emphasis */
78 /* ADC high-pass filter */
105 struct snd_soc_component *component = snd_soc_dapm_to_component(source->dapm); in ad193x_check_pll()
108 return !!ad193x->sysclk; in ad193x_check_pll()
131 switch (ad193x->type) { in ad193x_has_adc()
148 struct ad193x_priv *ad193x = snd_soc_component_get_drvdata(dai->component); in ad193x_mute()
[all …]
/Linux-v6.1/arch/arm64/boot/dts/amlogic/
Dmeson-g12-common.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 #include <dt-bindings/phy/phy.h>
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/clock/g12a-clkc.h>
9 #include <dt-bindings/clock/g12a-aoclkc.h>
10 #include <dt-bindings/interrupt-controller/irq.h>
11 #include <dt-bindings/interrupt-controller/arm-gic.h>
12 #include <dt-bindings/reset/amlogic,meson-g12a-reset.h>
13 #include <dt-bindings/thermal/thermal.h>
16 interrupt-parent = <&gic>;
[all …]
Dmeson-khadas-vim3.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/leds/common.h>
10 #include <dt-bindings/gpio/meson-g12a-gpio.h>
11 #include <dt-bindings/sound/meson-g12a-tohdmitx.h>
22 stdout-path = "serial0:115200n8";
30 adc-keys {
31 compatible = "adc-keys";
32 io-channels = <&saradc 2>;
33 io-channel-names = "buttons";
[all …]
Dmeson-g12b-odroid-n2.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/gpio/meson-g12a-gpio.h>
9 #include <dt-bindings/sound/meson-g12a-toacodec.h>
10 #include <dt-bindings/sound/meson-g12a-tohdmitx.h>
20 dio2133: audio-amplifier-0 {
21 compatible = "simple-audio-amplifier";
22 enable-gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_HIGH>;
23 VCC-supply = <&vcc_5v>;
24 sound-name-prefix = "U19";
[all …]
/Linux-v6.1/sound/soc/sh/
Dssi.c1 // SPDX-License-Identifier: GPL-2.0
12 * The SSI unit has only one physical data line, so full duplex is
19 * streams PCM data over the I2S lines and uses LRCK as a handshake
20 * signal. Can be used to send compressed data (AC3/DTS) to a DSP.
23 * useful to support TDM mode codecs like the AD1939 which have a
24 * fixed TDM slot size, regardless of sample resolution.
52 #define CR_PDTA (1 << 9) /* fifo data alignment */
53 #define CR_DEL (1 << 8) /* delay data by 1 i2sclk */
62 #define SSIREG(reg) (*(unsigned long *)(ssi->mmio + (reg)))
86 * track usage of the SSI; it is simplex-only so prevent attempts of
[all …]
/Linux-v6.1/arch/arm64/boot/dts/freescale/
Dimx8mm-evk.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
8 #include <dt-bindings/phy/phy-imx8-pcie.h>
9 #include <dt-bindings/usb/pd.h>
14 stdout-path = &uart2;
23 compatible = "gpio-leds";
24 pinctrl-names = "default";
25 pinctrl-0 = <&pinctrl_gpio_led>;
30 default-state = "on";
34 pcie0_refclk: pcie0-refclk {
[all …]
/Linux-v6.1/sound/soc/ti/
Ddavinci-mcasp.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Multi-channel Audio Serial Port Driver
7 * Author: Nirmal Pandey <n-pandey@ti.com>,
19 #include <linux/delay.h>
39 #include "edma-pcm.h"
40 #include "sdma-pcm.h"
41 #include "udma-pcm.h"
42 #include "davinci-mcasp.h"
91 /* McASP specific data */
136 void __iomem *reg = mcasp->base + offset; in mcasp_set_bits()
[all …]
/Linux-v6.1/sound/soc/sh/rcar/
Dssi.c1 // SPDX-License-Identifier: GPL-2.0
3 // Renesas R-Car SSIU/SSI support
20 #include <linux/delay.h>
32 #define DIEN (1u << 24) /* Data Interrupt Enable */
36 #define DWL_MASK (7u << 19) /* Data Word Length mask */
37 #define DWL_8 (0u << 19) /* Data Word Length */
38 #define DWL_16 (1u << 19) /* Data Word Length */
39 #define DWL_18 (2u << 19) /* Data Word Length */
40 #define DWL_20 (3u << 19) /* Data Word Length */
41 #define DWL_22 (4u << 19) /* Data Word Length */
[all …]
/Linux-v6.1/sound/soc/rockchip/
Drockchip_i2s_tdm.c1 // SPDX-License-Identifier: GPL-2.0-only
2 // ALSA SoC Audio Layer - Rockchip I2S/TDM Controller driver
5 // Author: Sugar Zhang <sugar.zhang@rock-chips.com>
9 #include <linux/clk-provider.h>
10 #include <linux/delay.h>
25 #define DRV_NAME "rockchip-i2s-tdm"
30 #define CLK_PPM_MIN -1000
117 clk_disable_unprepare(i2s_tdm->mclk_tx); in i2s_tdm_disable_unprepare_mclk()
118 clk_disable_unprepare(i2s_tdm->mclk_rx); in i2s_tdm_disable_unprepare_mclk()
119 if (i2s_tdm->mclk_calibrate) { in i2s_tdm_disable_unprepare_mclk()
[all …]
/Linux-v6.1/sound/soc/sti/
Dsti_uniperif.c1 // SPDX-License-Identifier: GPL-2.0-only
10 #include <linux/delay.h>
15 * User frame size shall be 2, 4, 6 or 8 32-bits words length
80 { .compatible = "st,stih407-uni-player-hdmi",
81 .data = &sti_uniplayer_hdmi
83 { .compatible = "st,stih407-uni-player-pcm-out",
84 .data = &sti_uniplayer_pcm_out
86 { .compatible = "st,stih407-uni-player-dac",
87 .data = &sti_uniplayer_dac
89 { .compatible = "st,stih407-uni-player-spdif",
[all …]
/Linux-v6.1/drivers/gpu/drm/bridge/
Dsil-sii8620.h1 /* SPDX-License-Identifier: GPL-2.0-only */
9 * Copyright (C) 2013-2014 Silicon Image, Inc.
273 /* DDC I2C Data In count #1, default value: 0x00 */
276 /* DDC I2C Data In count #2, default value: 0x00 */
301 /* DDC I2C FIFO Data In/Out, default value: 0x00 */
304 /* DDC I2C Data Out Counter, default value: 0x00 */
309 /* DDC I2C Delay Count, default value: 0x14 */
323 /* I2C Device Address re-assignment */
349 /* TDM TX NUMBITS, default value: 0x0c */
355 /* TDM TX NUMSPISYM, default value: 0x04 */
[all …]
/Linux-v6.1/sound/soc/atmel/
Dmchp-i2s-mcc.c1 // SPDX-License-Identifier: GPL-2.0
3 // Driver for Microchip I2S Multi-channel controller
14 #include <linux/delay.h>
29 * ---- I2S Controller Register map ----
75 * ---- Control Register (Write-only) ----
86 * ---- Mode Register A (Read/Write) ----
135 /* Number of TDM Channels - 1 */
138 ((((ch) - 1) << 13) & MCHP_I2SMCC_MRA_NBCHAN_MASK)
145 /* TDM Frame Synchronization */
169 * ---- Mode Register B (Read/Write) ----
[all …]
/Linux-v6.1/sound/soc/samsung/
Di2s.c1 // SPDX-License-Identifier: GPL-2.0
3 // ALSA SoC Audio Layer - Samsung I2S Controller driver
8 #include <dt-bindings/sound/samsung-i2s.h>
9 #include <linux/delay.h>
12 #include <linux/clk-provider.h>
23 #include <linux/platform_data/asoc-s3c.h>
28 #include "i2s-regs.h"
116 /* The clock provider's data */
133 return i2s->drv->id == SAMSUNG_I2S_ID_SECONDARY; in is_secondary()
136 /* If this interface of the controller is transmitting data */
[all …]
/Linux-v6.1/drivers/net/ethernet/aquantia/atlantic/hw_atl/
Dhw_atl_llh.h1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * Copyright (C) 2014-2019 aQuantia Corporation
5 * Copyright (C) 2019-2020 Marvell International Ltd.
34 /* get temperature sense data */
159 /* set RSC delay */
160 void hw_atl_itr_rsc_delay_set(struct aq_hw_s *aq_hw, u32 delay);
173 /* set rx descriptor data buffer size */
198 /* set rx descriptor write-back interrupt enable */
401 /* set user-priority tc mapping */
408 /* set rss key write data */
[all …]
/Linux-v6.1/sound/soc/bcm/
Dcygnus-ssp.c1 // SPDX-License-Identifier: GPL-2.0-only
2 // Copyright (C) 2014-2015 Broadcom Corporation
4 #include <linux/delay.h>
14 #include <sound/soc-dai.h>
16 #include "cygnus-ssp.h"
224 /* List of valid frame sizes for tdm mode */
241 return &cygaud->portinfo[dai->id]; in cygnus_dai_get_portinfo()
249 switch (aio->port_type) { in audio_ssp_init_portregs()
251 value = readl(aio->cygaud->audio + aio->regs.i2s_stream_cfg); in audio_ssp_init_portregs()
255 writel(aio->portnum, in audio_ssp_init_portregs()
[all …]

1234