| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/sound/ |
| D | imx-audio-card.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/imx-audio-card.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Shengjiu Wang <shengjiu.wang@nxp.com> 13 - $ref: sound-card-common.yaml# 18 - fsl,imx-audio-card 21 ".*-dai-link$": 23 Each subnode represents a dai link. Subnodes of each dai links would be 29 link-name: [all …]
|
| 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 | mediatek,mt8188-mt6359.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/mediatek,mt8188-mt6359.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Trevor Wu <trevor.wu@mediatek.com> 13 - $ref: sound-card-common.yaml# 18 - mediatek,mt8188-mt6359-evb 19 - mediatek,mt8188-nau8825 21 audio-routing: 31 "^dai-link-[0-9]+$": [all …]
|
| D | amlogic,g12a-tohdmitx.txt | 4 - compatible: "amlogic,g12a-tohdmitx" or 5 "amlogic,sm1-tohdmitx" 6 - reg: physical base address of the controller and length of memory 8 - #sound-dai-cells: should be 1. 9 - resets: phandle to the dedicated reset line of the hdmitx glue. 13 tohdmitx: audio-controller@744 { 14 compatible = "amlogic,g12a-tohdmitx"; 16 #sound-dai-cells = <1>; 20 Example of an 'amlogic,axg-sound-card': 23 compatible = "amlogic,axg-sound-card"; [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 | audio-graph-card.txt | 3 Audio Graph Card specifies audio DAI connections of SoC <-> codec. 8 see ${LINUX}/Documentation/devicetree/bindings/sound/simple-card.yaml 10 Below are same as Simple-Card. 12 - label 13 - widgets 14 - routing 15 - dai-format 16 - frame-master 17 - bitclock-master 18 - bitclock-inversion [all …]
|
| D | amlogic,axg-sound-card.txt | 5 - compatible: "amlogic,axg-sound-card" 6 - model : User specified audio sound card name, one string 10 - audio-aux-devs : List of phandles pointing to auxiliary devices 11 - audio-widgets : Please refer to widgets.txt. 12 - audio-routing : A list of the connections between audio components. 16 - dai-link: Container for dai-link level properties and the CODEC 17 sub-nodes. There should be at least one (and probably more) 20 Required dai-link properties: 22 - sound-dai: phandle and port of the CPU DAI. 24 Required TDM Backend dai-link properties: [all …]
|
| D | amlogic,g12a-tohdmitx.txt | 4 - compatible: "amlogic,g12a-tohdmitx" or 5 "amlogic,sm1-tohdmitx" 6 - reg: physical base address of the controller and length of memory 8 - #sound-dai-cells: should be 1. 9 - resets: phandle to the dedicated reset line of the hdmitx glue. 13 tohdmitx: audio-controller@744 { 14 compatible = "amlogic,g12a-tohdmitx"; 16 #sound-dai-cells = <1>; 20 Example of an 'amlogic,axg-sound-card': 23 compatible = "amlogic,axg-sound-card"; [all …]
|
| /kernel/linux/linux-6.6/include/sound/ |
| D | soc-dai.h | 1 /* SPDX-License-Identifier: GPL-2.0 3 * linux/sound/soc-dai.h -- ALSA SoC Layer 5 * Copyright: 2005-2008 Wolfson Microelectronics. PLC. 7 * Digital Audio Interface (DAI) API. 22 * DAI hardware audio formats. 39 /* Describes the possible PCM format */ 56 * DAI Clock gating. 58 * DAI bit clocks can be gated (disabled) when the DAI is not 64 /* Describes the possible PCM format */ 66 * define GATED -> CONT. GATED will be selected if both are selected. [all …]
|
| /kernel/linux/linux-6.6/sound/soc/codecs/ |
| D | hda-dai.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Copyright(c) 2021-2022 Intel Corporation. All rights reserved. 12 static int hda_codec_dai_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) in hda_codec_dai_startup() argument 19 codec = dev_to_hda_codec(dai->dev); in hda_codec_dai_startup() 20 stream_info = snd_soc_dai_get_dma_data(dai, substream); in hda_codec_dai_startup() 21 pcm = container_of(stream_info, struct hda_pcm, stream[substream->stream]); in hda_codec_dai_startup() 23 dev_dbg(dai->dev, "open stream codec: %08x, info: %p, pcm: %p %s substream: %p\n", in hda_codec_dai_startup() 24 codec->core.vendor_id, stream_info, pcm, pcm->name, substream); in hda_codec_dai_startup() 28 ret = stream_info->ops.open(stream_info, codec, substream); in hda_codec_dai_startup() 30 dev_err(dai->dev, "codec open failed: %d\n", ret); in hda_codec_dai_startup() [all …]
|
| D | si476x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * sound/soc/codecs/si476x.c -- Codec driver for SI476X chips 21 #include <linux/mfd/si476x-core.h> 68 struct si476x_core *core = i2c_mfd_cell_to_core(codec_dai->dev); in si476x_codec_set_dai_fmt() 70 u16 format = 0; in si476x_codec_set_dai_fmt() local 73 return -EINVAL; in si476x_codec_set_dai_fmt() 77 format |= SI476X_DAUDIO_MODE_DSP_A; in si476x_codec_set_dai_fmt() 80 format |= SI476X_DAUDIO_MODE_DSP_B; in si476x_codec_set_dai_fmt() 83 format |= SI476X_DAUDIO_MODE_I2S; in si476x_codec_set_dai_fmt() 86 format |= SI476X_DAUDIO_MODE_RIGHT_J; in si476x_codec_set_dai_fmt() [all …]
|
| D | pcm3168a.c | 1 // SPDX-License-Identifier: GPL-2.0-only 52 unsigned int format; member 109 static const char *const pcm3168a_con[] = { "Differential", "Single-Ended" }; 127 /* -100db to 0db, register values 0-54 cause mute */ 128 static const DECLARE_TLV_DB_SCALE(pcm3168a_dac_tlv, -10050, 50, 1); 130 /* -100db to 20db, register values 0-14 cause mute */ 131 static const DECLARE_TLV_DB_SCALE(pcm3168a_adc_tlv, -10050, 50, 1); 134 SOC_SINGLE("DAC Power-Save Switch", PCM3168A_DAC_PWR_MST_FMT, 136 SOC_ENUM("DAC1 Digital Filter roll-off", pcm3168a_d1_roll_off), 137 SOC_ENUM("DAC2 Digital Filter roll-off", pcm3168a_d2_roll_off), [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" 72 static unsigned int get_hdmi_wlen(snd_pcm_format_t format) in get_hdmi_wlen() argument 74 return snd_pcm_format_physical_width(format) <= 16 ? in get_hdmi_wlen() 78 static unsigned int get_tdm_wlen(snd_pcm_format_t format) in get_tdm_wlen() argument 80 return snd_pcm_format_physical_width(format) <= 16 ? in get_tdm_wlen() [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" 72 static unsigned int get_hdmi_wlen(snd_pcm_format_t format) in get_hdmi_wlen() argument 74 return snd_pcm_format_physical_width(format) <= 16 ? in get_hdmi_wlen() 78 static unsigned int get_tdm_wlen(snd_pcm_format_t format) in get_tdm_wlen() argument 80 return snd_pcm_format_physical_width(format) <= 16 ? in get_tdm_wlen() [all …]
|
| /kernel/linux/linux-6.6/sound/soc/mediatek/mt8195/ |
| D | mt8195-dai-pcm.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * MediaTek ALSA SoC Audio DAI PCM I/F Control 12 #include "mt8195-afe-clk.h" 13 #include "mt8195-afe-common.h" 14 #include "mt8195-reg.h" 39 unsigned int format; member 60 return -EINVAL; in mtk_dai_pcm_mode() 120 struct snd_soc_dai *dai) in mtk_dai_pcm_configure() argument 122 struct snd_pcm_runtime * const runtime = substream->runtime; in mtk_dai_pcm_configure() 123 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_dai_pcm_configure() [all …]
|
| /kernel/linux/linux-6.6/sound/soc/fsl/ |
| D | fsl_qmc_audio.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/dma-mapping.h> 49 struct snd_card *card = rtd->card->snd_card; in qmc_audio_pcm_construct() 52 ret = dma_coerce_mask_and_coherent(card->dev, DMA_BIT_MASK(32)); in qmc_audio_pcm_construct() 56 snd_pcm_set_managed_buffer_all(rtd->pcm, SNDRV_DMA_TYPE_DEV, card->dev, in qmc_audio_pcm_construct() 65 struct snd_pcm_runtime *runtime = substream->runtime; in qmc_audio_pcm_hw_params() 66 struct qmc_dai_prtd *prtd = substream->runtime->private_data; in qmc_audio_pcm_hw_params() 68 prtd->dma_buffer_start = runtime->dma_addr; in qmc_audio_pcm_hw_params() 69 prtd->dma_buffer_end = runtime->dma_addr + params_buffer_bytes(params); in qmc_audio_pcm_hw_params() 70 prtd->period_size = params_period_bytes(params); in qmc_audio_pcm_hw_params() [all …]
|
| /kernel/linux/linux-6.6/sound/soc/mediatek/mt8188/ |
| D | mt8188-dai-pcm.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * MediaTek ALSA SoC Audio DAI PCM I/F Control 8 * Chun-Chia Chiu <chun-chia.chiu@mediatek.com> 14 #include "mt8188-afe-clk.h" 15 #include "mt8188-afe-common.h" 16 #include "mt8188-reg.h" 41 unsigned int format; member 62 return -EINVAL; in mtk_dai_pcm_mode() 121 struct snd_soc_dai *dai) in mtk_dai_pcm_configure() argument 123 struct snd_pcm_runtime * const runtime = substream->runtime; in mtk_dai_pcm_configure() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/codecs/ |
| D | si476x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * sound/soc/codecs/si476x.c -- Codec driver for SI476X chips 21 #include <linux/mfd/si476x-core.h> 68 struct si476x_core *core = i2c_mfd_cell_to_core(codec_dai->dev); in si476x_codec_set_dai_fmt() 70 u16 format = 0; in si476x_codec_set_dai_fmt() local 73 return -EINVAL; in si476x_codec_set_dai_fmt() 77 format |= SI476X_DAUDIO_MODE_DSP_A; in si476x_codec_set_dai_fmt() 80 format |= SI476X_DAUDIO_MODE_DSP_B; in si476x_codec_set_dai_fmt() 83 format |= SI476X_DAUDIO_MODE_I2S; in si476x_codec_set_dai_fmt() 86 format |= SI476X_DAUDIO_MODE_RIGHT_J; in si476x_codec_set_dai_fmt() [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" 70 static unsigned int get_tdm_wlen(snd_pcm_format_t format) in get_tdm_wlen() argument 72 return snd_pcm_format_physical_width(format) <= 16 ? in get_tdm_wlen() 76 static unsigned int get_tdm_channel_bck(snd_pcm_format_t format) in get_tdm_channel_bck() argument 78 return snd_pcm_format_physical_width(format) <= 16 ? in get_tdm_channel_bck() [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" 43 unsigned int format; member 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() [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/greybus/ |
| D | audio_codec.c | 1 // SPDX-License-Identifier: GPL-2.0 26 list_for_each_entry(data, &module->data_list, list) { in find_data() 27 if (id == data->id) in find_data() 36 struct gbaudio_codec_dai *dai; in find_dai_stream_params() local 38 list_for_each_entry(dai, &codec->dai_list, list) { in find_dai_stream_params() 39 if (dai->id == id) in find_dai_stream_params() 40 return &dai->params[stream]; in find_dai_stream_params() 51 u32 format, rate; in gbaudio_module_enable_tx() local 55 /* find the dai */ in gbaudio_module_enable_tx() 58 dev_err(module->dev, "%d:DATA connection missing\n", id); in gbaudio_module_enable_tx() [all …]
|
| /kernel/linux/linux-6.6/drivers/staging/greybus/ |
| D | audio_codec.c | 1 // SPDX-License-Identifier: GPL-2.0 26 list_for_each_entry(data, &module->data_list, list) { in find_data() 27 if (id == data->id) in find_data() 36 struct gbaudio_codec_dai *dai; in find_dai_stream_params() local 38 list_for_each_entry(dai, &codec->dai_list, list) { in find_dai_stream_params() 39 if (dai->id == id) in find_dai_stream_params() 40 return &dai->params[stream]; in find_dai_stream_params() 51 u32 format, rate; in gbaudio_module_enable_tx() local 55 /* find the dai */ in gbaudio_module_enable_tx() 58 dev_err(module->dev, "%d:DATA connection missing\n", id); in gbaudio_module_enable_tx() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/bcm/ |
| D | bcm2835-i2s.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 * OMAP ALSA SoC DAI driver using McBSP port 21 * Freescale SSI ALSA SoC Digital Audio Interface (DAI) driver 23 * Copyright 2007-2010 Freescale Semiconductor, Inc. 130 unsigned int master = dev->fmt & SND_SOC_DAIFMT_MASTER_MASK; in bcm2835_i2s_start_clock() 132 if (dev->clk_prepared) in bcm2835_i2s_start_clock() 138 clk_prepare_enable(dev->clk); in bcm2835_i2s_start_clock() 139 dev->clk_prepared = true; in bcm2835_i2s_start_clock() 148 if (dev->clk_prepared) in bcm2835_i2s_stop_clock() 149 clk_disable_unprepare(dev->clk); in bcm2835_i2s_stop_clock() [all …]
|
| /kernel/linux/linux-6.6/sound/soc/bcm/ |
| D | bcm2835-i2s.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 * OMAP ALSA SoC DAI driver using McBSP port 21 * Freescale SSI ALSA SoC Digital Audio Interface (DAI) driver 23 * Copyright 2007-2010 Freescale Semiconductor, Inc. 130 unsigned int provider = dev->fmt & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK; in bcm2835_i2s_start_clock() 132 if (dev->clk_prepared) in bcm2835_i2s_start_clock() 138 clk_prepare_enable(dev->clk); in bcm2835_i2s_start_clock() 139 dev->clk_prepared = true; in bcm2835_i2s_start_clock() 148 if (dev->clk_prepared) in bcm2835_i2s_stop_clock() 149 clk_disable_unprepare(dev->clk); in bcm2835_i2s_stop_clock() [all …]
|