| /kernel/linux/linux-6.6/sound/soc/sof/ |
| D | ipc3-pcm.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 11 #include "ipc3-priv.h" 13 #include "sof-priv.h" 14 #include "sof-audio.h" 26 return -EINVAL; in sof_ipc3_pcm_hw_free() 28 if (!spcm->prepared[substream->stream]) in sof_ipc3_pcm_hw_free() 33 stream.comp_id = spcm->stream[substream->stream].comp_id; in sof_ipc3_pcm_hw_free() 36 return sof_ipc_tx_message_no_reply(sdev->ipc, &stream, sizeof(stream)); in sof_ipc3_pcm_hw_free() 46 struct sof_ipc_fw_version *v = &sdev->fw_ready.version; in sof_ipc3_pcm_hw_params() 47 struct snd_pcm_runtime *runtime = substream->runtime; in sof_ipc3_pcm_hw_params() [all …]
|
| /kernel/linux/linux-6.6/sound/soc/codecs/ |
| D | hdmi-codec.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (C) 2015 Texas Instruments Incorporated - https://www.ti.com/ 16 #include <sound/hdmi-codec.h> 21 #define HDMI_CODEC_CHMAP_IDX_UNKNOWN -1 59 { .channels = 2, 64 /* Channel maps for multi-channel playbacks, up to 8 n_ch */ 66 { .channels = 2, /* CA_ID 0x00 */ 68 { .channels = 4, /* CA_ID 0x01 */ 71 { .channels = 4, /* CA_ID 0x02 */ 74 { .channels = 4, /* CA_ID 0x03 */ [all …]
|
| /kernel/linux/linux-5.10/sound/soc/codecs/ |
| D | hdmi-codec.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (C) 2015 Texas Instruments Incorporated - https://www.ti.com/ 16 #include <sound/hdmi-codec.h> 21 #define HDMI_CODEC_CHMAP_IDX_UNKNOWN -1 64 { .channels = 2, 69 /* Channel maps for multi-channel playbacks, up to 8 n_ch */ 71 { .channels = 2, /* CA_ID 0x00 */ 73 { .channels = 4, /* CA_ID 0x01 */ 76 { .channels = 4, /* CA_ID 0x02 */ 79 { .channels = 4, /* CA_ID 0x03 */ [all …]
|
| /kernel/linux/linux-6.6/sound/soc/mediatek/mt7986/ |
| D | mt7986-dai-etdm.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * MediaTek ALSA SoC Audio DAI eTDM Control 14 #include "mt7986-afe-common.h" 15 #include "mt7986-reg.h" 87 /* dai component */ 117 /* dai ops */ 119 struct snd_soc_dai *dai) in mtk_dai_etdm_startup() argument 121 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_dai_etdm_startup() 122 struct mt7986_afe_private *afe_priv = afe->platform_priv; in mtk_dai_etdm_startup() 125 ret = clk_bulk_prepare_enable(afe_priv->num_clks, afe_priv->clks); in mtk_dai_etdm_startup() [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/sound/ |
| D | audio-graph-port.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/audio-graph-port.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> 15 port-base: 16 $ref: /schemas/graph.yaml#/$defs/port-base 18 convert-rate: 19 $ref: /schemas/sound/dai-params.yaml#/$defs/dai-sample-rate 20 convert-channels: [all …]
|
| D | simple-card.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/sound/simple-card.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> 14 frame-master: 15 description: Indicates dai-link frame master. 18 bitclock-master: 19 description: Indicates dai-link bit clock master 22 frame-inversion: [all …]
|
| D | dai-params.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/dai-params.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Digital Audio Interface (DAI) Stream Parameters 10 - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> 16 dai-channels: 17 description: Number of audio channels used by DAI 22 dai-sample-format: 23 description: Audio sample format used by DAI [all …]
|
| D | rockchip-i2s.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/sound/rockchip-i2s.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 The I2S bus (Inter-IC sound bus) is a serial link for digital 14 - Heiko Stuebner <heiko@sntech.de> 17 - $ref: dai-common.yaml# 22 - const: rockchip,rk3066-i2s 23 - items: 24 - enum: [all …]
|
| /kernel/linux/linux-6.6/sound/soc/sh/ |
| D | ssi.c | 1 // SPDX-License-Identifier: GPL-2.0 62 #define SSIREG(reg) (*(unsigned long *)(ssi->mmio + (reg))) 86 * track usage of the SSI; it is simplex-only so prevent attempts of 90 struct snd_soc_dai *dai) in ssi_startup() argument 92 struct ssi_priv *ssi = &ssi_cpu_data[dai->id]; in ssi_startup() 93 if (ssi->inuse) { in ssi_startup() 95 return -EBUSY; in ssi_startup() 97 ssi->inuse = 1; in ssi_startup() 102 struct snd_soc_dai *dai) in ssi_shutdown() argument 104 struct ssi_priv *ssi = &ssi_cpu_data[dai->id]; in ssi_shutdown() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/sh/ |
| D | ssi.c | 1 // SPDX-License-Identifier: GPL-2.0 62 #define SSIREG(reg) (*(unsigned long *)(ssi->mmio + (reg))) 86 * track usage of the SSI; it is simplex-only so prevent attempts of 90 struct snd_soc_dai *dai) in ssi_startup() argument 92 struct ssi_priv *ssi = &ssi_cpu_data[dai->id]; in ssi_startup() 93 if (ssi->inuse) { in ssi_startup() 95 return -EBUSY; in ssi_startup() 97 ssi->inuse = 1; in ssi_startup() 102 struct snd_soc_dai *dai) in ssi_shutdown() argument 104 struct ssi_priv *ssi = &ssi_cpu_data[dai->id]; in ssi_shutdown() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/ |
| D | simple-card.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/sound/simple-card.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> 14 frame-master: 15 description: Indicates dai-link frame master. 16 $ref: /schemas/types.yaml#/definitions/phandle-array 19 bitclock-master: 20 description: Indicates dai-link bit clock master [all …]
|
| D | st,stm32-adfsdm.txt | 5 For details on DFSDM bindings refer to ../iio/adc/st,stm32-dfsdm-adc.txt 8 - compatible: "st,stm32h7-dfsdm-dai". 10 - #sound-dai-cells : Must be equal to 0 12 - io-channels : phandle to iio dfsdm instance node. 17 compatible = "audio-graph-card"; 23 compatible = "st,stm32h7-dfsdm"; 26 clock-names = "dfsdm"; 27 #interrupt-cells = <1>; 28 #address-cells = <1>; 29 #size-cells = <0>; [all …]
|
| /kernel/linux/linux-6.6/sound/soc/amd/acp/ |
| D | acp-pdm.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 22 #include <sound/soc-dai.h> 26 #define DRV_NAME "acp-pdm" 29 struct snd_soc_dai *dai) in acp_dmic_prepare() argument 31 struct acp_stream *stream = substream->runtime->private_data; in acp_dmic_prepare() 32 struct device *dev = dai->component->dev; in acp_dmic_prepare() 38 writel(PDM_CLK_FREQ_MASK, adata->acp_base + ACP_WOV_CLK_CTRL); in acp_dmic_prepare() 39 dmic_ctrl = readl(adata->acp_base + ACP_WOV_MISC_CTRL); in acp_dmic_prepare() 41 writel(dmic_ctrl, adata->acp_base + ACP_WOV_MISC_CTRL); in acp_dmic_prepare() 43 period_bytes = frames_to_bytes(substream->runtime, in acp_dmic_prepare() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/sof/ |
| D | pcm.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 16 #include "sof-priv.h" 17 #include "sof-audio.h" 31 int stream = substream->stream; in create_page_table() 35 return -EINVAL; in create_page_table() 37 return snd_sof_create_page_table(component->dev, dmab, in create_page_table() 38 spcm->stream[stream].page_table.area, size); in create_page_table() 44 struct snd_soc_component *scomp = spcm->scomp; in sof_pcm_dsp_params() 51 dev_err(scomp->dev, "error: got wrong reply for PCM %d\n", in sof_pcm_dsp_params() 52 spcm->pcm.pcm_id); in sof_pcm_dsp_params() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/atmel/ |
| D | mchp-i2s-mcc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Driver for Microchip I2S Multi-channel controller 28 * ---- I2S Controller Register map ---- 74 * ---- Control Register (Write-only) ---- 85 * ---- Mode Register A (Read/Write) ---- 132 /* Number of TDM Channels - 1 */ 135 ((((ch) - 1) << 13) & MCHP_I2SMCC_MRA_NBCHAN_MASK) 166 * ---- Mode Register B (Read/Write) ---- 168 /* all enabled I2S left channels are filled first, then I2S right channels */ 172 * channel, until all channels are filled [all …]
|
| /kernel/linux/linux-5.10/sound/soc/mediatek/mt8183/ |
| D | mt8183-dai-tdm.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // MediaTek ALSA SoC Audio DAI TDM Control 10 #include "mt8183-afe-clk.h" 11 #include "mt8183-afe-common.h" 12 #include "mt8183-interconnection.h" 13 #include "mt8183-reg.h" 92 return snd_pcm_format_physical_width(format) - 1; in get_tdm_lrck_width() 113 static unsigned int get_tdm_ch_fixup(unsigned int channels) in get_tdm_ch_fixup() argument 115 if (channels > 4) in get_tdm_ch_fixup() 117 else if (channels > 2) in get_tdm_ch_fixup() [all …]
|
| /kernel/linux/linux-6.6/sound/soc/mediatek/mt8183/ |
| D | mt8183-dai-tdm.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // MediaTek ALSA SoC Audio DAI TDM Control 10 #include "mt8183-afe-clk.h" 11 #include "mt8183-afe-common.h" 12 #include "mt8183-interconnection.h" 13 #include "mt8183-reg.h" 92 return snd_pcm_format_physical_width(format) - 1; in get_tdm_lrck_width() 113 static unsigned int get_tdm_ch_fixup(unsigned int channels) in get_tdm_ch_fixup() argument 115 if (channels > 4) in get_tdm_ch_fixup() 117 else if (channels > 2) in get_tdm_ch_fixup() [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/iio/adc/ |
| D | st,stm32-dfsdm-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/st,stm32-dfsdm-adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Fabrice Gasnier <fabrice.gasnier@foss.st.com> 11 - Olivier Moysan <olivier.moysan@foss.st.com> 14 STM32 DFSDM ADC is a sigma delta analog-to-digital converter dedicated to 17 - Sigma delta modulators (motor control, metering...) 18 - PDM microphones (audio digital microphone) 28 - st,stm32h7-dfsdm [all …]
|
| /kernel/linux/linux-6.6/sound/soc/mediatek/mt8186/ |
| D | mt8186-dai-tdm.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // MediaTek ALSA SoC Audio DAI TDM Control 11 #include "mt8186-afe-clk.h" 12 #include "mt8186-afe-common.h" 13 #include "mt8186-afe-gpio.h" 14 #include "mt8186-interconnection.h" 65 return snd_pcm_format_physical_width(format) - 1; in get_tdm_lrck_width() 68 static unsigned int get_tdm_ch_fixup(unsigned int channels) in get_tdm_ch_fixup() argument 70 if (channels > 4) in get_tdm_ch_fixup() 72 else if (channels > 2) in get_tdm_ch_fixup() [all …]
|
| /kernel/linux/linux-6.6/sound/soc/sunxi/ |
| D | sun4i-i2s.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Maxime Ripard <maxime.ripard@free-electrons.com> 22 #include <sound/soc-dai.h> 85 #define SUN4I_I2S_CHAN_SEL(num_chan) (((num_chan) - 1) << 0) 93 /* Defines required for sun8i-h3 support */ 106 #define SUN8I_I2S_FMT0_LRCK_PERIOD(period) ((period - 1) << 8) 119 #define SUN8I_I2S_CHAN_CFG_RX_SLOT_NUM(chan) ((chan - 1) << 4) 121 #define SUN8I_I2S_CHAN_CFG_TX_SLOT_NUM(chan) (chan - 1) 128 #define SUN8I_I2S_TX_CHAN_EN(num_chan) (((1 << num_chan) - 1) << 4) 133 /* Defines required for sun50i-h6 support */ [all …]
|
| /kernel/linux/linux-6.6/sound/soc/mediatek/mt8192/ |
| D | mt8192-dai-tdm.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // MediaTek ALSA SoC Audio DAI TDM Control 11 #include "mt8192-afe-clk.h" 12 #include "mt8192-afe-common.h" 13 #include "mt8192-afe-gpio.h" 14 #include "mt8192-interconnection.h" 84 return snd_pcm_format_physical_width(format) - 1; in get_tdm_lrck_width() 105 static unsigned int get_tdm_ch_fixup(unsigned int channels) in get_tdm_ch_fixup() argument 107 if (channels > 4) in get_tdm_ch_fixup() 109 else if (channels > 2) in get_tdm_ch_fixup() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/ti/ |
| D | omap-mcpdm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * omap-mcpdm.c -- OMAP ALSA SoC DAI driver using McPDM port 5 * Copyright (C) 2009 - 2011 Texas Instruments 30 #include "omap-mcpdm.h" 31 #include "sdma-pcm.h" 51 /* McPDM dn offsets for rx1, and 2 channels */ 69 writel_relaxed(val, mcpdm->io_base + reg); in omap_mcpdm_write() 74 return readl_relaxed(mcpdm->io_base + reg); in omap_mcpdm_read() 80 dev_dbg(mcpdm->dev, "***********************\n"); in omap_mcpdm_reg_dump() 81 dev_dbg(mcpdm->dev, "IRQSTATUS_RAW: 0x%04x\n", in omap_mcpdm_reg_dump() [all …]
|
| /kernel/linux/linux-6.6/sound/soc/ti/ |
| D | omap-mcpdm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * omap-mcpdm.c -- OMAP ALSA SoC DAI driver using McPDM port 5 * Copyright (C) 2009 - 2011 Texas Instruments 30 #include "omap-mcpdm.h" 31 #include "sdma-pcm.h" 51 /* McPDM dn offsets for rx1, and 2 channels */ 69 writel_relaxed(val, mcpdm->io_base + reg); in omap_mcpdm_write() 74 return readl_relaxed(mcpdm->io_base + reg); in omap_mcpdm_read() 80 dev_dbg(mcpdm->dev, "***********************\n"); in omap_mcpdm_reg_dump() 81 dev_dbg(mcpdm->dev, "IRQSTATUS_RAW: 0x%04x\n", in omap_mcpdm_reg_dump() [all …]
|
| /kernel/linux/linux-6.6/sound/soc/mediatek/mt8195/ |
| D | mt8195-dai-etdm.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * MediaTek ALSA SoC Audio DAI eTDM Control 14 #include "mt8195-afe-clk.h" 15 #include "mt8195-afe-common.h" 16 #include "mt8195-reg.h" 115 int cowork_source_id; //dai id 117 int cowork_slv_id[MT8195_AFE_IO_ETDM_NUM - 1]; //dai_id 180 return -EINVAL; in get_etdm_fs_timing() 183 static unsigned int get_etdm_ch_fixup(unsigned int channels) in get_etdm_ch_fixup() argument 185 if (channels > 16) in get_etdm_ch_fixup() [all …]
|
| /kernel/linux/linux-6.6/sound/soc/atmel/ |
| D | mchp-i2s-mcc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Driver for Microchip I2S Multi-channel controller 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) 169 * ---- Mode Register B (Read/Write) ---- 171 /* all enabled I2S left channels are filled first, then I2S right channels */ 175 * channel, until all channels are filled [all …]
|