Home
last modified time | relevance | path

Searched full:dai (Results 1 – 25 of 1488) sorted by relevance

12345678910>>...60

/Linux-v6.6/sound/soc/
Dsoc-dai.c3 // soc-dai.c
10 #include <sound/soc-dai.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
27 dev_err(dai->dev, in _soc_dai_ret()
29 func, dai->name, ret); in _soc_dai_ret()
39 #define soc_dai_mark_push(dai, substream, tgt) ((dai)->mark_##tgt = substream) argument
40 #define soc_dai_mark_pop(dai, substream, tgt) ((dai)->mark_##tgt = NULL) argument
41 #define soc_dai_mark_match(dai, substream, tgt) ((dai)->mark_##tgt == substream) argument
44 * snd_soc_dai_set_sysclk - configure DAI system or master clock.
[all …]
/Linux-v6.6/include/sound/
Dsoc-dai.h3 * linux/sound/soc-dai.h -- ALSA SoC Layer
7 * Digital Audio Interface (DAI) API.
22 * DAI hardware audio formats.
56 * DAI Clock gating.
58 * DAI bit clocks can be gated (disabled) when the DAI is not
76 * DAI hardware signal polarity.
78 * Specifies whether the DAI can also support inverted clocks for the specified
110 * DAI hardware clock providers/consumers
171 int snd_soc_dai_set_sysclk(struct snd_soc_dai *dai, int clk_id,
174 int snd_soc_dai_set_clkdiv(struct snd_soc_dai *dai,
[all …]
Dsimple_card_utils.h139 struct asoc_simple_dai *dai);
160 #define asoc_simple_parse_tdm(np, dai) \ argument
161 snd_soc_of_parse_tdm_slot(np, &(dai)->tx_slot_mask, \
162 &(dai)->rx_slot_mask, \
163 &(dai)->slots, \
164 &(dai)->slot_width);
201 struct asoc_simple_dai *dai) in asoc_simple_debug_dai() argument
205 /* dai might be NULL */ in asoc_simple_debug_dai()
206 if (!dai) in asoc_simple_debug_dai()
209 if (dai->name) in asoc_simple_debug_dai()
[all …]
/Linux-v6.6/sound/soc/qcom/qdsp6/
Dq6apm-lpass-dais.c26 static int q6dma_set_channel_map(struct snd_soc_dai *dai, in q6dma_set_channel_map() argument
31 struct q6apm_lpass_dai_data *dai_data = dev_get_drvdata(dai->dev); in q6dma_set_channel_map()
32 struct audioreach_module_config *cfg = &dai_data->module_config[dai->id]; in q6dma_set_channel_map()
35 switch (dai->id) { in q6dma_set_channel_map()
49 dev_err(dai->dev, "tx slot not found\n"); in q6dma_set_channel_map()
54 dev_err(dai->dev, "invalid tx num %d\n", in q6dma_set_channel_map()
73 dev_err(dai->dev, "rx slot not found\n"); in q6dma_set_channel_map()
77 dev_err(dai->dev, "invalid rx num %d\n", in q6dma_set_channel_map()
85 dev_err(dai->dev, "%s: invalid dai id 0x%x\n", in q6dma_set_channel_map()
86 __func__, dai->id); in q6dma_set_channel_map()
[all …]
Dq6afe-dai.c38 struct snd_soc_dai *dai) in q6slim_hw_params() argument
41 struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev); in q6slim_hw_params()
42 struct q6afe_slim_cfg *slim = &dai_data->port_config[dai->id].slim; in q6slim_hw_params()
68 struct snd_soc_dai *dai) in q6hdmi_hw_params() argument
70 struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev); in q6hdmi_hw_params()
72 struct q6afe_hdmi_cfg *hdmi = &dai_data->port_config[dai->id].hdmi; in q6hdmi_hw_params()
96 struct snd_soc_dai *dai) in q6i2s_hw_params() argument
98 struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev); in q6i2s_hw_params()
99 struct q6afe_i2s_cfg *i2s = &dai_data->port_config[dai->id].i2s_cfg; in q6i2s_hw_params()
104 i2s->sd_line_mask = dai_data->priv[dai->id].sd_line_mask; in q6i2s_hw_params()
[all …]
/Linux-v6.6/sound/soc/tegra/
Dtegra210_ahub.c101 DAI(ADMAIF1),
102 DAI(ADMAIF2),
103 DAI(ADMAIF3),
104 DAI(ADMAIF4),
105 DAI(ADMAIF5),
106 DAI(ADMAIF6),
107 DAI(ADMAIF7),
108 DAI(ADMAIF8),
109 DAI(ADMAIF9),
110 DAI(ADMAIF10),
[all …]
/Linux-v6.6/Documentation/devicetree/bindings/sound/
Damlogic,axg-sound-card.yaml30 "^dai-link-[0-9]+$":
34 Container for dai-link level properties and the CODEC sub-nodes.
38 dai-format:
42 dai-tdm-slot-num:
49 dai-tdm-slot-width:
61 sound-dai:
63 description: phandle of the CPU DAI
66 "^dai-tdm-slot-(t|r)x-mask-[0-3]$":
80 dai-link representing backend links should have at least one subnode.
81 One subnode for each codec of the dai-link. dai-link representing
[all …]
Dqcom,sm8250.yaml64 ".*-dai-link$":
66 Each subnode represents a dai link. Subnodes of each dai links would be
73 description: Indicates dai-link name and PCM stream name.
78 description: Holds subnode which indicates cpu dai.
83 sound-dai:
87 description: Holds subnode which indicates platform dai.
92 sound-dai:
96 description: Holds subnode which indicates codec dai.
101 sound-dai:
158 mm1-dai-link {
[all …]
Dgoogle,sc7280-herobrine.yaml31 "^dai-link@[0-9a-f]$":
33 Each subnode represents a dai link. Subnodes of each dai links would be
40 description: Indicates dai-link name and PCM stream name.
46 description: dai link address.
49 description: Holds subnode which indicates cpu dai.
52 sound-dai: true
55 - sound-dai
60 description: Holds subnode which indicates codec dai.
63 sound-dai: true
66 - sound-dai
[all …]
Dfsl,qmc-audio.yaml15 It provides as many DAI as the number of QMC channel used.
18 - $ref: dai-common.yaml#
28 '#sound-dai-cells':
32 '^dai@([0-9]|[1-5][0-9]|6[0-3])$':
34 A DAI managed by this controller
42 The DAI number
52 channel to use for this DAI.
62 - '#sound-dai-cells'
72 #sound-dai-cells = <1>;
73 dai@16 {
[all …]
Damlogic,gx-sound-card.yaml32 "^dai-link-[0-9]+$":
36 dai-link child nodes:
37 Container for dai-link level properties and the CODEC sub-nodes.
41 dai-format:
51 sound-dai:
53 description: phandle of the CPU DAI
61 dai-link representing backend links should have at least one subnode.
62 One subnode for each codec of the dai-link. dai-link representing
66 sound-dai:
68 description: phandle of the codec DAI
[all …]
Dimx-audio-card.yaml21 ".*-dai-link$":
23 Each subnode represents a dai link. Subnodes of each dai links would be
30 description: Indicates dai-link name and PCM stream name.
41 dai-tdm-slot-num:
45 dai-tdm-slot-width:
50 description: Holds subnode which indicates cpu dai.
54 sound-dai:
58 description: Holds subnode which indicates codec dai.
62 sound-dai:
86 pri-dai-link {
[all …]
Damlogic,g12a-tohdmitx.txt8 - #sound-dai-cells: should be 1.
16 #sound-dai-cells = <1>;
27 dai-link-x {
28 sound-dai = <&tdmif_a>;
29 dai-format = "i2s";
30 dai-tdm-slot-tx-mask-0 = <1 1>;
33 sound-dai = <&tohdmitx TOHDMITX_I2S_IN_A>;
37 sound-dai = <&external_dac>;
41 dai-link-y {
42 sound-dai = <&tdmif_c>;
[all …]
Dsimple-card.yaml15 description: Indicates dai-link frame master.
19 description: Indicates dai-link bit clock master
23 description: dai-link uses frame clock inversion
27 description: dai-link uses bit clock inversion
30 dai-tdm-slot-num:
34 dai-tdm-slot-width:
63 When defined, mclk-fs property defined in dai-link sub nodes are ignored.
116 dai:
119 sound-dai:
136 dai-tdm-slot-num:
[all …]
/Linux-v6.6/sound/soc/intel/avs/
Dpcm.c36 avs_dai_find_path_template(struct snd_soc_dai *dai, bool is_fe, int direction) in avs_dai_find_path_template() argument
38 struct snd_soc_dapm_widget *dw = snd_soc_dai_get_widget(dai, direction); in avs_dai_find_path_template()
58 static int avs_dai_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai, bool is_fe, in avs_dai_startup() argument
62 struct avs_dev *adev = to_avs_dev(dai->dev); in avs_dai_startup()
66 template = avs_dai_find_path_template(dai, is_fe, substream->stream); in avs_dai_startup()
68 dev_err(dai->dev, "no %s path for dai %s, invalid tplg?\n", in avs_dai_startup()
69 snd_pcm_stream_str(substream), dai->name); in avs_dai_startup()
79 snd_soc_dai_set_dma_data(dai, substream, data); in avs_dai_startup()
89 struct snd_pcm_hw_params *be_hw_params, struct snd_soc_dai *dai, in avs_dai_hw_params() argument
94 struct avs_dev *adev = to_avs_dev(dai->dev); in avs_dai_hw_params()
[all …]
/Linux-v6.6/arch/arm64/boot/dts/amlogic/
Dmeson-sm1-bananapi-m5.dts68 dai-link-0 {
69 sound-dai = <&frddr_a>;
72 dai-link-1 {
73 sound-dai = <&frddr_b>;
76 dai-link-2 {
77 sound-dai = <&frddr_c>;
80 dai-link-3 {
81 sound-dai = <&toddr_a>;
84 dai-link-4 {
85 sound-dai = <&toddr_b>;
[all …]
Dmeson-g12b-gtking.dts23 #sound-dai-cells = <0>;
49 dai-link-0 {
50 sound-dai = <&frddr_a>;
53 dai-link-1 {
54 sound-dai = <&frddr_b>;
57 dai-link-2 {
58 sound-dai = <&frddr_c>;
62 dai-link-3 {
63 sound-dai = <&tdmif_b>;
64 dai-format = "i2s";
[all …]
Dmeson-g12b-odroid-n2l.dts50 dai-link-0 {
51 sound-dai = <&frddr_a>;
54 dai-link-1 {
55 sound-dai = <&frddr_b>;
58 dai-link-2 {
59 sound-dai = <&frddr_c>;
62 dai-link-3 {
63 sound-dai = <&toddr_a>;
66 dai-link-4 {
67 sound-dai = <&toddr_b>;
[all …]
Dmeson-g12b-ugoos-am6.dts18 #sound-dai-cells = <0>;
44 dai-link-0 {
45 sound-dai = <&frddr_a>;
48 dai-link-1 {
49 sound-dai = <&frddr_b>;
52 dai-link-2 {
53 sound-dai = <&frddr_c>;
57 dai-link-3 {
58 sound-dai = <&tdmif_b>;
59 dai-format = "i2s";
[all …]
Dmeson-g12b-odroid-n2.dtsi82 dai-link-0 {
83 sound-dai = <&frddr_a>;
86 dai-link-1 {
87 sound-dai = <&frddr_b>;
90 dai-link-2 {
91 sound-dai = <&frddr_c>;
94 dai-link-3 {
95 sound-dai = <&toddr_a>;
98 dai-link-4 {
99 sound-dai = <&toddr_b>;
[all …]
/Linux-v6.6/sound/soc/meson/
Daxg-tdm-interface.c11 #include <sound/soc-dai.h>
35 int axg_tdm_set_tdm_slots(struct snd_soc_dai *dai, u32 *tx_mask, in axg_tdm_set_tdm_slots() argument
39 struct axg_tdm_iface *iface = snd_soc_dai_get_drvdata(dai); in axg_tdm_set_tdm_slots()
40 struct axg_tdm_stream *tx = snd_soc_dai_dma_data_get_playback(dai); in axg_tdm_set_tdm_slots()
41 struct axg_tdm_stream *rx = snd_soc_dai_dma_data_get_capture(dai); in axg_tdm_set_tdm_slots()
50 dev_err(dai->dev, "interface has no slot\n"); in axg_tdm_set_tdm_slots()
74 dev_err(dai->dev, "unsupported slot width: %d\n", slot_width); in axg_tdm_set_tdm_slots()
80 /* Amend the dai driver and let dpcm merge do its job */ in axg_tdm_set_tdm_slots()
83 dai->driver->playback.channels_max = tx_slots; in axg_tdm_set_tdm_slots()
84 dai->driver->playback.formats = fmt; in axg_tdm_set_tdm_slots()
[all …]
Daiu-fifo.c11 #include <sound/soc-dai.h>
36 struct snd_soc_dai *dai = aiu_fifo_dai(substream); in aiu_fifo_pointer() local
37 struct aiu_fifo *fifo = snd_soc_dai_dma_data_get_playback(dai); in aiu_fifo_pointer()
46 static void aiu_fifo_enable(struct snd_soc_dai *dai, bool enable) in aiu_fifo_enable() argument
48 struct snd_soc_component *component = dai->component; in aiu_fifo_enable()
49 struct aiu_fifo *fifo = snd_soc_dai_dma_data_get_playback(dai); in aiu_fifo_enable()
59 struct snd_soc_dai *dai) in aiu_fifo_trigger() argument
65 aiu_fifo_enable(dai, true); in aiu_fifo_trigger()
70 aiu_fifo_enable(dai, false); in aiu_fifo_trigger()
80 struct snd_soc_dai *dai) in aiu_fifo_prepare() argument
[all …]
/Linux-v6.6/sound/soc/ux500/
Dux500_msp_dai.c20 #include <sound/soc-dai.h>
27 static int setup_pcm_multichan(struct snd_soc_dai *dai, in setup_pcm_multichan() argument
30 struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev); in setup_pcm_multichan()
51 dev_dbg(dai->dev, in setup_pcm_multichan()
60 static int setup_frameper(struct snd_soc_dai *dai, unsigned int rate, in setup_frameper() argument
63 struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev); in setup_frameper()
89 dev_err(dai->dev, in setup_frameper()
108 dev_err(dai->dev, in setup_frameper()
117 dev_dbg(dai->dev, "%s: Clocks per frame: %u\n", in setup_frameper()
124 static int setup_pcm_framing(struct snd_soc_dai *dai, unsigned int rate, in setup_pcm_framing() argument
[all …]
/Linux-v6.6/sound/soc/mediatek/common/
Dmtk-afe-platform-driver.c18 struct mtk_base_afe_dai *dai; in mtk_afe_combine_sub_dai() local
21 /* calcualte total dai driver size */ in mtk_afe_combine_sub_dai()
22 list_for_each_entry(dai, &afe->sub_dais, list) { in mtk_afe_combine_sub_dai()
23 num_dai_drivers += dai->num_dai_drivers; in mtk_afe_combine_sub_dai()
26 dev_info(afe->dev, "%s(), num of dai %zd\n", __func__, num_dai_drivers); in mtk_afe_combine_sub_dai()
37 list_for_each_entry(dai, &afe->sub_dais, list) { in mtk_afe_combine_sub_dai()
38 /* dai driver */ in mtk_afe_combine_sub_dai()
40 dai->dai_drivers, in mtk_afe_combine_sub_dai()
41 dai->num_dai_drivers * in mtk_afe_combine_sub_dai()
43 dai_idx += dai->num_dai_drivers; in mtk_afe_combine_sub_dai()
[all …]
/Linux-v6.6/sound/soc/fsl/
Dimx-hdmi.c24 struct snd_soc_dai_link dai; member
55 dev_err(dev, "failed to set cpu dai tdm slot: %d\n", ret); in imx_hdmi_hw_params()
115 dev_err(&pdev->dev, "cpu dai phandle missing or invalid\n"); in imx_hdmi_probe()
134 data->dai.cpus = &dlc[0]; in imx_hdmi_probe()
135 data->dai.num_cpus = 1; in imx_hdmi_probe()
136 data->dai.platforms = &dlc[1]; in imx_hdmi_probe()
137 data->dai.num_platforms = 1; in imx_hdmi_probe()
138 data->dai.codecs = &dlc[2]; in imx_hdmi_probe()
139 data->dai.num_codecs = 1; in imx_hdmi_probe()
141 data->dai.name = "i.MX HDMI"; in imx_hdmi_probe()
[all …]

12345678910>>...60