/Linux-v6.1/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 - $ref: /schemas/graph.yaml#/$defs/port-base 21 convert-rate: 22 $ref: "/schemas/sound/dai-params.yaml#/$defs/dai-sample-rate" 23 convert-channels: 24 $ref: "/schemas/sound/dai-params.yaml#/$defs/dai-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 | 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> 15 - fsl,imx-audio-card 21 audio-routing: 22 $ref: /schemas/types.yaml#/definitions/non-unique-string-array 30 ".*-dai-link$": 32 Each subnode represents a dai link. Subnodes of each dai links would be [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 …]
|
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 | amlogic,gx-sound-card.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/sound/amlogic,gx-sound-card.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jerome Brunet <jbrunet@baylibre.com> 15 - const: amlogic,gx-sound-card 17 audio-aux-devs: 18 $ref: /schemas/types.yaml#/definitions/phandle-array 21 audio-routing: 22 $ref: /schemas/types.yaml#/definitions/non-unique-string-array [all …]
|
D | st,sti-asoc-card.txt | 3 The sti ASoC Sound Card can be used, for all sti SoCs using internal sti-sas 8 Documentation/devicetree/bindings/sound/simple-card.yaml. 10 1) sti-uniperiph-dai: audio dai device. 11 --------------------------------------- 14 - compatible: "st,stih407-uni-player-hdmi", "st,stih407-uni-player-pcm-out", 15 "st,stih407-uni-player-dac", "st,stih407-uni-player-spdif", 16 "st,stih407-uni-reader-pcm_in", "st,stih407-uni-reader-hdmi", 18 - st,syscfg: phandle to boot-device system configuration registers 20 - clock-names: name of the clocks listed in clocks property in the same order 22 - reg: CPU DAI IP Base address and size entries, listed in same [all …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/sound/soc/spear/ |
D | spdif_in.c | 31 u32 format; member 52 writel(ctrl, host->io_base + SPDIF_IN_CTRL); in spdif_in_configure() 53 writel(0xF, host->io_base + SPDIF_IN_IRQ_MASK); in spdif_in_configure() 56 static int spdif_in_dai_probe(struct snd_soc_dai *dai) in spdif_in_dai_probe() argument 58 struct spdif_in_dev *host = snd_soc_dai_get_drvdata(dai); in spdif_in_dai_probe() 60 host->dma_params_rx.filter_data = &host->dma_params; in spdif_in_dai_probe() 61 dai->capture_dma_data = &host->dma_params_rx; in spdif_in_dai_probe() 67 struct snd_soc_dai *dai) in spdif_in_shutdown() argument 69 struct spdif_in_dev *host = snd_soc_dai_get_drvdata(dai); in spdif_in_shutdown() 71 if (substream->stream != SNDRV_PCM_STREAM_CAPTURE) in spdif_in_shutdown() [all …]
|
/Linux-v6.1/sound/soc/sti/ |
D | sti_uniperif.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 * User frame size shall be 2, 4, 6 or 8 32-bits words length 80 { .compatible = "st,stih407-uni-player-hdmi", 83 { .compatible = "st,stih407-uni-player-pcm-out", 86 { .compatible = "st,stih407-uni-player-dac", 89 { .compatible = "st,stih407-uni-player-spdif", 92 { .compatible = "st,stih407-uni-reader-pcm_in", 95 { .compatible = "st,stih407-uni-reader-hdmi", 109 if (uni->ver < SND_ST_UNIPERIF_VERSION_UNI_PLR_TOP_1_0) { in sti_uniperiph_reset() 112 count--; in sti_uniperiph_reset() [all …]
|
/Linux-v6.1/sound/soc/mediatek/mt8186/ |
D | mt8186-dai-pcm.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // MediaTek ALSA SoC Audio DAI I2S Control 10 #include "mt8186-afe-common.h" 11 #include "mt8186-afe-gpio.h" 12 #include "mt8186-interconnection.h" 99 /* dai component */ 122 struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm); in mtk_pcm_en_event() 125 dev_dbg(afe->dev, "%s(), name %s, event 0x%x\n", in mtk_pcm_en_event() 126 __func__, w->name, event); in mtk_pcm_en_event() 130 mt8186_afe_gpio_request(afe->dev, true, MT8186_DAI_PCM, 0); in mtk_pcm_en_event() [all …]
|
/Linux-v6.1/sound/soc/ |
D | soc-dai.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // soc-dai.c 10 #include <sound/soc-dai.h> 11 #include <sound/soc-link.h> 13 #define soc_dai_ret(dai, ret) _soc_dai_ret(dai, __func__, ret) argument 14 static inline int _soc_dai_ret(struct snd_soc_dai *dai, in _soc_dai_ret() argument 23 case -EPROBE_DEFER: in _soc_dai_ret() 24 case -ENOTSUPP: in _soc_dai_ret() 27 dev_err(dai->dev, in _soc_dai_ret() 29 func, dai->name, ret); in _soc_dai_ret() [all …]
|
/Linux-v6.1/arch/arm/boot/dts/ |
D | armada-388-db.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 4 * (DB-88F6820) 8 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 11 /dts-v1/; 12 #include "armada-388.dtsi" 16 compatible = "marvell,a385-db", "marvell,armada388", 20 stdout-path = "serial0:115200n8"; 35 internal-regs { 38 clock-frequency = <100000>; 39 audio_codec: audio-codec@4a { [all …]
|
D | pxa300-raumfeld-connector.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 /dts-v1/; 5 #include "pxa300-raumfeld-common.dtsi" 6 #include "pxa300-raumfeld-tuneable-clock.dtsi" 10 compatible = "raumfeld,raumfeld-connector-pxa303", "marvell,pxa300"; 13 compatible = "simple-audio-card"; 14 simple-audio-card,name = "Raumfeld Connector"; 15 #address-cells = <1>; 16 #size-cells = <0>; 18 simple-audio-card,dai-link@0 { [all …]
|
/Linux-v6.1/sound/soc/sof/ |
D | ipc4-topology.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 12 #include <sound/intel-nhlt.h> 13 #include "sof-priv.h" 14 #include "sof-audio.h" 15 #include "ipc4-priv.h" 16 #include "ipc4-topology.h" 121 [SOF_DAI_TOKENS] = {"DAI tokens", dai_tokens, ARRAY_SIZE(dai_tokens)}, 129 [SOF_IN_AUDIO_FORMAT_TOKENS] = {"IPC4 Input Audio format tokens", 131 [SOF_OUT_AUDIO_FORMAT_TOKENS] = {"IPC4 Output Audio format tokens", 133 [SOF_AUDIO_FORMAT_BUFFER_SIZE_TOKENS] = {"IPC4 Audio format buffer size tokens", [all …]
|
/Linux-v6.1/sound/soc/intel/skylake/ |
D | skl-pcm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * skl-pcm.c -ASoC HDA Platform driver file implementing PCM functionality 5 * Copyright (C) 2014-2015 Intel Corp 19 #include "skl-topology.h" 20 #include "skl-sst-dsp.h" 21 #include "skl-sst-ipc.h" 59 return substream->runtime->private_data; in get_hdac_ext_stream() 66 struct hdac_bus *bus = hstream->bus; in get_bus_ctx() 76 hdac_stream(stream)->bufsize = 0; in skl_substream_alloc_pages() 77 hdac_stream(stream)->period_bytes = 0; in skl_substream_alloc_pages() [all …]
|