Home
last modified time | relevance | path

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

1234567

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/sound/soc/sof/
Dsof-client-probes.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // Copyright(c) 2019-2022 Intel Corporation. All rights reserved.
20 #include "sof-client.h"
21 #include "sof-client-probes.h"
34 struct snd_soc_dai *dai) in sof_probes_compr_startup() argument
36 struct snd_soc_card *card = snd_soc_component_get_drvdata(dai->component); in sof_probes_compr_startup()
38 struct sof_probes_priv *priv = cdev->data; in sof_probes_compr_startup()
39 const struct sof_probes_host_ops *ops = priv->host_ops; in sof_probes_compr_startup()
43 return -ENODEV; in sof_probes_compr_startup()
49 ret = ops->startup(cdev, cstream, dai, &priv->extractor_stream_tag); in sof_probes_compr_startup()
[all …]
/kernel/linux/linux-5.10/sound/soc/intel/boards/
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()
47 sof_sdw_quirk = (unsigned long)id->driver_data; in sof_sdw_quirk_cb()
168 * (e.g. 15-eb1xxx, 14t-ea000 or 13-aw2xxx)
179 /* TigerLake-SDCA devices */
233 .name = "dmic-codec",
[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 …]
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, "%s: dai link name - %s\n", __func__, 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.
20 #include <sound/soc-acpi.h>
24 #include "../common/soc-intel-quirks.h"
71 sof_rt5682_quirk = (unsigned long)id->driver_data; in sof_rt5682_quirk_cb()
88 DMI_MATCH(DMI_PRODUCT_NAME, "UP-CHT01"),
126 DMI_MATCH(DMI_OEM_STRING, "AUDIO-MAX98373_ALC5682I_I2S_UP4"),
140 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); in sof_hdmi_init()
141 struct snd_soc_dai *dai = asoc_rtd_to_codec(rtd, 0); in sof_hdmi_init() local
144 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in sof_hdmi_init()
[all …]
/kernel/linux/linux-6.6/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_ssp_amp.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * sof_ssp_amp.c - ASoc Machine driver for Intel platforms
113 if (!ctx->idisp_codec) in sof_card_late_probe()
116 if (list_empty(&ctx->hdmi_pcm_list)) in sof_card_late_probe()
117 return -EINVAL; in sof_card_late_probe()
119 if (ctx->common_hdmi_codec_drv) { in sof_card_late_probe()
120 pcm = list_first_entry(&ctx->hdmi_pcm_list, struct sof_hdmi_pcm, in sof_card_late_probe()
122 component = pcm->codec_dai->component; in sof_card_late_probe()
126 list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) { in sof_card_late_probe()
127 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"
69 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); in sof_hdmi_init()
70 struct snd_soc_dai *dai = asoc_rtd_to_codec(rtd, 0); in sof_hdmi_init() local
73 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in sof_hdmi_init()
75 return -ENOMEM; in sof_hdmi_init()
78 pcm->device = rtd->dai_link->id; in sof_hdmi_init()
79 pcm->codec_dai = dai; in sof_hdmi_init()
81 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); 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 …]
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 …]
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>
75 dev_dbg(card->dev, "dai link name - %s\n", link->name); in skl_hda_add_dai_link()
76 link->platforms->name = ctx->platform_name; in skl_hda_add_dai_link()
77 link->nonatomic = 1; in skl_hda_add_dai_link()
79 if (!ctx->idisp_codec) in skl_hda_add_dai_link()
82 if (strstr(link->name, "HDMI")) { in skl_hda_add_dai_link()
83 ret = skl_hda_hdmi_add_pcm(card, ctx->pcm_count); in skl_hda_add_dai_link()
88 ctx->dai_index++; in skl_hda_add_dai_link()
[all …]
/kernel/linux/linux-6.6/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>
29 #include "acp-mach.h"
35 #define NAU8821_CODEC_DAI "nau8821-hifi"
38 #define MAX98388_CODEC_DAI "max98388-aif1"
44 /* Google skyrim proto-0 */
77 clk_set_rate(drvdata->wclk, srate); in acp_clk_enable()
78 clk_set_rate(drvdata->bclk, srate * bclk_ratio); in acp_clk_enable()
80 return clk_prepare_enable(drvdata->wclk); in acp_clk_enable()
85 DAILINK_COMP_ARRAY(COMP_CODEC("i2c-10EC5682:00", "rt5682-aif1")));
[all …]
/kernel/linux/linux-6.6/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>
13 - $ref: sound-card-common.yaml#
18 - const: amlogic,gx-sound-card
20 audio-aux-devs:
21 $ref: /schemas/types.yaml#/definitions/phandle-array
24 audio-widgets:
[all …]
Damlogic,axg-sound-card.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/sound/amlogic,axg-sound-card.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Jerome Brunet <jbrunet@baylibre.com>
13 - $ref: sound-card-common.yaml#
17 const: amlogic,axg-sound-card
19 audio-aux-devs:
20 $ref: /schemas/types.yaml#/definitions/phandle-array
23 audio-widgets:
[all …]
/kernel/linux/linux-5.10/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,sdm845.txt5 - compatible:
9 "qcom,sdm845-sndcard"
10 "qcom,db845c-sndcard"
11 "lenovo,yoga-c630-sndcard"
13 - audio-routing:
22 - model:
25 Definition: The user-visible name of this sound card.
27 - aux-devs
31 amplifiers) that do not appear directly within the DAI
32 links. Should be connected to another audio component
[all …]
/kernel/linux/linux-6.6/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()
61 struct snd_soc_dai *dai; in asoc_simple_parse_dai() local
68 * Get node via "sound-dai = <&phandle port>" 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()
60 struct snd_soc_dai *dai = snd_soc_find_dai_with_mutex(dlc); in soc_component_is_pcm() local
62 if (dai && (dai->component->driver->pcm_construct || in soc_component_is_pcm()
63 (dai->driver->ops && dai->driver->ops->pcm_new))) in soc_component_is_pcm()
[all …]
/kernel/linux/linux-6.6/drivers/soundwire/
Dintel.c1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
2 // Copyright(c) 2015-17 Intel Corporation.
32 timeout--; in intel_wait_bit()
36 return -EAGAIN; in intel_wait_bit()
68 return scnprintf(buf + pos, RD_BUF - pos, "%4x\t%4x\n", reg, value); in intel_sprintf()
73 struct sdw_intel *sdw = s_file->private; in intel_reg_show()
74 void __iomem *s = sdw->link_res->shim; in intel_reg_show()
75 void __iomem *a = sdw->link_res->alh; in intel_reg_show()
79 unsigned int links, reg; in intel_reg_show() local
83 return -ENOMEM; in intel_reg_show()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/include/linux/soundwire/
Dsdw_intel.h1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
2 /* Copyright(c) 2015-17 Intel Corporation. */
17 struct snd_soc_dai *dai; member
30 struct snd_soc_dai *dai; member
46 * struct sdw_intel_acpi_info - Soundwire Intel information found in ACPI tables
48 * @count: link count found with "sdw-master-count" property
49 * @link_mask: bit-wise mask listing links enabled by BIOS menu
63 /* Intel clock-stop/pm_runtime quirk definitions */
74 * reset and re-enumeration will be performed when the bus
76 * in-band wakes.
[all …]
/kernel/linux/linux-5.10/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,"
42 * Get node via "sound-dai = <&phandle port>" in asoc_simple_parse_dai()
45 ret = of_parse_phandle_with_args(node, DAI, CELL, 0, &args); in asoc_simple_parse_dai()
52 * Here, dlc->dai_name is pointer to CPU/Codec DAI name. in asoc_simple_parse_dai()
54 * dlc->dai_name is keeping unbinded CPU or Codec in asoc_simple_parse_dai()
57 * If user re-bind CPU or Codec driver again, ALSA SoC will try in asoc_simple_parse_dai()
[all …]

1234567