Home
last modified time | relevance | path

Searched refs:dai (Results 151 - 175 of 1080) sorted by relevance

12345678910>>...44

/kernel/linux/linux-6.6/sound/soc/rockchip/
H A Drockchip_i2s_tdm.c74 struct snd_soc_dai_driver *dai; member
168 static inline struct rk_i2s_tdm_dev *to_info(struct snd_soc_dai *dai) in to_info() argument
170 return snd_soc_dai_get_drvdata(dai); in to_info()
285 struct snd_soc_dai *dai, int on) in rockchip_snd_txrxctrl()
287 struct rk_i2s_tdm_dev *i2s_tdm = to_info(dai); in rockchip_snd_txrxctrl()
547 struct snd_soc_dai *dai) in rockchip_i2s_io_multiplex()
549 struct rk_i2s_tdm_dev *i2s_tdm = to_info(dai); in rockchip_i2s_io_multiplex()
612 struct snd_soc_dai *dai, in rockchip_i2s_trcm_mode()
617 struct rk_i2s_tdm_dev *i2s_tdm = to_info(dai); in rockchip_i2s_trcm_mode()
652 struct snd_soc_dai *dai) in rockchip_i2s_tdm_hw_params()
284 rockchip_snd_txrxctrl(struct snd_pcm_substream *substream, struct snd_soc_dai *dai, int on) rockchip_snd_txrxctrl() argument
546 rockchip_i2s_io_multiplex(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) rockchip_i2s_io_multiplex() argument
611 rockchip_i2s_trcm_mode(struct snd_pcm_substream *substream, struct snd_soc_dai *dai, unsigned int div_bclk, unsigned int div_lrck, unsigned int fmt) rockchip_i2s_trcm_mode() argument
650 rockchip_i2s_tdm_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) rockchip_i2s_tdm_hw_params() argument
740 rockchip_i2s_tdm_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) rockchip_i2s_tdm_trigger() argument
773 rockchip_i2s_tdm_dai_probe(struct snd_soc_dai *dai) rockchip_i2s_tdm_dai_probe() argument
785 rockchip_dai_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) rockchip_dai_tdm_slot() argument
805 rockchip_i2s_tdm_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) rockchip_i2s_tdm_set_bclk_ratio() argument
1034 struct snd_soc_dai_driver *dai; rockchip_i2s_tdm_init_dai() local
[all...]
/kernel/linux/linux-6.6/sound/soc/tegra/
H A Dtegra210_admaif.c267 struct snd_soc_dai *dai) in tegra_admaif_hw_params()
269 struct device *dev = dai->dev; in tegra_admaif_hw_params()
270 struct tegra_admaif *admaif = snd_soc_dai_get_drvdata(dai); in tegra_admaif_hw_params()
304 reg = CH_TX_REG(TEGRA_ADMAIF_CH_ACIF_TX_CTRL, dai->id); in tegra_admaif_hw_params()
307 reg = CH_RX_REG(TEGRA_ADMAIF_CH_ACIF_RX_CTRL, dai->id); in tegra_admaif_hw_params()
310 cif_conf.mono_conv = admaif->mono_to_stereo[path][dai->id]; in tegra_admaif_hw_params()
311 cif_conf.stereo_conv = admaif->stereo_to_mono[path][dai->id]; in tegra_admaif_hw_params()
320 static int tegra_admaif_start(struct snd_soc_dai *dai, int direction) in tegra_admaif_start() argument
322 struct tegra_admaif *admaif = snd_soc_dai_get_drvdata(dai); in tegra_admaif_start()
329 reg = CH_TX_REG(TEGRA_ADMAIF_TX_ENABLE, dai in tegra_admaif_start()
265 tegra_admaif_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) tegra_admaif_hw_params() argument
345 tegra_admaif_stop(struct snd_soc_dai *dai, int direction) tegra_admaif_stop() argument
399 tegra_admaif_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) tegra_admaif_trigger() argument
538 tegra_admaif_dai_probe(struct snd_soc_dai *dai) tegra_admaif_dai_probe() argument
[all...]
H A Dtegra20_i2s.c84 static int tegra20_i2s_set_fmt(struct snd_soc_dai *dai, in tegra20_i2s_set_fmt() argument
87 struct tegra20_i2s *i2s = snd_soc_dai_get_drvdata(dai); in tegra20_i2s_set_fmt()
142 struct snd_soc_dai *dai) in tegra20_i2s_hw_params()
144 struct device *dev = dai->dev; in tegra20_i2s_hw_params()
145 struct tegra20_i2s *i2s = snd_soc_dai_get_drvdata(dai); in tegra20_i2s_hw_params()
227 struct snd_soc_dai *dai) in tegra20_i2s_trigger()
229 struct tegra20_i2s *i2s = snd_soc_dai_get_drvdata(dai); in tegra20_i2s_trigger()
255 static int tegra20_i2s_probe(struct snd_soc_dai *dai) in tegra20_i2s_probe() argument
257 struct tegra20_i2s *i2s = snd_soc_dai_get_drvdata(dai); in tegra20_i2s_probe()
259 snd_soc_dai_init_dma_data(dai, in tegra20_i2s_probe()
140 tegra20_i2s_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) tegra20_i2s_hw_params() argument
226 tegra20_i2s_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) tegra20_i2s_trigger() argument
273 struct snd_soc_dai *dai = rule->private; tegra20_i2s_filter_rates() local
300 tegra20_i2s_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) tegra20_i2s_startup() argument
[all...]
/kernel/linux/linux-5.10/sound/soc/sof/intel/
H A Dhda-dai.c191 "error: failed to set dai config for %s\n", in hda_link_config_ipc()
202 struct snd_soc_dai *dai) in hda_link_hw_params()
220 link_dev = snd_soc_dai_get_dma_data(dai, substream); in hda_link_hw_params()
226 snd_soc_dai_set_dma_data(dai, substream, (void *)link_dev); in hda_link_hw_params()
234 ret = hda_link_config_ipc(hda_stream, dai->name, stream_tag - 1, in hda_link_hw_params()
239 /* set the hdac_stream in the codec dai */ in hda_link_hw_params()
259 struct snd_soc_dai *dai) in hda_link_pcm_prepare()
262 snd_soc_dai_get_dma_data(dai, substream); in hda_link_pcm_prepare()
264 snd_soc_component_get_drvdata(dai->component); in hda_link_pcm_prepare()
274 dai); in hda_link_pcm_prepare()
200 hda_link_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) hda_link_hw_params() argument
258 hda_link_pcm_prepare(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) hda_link_pcm_prepare() argument
277 hda_link_pcm_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) hda_link_pcm_trigger() argument
344 hda_link_hw_free(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) hda_link_hw_free() argument
[all...]
/kernel/linux/linux-5.10/sound/soc/kirkwood/
H A Dkirkwood-i2s.c99 static void kirkwood_set_rate(struct snd_soc_dai *dai, in kirkwood_set_rate() argument
107 dev_dbg(dai->dev, "%s: dco set rate = %lu\n", in kirkwood_set_rate()
115 dev_dbg(dai->dev, "%s: extclk set rate = %lu -> %lu\n", in kirkwood_set_rate()
125 struct snd_soc_dai *dai) in kirkwood_i2s_startup()
127 struct kirkwood_dma_data *priv = snd_soc_dai_get_drvdata(dai); in kirkwood_i2s_startup()
129 snd_soc_dai_set_dma_data(dai, substream, priv); in kirkwood_i2s_startup()
135 struct snd_soc_dai *dai) in kirkwood_i2s_hw_params()
137 struct kirkwood_dma_data *priv = snd_soc_dai_get_drvdata(dai); in kirkwood_i2s_hw_params()
148 kirkwood_set_rate(dai, priv, params_rate(params)); in kirkwood_i2s_hw_params()
229 int cmd, struct snd_soc_dai *dai) in kirkwood_i2s_play_trigger()
124 kirkwood_i2s_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) kirkwood_i2s_startup() argument
133 kirkwood_i2s_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) kirkwood_i2s_hw_params() argument
228 kirkwood_i2s_play_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) kirkwood_i2s_play_trigger() argument
316 kirkwood_i2s_rec_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) kirkwood_i2s_rec_trigger() argument
382 kirkwood_i2s_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) kirkwood_i2s_trigger() argument
[all...]
/kernel/linux/linux-6.6/sound/soc/sof/
H A Dsof-client-probes.c34 struct snd_soc_dai *dai) in sof_probes_compr_startup()
36 struct snd_soc_card *card = snd_soc_component_get_drvdata(dai->component); in sof_probes_compr_startup()
49 ret = ops->startup(cdev, cstream, dai, &priv->extractor_stream_tag); in sof_probes_compr_startup()
51 dev_err(dai->dev, "Failed to startup probe stream: %d\n", ret); in sof_probes_compr_startup()
60 struct snd_soc_dai *dai) in sof_probes_compr_shutdown()
62 struct snd_soc_card *card = snd_soc_component_get_drvdata(dai->component); in sof_probes_compr_shutdown()
74 dev_err(dai->dev, "Failed to get probe points: %d\n", ret); in sof_probes_compr_shutdown()
85 dev_err(dai->dev, "Failed to deinit probe: %d\n", ret); in sof_probes_compr_shutdown()
90 ret = ops->shutdown(cdev, cstream, dai); in sof_probes_compr_shutdown()
99 struct snd_soc_dai *dai) in sof_probes_compr_set_params()
33 sof_probes_compr_startup(struct snd_compr_stream *cstream, struct snd_soc_dai *dai) sof_probes_compr_startup() argument
59 sof_probes_compr_shutdown(struct snd_compr_stream *cstream, struct snd_soc_dai *dai) sof_probes_compr_shutdown() argument
97 sof_probes_compr_set_params(struct snd_compr_stream *cstream, struct snd_compr_params *params, struct snd_soc_dai *dai) sof_probes_compr_set_params() argument
128 sof_probes_compr_trigger(struct snd_compr_stream *cstream, int cmd, struct snd_soc_dai *dai) sof_probes_compr_trigger() argument
139 sof_probes_compr_pointer(struct snd_compr_stream *cstream, struct snd_compr_tstamp *tstamp, struct snd_soc_dai *dai) sof_probes_compr_pointer() argument
[all...]
H A Dipc3-topology.c572 /* configure dai IPC message */ in sof_ipc3_widget_setup_comp_buffer()
976 struct sof_ipc_dai_config *config, struct snd_sof_dai *dai) in sof_link_hda_load()
978 struct sof_dai_private_data *private = dai->private; in sof_link_hda_load()
997 dai->number_configs = 1; in sof_link_hda_load()
998 dai->current_config = 0; in sof_link_hda_load()
1041 struct sof_ipc_dai_config *config, struct snd_sof_dai *dai) in sof_link_sai_load()
1044 struct sof_dai_private_data *private = dai->private; in sof_link_sai_load()
1082 dai->number_configs = 1; in sof_link_sai_load()
1083 dai->current_config = 0; in sof_link_sai_load()
1092 struct sof_ipc_dai_config *config, struct snd_sof_dai *dai) in sof_link_esai_load()
975 sof_link_hda_load(struct snd_soc_component *scomp, struct snd_sof_dai_link *slink, struct sof_ipc_dai_config *config, struct snd_sof_dai *dai) sof_link_hda_load() argument
1040 sof_link_sai_load(struct snd_soc_component *scomp, struct snd_sof_dai_link *slink, struct sof_ipc_dai_config *config, struct snd_sof_dai *dai) sof_link_sai_load() argument
1091 sof_link_esai_load(struct snd_soc_component *scomp, struct snd_sof_dai_link *slink, struct sof_ipc_dai_config *config, struct snd_sof_dai *dai) sof_link_esai_load() argument
1141 sof_link_acp_dmic_load(struct snd_soc_component *scomp, struct snd_sof_dai_link *slink, struct sof_ipc_dai_config *config, struct snd_sof_dai *dai) sof_link_acp_dmic_load() argument
1173 sof_link_acp_bt_load(struct snd_soc_component *scomp, struct snd_sof_dai_link *slink, struct sof_ipc_dai_config *config, struct snd_sof_dai *dai) sof_link_acp_bt_load() argument
1203 sof_link_acp_sp_load(struct snd_soc_component *scomp, struct snd_sof_dai_link *slink, struct sof_ipc_dai_config *config, struct snd_sof_dai *dai) sof_link_acp_sp_load() argument
1237 sof_link_acp_hs_load(struct snd_soc_component *scomp, struct snd_sof_dai_link *slink, struct sof_ipc_dai_config *config, struct snd_sof_dai *dai) sof_link_acp_hs_load() argument
1270 sof_link_afe_load(struct snd_soc_component *scomp, struct snd_sof_dai_link *slink, struct sof_ipc_dai_config *config, struct snd_sof_dai *dai) sof_link_afe_load() argument
1299 sof_link_ssp_load(struct snd_soc_component *scomp, struct snd_sof_dai_link *slink, struct sof_ipc_dai_config *config, struct snd_sof_dai *dai) sof_link_ssp_load() argument
1372 sof_link_dmic_load(struct snd_soc_component *scomp, struct snd_sof_dai_link *slink, struct sof_ipc_dai_config *config, struct snd_sof_dai *dai) sof_link_dmic_load() argument
1444 sof_link_alh_load(struct snd_soc_component *scomp, struct snd_sof_dai_link *slink, struct sof_ipc_dai_config *config, struct snd_sof_dai *dai) sof_link_alh_load() argument
1474 struct snd_sof_dai *dai = swidget->private; sof_ipc3_widget_setup_comp_dai() local
1609 struct snd_sof_dai *dai = swidget->private; sof_ipc3_widget_free_comp_dai() local
2039 struct snd_sof_dai *dai = swidget->private; sof_ipc3_dai_config() local
2140 struct snd_sof_dai *dai = swidget->private; sof_ipc3_widget_setup() local
2193 struct snd_sof_dai *dai = swidget->private; sof_ipc3_set_up_all_pipelines() local
2412 sof_ipc3_dai_get_clk(struct snd_sof_dev *sdev, struct snd_sof_dai *dai, int clk_type) sof_ipc3_dai_get_clk() argument
[all...]
/kernel/linux/linux-6.6/drivers/soundwire/
H A Dintel.c648 struct snd_soc_dai *dai, in intel_params_stream()
656 params_data.dai = dai; in intel_params_stream()
673 struct snd_soc_dai *dai) in intel_hw_params()
675 struct sdw_cdns *cdns = snd_soc_dai_get_drvdata(dai); in intel_hw_params()
684 dai_runtime = cdns->dai_runtime_array[dai->id]; in intel_hw_params()
694 pdi = sdw_cdns_alloc_pdi(cdns, &cdns->pcm, ch, dir, dai->id); in intel_hw_params()
712 ret = intel_params_stream(sdw, substream, dai, params, in intel_hw_params()
746 struct snd_soc_dai *dai) in intel_prepare()
748 struct sdw_cdns *cdns = snd_soc_dai_get_drvdata(dai); in intel_prepare()
646 intel_params_stream(struct sdw_intel *sdw, struct snd_pcm_substream *substream, struct snd_soc_dai *dai, struct snd_pcm_hw_params *hw_params, int link_id, int alh_stream_id) intel_params_stream() argument
671 intel_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) intel_hw_params() argument
745 intel_prepare(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) intel_prepare() argument
799 intel_hw_free(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) intel_hw_free() argument
827 intel_pcm_set_sdw_stream(struct snd_soc_dai *dai, void *stream, int direction) intel_pcm_set_sdw_stream() argument
833 intel_get_sdw_stream(struct snd_soc_dai *dai, int direction) intel_get_sdw_stream() argument
846 intel_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) intel_trigger() argument
906 struct snd_soc_dai *dai; intel_component_dais_suspend() local
[all...]
/drivers/hdf_core/framework/model/audio/core/src/
H A Daudio_core.c66 struct DaiDevice *dai = NULL; in AudioSocRegisterDai() local
77 dai = (struct DaiDevice *)OsalMemCalloc(sizeof(*dai)); in AudioSocRegisterDai()
78 if (dai == NULL) { in AudioSocRegisterDai()
79 ADM_LOG_ERR("Malloc dai device fail!"); in AudioSocRegisterDai()
83 dai->devDaiName = daiData->drvDaiName; in AudioSocRegisterDai()
84 dai->devData = daiData; in AudioSocRegisterDai()
85 dai->device = device; in AudioSocRegisterDai()
86 DListInsertHead(&dai->list, &daiController); in AudioSocRegisterDai()
87 ADM_LOG_INFO("Register [%s] success.", dai in AudioSocRegisterDai()
343 AudioDaiReadReg(const struct DaiDevice *dai, uint32_t reg, uint32_t *val) AudioDaiReadReg() argument
360 AudioDaiWriteReg(const struct DaiDevice *dai, uint32_t reg, uint32_t val) AudioDaiWriteReg() argument
452 AudioUpdateDaiRegBits(const struct DaiDevice *dai, uint32_t reg, const uint32_t mask, const uint32_t shift, uint32_t value) AudioUpdateDaiRegBits() argument
571 AudioDaiRegUpdate(const struct DaiDevice *dai, struct AudioMixerControl *mixerCtrl) AudioDaiRegUpdate() argument
1059 struct DaiDevice *dai = NULL; AudioCpuDaiSetCtrlOps() local
1100 struct DaiDevice *dai = NULL; AudioCpuDaiGetCtrlOps() local
[all...]
/kernel/linux/linux-5.10/sound/soc/meson/
H A Daxg-toddr.c14 #include <sound/soc-dai.h>
34 struct snd_soc_dai *dai) in axg_toddr_pcm_new()
40 struct snd_soc_dai *dai) in g12a_toddr_dai_prepare()
42 struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai); in g12a_toddr_dai_prepare()
57 struct snd_soc_dai *dai) in axg_toddr_dai_hw_params()
59 struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai); in axg_toddr_dai_hw_params()
90 struct snd_soc_dai *dai) in axg_toddr_dai_startup()
92 struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai); in axg_toddr_dai_startup()
114 struct snd_soc_dai *dai) in axg_toddr_dai_shutdown()
116 struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai); in axg_toddr_dai_shutdown()
33 axg_toddr_pcm_new(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai) axg_toddr_pcm_new() argument
39 g12a_toddr_dai_prepare(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) g12a_toddr_dai_prepare() argument
55 axg_toddr_dai_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) axg_toddr_dai_hw_params() argument
89 axg_toddr_dai_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) axg_toddr_dai_startup() argument
113 axg_toddr_dai_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) axg_toddr_dai_shutdown() argument
193 g12a_toddr_dai_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) g12a_toddr_dai_startup() argument
[all...]
H A Daxg-pdm.c12 #include <sound/soc-dai.h>
126 struct snd_soc_dai *dai) in axg_pdm_trigger()
128 struct axg_pdm *priv = snd_soc_dai_get_drvdata(dai); in axg_pdm_trigger()
225 struct snd_soc_dai *dai) in axg_pdm_hw_params()
227 struct axg_pdm *priv = snd_soc_dai_get_drvdata(dai); in axg_pdm_hw_params()
241 dev_err(dai->dev, "unsupported sample width\n"); in axg_pdm_hw_params()
249 dev_err(dai->dev, "failed to set system clock\n"); in axg_pdm_hw_params()
255 dev_err(dai->dev, "failed to set dclk\n"); in axg_pdm_hw_params()
261 dev_err(dai->dev, "invalid clock setting\n"); in axg_pdm_hw_params()
271 struct snd_soc_dai *dai) in axg_pdm_startup()
125 axg_pdm_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) axg_pdm_trigger() argument
223 axg_pdm_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) axg_pdm_hw_params() argument
270 axg_pdm_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) axg_pdm_startup() argument
288 axg_pdm_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) axg_pdm_shutdown() argument
381 axg_pdm_dai_probe(struct snd_soc_dai *dai) axg_pdm_dai_probe() argument
433 axg_pdm_dai_remove(struct snd_soc_dai *dai) axg_pdm_dai_remove() argument
[all...]
/kernel/linux/linux-5.10/sound/soc/sirf/
H A Dsirf-usp.c70 static int sirf_usp_pcm_dai_probe(struct snd_soc_dai *dai) in sirf_usp_pcm_dai_probe() argument
72 struct sirf_usp *usp = snd_soc_dai_get_drvdata(dai); in sirf_usp_pcm_dai_probe()
74 snd_soc_dai_init_dma_data(dai, &usp->playback_dma_data, in sirf_usp_pcm_dai_probe()
79 static int sirf_usp_pcm_set_dai_fmt(struct snd_soc_dai *dai, in sirf_usp_pcm_set_dai_fmt() argument
82 struct sirf_usp *usp = snd_soc_dai_get_drvdata(dai); in sirf_usp_pcm_set_dai_fmt()
89 dev_err(dai->dev, "Only CBM and CFM supported\n"); in sirf_usp_pcm_set_dai_fmt()
99 dev_err(dai->dev, "Only I2S and DSP_A format supported\n"); in sirf_usp_pcm_set_dai_fmt()
165 struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) in sirf_usp_pcm_hw_params()
167 struct sirf_usp *usp = snd_soc_dai_get_drvdata(dai); in sirf_usp_pcm_hw_params()
184 dev_err(dai in sirf_usp_pcm_hw_params()
164 sirf_usp_pcm_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) sirf_usp_pcm_hw_params() argument
238 sirf_usp_pcm_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) sirf_usp_pcm_trigger() argument
[all...]
/kernel/linux/linux-6.6/sound/soc/meson/
H A Daxg-toddr.c14 #include <sound/soc-dai.h>
34 struct snd_soc_dai *dai) in axg_toddr_pcm_new()
40 struct snd_soc_dai *dai) in g12a_toddr_dai_prepare()
42 struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai); in g12a_toddr_dai_prepare()
57 struct snd_soc_dai *dai) in axg_toddr_dai_hw_params()
59 struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai); in axg_toddr_dai_hw_params()
90 struct snd_soc_dai *dai) in axg_toddr_dai_startup()
92 struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai); in axg_toddr_dai_startup()
114 struct snd_soc_dai *dai) in axg_toddr_dai_shutdown()
116 struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai); in axg_toddr_dai_shutdown()
33 axg_toddr_pcm_new(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai) axg_toddr_pcm_new() argument
39 g12a_toddr_dai_prepare(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) g12a_toddr_dai_prepare() argument
55 axg_toddr_dai_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) axg_toddr_dai_hw_params() argument
89 axg_toddr_dai_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) axg_toddr_dai_startup() argument
113 axg_toddr_dai_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) axg_toddr_dai_shutdown() argument
194 g12a_toddr_dai_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) g12a_toddr_dai_startup() argument
[all...]
H A Daxg-pdm.c12 #include <sound/soc-dai.h>
126 struct snd_soc_dai *dai) in axg_pdm_trigger()
128 struct axg_pdm *priv = snd_soc_dai_get_drvdata(dai); in axg_pdm_trigger()
225 struct snd_soc_dai *dai) in axg_pdm_hw_params()
227 struct axg_pdm *priv = snd_soc_dai_get_drvdata(dai); in axg_pdm_hw_params()
241 dev_err(dai->dev, "unsupported sample width\n"); in axg_pdm_hw_params()
249 dev_err(dai->dev, "failed to set system clock\n"); in axg_pdm_hw_params()
255 dev_err(dai->dev, "failed to set dclk\n"); in axg_pdm_hw_params()
261 dev_err(dai->dev, "invalid clock setting\n"); in axg_pdm_hw_params()
271 struct snd_soc_dai *dai) in axg_pdm_startup()
125 axg_pdm_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) axg_pdm_trigger() argument
223 axg_pdm_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) axg_pdm_hw_params() argument
270 axg_pdm_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) axg_pdm_startup() argument
288 axg_pdm_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) axg_pdm_shutdown() argument
374 axg_pdm_dai_probe(struct snd_soc_dai *dai) axg_pdm_dai_probe() argument
426 axg_pdm_dai_remove(struct snd_soc_dai *dai) axg_pdm_dai_remove() argument
[all...]
/kernel/linux/linux-5.10/sound/soc/codecs/
H A Dadau7118.c123 static int adau7118_set_channel_map(struct snd_soc_dai *dai, in adau7118_set_channel_map() argument
128 snd_soc_component_get_drvdata(dai->component); in adau7118_set_channel_map()
134 ret = snd_soc_component_update_bits(dai->component, in adau7118_set_channel_map()
145 static int adau7118_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) in adau7118_set_fmt() argument
148 snd_soc_component_get_drvdata(dai->component); in adau7118_set_fmt()
156 ret = snd_soc_component_update_bits(dai->component, in adau7118_set_fmt()
162 ret = snd_soc_component_update_bits(dai->component, in adau7118_set_fmt()
198 ret = snd_soc_component_update_bits(dai->component, in adau7118_set_fmt()
208 static int adau7118_set_tristate(struct snd_soc_dai *dai, int tristate) in adau7118_set_tristate() argument
211 snd_soc_component_get_drvdata(dai in adau7118_set_tristate()
226 adau7118_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) adau7118_set_tdm_slot() argument
264 adau7118_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) adau7118_hw_params() argument
[all...]
H A Des7241.c88 struct snd_soc_dai *dai) in es7241_hw_params()
90 struct es7241_data *priv = snd_soc_dai_get_drvdata(dai); in es7241_hw_params()
108 dev_err(dai->dev, "unsupported rate: %u\n", rate); in es7241_hw_params()
112 static int es7241_set_sysclk(struct snd_soc_dai *dai, int clk_id, in es7241_set_sysclk() argument
115 struct es7241_data *priv = snd_soc_dai_get_drvdata(dai); in es7241_set_sysclk()
125 static int es7241_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) in es7241_set_fmt() argument
127 struct es7241_data *priv = snd_soc_dai_get_drvdata(dai); in es7241_set_fmt()
130 dev_err(dai->dev, "Unsupported dai clock inversion\n"); in es7241_set_fmt()
135 dev_err(dai in es7241_set_fmt()
86 es7241_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) es7241_hw_params() argument
[all...]
/kernel/linux/linux-6.6/sound/soc/codecs/
H A Dcs42l42-sdw.c53 struct snd_soc_dai *dai) in cs42l42_sdw_dai_startup()
55 struct cs42l42_private *cs42l42 = snd_soc_component_get_drvdata(dai->component); in cs42l42_sdw_dai_startup()
65 struct snd_soc_dai *dai) in cs42l42_sdw_dai_hw_params()
67 struct cs42l42_private *cs42l42 = snd_soc_component_get_drvdata(dai->component); in cs42l42_sdw_dai_hw_params()
68 struct sdw_stream_runtime *sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in cs42l42_sdw_dai_hw_params()
89 dev_err(dai->dev, "Failed to add sdw stream: %d\n", ret); in cs42l42_sdw_dai_hw_params()
93 cs42l42_src_config(dai->component, params_rate(params)); in cs42l42_sdw_dai_hw_params()
99 struct snd_soc_dai *dai) in cs42l42_sdw_dai_prepare()
101 struct cs42l42_private *cs42l42 = snd_soc_component_get_drvdata(dai->component); in cs42l42_sdw_dai_prepare()
103 dev_dbg(dai in cs42l42_sdw_dai_prepare()
52 cs42l42_sdw_dai_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) cs42l42_sdw_dai_startup() argument
63 cs42l42_sdw_dai_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) cs42l42_sdw_dai_hw_params() argument
98 cs42l42_sdw_dai_prepare(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) cs42l42_sdw_dai_prepare() argument
117 cs42l42_sdw_dai_hw_free(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) cs42l42_sdw_dai_hw_free() argument
153 cs42l42_sdw_dai_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, int direction) cs42l42_sdw_dai_set_sdw_stream() argument
161 cs42l42_sdw_dai_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) cs42l42_sdw_dai_shutdown() argument
[all...]
H A Dadau7118.c123 static int adau7118_set_channel_map(struct snd_soc_dai *dai, in adau7118_set_channel_map() argument
128 snd_soc_component_get_drvdata(dai->component); in adau7118_set_channel_map()
134 ret = snd_soc_component_update_bits(dai->component, in adau7118_set_channel_map()
145 static int adau7118_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) in adau7118_set_fmt() argument
148 snd_soc_component_get_drvdata(dai->component); in adau7118_set_fmt()
156 ret = snd_soc_component_update_bits(dai->component, in adau7118_set_fmt()
162 ret = snd_soc_component_update_bits(dai->component, in adau7118_set_fmt()
198 ret = snd_soc_component_update_bits(dai->component, in adau7118_set_fmt()
208 static int adau7118_set_tristate(struct snd_soc_dai *dai, int tristate) in adau7118_set_tristate() argument
211 snd_soc_component_get_drvdata(dai in adau7118_set_tristate()
226 adau7118_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) adau7118_set_tdm_slot() argument
264 adau7118_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) adau7118_hw_params() argument
[all...]
H A Des7241.c88 struct snd_soc_dai *dai) in es7241_hw_params()
90 struct es7241_data *priv = snd_soc_dai_get_drvdata(dai); in es7241_hw_params()
108 dev_err(dai->dev, "unsupported rate: %u\n", rate); in es7241_hw_params()
112 static int es7241_set_sysclk(struct snd_soc_dai *dai, int clk_id, in es7241_set_sysclk() argument
115 struct es7241_data *priv = snd_soc_dai_get_drvdata(dai); in es7241_set_sysclk()
125 static int es7241_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) in es7241_set_fmt() argument
127 struct es7241_data *priv = snd_soc_dai_get_drvdata(dai); in es7241_set_fmt()
130 dev_err(dai->dev, "Unsupported dai clock inversion\n"); in es7241_set_fmt()
135 dev_err(dai in es7241_set_fmt()
86 es7241_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) es7241_hw_params() argument
[all...]
/kernel/linux/linux-6.6/sound/soc/sunxi/
H A Dsun8i-codec.c283 static int sun8i_codec_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) in sun8i_codec_set_fmt() argument
285 struct sun8i_codec *scodec = snd_soc_dai_get_drvdata(dai); in sun8i_codec_set_fmt()
300 if (dai->id == SUN8I_CODEC_AIF3) { in sun8i_codec_set_fmt()
306 regmap_update_bits(scodec->regmap, SUN8I_AIF_CLK_CTRL(dai->id), in sun8i_codec_set_fmt()
310 regmap_update_bits(scodec->regmap, SUN8I_AIF_CLK_CTRL(dai->id), in sun8i_codec_set_fmt()
338 if (dai->id == SUN8I_CODEC_AIF3) { in sun8i_codec_set_fmt()
343 regmap_update_bits(scodec->regmap, SUN8I_AIF_CLK_CTRL(dai->id), in sun8i_codec_set_fmt()
387 regmap_update_bits(scodec->regmap, SUN8I_AIF_CLK_CTRL(dai->id), in sun8i_codec_set_fmt()
394 static int sun8i_codec_set_tdm_slot(struct snd_soc_dai *dai, in sun8i_codec_set_tdm_slot() argument
398 struct sun8i_codec *scodec = snd_soc_dai_get_drvdata(dai); in sun8i_codec_set_tdm_slot()
432 sun8i_codec_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) sun8i_codec_startup() argument
510 sun8i_codec_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) sun8i_codec_hw_params() argument
612 sun8i_codec_hw_free(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) sun8i_codec_hw_free() argument
[all...]
/kernel/linux/linux-5.10/sound/soc/qcom/
H A Dlpass-hdmi.c14 #include <sound/soc-dai.h>
20 struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) in lpass_hdmi_daiops_hw_params()
22 struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai); in lpass_hdmi_daiops_hw_params()
39 dev_err(dai->dev, "%s invalid bit width given : %d\n", in lpass_hdmi_daiops_hw_params()
52 dev_err(dai->dev, "%s invalid bit width given : %d\n", in lpass_hdmi_daiops_hw_params()
68 dev_err(dai->dev, "%s invalid bit width given : %d\n", in lpass_hdmi_daiops_hw_params()
193 struct snd_soc_dai *dai) in lpass_hdmi_daiops_prepare()
196 struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai); in lpass_hdmi_daiops_prepare()
210 int cmd, struct snd_soc_dai *dai) in lpass_hdmi_daiops_trigger()
212 struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai); in lpass_hdmi_daiops_trigger()
19 lpass_hdmi_daiops_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) lpass_hdmi_daiops_hw_params() argument
192 lpass_hdmi_daiops_prepare(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) lpass_hdmi_daiops_prepare() argument
209 lpass_hdmi_daiops_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) lpass_hdmi_daiops_trigger() argument
[all...]
/kernel/linux/linux-6.6/sound/soc/qcom/
H A Dlpass-hdmi.c14 #include <sound/soc-dai.h>
20 struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) in lpass_hdmi_daiops_hw_params()
22 struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai); in lpass_hdmi_daiops_hw_params()
39 dev_err(dai->dev, "%s invalid bit width given : %d\n", in lpass_hdmi_daiops_hw_params()
52 dev_err(dai->dev, "%s invalid bit width given : %d\n", in lpass_hdmi_daiops_hw_params()
68 dev_err(dai->dev, "%s invalid bit width given : %d\n", in lpass_hdmi_daiops_hw_params()
191 struct snd_soc_dai *dai) in lpass_hdmi_daiops_prepare()
194 struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai); in lpass_hdmi_daiops_prepare()
206 int cmd, struct snd_soc_dai *dai) in lpass_hdmi_daiops_trigger()
208 struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai); in lpass_hdmi_daiops_trigger()
19 lpass_hdmi_daiops_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) lpass_hdmi_daiops_hw_params() argument
190 lpass_hdmi_daiops_prepare(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) lpass_hdmi_daiops_prepare() argument
205 lpass_hdmi_daiops_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) lpass_hdmi_daiops_trigger() argument
[all...]
/kernel/linux/linux-6.6/sound/soc/mediatek/mt8188/
H A Dmt8188-dai-etdm.c107 int cowork_source_id; //dai id
246 static int is_cowork_mode(struct snd_soc_dai *dai) in is_cowork_mode() argument
248 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in is_cowork_mode()
252 if (!is_valid_etdm_dai(dai->id)) in is_cowork_mode()
254 etdm_data = afe_priv->dai_priv[dai->id]; in is_cowork_mode()
278 static int get_etdm_cowork_master_id(struct snd_soc_dai *dai) in get_etdm_cowork_master_id() argument
280 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in get_etdm_cowork_master_id()
285 if (!is_valid_etdm_dai(dai->id)) in get_etdm_cowork_master_id()
287 etdm_data = afe_priv->dai_priv[dai->id]; in get_etdm_cowork_master_id()
291 dai_id = dai in get_etdm_cowork_master_id()
2173 mtk_dai_etdm_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) mtk_dai_etdm_hw_params() argument
2273 mtk_dai_etdm_set_sysclk(struct snd_soc_dai *dai, int clk_id, unsigned int freq, int dir) mtk_dai_etdm_set_sysclk() argument
2295 mtk_dai_etdm_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) mtk_dai_etdm_set_tdm_slot() argument
2321 mtk_dai_etdm_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) mtk_dai_etdm_set_fmt() argument
2414 mtk_dai_hdmitx_dptx_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) mtk_dai_hdmitx_dptx_hw_params() argument
2458 mtk_dai_hdmitx_dptx_set_sysclk(struct snd_soc_dai *dai, int clk_id, unsigned int freq, int dir) mtk_dai_hdmitx_dptx_set_sysclk() argument
2697 struct mtk_base_afe_dai *dai; mt8188_dai_etdm_register() local
[all...]
/kernel/linux/linux-6.6/sound/soc/atmel/
H A Dmchp-spdiftx.c284 struct snd_soc_dai *dai) in mchp_spdiftx_dai_startup()
286 struct mchp_spdiftx_dev *dev = snd_soc_dai_get_drvdata(dai); in mchp_spdiftx_dai_startup()
296 struct snd_soc_dai *dai) in mchp_spdiftx_dai_shutdown()
298 struct mchp_spdiftx_dev *dev = snd_soc_dai_get_drvdata(dai); in mchp_spdiftx_dai_shutdown()
305 struct snd_soc_dai *dai) in mchp_spdiftx_trigger()
307 struct mchp_spdiftx_dev *dev = snd_soc_dai_get_drvdata(dai); in mchp_spdiftx_trigger()
347 struct snd_soc_dai *dai) in mchp_spdiftx_hw_params()
350 struct mchp_spdiftx_dev *dev = snd_soc_dai_get_drvdata(dai); in mchp_spdiftx_hw_params()
511 struct snd_soc_dai *dai) in mchp_spdiftx_hw_free()
513 struct mchp_spdiftx_dev *dev = snd_soc_dai_get_drvdata(dai); in mchp_spdiftx_hw_free()
283 mchp_spdiftx_dai_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) mchp_spdiftx_dai_startup() argument
295 mchp_spdiftx_dai_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) mchp_spdiftx_dai_shutdown() argument
304 mchp_spdiftx_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) mchp_spdiftx_trigger() argument
345 mchp_spdiftx_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) mchp_spdiftx_hw_params() argument
510 mchp_spdiftx_hw_free(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) mchp_spdiftx_hw_free() argument
549 struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol); mchp_spdiftx_cs_get() local
565 struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol); mchp_spdiftx_cs_put() local
608 struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol); mchp_spdiftx_subcode_get() local
625 struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol); mchp_spdiftx_subcode_put() local
685 mchp_spdiftx_dai_probe(struct snd_soc_dai *dai) mchp_spdiftx_dai_probe() argument
[all...]
/kernel/linux/linux-6.6/sound/soc/mediatek/mt8195/
H A Dmt8195-dai-adda.c703 struct snd_soc_dai *dai) in mtk_dai_adda_hw_params()
705 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_dai_adda_hw_params()
711 if (dai->id != MT8195_AFE_IO_DL_SRC && in mtk_dai_adda_hw_params()
712 dai->id != MT8195_AFE_IO_UL_SRC1 && in mtk_dai_adda_hw_params()
713 dai->id != MT8195_AFE_IO_UL_SRC2) in mtk_dai_adda_hw_params()
715 adda_priv = afe_priv->dai_priv[dai->id]; in mtk_dai_adda_hw_params()
718 __func__, dai->id, substream->stream, rate); in mtk_dai_adda_hw_params()
726 ret = mtk_dai_da_configure(afe, rate, dai->id); in mtk_dai_adda_hw_params()
728 ret = mtk_dai_ad_configure(afe, rate, dai->id); in mtk_dai_adda_hw_params()
737 /* dai drive
701 mtk_dai_adda_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) mtk_dai_adda_hw_params() argument
818 struct mtk_base_afe_dai *dai; mt8195_dai_adda_register() local
[all...]

Completed in 19 milliseconds

12345678910>>...44