Home
last modified time | relevance | path

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

1234

/Linux-v6.1/Documentation/sound/soc/
Ddpcm.rst18 DPCM re-uses all the existing component codec, platform and DAI drivers without
23 -------------------------------------
26 document for all examples :-
32 PCM0 <------------> * * <----DAI0-----> Codec Headset
34 PCM1 <------------> * * <----DAI1-----> Codec Speakers
36 PCM2 <------------> * * <----DAI2-----> MODEM
38 PCM3 <------------> * * <----DAI3-----> BT
40 * * <----DAI4-----> DMIC
42 * * <----DAI5-----> FM
49 of the BE DAIs. The FE PCM devices can also route audio to more than 1 BE DAI.
[all …]
/Linux-v6.1/sound/soc/intel/boards/
Dsof_cs42l42.c1 // SPDX-License-Identifier: GPL-2.0-only
20 #include <sound/soc-acpi.h>
21 #include <dt-bindings/sound/cs42l42.h>
23 #include "../common/soc-intel-quirks.h"
90 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); in sof_hdmi_init()
91 struct snd_soc_dai *dai = asoc_rtd_to_codec(rtd, 0); in sof_hdmi_init() local
94 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in sof_hdmi_init()
96 return -ENOMEM; in sof_hdmi_init()
99 pcm->device = rtd->dai_link->id; in sof_hdmi_init()
100 pcm->codec_dai = dai; in sof_hdmi_init()
[all …]
Dsof_sdw.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * sof_sdw - ASOC Machine driver for Intel SoundWire platforms
14 #include <sound/soc-acpi.h>
19 static int quirk_override = -1;
21 MODULE_PARM_DESC(quirk, "Board-specific quirk override");
28 dev_dbg(dev, "quirk realtek,jack-detect-source %ld\n", in log_quirks()
45 sof_sdw_quirk = (unsigned long)id->driver_data; in sof_sdw_quirk_cb()
183 * (e.g. 15-eb1xxx, 14t-ea000 or 13-aw2xxx)
216 /* TigerLake-SDCA devices */
353 DMI_MATCH(DMI_PRODUCT_NAME, "OMEN by HP Gaming Laptop 16-k0xxx"),
[all …]
Dsof_ssp_amp.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * sof_ssp_amp.c - ASoc Machine driver for Intel platforms
114 if (!ctx->idisp_codec) in sof_card_late_probe()
117 if (list_empty(&ctx->hdmi_pcm_list)) in sof_card_late_probe()
118 return -EINVAL; in sof_card_late_probe()
120 if (ctx->common_hdmi_codec_drv) { in sof_card_late_probe()
121 pcm = list_first_entry(&ctx->hdmi_pcm_list, struct sof_hdmi_pcm, in sof_card_late_probe()
123 component = pcm->codec_dai->component; in sof_card_late_probe()
128 list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) { in sof_card_late_probe()
129 component = pcm->codec_dai->component; in sof_card_late_probe()
[all …]
Dsof_nau8825.c1 // SPDX-License-Identifier: GPL-2.0-only
20 #include <sound/soc-acpi.h>
22 #include "../common/soc-intel-quirks.h"
67 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); in sof_hdmi_init()
68 struct snd_soc_dai *dai = asoc_rtd_to_codec(rtd, 0); in sof_hdmi_init() local
71 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in sof_hdmi_init()
73 return -ENOMEM; in sof_hdmi_init()
76 pcm->device = rtd->dai_link->id; in sof_hdmi_init()
77 pcm->codec_dai = dai; in sof_hdmi_init()
79 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in sof_hdmi_init()
[all …]
Dsof_pcm512x.c1 // SPDX-License-Identifier: GPL-2.0-only
2 // Copyright(c) 2018-2020 Intel Corporation.
20 #include <sound/soc-acpi.h>
22 #include "../common/soc-intel-quirks.h"
55 sof_pcm512x_quirk = (unsigned long)id->driver_data; in sof_pcm512x_quirk_cb()
64 DMI_MATCH(DMI_PRODUCT_NAME, "UP-CHT01"),
73 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); in sof_hdmi_init()
74 struct snd_soc_dai *dai = asoc_rtd_to_codec(rtd, 0); in sof_hdmi_init() local
77 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in sof_hdmi_init()
79 return -ENOMEM; in sof_hdmi_init()
[all …]
Dsof_es8336.c1 // SPDX-License-Identifier: GPL-2.0-only
21 #include <sound/soc-acpi.h>
24 /* jd-inv + terminating entry */
56 static int quirk_override = -1;
58 MODULE_PARM_DESC(quirk, "Board-specific quirk override");
79 { "speakers-enable-gpios", &enable_gpio0, 1, ACPI_GPIO_QUIRK_ONLY_GPIOIO },
84 { "speakers-enable-gpios", &enable_gpio1, 1, ACPI_GPIO_QUIRK_ONLY_GPIOIO },
88 { "speakers-enable-gpios", &enable_gpio0, 1, ACPI_GPIO_QUIRK_ONLY_GPIOIO },
89 { "headphone-enable-gpios", &enable_gpio1, 1, ACPI_GPIO_QUIRK_ONLY_GPIOIO },
94 { "speakers-enable-gpios", &enable_gpio1, 1, ACPI_GPIO_QUIRK_ONLY_GPIOIO },
[all …]
Dskl_hda_dsp_generic.c1 // SPDX-License-Identifier: GPL-2.0-only
2 // Copyright(c) 2015-18 Intel Corporation.
15 #include <sound/soc-acpi.h>
65 DAILINK_COMP_ARRAY(COMP_CODEC("snd-soc-dummy", "snd-soc-dummy-dai")));
78 dev_dbg(card->dev, "dai link name - %s\n", link->name); in skl_hda_add_dai_link()
79 link->platforms->name = ctx->platform_name; in skl_hda_add_dai_link()
80 link->nonatomic = 1; in skl_hda_add_dai_link()
82 if (!ctx->idisp_codec) in skl_hda_add_dai_link()
85 if (strstr(link->name, "HDMI")) { in skl_hda_add_dai_link()
86 ret = skl_hda_hdmi_add_pcm(card, ctx->pcm_count); in skl_hda_add_dai_link()
[all …]
Dsof_rt5682.c1 // SPDX-License-Identifier: GPL-2.0-only
2 // Copyright(c) 2019-2020 Intel Corporation.
22 #include <sound/soc-acpi.h>
26 #include "../common/soc-intel-quirks.h"
88 sof_rt5682_quirk = (unsigned long)id->driver_data; in sof_rt5682_quirk_cb()
105 DMI_MATCH(DMI_PRODUCT_NAME, "UP-CHT01"),
160 DMI_MATCH(DMI_OEM_STRING, "AUDIO-MAX98373_ALC5682I_I2S_UP4"),
174 DMI_MATCH(DMI_OEM_STRING, "AUDIO-ADL_MAX98373_ALC5682I_I2S"),
187 DMI_MATCH(DMI_OEM_STRING, "AUDIO-MAX98390_ALC5682I_I2S"),
200 DMI_MATCH(DMI_OEM_STRING, "AUDIO-MAX98390_ALC5682I_I2S_4SPK"),
[all …]
/Linux-v6.1/sound/soc/amd/acp/
Dacp-mach-common.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
19 #include <sound/soc-dapm.h>
28 #include "acp-mach.h"
59 clk_set_rate(drvdata->wclk, 48000); in acp_clk_enable()
60 clk_set_rate(drvdata->bclk, 48000 * 64); in acp_clk_enable()
62 return clk_prepare_enable(drvdata->wclk); in acp_clk_enable()
67 DAILINK_COMP_ARRAY(COMP_CODEC("i2c-10EC5682:00", "rt5682-aif1")));
78 struct snd_soc_card *card = rtd->card; in acp_card_rt5682_init()
79 struct acp_card_drvdata *drvdata = card->drvdata; in acp_card_rt5682_init()
81 struct snd_soc_component *component = codec_dai->component; in acp_card_rt5682_init()
[all …]
/Linux-v6.1/sound/soc/sof/
Dsof-client-probes.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // Copyright(c) 2019-2022 Intel Corporation. All rights reserved.
19 #include "sof-client.h"
20 #include "sof-client-probes.h"
80 * sof_probes_init - initialize data probing
103 return -ENOMEM; in sof_probes_init()
104 msg->hdr.size = size; in sof_probes_init()
105 msg->hdr.cmd = SOF_IPC_GLB_PROBE | SOF_IPC_PROBE_INIT; in sof_probes_init()
106 msg->num_elems = 1; in sof_probes_init()
107 msg->dma[0].stream_tag = stream_tag; in sof_probes_init()
[all …]
Dnocodec.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
13 #include "sof-audio.h"
14 #include "sof-priv.h"
17 .name = "nocodec", /* the sof- prefix is added by the core */
18 .topology_shortname = "sof-nocodec",
24 struct snd_soc_dai_link *links, in sof_nocodec_bes_setup() argument
30 if (!drv || !links || !card) in sof_nocodec_bes_setup()
31 return -EINVAL; in sof_nocodec_bes_setup()
37 return -ENOMEM; in sof_nocodec_bes_setup()
39 links[i].name = devm_kasprintf(dev, GFP_KERNEL, in sof_nocodec_bes_setup()
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/sound/
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 …]
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 …]
Dqcom,apq8096.txt5 - compatible:
8 Definition: must be "qcom,apq8096-sndcard"
10 - audio-routing:
53 - model:
56 Definition: The user-visible name of this sound card.
58 - aux-devs
62 amplifiers) that do not appear directly within the DAI
63 links. Should be connected to another audio component
64 using "audio-routing".
70 - link-name:
[all …]
Dmt8186-mt6366-da7219-max98357.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/sound/mt8186-mt6366-da7219-max98357.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Jiaxin Yu <jiaxin.yu@mediatek.com>
18 - mediatek,mt8186-mt6366-da7219-max98357-sound
24 headset-codec:
28 sound-dai:
31 - sound-dai
33 playback-codecs:
[all …]
Dmt8186-mt6366-rt1019-rt5682s.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/sound/mt8186-mt6366-rt1019-rt5682s.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Jiaxin Yu <jiaxin.yu@mediatek.com>
18 - mediatek,mt8186-mt6366-rt1019-rt5682s-sound
24 headset-codec:
28 sound-dai:
31 - sound-dai
33 playback-codecs:
[all …]
Dgoogle,sc7180-trogdor.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/sound/google,sc7180-trogdor.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Google SC7180-Trogdor ASoC sound card driver
10 - Rohit kumar <rohitkr@codeaurora.org>
11 - Cheng-Yi Chiang <cychiang@chromium.org>
19 - google,sc7180-trogdor
20 - google,sc7180-coachz
22 audio-routing:
[all …]
Dimx-audio-card.yaml1 # 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 …]
Dgoogle,sc7280-herobrine.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/sound/google,sc7280-herobrine.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Google SC7280-Herobrine ASoC sound card driver
10 - Srinivasa Rao Mandadapu <srivasam@codeaurora.org>
11 - Judy Hsiao <judyhsiao@chromium.org>
19 - google,sc7280-herobrine
21 audio-routing:
22 $ref: /schemas/types.yaml#/definitions/non-unique-string-array
[all …]
/Linux-v6.1/sound/soc/generic/
Dsimple-card.c1 // SPDX-License-Identifier: GPL-2.0
16 #include <sound/soc-dai.h>
21 #define DAI "sound-dai" macro
22 #define CELL "#sound-dai-cells"
23 #define PREFIX "simple-audio-card,"
41 * Get node via "sound-dai = <&phandle port>" in asoc_simple_parse_platform()
44 ret = of_parse_phandle_with_args(node, DAI, CELL, 0, &args); in asoc_simple_parse_platform()
50 dlc->of_node = args.np; in asoc_simple_parse_platform()
66 * Get node via "sound-dai = <&phandle port>" in asoc_simple_parse_dai()
69 ret = of_parse_phandle_with_args(node, DAI, CELL, 0, &args); in asoc_simple_parse_dai()
[all …]
Daudio-graph-card.c1 // SPDX-License-Identifier: GPL-2.0
8 // based on ${LINUX}/sound/soc/generic/simple-card.c
29 struct snd_soc_dapm_context *dapm = w->dapm; in graph_outdrv_event()
30 struct asoc_simple_priv *priv = snd_soc_card_get_drvdata(dapm->card); in graph_outdrv_event()
34 gpiod_set_value_cansleep(priv->pa_gpio, 1); in graph_outdrv_event()
37 gpiod_set_value_cansleep(priv->pa_gpio, 0); in graph_outdrv_event()
40 return -EINVAL; in graph_outdrv_event()
67 /* use driver specified DAI ID if exist */ in graph_get_dai_id()
69 if (ret != -ENOTSUPP) in graph_get_dai_id()
97 id = -1; in graph_get_dai_id()
[all …]
/Linux-v6.1/sound/soc/meson/
Dmeson-card-utils.c1 // SPDX-License-Identifier: GPL-2.0
10 #include "meson-card.h"
29 if (ret && ret != -ENOTSUPP) in meson_card_i2s_set_sysclk()
35 if (ret && ret != -ENOTSUPP) in meson_card_i2s_set_sysclk()
46 struct snd_soc_dai_link *links; in meson_card_reallocate_links() local
49 links = krealloc(priv->card.dai_link, in meson_card_reallocate_links()
50 num_links * sizeof(*priv->card.dai_link), in meson_card_reallocate_links()
52 if (!links) in meson_card_reallocate_links()
55 ldata = krealloc(priv->link_data, in meson_card_reallocate_links()
56 num_links * sizeof(*priv->link_data), in meson_card_reallocate_links()
[all …]
/Linux-v6.1/include/linux/soundwire/
Dsdw_intel.h1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
2 /* Copyright(c) 2015-17 Intel Corporation. */
33 #define SDW_SHIM_SYNC_SYNCPRD_VAL_24 (24000 / SDW_CADENCE_GSYNC_KHZ - 1)
34 #define SDW_SHIM_SYNC_SYNCPRD_VAL_38_4 (38400 / SDW_CADENCE_GSYNC_KHZ - 1)
111 struct snd_soc_dai *dai; member
124 struct snd_soc_dai *dai; member
137 int (*trigger)(struct snd_soc_dai *dai, int cmd, int stream);
141 * struct sdw_intel_acpi_info - Soundwire Intel information found in ACPI tables
143 * @count: link count found with "sdw-master-count" property
144 * @link_mask: bit-wise mask listing links enabled by BIOS menu
[all …]
/Linux-v6.1/sound/soc/amd/
Dacp3x-rt5682-max9836.c1 // SPDX-License-Identifier: GPL-2.0+
11 #include <sound/soc-dapm.h>
45 struct snd_soc_card *card = rtd->card; in acp3x_5682_init()
47 struct snd_soc_component *component = codec_dai->component; in acp3x_5682_init()
49 dev_info(rtd->dev, "codec dai name = %s\n", codec_dai->name); in acp3x_5682_init()
51 /* set rt5682 dai fmt */ in acp3x_5682_init()
56 dev_err(rtd->card->dev, in acp3x_5682_init()
57 "Failed to set rt5682 dai fmt: %d\n", ret); in acp3x_5682_init()
65 dev_err(rtd->dev, "can't set rt5682 PLL: %d\n", ret); in acp3x_5682_init()
73 dev_err(rtd->dev, in acp3x_5682_init()
[all …]

1234