Home
last modified time | relevance | path

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

12345678910>>...26

/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/sound/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
/OK3568_Linux_fs/kernel/sound/soc/mediatek/mt8183/
H A 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 …]
H A Dmt8183-dai-i2s.c1 // SPDX-License-Identifier: GPL-2.0
3 // MediaTek ALSA SoC Audio DAI I2S Control
11 #include "mt8183-afe-clk.h"
12 #include "mt8183-afe-common.h"
13 #include "mt8183-interconnection.h"
14 #include "mt8183-reg.h"
56 static unsigned int get_i2s_wlen(snd_pcm_format_t format) in get_i2s_wlen() argument
58 return snd_pcm_format_physical_width(format) <= 16 ? in get_i2s_wlen()
94 return -EINVAL; in get_i2s_id_by_name()
100 struct mt8183_afe_private *afe_priv = afe->platform_priv; in get_i2s_priv_by_name()
[all …]
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/rockchip/
H A Drk3566-evb2-lp4x-v10-pdm-mic-array.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 #include "rk3566-evb2-lp4x-v10.dtsi"
8 #include "rk3568-android.dtsi"
12 compatible = "rockchip,rk3566-evb2-lp4x-v10", "rockchip,rk3566";
14 rk809_sound_micarray: rk809-sound-micarray {
15 compatible = "simple-audio-card";
16 simple-audio-card,format = "i2s";
17 simple-audio-card,name = "rockchip,rk809-codec";
18 simple-audio-card,mclk-fs = <256>;
20 simple-audio-card,dai-link@0 {
[all …]
H A Drk3566-evb2-lp4x-v10-i2s-mic-array.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 #include "rk3566-evb2-lp4x-v10.dtsi"
8 #include "rk3568-android.dtsi"
12 compatible = "rockchip,rk3566-evb2-lp4x-v10", "rockchip,rk3566";
14 rk809_sound_micarray: rk809-sound-micarray {
15 compatible = "simple-audio-card";
16 simple-audio-card,format = "i2s";
17 simple-audio-card,name = "rockchip,rk809-codec";
18 simple-audio-card,mclk-fs = <256>;
20 simple-audio-card,dai-link@0 {
[all …]
/OK3568_Linux_fs/kernel/sound/soc/rockchip/
H A Drockchip_multi_dais.c1 // SPDX-License-Identifier: GPL-2.0
3 * ALSA SoC Audio Layer - Rockchip Multi-DAIS driver
6 * Author: Sugar Zhang <sugar.zhang@rock-chips.com>
19 #define BITCLOCK_INV_STR "bitclock-inversion"
20 #define FRAME_INV_STR "frame-inversion"
21 #define BITCLOCK_MASTER_STR "bitclock-master"
22 #define FRAME_MASTER_STR "frame-master"
23 #define DAIS_DRV_NAME "rockchip-mdais"
26 static inline struct rk_mdais_dev *to_info(struct snd_soc_dai *dai) in to_info() argument
28 return snd_soc_dai_get_drvdata(dai); in to_info()
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/greybus/
H A 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 …]
/OK3568_Linux_fs/kernel/sound/soc/bcm/
H A 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 …]
/OK3568_Linux_fs/kernel/sound/soc/sti/
H A 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 …]
/OK3568_Linux_fs/kernel/sound/soc/codecs/
H A 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 …]
/OK3568_Linux_fs/kernel/sound/soc/
H A Dsoc-core.c1 // SPDX-License-Identifier: GPL-2.0+
3 // soc-core.c -- ALSA SoC Audio Layer
11 // with code, comments and ideas from :-
40 #include <sound/soc-dpcm.h>
41 #include <sound/soc-topology.h>
42 #include <sound/soc-link.h>
76 return sprintf(buf, "%ld\n", rtd->pmdown_time); in pmdown_time_show()
86 ret = kstrtol(buf, 10, &rtd->pmdown_time); in pmdown_time_set()
110 return attr->mode; /* always visible */ in soc_dev_attr_is_visible()
111 return rtd->num_codecs ? attr->mode : 0; /* enabled only with codec */ in soc_dev_attr_is_visible()
[all …]
/OK3568_Linux_fs/kernel/sound/soc/spear/
H A 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 …]
/OK3568_Linux_fs/kernel/sound/soc/sof/intel/
H A 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 …]
/OK3568_Linux_fs/kernel/sound/soc/intel/skylake/
H A 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 …]
/OK3568_Linux_fs/kernel/sound/soc/atmel/
H A 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 …]
/OK3568_Linux_fs/kernel/arch/arm/boot/dts/
H A 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 …]
/OK3568_Linux_fs/kernel/include/sound/
H A Dsoc-dai.h1 /* 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.
40 * DAI Clock gating.
42 * DAI bit clocks can be gated (disabled) when the DAI is not
49 * DAI hardware signal polarity.
51 * Specifies whether the DAI can also support inverted clocks for the specified
52 * format.
[all …]
/OK3568_Linux_fs/kernel/sound/soc/jz4740/
H A Djz4740-i2s.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2010, Lars-Peter Clausen <lars@metafoo.de>
18 #include <linux/dma-mapping.h>
27 #include "jz4740-i2s.h"
96 struct snd_soc_dai_driver *dai; member
116 return readl(i2s->base + reg); in jz4740_i2s_read()
122 writel(value, i2s->base + reg); in jz4740_i2s_write()
126 struct snd_soc_dai *dai) in jz4740_i2s_startup() argument
128 struct jz4740_i2s *i2s = snd_soc_dai_get_drvdata(dai); in jz4740_i2s_startup()
132 if (snd_soc_dai_active(dai)) in jz4740_i2s_startup()
[all …]
/OK3568_Linux_fs/kernel/sound/soc/mediatek/common/
H A 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 …]
/OK3568_Linux_fs/kernel/sound/soc/stm/
H A 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 …]

12345678910>>...26