Home
last modified time | relevance | path

Searched +full:dai +full:- +full:format (Results 1 – 25 of 441) sorted by relevance

12345678910>>...18

/Linux-v5.10/Documentation/devicetree/bindings/sound/
Dsimple-card.yaml1 # 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 …]
Daudio-graph-card.txt3 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 …]
Damlogic,axg-sound-card.txt5 - 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 …]
Damlogic,g12a-tohdmitx.txt4 - 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 …]
Damlogic,gx-sound-card.yaml1 # 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 …]
Dst,sti-asoc-card.txt3 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 …]
Dmarvell,mmp-sspa.yaml1 # SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/sound/marvell,mmp-sspa.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Lubomir Rintel <lkundrak@v3.sk>
14 pattern: "^audio-controller(@.*)?$"
17 const: marvell,mmp-sspa
21 - description: RX block
22 - description: TX block
29 - description: Clock for the Audio block
[all …]
Dmikroe,mikroe-proto.txt1 Mikroe-PROTO audio board
4 - compatible: "mikroe,mikroe-proto"
5 - dai-format: Must be "i2s".
6 - i2s-controller: The phandle of the I2S controller.
7 - audio-codec: The phandle of the WM8731 audio codec.
9 - model: The user-visible name of this sound complex.
10 - bitclock-master: Indicates dai-link bit clock master; for details see simple-card.txt (1).
11 - frame-master: Indicates dai-link frame master; for details see simple-card.txt (1).
17 compatible = "mikroe,mikroe-proto";
19 i2s-controller = <&i2s0>;
[all …]
/Linux-v5.10/sound/soc/mediatek/mt8183/
Dmt8183-dai-tdm.c1 // 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-v5.10/sound/soc/codecs/
Dsi476x.c1 // 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 …]
Dpcm179x.c1 // SPDX-License-Identifier: GPL-2.0-or-later
64 unsigned int format; member
69 unsigned int format) in pcm179x_set_dai_fmt() argument
71 struct snd_soc_component *component = codec_dai->component; in pcm179x_set_dai_fmt()
74 priv->format = format; in pcm179x_set_dai_fmt()
79 static int pcm179x_mute(struct snd_soc_dai *dai, int mute, int direction) in pcm179x_mute() argument
81 struct snd_soc_component *component = dai->component; in pcm179x_mute()
85 ret = regmap_update_bits(priv->regmap, PCM179X_SOFT_MUTE, in pcm179x_mute()
95 struct snd_soc_dai *dai) in pcm179x_hw_params() argument
97 struct snd_soc_component *component = dai->component; in pcm179x_hw_params()
[all …]
Dcs4341.c1 /* SPDX-License-Identifier: GPL-2.0+ */
46 static int cs4341_set_fmt(struct snd_soc_dai *dai, unsigned int format) in cs4341_set_fmt() argument
48 struct snd_soc_component *component = dai->component; in cs4341_set_fmt()
51 switch (format & SND_SOC_DAIFMT_MASTER_MASK) { in cs4341_set_fmt()
55 return -EINVAL; in cs4341_set_fmt()
58 switch (format & SND_SOC_DAIFMT_INV_MASK) { in cs4341_set_fmt()
62 return -EINVAL; in cs4341_set_fmt()
65 switch (format & SND_SOC_DAIFMT_FORMAT_MASK) { in cs4341_set_fmt()
69 cs4341->fmt = format & SND_SOC_DAIFMT_FORMAT_MASK; in cs4341_set_fmt()
72 return -EINVAL; in cs4341_set_fmt()
[all …]
/Linux-v5.10/drivers/staging/greybus/
Daudio_codec.c1 // 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-v5.10/sound/soc/bcm/
Dbcm2835-i2s.c1 // 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 …]
/Linux-v5.10/sound/soc/spear/
Dspdif_in.c31 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-v5.10/sound/soc/sti/
Dsti_uniperif.c1 // 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",
108 if (uni->ver < SND_ST_UNIPERIF_VERSION_UNI_PLR_TOP_1_0) { in sti_uniperiph_reset()
111 count--; in sti_uniperiph_reset()
[all …]
/Linux-v5.10/sound/soc/
Dsoc-core.c1 // SPDX-License-Identifier: GPL-2.0+
3 // soc-core.c -- ALSA SoC Audio Layer
11 // with code, comments and ideas from :-
39 #include <sound/soc-dpcm.h>
40 #include <sound/soc-topology.h>
41 #include <sound/soc-link.h>
75 return sprintf(buf, "%ld\n", rtd->pmdown_time); in pmdown_time_show()
85 ret = kstrtol(buf, 10, &rtd->pmdown_time); in pmdown_time_set()
109 return attr->mode; /* always visible */ in soc_dev_attr_is_visible()
110 return rtd->num_codecs ? attr->mode : 0; /* enabled only with codec */ in soc_dev_attr_is_visible()
[all …]
/Linux-v5.10/arch/arm/boot/dts/
Dpxa300-raumfeld-connector.dts1 // 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 …]
Darmada-370-db.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
4 * (DB-88F6710-BP-DDR3)
9 * Gregory CLEMENT <gregory.clement@free-electrons.com>
10 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
15 * DT-capable, U-Boot bootloaders provided by Marvell. Some earlier
22 /dts-v1/;
23 #include "armada-370.dtsi"
27 compatible = "marvell,a370-db", "marvell,armada370", "marvell,armada-370-xp";
30 stdout-path = "serial0:115200n8";
43 internal-regs {
[all …]
Dstihxxx-b2120.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
6 #include <dt-bindings/clock/stih407-clks.h>
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/media/c8sectpfe.h>
11 compatible = "gpio-leds";
15 linux,default-trigger = "heartbeat";
19 default-state = "off";
24 compatible = "simple-audio-card";
25 simple-audio-card,name = "STI-B2120";
27 #address-cells = <1>;
[all …]
/Linux-v5.10/sound/soc/sof/intel/
Dhda-dai.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
13 #include "../sof-priv.h"
14 #include "../sof-audio.h"
26 snd_pcm_format_t format; member
36 * of the FEs connected to the BE DAI.
46 fe_substream = snd_soc_dpcm_get_substream(dpcm->fe, dir); in hda_check_fes()
47 fe_hstream = fe_substream->runtime->private_data; in hda_check_fes()
48 if (fe_hstream->stream_tag == stream_tag) in hda_check_fes()
64 int stream_dir = substream->stream; in hda_link_stream_assign()
66 if (!bus->ppcap) { in hda_link_stream_assign()
[all …]
/Linux-v5.10/sound/soc/intel/skylake/
Dskl-pcm.c1 // 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 …]
/Linux-v5.10/sound/soc/stm/
Dstm32_adfsdm.c1 // SPDX-License-Identifier: GPL-2.0
3 * This file is part of STM32 DFSDM ASoC DAI driver
5 * Copyright (C) 2017, STMicroelectronics - All Rights Reserved
18 #include <linux/iio/adc/stm32-dfsdm-adc.h>
23 #define STM32_ADFSDM_DRV_NAME "stm32-adfsdm"
61 struct snd_soc_dai *dai) in stm32_adfsdm_shutdown() argument
63 struct stm32_adfsdm_priv *priv = snd_soc_dai_get_drvdata(dai); in stm32_adfsdm_shutdown()
65 mutex_lock(&priv->lock); in stm32_adfsdm_shutdown()
66 if (priv->iio_active) { in stm32_adfsdm_shutdown()
67 iio_channel_stop_all_cb(priv->iio_cb); in stm32_adfsdm_shutdown()
[all …]
/Linux-v5.10/sound/soc/mediatek/common/
Dmtk-afe-fe-dai.c1 // SPDX-License-Identifier: GPL-2.0
3 * mtk-afe-fe-dais.c -- Mediatek afe fe dai operator
14 #include "mtk-afe-platform-driver.h"
16 #include "mtk-afe-fe-dai.h"
17 #include "mtk-base-afe.h"
38 struct snd_soc_dai *dai) in mtk_afe_fe_startup() argument
41 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_afe_fe_startup()
42 struct snd_pcm_runtime *runtime = substream->runtime; in mtk_afe_fe_startup()
43 int memif_num = asoc_rtd_to_cpu(rtd, 0)->id; in mtk_afe_fe_startup()
44 struct mtk_base_afe_memif *memif = &afe->memif[memif_num]; in mtk_afe_fe_startup()
[all …]
/Linux-v5.10/sound/soc/atmel/
Datmel_ssc_dai.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * atmel_ssc_dai.c -- ALSA SoC ATMEL SSC Audio Layer Platform driver
11 * Based on at91-ssc.c by
25 #include <linux/atmel-ssc.h>
32 #include "atmel-pcm.h"
147 ssc_sr = (unsigned long)ssc_readl(ssc_p->ssc->regs, SR) in atmel_ssc_interrupt()
148 & (unsigned long)ssc_readl(ssc_p->ssc->regs, IMR); in atmel_ssc_interrupt()
152 * a DMA-related interrupt occurred on that substream, call in atmel_ssc_interrupt()
156 for (i = 0; i < ARRAY_SIZE(ssc_p->dma_params); i++) { in atmel_ssc_interrupt()
157 dma_params = ssc_p->dma_params[i]; in atmel_ssc_interrupt()
[all …]

12345678910>>...18