Home
last modified time | relevance | path

Searched refs:dai (Results 1 – 25 of 468) sorted by relevance

12345678910>>...19

/sound/soc/
Dsoc-dai.c13 #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
52 int snd_soc_dai_set_sysclk(struct snd_soc_dai *dai, int clk_id, in snd_soc_dai_set_sysclk() argument
57 if (dai->driver->ops && in snd_soc_dai_set_sysclk()
58 dai->driver->ops->set_sysclk) in snd_soc_dai_set_sysclk()
[all …]
/sound/soc/meson/
Daxg-tdm-interface.c35 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()
41 dai->playback_dma_data; in axg_tdm_set_tdm_slots()
43 dai->capture_dma_data; in axg_tdm_set_tdm_slots()
52 dev_err(dai->dev, "interface has no slot\n"); in axg_tdm_set_tdm_slots()
76 dev_err(dai->dev, "unsupported slot width: %d\n", slot_width); in axg_tdm_set_tdm_slots()
85 dai->driver->playback.channels_max = tx_slots; in axg_tdm_set_tdm_slots()
86 dai->driver->playback.formats = fmt; in axg_tdm_set_tdm_slots()
91 dai->driver->capture.channels_max = rx_slots; in axg_tdm_set_tdm_slots()
92 dai->driver->capture.formats = fmt; in axg_tdm_set_tdm_slots()
[all …]
Daiu-fifo.c36 struct snd_soc_dai *dai = aiu_fifo_dai(substream); in aiu_fifo_pointer() local
37 struct aiu_fifo *fifo = dai->playback_dma_data; 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 = dai->playback_dma_data; 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
82 struct snd_soc_component *component = dai->component; in aiu_fifo_prepare()
[all …]
Dmeson-codec-glue.c39 static void meson_codec_glue_input_set_data(struct snd_soc_dai *dai, in meson_codec_glue_input_set_data() argument
42 dai->playback_dma_data = data; in meson_codec_glue_input_set_data()
46 meson_codec_glue_input_get_data(struct snd_soc_dai *dai) in meson_codec_glue_input_get_data() argument
48 return dai->playback_dma_data; in meson_codec_glue_input_get_data()
57 struct snd_soc_dai *dai; in meson_codec_glue_output_get_input_data() local
62 dai = in->priv; in meson_codec_glue_output_get_input_data()
64 return meson_codec_glue_input_get_data(dai); in meson_codec_glue_output_get_input_data()
69 struct snd_soc_dai *dai) in meson_codec_glue_input_hw_params() argument
72 meson_codec_glue_input_get_data(dai); in meson_codec_glue_input_hw_params()
80 data->params.sig_bits = dai->driver->playback.sig_bits; in meson_codec_glue_input_hw_params()
[all …]
Daiu-fifo-i2s.c48 struct snd_soc_dai *dai) in aiu_fifo_i2s_trigger() argument
50 struct snd_soc_component *component = dai->component; in aiu_fifo_i2s_trigger()
62 return aiu_fifo_trigger(substream, cmd, dai); in aiu_fifo_i2s_trigger()
66 struct snd_soc_dai *dai) in aiu_fifo_i2s_prepare() argument
68 struct snd_soc_component *component = dai->component; in aiu_fifo_i2s_prepare()
71 ret = aiu_fifo_prepare(substream, dai); in aiu_fifo_i2s_prepare()
88 struct snd_soc_dai *dai) in aiu_fifo_i2s_hw_params() argument
90 struct snd_soc_component *component = dai->component; in aiu_fifo_i2s_hw_params()
91 struct aiu_fifo *fifo = dai->playback_dma_data; in aiu_fifo_i2s_hw_params()
99 ret = aiu_fifo_hw_params(substream, params, dai); in aiu_fifo_i2s_hw_params()
[all …]
/sound/soc/ux500/
Dux500_msp_dai.c30 static int setup_pcm_multichan(struct snd_soc_dai *dai, in setup_pcm_multichan() argument
33 struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev); in setup_pcm_multichan()
54 dev_dbg(dai->dev, in setup_pcm_multichan()
63 static int setup_frameper(struct snd_soc_dai *dai, unsigned int rate, in setup_frameper() argument
66 struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev); in setup_frameper()
92 dev_err(dai->dev, in setup_frameper()
111 dev_err(dai->dev, in setup_frameper()
120 dev_dbg(dai->dev, "%s: Clocks per frame: %u\n", in setup_frameper()
127 static int setup_pcm_framing(struct snd_soc_dai *dai, unsigned int rate, in setup_pcm_framing() argument
130 struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev); in setup_pcm_framing()
[all …]
/sound/soc/fsl/
Dimx-rpmsg.c20 struct snd_soc_dai_link dai; member
56 data->dai.cpus = &dlc[0]; in imx_rpmsg_probe()
57 data->dai.num_cpus = 1; in imx_rpmsg_probe()
58 data->dai.platforms = &dlc[1]; in imx_rpmsg_probe()
59 data->dai.num_platforms = 1; in imx_rpmsg_probe()
60 data->dai.codecs = &dlc[2]; in imx_rpmsg_probe()
61 data->dai.num_codecs = 1; in imx_rpmsg_probe()
63 data->dai.name = "rpmsg hifi"; in imx_rpmsg_probe()
64 data->dai.stream_name = "rpmsg hifi"; in imx_rpmsg_probe()
65 data->dai.dai_fmt = SND_SOC_DAIFMT_I2S | in imx_rpmsg_probe()
[all …]
Dimx-spdif.c10 struct snd_soc_dai_link dai; member
35 data->dai.cpus = &comp[0]; in imx_spdif_audio_probe()
36 data->dai.codecs = &comp[1]; in imx_spdif_audio_probe()
37 data->dai.platforms = &comp[2]; in imx_spdif_audio_probe()
39 data->dai.num_cpus = 1; in imx_spdif_audio_probe()
40 data->dai.num_codecs = 1; in imx_spdif_audio_probe()
41 data->dai.num_platforms = 1; in imx_spdif_audio_probe()
43 data->dai.name = "S/PDIF PCM"; in imx_spdif_audio_probe()
44 data->dai.stream_name = "S/PDIF PCM"; in imx_spdif_audio_probe()
45 data->dai.codecs->dai_name = "snd-soc-dummy-dai"; in imx_spdif_audio_probe()
[all …]
Dp1022_rdk.c71 struct snd_soc_dai_link dai[2]; member
229 mdata->dai[0].cpus = &comp[0]; in p1022_rdk_probe()
230 mdata->dai[0].codecs = &comp[1]; in p1022_rdk_probe()
231 mdata->dai[0].platforms = &comp[2]; in p1022_rdk_probe()
233 mdata->dai[0].num_cpus = 1; in p1022_rdk_probe()
234 mdata->dai[0].num_codecs = 1; in p1022_rdk_probe()
235 mdata->dai[0].num_platforms = 1; in p1022_rdk_probe()
237 mdata->dai[1].cpus = &comp[3]; in p1022_rdk_probe()
238 mdata->dai[1].codecs = &comp[4]; in p1022_rdk_probe()
239 mdata->dai[1].platforms = &comp[5]; in p1022_rdk_probe()
[all …]
Dimx-audmix.c29 struct snd_soc_dai_link *dai; member
188 priv->dai = devm_kcalloc(&pdev->dev, priv->num_dai, in imx_audmix_probe()
190 if (!priv->dai) in imx_audmix_probe()
245 priv->dai[i].cpus = &dlc[0]; in imx_audmix_probe()
246 priv->dai[i].codecs = &dlc[1]; in imx_audmix_probe()
247 priv->dai[i].platforms = &dlc[2]; in imx_audmix_probe()
249 priv->dai[i].num_cpus = 1; in imx_audmix_probe()
250 priv->dai[i].num_codecs = 1; in imx_audmix_probe()
251 priv->dai[i].num_platforms = 1; in imx_audmix_probe()
253 priv->dai[i].name = dai_name; in imx_audmix_probe()
[all …]
Dimx-hdmi.c24 struct snd_soc_dai_link dai; member
133 data->dai.cpus = &dlc[0]; in imx_hdmi_probe()
134 data->dai.num_cpus = 1; in imx_hdmi_probe()
135 data->dai.platforms = &dlc[1]; in imx_hdmi_probe()
136 data->dai.num_platforms = 1; in imx_hdmi_probe()
137 data->dai.codecs = &dlc[2]; in imx_hdmi_probe()
138 data->dai.num_codecs = 1; in imx_hdmi_probe()
140 data->dai.name = "i.MX HDMI"; in imx_hdmi_probe()
141 data->dai.stream_name = "i.MX HDMI"; in imx_hdmi_probe()
142 data->dai.cpus->dai_name = dev_name(&cpu_pdev->dev); in imx_hdmi_probe()
[all …]
Dp1022_ds.c64 struct snd_soc_dai_link dai[2]; member
226 mdata->dai[0].cpus = &comp[0]; in p1022_ds_probe()
227 mdata->dai[0].codecs = &comp[1]; in p1022_ds_probe()
228 mdata->dai[0].platforms = &comp[2]; in p1022_ds_probe()
230 mdata->dai[0].num_cpus = 1; in p1022_ds_probe()
231 mdata->dai[0].num_codecs = 1; in p1022_ds_probe()
232 mdata->dai[0].num_platforms = 1; in p1022_ds_probe()
234 mdata->dai[1].cpus = &comp[3]; in p1022_ds_probe()
235 mdata->dai[1].codecs = &comp[4]; in p1022_ds_probe()
236 mdata->dai[1].platforms = &comp[5]; in p1022_ds_probe()
[all …]
Dmpc8610_hpcd.c31 struct snd_soc_dai_link dai[2]; member
216 machine_data->dai[0].cpus = &comp[0]; in mpc8610_hpcd_probe()
217 machine_data->dai[0].codecs = &comp[1]; in mpc8610_hpcd_probe()
218 machine_data->dai[0].platforms = &comp[2]; in mpc8610_hpcd_probe()
220 machine_data->dai[0].num_cpus = 1; in mpc8610_hpcd_probe()
221 machine_data->dai[0].num_codecs = 1; in mpc8610_hpcd_probe()
222 machine_data->dai[0].num_platforms = 1; in mpc8610_hpcd_probe()
224 machine_data->dai[1].cpus = &comp[3]; in mpc8610_hpcd_probe()
225 machine_data->dai[1].codecs = &comp[4]; in mpc8610_hpcd_probe()
226 machine_data->dai[1].platforms = &comp[5]; in mpc8610_hpcd_probe()
[all …]
/sound/soc/mediatek/common/
Dmtk-afe-platform-driver.c18 struct mtk_base_afe_dai *dai; in mtk_afe_combine_sub_dai() local
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()
37 list_for_each_entry(dai, &afe->sub_dais, list) { 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()
52 struct mtk_base_afe_dai *dai; in mtk_afe_add_sub_dai_control() local
54 list_for_each_entry(dai, &afe->sub_dais, list) { in mtk_afe_add_sub_dai_control()
55 if (dai->controls) in mtk_afe_add_sub_dai_control()
[all …]
/sound/soc/atmel/
Dmikroe-proto.c65 struct snd_soc_dai_link *dai; in snd_proto_probe() local
84 dai = devm_kzalloc(&pdev->dev, sizeof(*dai), GFP_KERNEL); in snd_proto_probe()
85 if (!dai) in snd_proto_probe()
93 snd_proto.dai_link = dai; in snd_proto_probe()
96 dai->cpus = &comp[0]; in snd_proto_probe()
97 dai->num_cpus = 1; in snd_proto_probe()
98 dai->codecs = &comp[1]; in snd_proto_probe()
99 dai->num_codecs = 1; in snd_proto_probe()
100 dai->platforms = &comp[2]; in snd_proto_probe()
101 dai->num_platforms = 1; in snd_proto_probe()
[all …]
Dsam9x5_wm8731.c78 struct snd_soc_dai_link *dai; in sam9x5_wm8731_driver_probe() local
90 dai = devm_kzalloc(&pdev->dev, sizeof(*dai), GFP_KERNEL); in sam9x5_wm8731_driver_probe()
92 if (!dai || !card || !priv || !comp) { in sam9x5_wm8731_driver_probe()
101 card->dai_link = dai; in sam9x5_wm8731_driver_probe()
106 dai->cpus = &comp[0]; in sam9x5_wm8731_driver_probe()
107 dai->num_cpus = 1; in sam9x5_wm8731_driver_probe()
108 dai->codecs = &comp[1]; in sam9x5_wm8731_driver_probe()
109 dai->num_codecs = 1; in sam9x5_wm8731_driver_probe()
110 dai->platforms = &comp[2]; in sam9x5_wm8731_driver_probe()
111 dai->num_platforms = 1; in sam9x5_wm8731_driver_probe()
[all …]
/sound/soc/mediatek/mt8195/
Dmt8195-dai-pcm.c120 struct snd_soc_dai *dai) in mtk_dai_pcm_configure() argument
123 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_dai_pcm_configure()
125 struct mtk_dai_pcmif_priv *pcmif_priv = afe_priv->dai_priv[dai->id]; in mtk_dai_pcm_configure()
130 unsigned int bit_width = dai->sample_bits; in mtk_dai_pcm_configure()
214 struct snd_soc_dai *dai) in mtk_dai_pcm_prepare() argument
218 dev_dbg(dai->dev, "%s(), id %d, stream %d, widget active p %d, c %d\n", in mtk_dai_pcm_prepare()
219 __func__, dai->id, substream->stream, in mtk_dai_pcm_prepare()
220 dai->playback_widget->active, dai->capture_widget->active); in mtk_dai_pcm_prepare()
222 if (dai->playback_widget->active || dai->capture_widget->active) in mtk_dai_pcm_prepare()
225 ret = mtk_dai_pcm_configure(substream, dai); in mtk_dai_pcm_prepare()
[all …]
/sound/soc/sof/
Dcompress.c22 struct snd_soc_dai *dai) in sof_probe_compr_open() argument
25 snd_soc_component_get_drvdata(dai->component); in sof_probe_compr_open()
28 ret = snd_sof_probe_compr_assign(sdev, cstream, dai); in sof_probe_compr_open()
30 dev_err(dai->dev, "Failed to assign probe stream: %d\n", ret); in sof_probe_compr_open()
40 struct snd_soc_dai *dai) in sof_probe_compr_free() argument
43 snd_soc_component_get_drvdata(dai->component); in sof_probe_compr_free()
51 dev_err(dai->dev, "Failed to get probe points: %d\n", ret); in sof_probe_compr_free()
62 dev_err(dai->dev, "Failed to deinit probe: %d\n", ret); in sof_probe_compr_free()
67 return snd_sof_probe_compr_free(sdev, cstream, dai); in sof_probe_compr_free()
72 struct snd_compr_params *params, struct snd_soc_dai *dai) in sof_probe_compr_set_params() argument
[all …]
/sound/soc/qcom/qdsp6/
Dq6afe-dai.c119 struct snd_soc_dai *dai) in q6slim_hw_params() argument
122 struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev); in q6slim_hw_params()
123 struct q6afe_slim_cfg *slim = &dai_data->port_config[dai->id].slim; in q6slim_hw_params()
149 struct snd_soc_dai *dai) in q6hdmi_hw_params() argument
151 struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev); in q6hdmi_hw_params()
153 struct q6afe_hdmi_cfg *hdmi = &dai_data->port_config[dai->id].hdmi; in q6hdmi_hw_params()
189 dev_err(dai->dev, "invalid Channels = %u\n", channels); in q6hdmi_hw_params()
198 struct snd_soc_dai *dai) in q6i2s_hw_params() argument
200 struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev); in q6i2s_hw_params()
201 struct q6afe_i2s_cfg *i2s = &dai_data->port_config[dai->id].i2s_cfg; in q6i2s_hw_params()
[all …]
/sound/soc/mediatek/mt8183/
Dmt8183-dai-pcm.c183 struct snd_soc_dai *dai) in mtk_dai_pcm_hw_params() argument
185 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_dai_pcm_hw_params()
187 unsigned int rate_reg = mt8183_rate_transform(afe->dev, rate, dai->id); in mtk_dai_pcm_hw_params()
192 dai->id, in mtk_dai_pcm_hw_params()
196 dai->playback_widget->active, in mtk_dai_pcm_hw_params()
197 dai->capture_widget->active); in mtk_dai_pcm_hw_params()
199 if (dai->playback_widget->active || dai->capture_widget->active) in mtk_dai_pcm_hw_params()
202 switch (dai->id) { in mtk_dai_pcm_hw_params()
233 __func__, dai->id); in mtk_dai_pcm_hw_params()
301 struct mtk_base_afe_dai *dai; in mt8183_dai_pcm_register() local
[all …]
/sound/soc/mediatek/mt6797/
Dmt6797-dai-pcm.c183 struct snd_soc_dai *dai) in mtk_dai_pcm_hw_params() argument
185 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_dai_pcm_hw_params()
187 unsigned int rate_reg = mt6797_rate_transform(afe->dev, rate, dai->id); in mtk_dai_pcm_hw_params()
192 dai->id, in mtk_dai_pcm_hw_params()
196 dai->playback_widget->active, in mtk_dai_pcm_hw_params()
197 dai->capture_widget->active); in mtk_dai_pcm_hw_params()
199 if (dai->playback_widget->active || dai->capture_widget->active) in mtk_dai_pcm_hw_params()
202 switch (dai->id) { in mtk_dai_pcm_hw_params()
233 __func__, dai->id); in mtk_dai_pcm_hw_params()
301 struct mtk_base_afe_dai *dai; in mt6797_dai_pcm_register() local
[all …]
Dmt6797-dai-hostless.c38 struct snd_soc_dai *dai) in mtk_dai_hostless_startup() argument
40 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_dai_hostless_startup()
103 struct mtk_base_afe_dai *dai; in mt6797_dai_hostless_register() local
105 dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL); in mt6797_dai_hostless_register()
106 if (!dai) in mt6797_dai_hostless_register()
109 list_add(&dai->list, &afe->sub_dais); in mt6797_dai_hostless_register()
111 dai->dai_drivers = mtk_dai_hostless_driver; in mt6797_dai_hostless_register()
112 dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_hostless_driver); in mt6797_dai_hostless_register()
114 dai->dapm_routes = mtk_dai_hostless_routes; in mt6797_dai_hostless_register()
115 dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_hostless_routes); in mt6797_dai_hostless_register()
/sound/pci/ctxfi/
Dctdaio.c273 static int dai_set_srt_srcl(struct dai *dai, struct rsc *src) in dai_set_srt_srcl() argument
276 dai->hw->dai_srt_set_srcm(dai->ctrl_blk, src->ops->index(src)); in dai_set_srt_srcl()
280 static int dai_set_srt_srcr(struct dai *dai, struct rsc *src) in dai_set_srt_srcr() argument
283 dai->hw->dai_srt_set_srco(dai->ctrl_blk, src->ops->index(src)); in dai_set_srt_srcr()
287 static int dai_set_srt_msr(struct dai *dai, unsigned int msr) in dai_set_srt_msr() argument
294 dai->hw->dai_srt_set_rsr(dai->ctrl_blk, rsr); in dai_set_srt_msr()
298 static int dai_set_enb_src(struct dai *dai, unsigned int enb) in dai_set_enb_src() argument
300 dai->hw->dai_srt_set_ec(dai->ctrl_blk, enb); in dai_set_enb_src()
304 static int dai_set_enb_srt(struct dai *dai, unsigned int enb) in dai_set_enb_srt() argument
306 dai->hw->dai_srt_set_et(dai->ctrl_blk, enb); in dai_set_enb_srt()
[all …]
Dctdaio.h57 struct dai { struct
81 int (*set_srt_srcl)(struct dai *dai, struct rsc *src); argument
82 int (*set_srt_srcr)(struct dai *dai, struct rsc *src);
83 int (*set_srt_msr)(struct dai *dai, unsigned int msr);
84 int (*set_enb_src)(struct dai *dai, unsigned int enb);
85 int (*set_enb_srt)(struct dai *dai, unsigned int enb);
86 int (*commit_write)(struct dai *dai);
/sound/soc/codecs/
Dpcm3060.c16 static int pcm3060_set_sysclk(struct snd_soc_dai *dai, int clk_id, in pcm3060_set_sysclk() argument
19 struct snd_soc_component *comp = dai->component; in pcm3060_set_sysclk()
35 val = (dai->id == PCM3060_DAI_ID_DAC ? PCM3060_REG_CSEL : 0); in pcm3060_set_sysclk()
39 val = (dai->id == PCM3060_DAI_ID_DAC ? 0 : PCM3060_REG_CSEL); in pcm3060_set_sysclk()
47 if (dai->id == PCM3060_DAI_ID_DAC) in pcm3060_set_sysclk()
54 priv->dai[dai->id].sclk_freq = freq; in pcm3060_set_sysclk()
59 static int pcm3060_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) in pcm3060_set_fmt() argument
61 struct snd_soc_component *comp = dai->component; in pcm3060_set_fmt()
73 priv->dai[dai->id].is_master = true; in pcm3060_set_fmt()
76 priv->dai[dai->id].is_master = false; in pcm3060_set_fmt()
[all …]

12345678910>>...19