/kernel/linux/linux-5.10/sound/soc/ |
D | soc-dai.c | 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 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 …]
|
/kernel/linux/linux-5.10/include/sound/ |
D | soc-dai.h | 114 int snd_soc_dai_set_sysclk(struct snd_soc_dai *dai, int clk_id, 117 int snd_soc_dai_set_clkdiv(struct snd_soc_dai *dai, 120 int snd_soc_dai_set_pll(struct snd_soc_dai *dai, 123 int snd_soc_dai_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio); 126 int snd_soc_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt); 128 int snd_soc_dai_set_tdm_slot(struct snd_soc_dai *dai, 131 int snd_soc_dai_set_channel_map(struct snd_soc_dai *dai, 135 int snd_soc_dai_set_tristate(struct snd_soc_dai *dai, int tristate); 138 int snd_soc_dai_digital_mute(struct snd_soc_dai *dai, int mute, 142 int snd_soc_dai_get_channel_map(struct snd_soc_dai *dai, [all …]
|
/kernel/linux/linux-5.10/sound/soc/meson/ |
D | axg-tdm-interface.c | 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() 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 …]
|
D | aiu-fifo.c | 36 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 …]
|
D | meson-codec-glue.c | 39 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 …]
|
/kernel/linux/linux-5.10/sound/soc/ux500/ |
D | ux500_msp_dai.c | 30 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 …]
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/ |
D | amlogic,axg-sound-card.txt | 16 - dai-link: Container for dai-link level properties and the CODEC 20 Required dai-link properties: 22 - sound-dai: phandle and port of the CPU DAI. 24 Required TDM Backend dai-link properties: 25 - dai-format : CPU/CODEC common audio format 27 Optional TDM Backend dai-link properties: 28 - dai-tdm-slot-rx-mask-{0,1,2,3}: Receive direction slot masks 29 - dai-tdm-slot-tx-mask-{0,1,2,3}: Transmit direction slot masks 34 - dai-tdm-slot-num : Please refer to tdm-slot.txt. 37 - dai-tdm-slot-width : Please refer to tdm-slot.txt. default to 32 if omitted. [all …]
|
D | amlogic,g12a-tohdmitx.txt | 8 - #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 …]
|
/kernel/linux/linux-5.10/arch/arm64/boot/dts/amlogic/ |
D | meson-g12b-gtking.dts | 18 #sound-dai-cells = <0>; 45 dai-link-0 { 46 sound-dai = <&frddr_a>; 49 dai-link-1 { 50 sound-dai = <&frddr_b>; 53 dai-link-2 { 54 sound-dai = <&frddr_c>; 58 dai-link-3 { 59 sound-dai = <&tdmif_b>; 60 dai-format = "i2s"; [all …]
|
D | meson-g12b-ugoos-am6.dts | 18 #sound-dai-cells = <0>; 45 dai-link-0 { 46 sound-dai = <&frddr_a>; 49 dai-link-1 { 50 sound-dai = <&frddr_b>; 53 dai-link-2 { 54 sound-dai = <&frddr_c>; 58 dai-link-3 { 59 sound-dai = <&tdmif_b>; 60 dai-format = "i2s"; [all …]
|
D | meson-g12b-gtking-pro.dts | 58 dai-link-0 { 59 sound-dai = <&frddr_a>; 62 dai-link-1 { 63 sound-dai = <&frddr_b>; 66 dai-link-2 { 67 sound-dai = <&frddr_c>; 71 dai-link-3 { 72 sound-dai = <&tdmif_b>; 73 dai-format = "i2s"; 74 dai-tdm-slot-tx-mask-0 = <1 1>; [all …]
|
/kernel/linux/linux-5.10/sound/soc/fsl/ |
D | imx-spdif.c | 10 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 …]
|
D | p1022_rdk.c | 71 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 …]
|
D | imx-audmix.c | 29 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() 243 priv->dai[i].cpus = &dlc[0]; in imx_audmix_probe() 244 priv->dai[i].codecs = &dlc[1]; in imx_audmix_probe() 245 priv->dai[i].platforms = &dlc[2]; in imx_audmix_probe() 247 priv->dai[i].num_cpus = 1; in imx_audmix_probe() 248 priv->dai[i].num_codecs = 1; in imx_audmix_probe() 249 priv->dai[i].num_platforms = 1; in imx_audmix_probe() 251 priv->dai[i].name = dai_name; in imx_audmix_probe() [all …]
|
D | p1022_ds.c | 64 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 …]
|
D | mpc8610_hpcd.c | 31 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 …]
|
/kernel/linux/linux-5.10/sound/soc/mediatek/common/ |
D | mtk-afe-platform-driver.c | 18 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 …]
|
/kernel/linux/linux-5.10/sound/soc/atmel/ |
D | mikroe-proto.c | 65 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 …]
|
D | sam9x5_wm8731.c | 78 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 …]
|
/kernel/linux/linux-5.10/sound/soc/sof/ |
D | compress.c | 22 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 …]
|
/kernel/linux/linux-5.10/sound/soc/qcom/qdsp6/ |
D | q6afe-dai.c | 119 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 …]
|
/kernel/linux/linux-5.10/sound/soc/mediatek/mt8183/ |
D | mt8183-dai-pcm.c | 183 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 …]
|
/kernel/linux/linux-5.10/sound/soc/mediatek/mt6797/ |
D | mt6797-dai-pcm.c | 183 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 …]
|
/kernel/linux/linux-5.10/drivers/staging/greybus/ |
D | audio_module.c | 206 struct gbaudio_data_connection *dai; in gb_audio_add_data_connection() local 208 dai = devm_kzalloc(gbmodule->dev, sizeof(*dai), GFP_KERNEL); in gb_audio_add_data_connection() 209 if (!dai) in gb_audio_add_data_connection() 216 devm_kfree(gbmodule->dev, dai); in gb_audio_add_data_connection() 221 dai->id = 0; in gb_audio_add_data_connection() 222 dai->data_cport = cpu_to_le16(connection->intf_cport_id); in gb_audio_add_data_connection() 223 dai->connection = connection; in gb_audio_add_data_connection() 224 list_add(&dai->list, &gbmodule->data_list); in gb_audio_add_data_connection() 240 struct gbaudio_data_connection *dai, *_dai; in gb_audio_probe() local 327 list_for_each_entry(dai, &gbmodule->data_list, list) { in gb_audio_probe() [all …]
|
/kernel/linux/linux-5.10/sound/pci/ctxfi/ |
D | ctdaio.h | 57 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);
|