Home
last modified time | relevance | path

Searched refs:dai (Results 201 - 225 of 1064) sorted by relevance

12345678910>>...43

/kernel/linux/linux-6.6/sound/soc/fsl/
H A Dfsl_qmc_audio.c296 static unsigned int qmc_dai_get_index(struct snd_soc_dai *dai) in qmc_dai_get_index() argument
298 struct qmc_audio *qmc_audio = snd_soc_dai_get_drvdata(dai); in qmc_dai_get_index()
300 return dai->driver - qmc_audio->dai_drivers; in qmc_dai_get_index()
303 static struct qmc_dai *qmc_dai_get_data(struct snd_soc_dai *dai) in qmc_dai_get_data() argument
305 struct qmc_audio *qmc_audio = snd_soc_dai_get_drvdata(dai); in qmc_dai_get_data()
308 index = qmc_dai_get_index(dai); in qmc_dai_get_data()
416 struct snd_soc_dai *dai) in qmc_dai_startup()
425 qmc_dai = qmc_dai_get_data(dai); in qmc_dai_startup()
427 dev_err(dai->dev, "Invalid dai\ in qmc_dai_startup()
415 qmc_dai_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) qmc_dai_startup() argument
470 qmc_dai_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) qmc_dai_hw_params() argument
498 qmc_dai_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) qmc_dai_trigger() argument
[all...]
H A Dfsl_esai.c159 * @dai: pointer to DAI
165 static int fsl_esai_divisor_cal(struct snd_soc_dai *dai, bool tx, u32 ratio, in fsl_esai_divisor_cal() argument
168 struct fsl_esai *esai_priv = snd_soc_dai_get_drvdata(dai); in fsl_esai_divisor_cal()
177 dev_err(dai->dev, "the ratio is out of range (2 ~ %d)\n", in fsl_esai_divisor_cal()
181 dev_err(dai->dev, "the raio must be even if using upper divider\n"); in fsl_esai_divisor_cal()
229 dev_err(dai->dev, "failed to calculate proper divisors\n"); in fsl_esai_divisor_cal()
251 * @dai: pointer to DAI
259 static int fsl_esai_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id, in fsl_esai_set_dai_sysclk() argument
262 struct fsl_esai *esai_priv = snd_soc_dai_get_drvdata(dai); in fsl_esai_set_dai_sysclk()
271 dev_err(dai in fsl_esai_set_dai_sysclk()
362 fsl_esai_set_bclk(struct snd_soc_dai *dai, bool tx, u32 freq) fsl_esai_set_bclk() argument
404 fsl_esai_set_dai_tdm_slot(struct snd_soc_dai *dai, u32 tx_mask, u32 rx_mask, int slots, int slot_width) fsl_esai_set_dai_tdm_slot() argument
423 fsl_esai_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt) fsl_esai_set_dai_fmt() argument
511 fsl_esai_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) fsl_esai_startup() argument
535 fsl_esai_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) fsl_esai_hw_params() argument
757 fsl_esai_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) fsl_esai_trigger() argument
788 fsl_esai_dai_probe(struct snd_soc_dai *dai) fsl_esai_dai_probe() argument
[all...]
/kernel/linux/linux-6.6/sound/soc/sof/intel/
H A Dhda-dai.c186 /* set the hdac_stream in the codec dai */ in hda_link_dma_hw_params()
225 struct snd_soc_dai *dai) in hda_dai_hw_params()
227 struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget(dai, substream->stream); in hda_dai_hw_params()
228 const struct hda_dai_widget_dma_ops *ops = hda_dai_get_ops(substream, dai); in hda_dai_hw_params()
240 hext_stream = ops->get_hext_stream(sdev, dai, substream); in hda_dai_hw_params()
244 ret = hda_link_dma_hw_params(substream, params, dai); in hda_dai_hw_params()
248 hext_stream = ops->get_hext_stream(sdev, dai, substream); in hda_dai_hw_params()
257 * In contrast to IPC3, the dai trigger in IPC4 mixes pipeline state changes
261 struct snd_soc_dai *dai) in hda_dai_trigger()
263 const struct hda_dai_widget_dma_ops *ops = hda_dai_get_ops(substream, dai); in hda_dai_trigger()
223 hda_dai_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) hda_dai_hw_params() argument
260 hda_dai_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) hda_dai_trigger() argument
317 hda_dai_prepare(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) hda_dai_prepare() argument
[all...]
H A Dhda-probes.c30 struct snd_soc_dai *dai, u32 *stream_id) in hda_probes_compr_startup()
50 struct snd_soc_dai *dai) in hda_probes_compr_shutdown()
72 struct snd_soc_dai *dai) in hda_probes_compr_set_params()
105 int cmd, struct snd_soc_dai *dai) in hda_probes_compr_trigger()
116 struct snd_soc_dai *dai) in hda_probes_compr_pointer()
121 pstream = &dai->driver->capture; in hda_probes_compr_pointer()
28 hda_probes_compr_startup(struct sof_client_dev *cdev, struct snd_compr_stream *cstream, struct snd_soc_dai *dai, u32 *stream_id) hda_probes_compr_startup() argument
48 hda_probes_compr_shutdown(struct sof_client_dev *cdev, struct snd_compr_stream *cstream, struct snd_soc_dai *dai) hda_probes_compr_shutdown() argument
69 hda_probes_compr_set_params(struct sof_client_dev *cdev, struct snd_compr_stream *cstream, struct snd_compr_params *params, struct snd_soc_dai *dai) hda_probes_compr_set_params() argument
103 hda_probes_compr_trigger(struct sof_client_dev *cdev, struct snd_compr_stream *cstream, int cmd, struct snd_soc_dai *dai) hda_probes_compr_trigger() argument
113 hda_probes_compr_pointer(struct sof_client_dev *cdev, struct snd_compr_stream *cstream, struct snd_compr_tstamp *tstamp, struct snd_soc_dai *dai) hda_probes_compr_pointer() argument
/kernel/linux/linux-6.6/sound/soc/kirkwood/
H A Dkirkwood-i2s.c215 static void kirkwood_set_rate(struct snd_soc_dai *dai, in kirkwood_set_rate() argument
223 dev_dbg(dai->dev, "%s: dco set rate = %lu\n", in kirkwood_set_rate()
234 dev_dbg(dai->dev, "%s: extclk set rate = %lu -> %lu\n", in kirkwood_set_rate()
244 struct snd_soc_dai *dai) in kirkwood_i2s_startup()
246 struct kirkwood_dma_data *priv = snd_soc_dai_get_drvdata(dai); in kirkwood_i2s_startup()
248 snd_soc_dai_set_dma_data(dai, substream, priv); in kirkwood_i2s_startup()
254 struct snd_soc_dai *dai) in kirkwood_i2s_hw_params()
256 struct kirkwood_dma_data *priv = snd_soc_dai_get_drvdata(dai); in kirkwood_i2s_hw_params()
267 kirkwood_set_rate(dai, priv, params_rate(params)); in kirkwood_i2s_hw_params()
348 int cmd, struct snd_soc_dai *dai) in kirkwood_i2s_play_trigger()
243 kirkwood_i2s_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) kirkwood_i2s_startup() argument
252 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
347 kirkwood_i2s_play_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) kirkwood_i2s_play_trigger() argument
435 kirkwood_i2s_rec_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) kirkwood_i2s_rec_trigger() argument
501 kirkwood_i2s_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) kirkwood_i2s_trigger() argument
[all...]
/kernel/linux/linux-5.10/sound/soc/codecs/
H A Dsi476x.c150 struct snd_soc_dai *dai) in si476x_codec_hw_params()
152 struct si476x_core *core = i2c_mfd_cell_to_core(dai->dev); in si476x_codec_hw_params()
157 dev_err(dai->component->dev, "Rate: %d is not supported\n", rate); in si476x_codec_hw_params()
180 err = snd_soc_component_write(dai->component, SI476X_DIGITAL_IO_OUTPUT_SAMPLE_RATE, in si476x_codec_hw_params()
183 dev_err(dai->component->dev, "Failed to set sample rate\n"); in si476x_codec_hw_params()
187 err = snd_soc_component_update_bits(dai->component, SI476X_DIGITAL_IO_OUTPUT_FORMAT, in si476x_codec_hw_params()
192 dev_err(dai->component->dev, "Failed to set output width\n"); in si476x_codec_hw_params()
148 si476x_codec_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) si476x_codec_hw_params() argument
H A Dpcm512x.c580 struct snd_soc_dai *dai) in pcm512x_dai_startup_master()
582 struct snd_soc_component *component = dai->component; in pcm512x_dai_startup_master()
584 struct device *dev = dai->dev; in pcm512x_dai_startup_master()
622 struct snd_soc_dai *dai) in pcm512x_dai_startup_slave()
624 struct snd_soc_component *component = dai->component; in pcm512x_dai_startup_slave()
626 struct device *dev = dai->dev; in pcm512x_dai_startup_slave()
648 struct snd_soc_dai *dai) in pcm512x_dai_startup()
650 struct snd_soc_component *component = dai->component; in pcm512x_dai_startup()
656 return pcm512x_dai_startup_master(substream, dai); in pcm512x_dai_startup()
659 return pcm512x_dai_startup_slave(substream, dai); in pcm512x_dai_startup()
579 pcm512x_dai_startup_master(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) pcm512x_dai_startup_master() argument
621 pcm512x_dai_startup_slave(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) pcm512x_dai_startup_slave() argument
647 pcm512x_dai_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) pcm512x_dai_startup() argument
701 pcm512x_find_sck(struct snd_soc_dai *dai, unsigned long bclk_rate) pcm512x_find_sck() argument
746 pcm512x_find_pll_coeff(struct snd_soc_dai *dai, unsigned long pllin_rate, unsigned long pll_rate) pcm512x_find_pll_coeff() argument
854 pcm512x_pllin_dac_rate(struct snd_soc_dai *dai, unsigned long osr_rate, unsigned long pllin_rate) pcm512x_pllin_dac_rate() argument
885 pcm512x_set_dividers(struct snd_soc_dai *dai, struct snd_pcm_hw_params *params) pcm512x_set_dividers() argument
1163 pcm512x_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) pcm512x_hw_params() argument
1374 pcm512x_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) pcm512x_set_fmt() argument
1384 pcm512x_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) pcm512x_set_bclk_ratio() argument
1397 pcm512x_mute(struct snd_soc_dai *dai, int mute, int direction) pcm512x_mute() argument
[all...]
H A Dadav80x.c365 static int adav80x_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt) in adav80x_set_dai_fmt() argument
367 struct snd_soc_component *component = dai->component; in adav80x_set_dai_fmt()
406 regmap_update_bits(adav80x->regmap, adav80x_port_ctrl_regs[dai->id][0], in adav80x_set_dai_fmt()
409 regmap_write(adav80x->regmap, adav80x_port_ctrl_regs[dai->id][1], in adav80x_set_dai_fmt()
412 adav80x->dai_fmt[dai->id] = fmt & SND_SOC_DAIFMT_FORMAT_MASK; in adav80x_set_dai_fmt()
453 struct snd_soc_dai *dai, struct snd_pcm_hw_params *params) in adav80x_set_capture_pcm_format()
475 regmap_update_bits(adav80x->regmap, adav80x_port_ctrl_regs[dai->id][0], in adav80x_set_capture_pcm_format()
482 struct snd_soc_dai *dai, struct snd_pcm_hw_params *params) in adav80x_set_playback_pcm_format()
487 if (adav80x->dai_fmt[dai->id] != SND_SOC_DAIFMT_RIGHT_J) in adav80x_set_playback_pcm_format()
507 regmap_update_bits(adav80x->regmap, adav80x_port_ctrl_regs[dai in adav80x_set_playback_pcm_format()
452 adav80x_set_capture_pcm_format(struct snd_soc_component *component, struct snd_soc_dai *dai, struct snd_pcm_hw_params *params) adav80x_set_capture_pcm_format() argument
481 adav80x_set_playback_pcm_format(struct snd_soc_component *component, struct snd_soc_dai *dai, struct snd_pcm_hw_params *params) adav80x_set_playback_pcm_format() argument
513 adav80x_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) adav80x_hw_params() argument
722 adav80x_dai_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) adav80x_dai_startup() argument
735 adav80x_dai_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) adav80x_dai_shutdown() argument
[all...]
H A Des7134.c37 static int es7134_check_mclk(struct snd_soc_dai *dai, in es7134_check_mclk() argument
55 dev_err(dai->dev, "unsupported mclk_fs %u for rate %u\n", in es7134_check_mclk()
61 dev_err(dai->dev, "unsupported rate: %u\n", rate); in es7134_check_mclk()
67 struct snd_soc_dai *dai) in es7134_hw_params()
69 struct es7134_data *priv = snd_soc_dai_get_drvdata(dai); in es7134_hw_params()
75 return es7134_check_mclk(dai, priv, params_rate(params)); in es7134_hw_params()
78 static int es7134_set_sysclk(struct snd_soc_dai *dai, int clk_id, in es7134_set_sysclk() argument
81 struct es7134_data *priv = snd_soc_dai_get_drvdata(dai); in es7134_set_sysclk()
65 es7134_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) es7134_hw_params() argument
H A Dwm8983.c560 static int wm8983_dac_mute(struct snd_soc_dai *dai, int mute, int direction) in wm8983_dac_mute() argument
562 struct snd_soc_component *component = dai->component; in wm8983_dac_mute()
569 static int wm8983_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) in wm8983_set_fmt() argument
571 struct snd_soc_component *component = dai->component; in wm8983_set_fmt()
589 dev_err(dai->dev, "Unknown dai format\n"); in wm8983_set_fmt()
604 dev_err(dai->dev, "Unknown master/slave configuration\n"); in wm8983_set_fmt()
615 dev_err(dai->dev, "DSP A/B modes are not supported\n"); in wm8983_set_fmt()
635 dev_err(dai->dev, "Unknown polarity configuration\n"); in wm8983_set_fmt()
648 struct snd_soc_dai *dai) in wm8983_hw_params()
646 wm8983_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) wm8983_hw_params() argument
784 wm8983_set_pll(struct snd_soc_dai *dai, int pll_id, int source, unsigned int freq_in, unsigned int freq_out) wm8983_set_pll() argument
823 wm8983_set_sysclk(struct snd_soc_dai *dai, int clk_id, unsigned int freq, int dir) wm8983_set_sysclk() argument
[all...]
/kernel/linux/linux-6.6/sound/soc/codecs/
H A Dsi476x.c150 struct snd_soc_dai *dai) in si476x_codec_hw_params()
152 struct si476x_core *core = i2c_mfd_cell_to_core(dai->dev); in si476x_codec_hw_params()
157 dev_err(dai->component->dev, "Rate: %d is not supported\n", rate); in si476x_codec_hw_params()
180 err = snd_soc_component_write(dai->component, SI476X_DIGITAL_IO_OUTPUT_SAMPLE_RATE, in si476x_codec_hw_params()
183 dev_err(dai->component->dev, "Failed to set sample rate\n"); in si476x_codec_hw_params()
187 err = snd_soc_component_update_bits(dai->component, SI476X_DIGITAL_IO_OUTPUT_FORMAT, in si476x_codec_hw_params()
192 dev_err(dai->component->dev, "Failed to set output width\n"); in si476x_codec_hw_params()
148 si476x_codec_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) si476x_codec_hw_params() argument
H A Dpcm512x.c582 struct snd_soc_dai *dai) in pcm512x_dai_startup_master()
584 struct snd_soc_component *component = dai->component; in pcm512x_dai_startup_master()
586 struct device *dev = dai->dev; in pcm512x_dai_startup_master()
624 struct snd_soc_dai *dai) in pcm512x_dai_startup_slave()
626 struct snd_soc_component *component = dai->component; in pcm512x_dai_startup_slave()
628 struct device *dev = dai->dev; in pcm512x_dai_startup_slave()
650 struct snd_soc_dai *dai) in pcm512x_dai_startup()
652 struct snd_soc_component *component = dai->component; in pcm512x_dai_startup()
658 return pcm512x_dai_startup_master(substream, dai); in pcm512x_dai_startup()
661 return pcm512x_dai_startup_slave(substream, dai); in pcm512x_dai_startup()
581 pcm512x_dai_startup_master(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) pcm512x_dai_startup_master() argument
623 pcm512x_dai_startup_slave(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) pcm512x_dai_startup_slave() argument
649 pcm512x_dai_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) pcm512x_dai_startup() argument
703 pcm512x_find_sck(struct snd_soc_dai *dai, unsigned long bclk_rate) pcm512x_find_sck() argument
748 pcm512x_find_pll_coeff(struct snd_soc_dai *dai, unsigned long pllin_rate, unsigned long pll_rate) pcm512x_find_pll_coeff() argument
856 pcm512x_pllin_dac_rate(struct snd_soc_dai *dai, unsigned long osr_rate, unsigned long pllin_rate) pcm512x_pllin_dac_rate() argument
887 pcm512x_set_dividers(struct snd_soc_dai *dai, struct snd_pcm_hw_params *params) pcm512x_set_dividers() argument
1165 pcm512x_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) pcm512x_hw_params() argument
1336 pcm512x_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) pcm512x_set_fmt() argument
1420 pcm512x_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) pcm512x_set_bclk_ratio() argument
1433 pcm512x_mute(struct snd_soc_dai *dai, int mute, int direction) pcm512x_mute() argument
[all...]
H A Dadav80x.c365 static int adav80x_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt) in adav80x_set_dai_fmt() argument
367 struct snd_soc_component *component = dai->component; in adav80x_set_dai_fmt()
407 regmap_update_bits(adav80x->regmap, adav80x_port_ctrl_regs[dai->id][0], in adav80x_set_dai_fmt()
410 regmap_write(adav80x->regmap, adav80x_port_ctrl_regs[dai->id][1], in adav80x_set_dai_fmt()
413 adav80x->dai_fmt[dai->id] = fmt & SND_SOC_DAIFMT_FORMAT_MASK; in adav80x_set_dai_fmt()
454 struct snd_soc_dai *dai, struct snd_pcm_hw_params *params) in adav80x_set_capture_pcm_format()
476 regmap_update_bits(adav80x->regmap, adav80x_port_ctrl_regs[dai->id][0], in adav80x_set_capture_pcm_format()
483 struct snd_soc_dai *dai, struct snd_pcm_hw_params *params) in adav80x_set_playback_pcm_format()
488 if (adav80x->dai_fmt[dai->id] != SND_SOC_DAIFMT_RIGHT_J) in adav80x_set_playback_pcm_format()
508 regmap_update_bits(adav80x->regmap, adav80x_port_ctrl_regs[dai in adav80x_set_playback_pcm_format()
453 adav80x_set_capture_pcm_format(struct snd_soc_component *component, struct snd_soc_dai *dai, struct snd_pcm_hw_params *params) adav80x_set_capture_pcm_format() argument
482 adav80x_set_playback_pcm_format(struct snd_soc_component *component, struct snd_soc_dai *dai, struct snd_pcm_hw_params *params) adav80x_set_playback_pcm_format() argument
514 adav80x_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) adav80x_hw_params() argument
723 adav80x_dai_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) adav80x_dai_startup() argument
736 adav80x_dai_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) adav80x_dai_shutdown() argument
[all...]
H A Des7134.c37 static int es7134_check_mclk(struct snd_soc_dai *dai, in es7134_check_mclk() argument
55 dev_err(dai->dev, "unsupported mclk_fs %u for rate %u\n", in es7134_check_mclk()
61 dev_err(dai->dev, "unsupported rate: %u\n", rate); in es7134_check_mclk()
67 struct snd_soc_dai *dai) in es7134_hw_params()
69 struct es7134_data *priv = snd_soc_dai_get_drvdata(dai); in es7134_hw_params()
75 return es7134_check_mclk(dai, priv, params_rate(params)); in es7134_hw_params()
78 static int es7134_set_sysclk(struct snd_soc_dai *dai, int clk_id, in es7134_set_sysclk() argument
81 struct es7134_data *priv = snd_soc_dai_get_drvdata(dai); in es7134_set_sysclk()
65 es7134_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) es7134_hw_params() argument
H A Dwm8983.c560 static int wm8983_dac_mute(struct snd_soc_dai *dai, int mute, int direction) in wm8983_dac_mute() argument
562 struct snd_soc_component *component = dai->component; in wm8983_dac_mute()
569 static int wm8983_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) in wm8983_set_fmt() argument
571 struct snd_soc_component *component = dai->component; in wm8983_set_fmt()
589 dev_err(dai->dev, "Unknown dai format\n"); in wm8983_set_fmt()
604 dev_err(dai->dev, "Unknown master/slave configuration\n"); in wm8983_set_fmt()
615 dev_err(dai->dev, "DSP A/B modes are not supported\n"); in wm8983_set_fmt()
635 dev_err(dai->dev, "Unknown polarity configuration\n"); in wm8983_set_fmt()
648 struct snd_soc_dai *dai) in wm8983_hw_params()
646 wm8983_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) wm8983_hw_params() argument
784 wm8983_set_pll(struct snd_soc_dai *dai, int pll_id, int source, unsigned int freq_in, unsigned int freq_out) wm8983_set_pll() argument
823 wm8983_set_sysclk(struct snd_soc_dai *dai, int clk_id, unsigned int freq, int dir) wm8983_set_sysclk() argument
[all...]
H A Dmax98363.c202 struct snd_soc_dai *dai) in max98363_sdw_dai_hw_params()
204 struct snd_soc_component *component = dai->component; in max98363_sdw_dai_hw_params()
216 stream = snd_soc_dai_get_dma_data(dai, substream); in max98363_sdw_dai_hw_params()
237 dev_info(dai->dev, "Number of channels: %d (requested: %d)\n", in max98363_sdw_dai_hw_params()
245 dev_err(dai->dev, "Unable to configure port\n"); in max98363_sdw_dai_hw_params()
255 struct snd_soc_dai *dai) in max98363_pcm_hw_free()
257 struct snd_soc_component *component = dai->component; in max98363_pcm_hw_free()
261 snd_soc_dai_get_dma_data(dai, substream); in max98363_pcm_hw_free()
271 static int max98363_set_sdw_stream(struct snd_soc_dai *dai, in max98363_set_sdw_stream() argument
274 snd_soc_dai_dma_data_set(dai, directio in max98363_set_sdw_stream()
200 max98363_sdw_dai_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) max98363_sdw_dai_hw_params() argument
254 max98363_pcm_hw_free(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) max98363_pcm_hw_free() argument
[all...]
H A Dssm3515.c170 static int ssm3515_mute(struct snd_soc_dai *dai, int mute, int direction) in ssm3515_mute() argument
174 ret = snd_soc_component_update_bits(dai->component, in ssm3515_mute()
185 struct snd_soc_dai *dai) in ssm3515_hw_params()
187 struct snd_soc_component *component = dai->component; in ssm3515_hw_params()
237 static int ssm3515_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) in ssm3515_set_fmt() argument
239 struct snd_soc_component *component = dai->component; in ssm3515_set_fmt()
296 static int ssm3515_set_tdm_slot(struct snd_soc_dai *dai, in ssm3515_set_tdm_slot() argument
301 struct snd_soc_component *component = dai->component; in ssm3515_set_tdm_slot()
348 struct snd_soc_dai *dai) in ssm3515_hw_free()
355 ssm3515_read_faults(dai in ssm3515_hw_free()
183 ssm3515_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) ssm3515_hw_params() argument
347 ssm3515_hw_free(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) ssm3515_hw_free() argument
[all...]
/kernel/linux/linux-6.6/sound/soc/amd/acp/
H A Dacp-legacy-common.c41 struct snd_soc_dai *dai) in set_acp_pdm_ring_buffer()
45 struct device *dev = dai->component->dev; in set_acp_pdm_ring_buffer()
62 struct snd_soc_dai *dai) in set_acp_pdm_clk()
64 struct device *dev = dai->component->dev; in set_acp_pdm_clk()
73 set_acp_pdm_ring_buffer(substream, dai); in set_acp_pdm_clk()
79 struct snd_soc_dai *dai; in restore_acp_pdm_params() local
84 dai = asoc_rtd_to_cpu(soc_runtime, 0); in restore_acp_pdm_params()
93 set_acp_pdm_clk(substream, dai); in restore_acp_pdm_params()
98 struct snd_soc_dai *dai) in set_acp_i2s_dma_fifo()
100 struct device *dev = dai in set_acp_i2s_dma_fifo()
40 set_acp_pdm_ring_buffer(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) set_acp_pdm_ring_buffer() argument
61 set_acp_pdm_clk(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) set_acp_pdm_clk() argument
97 set_acp_i2s_dma_fifo(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) set_acp_i2s_dma_fifo() argument
191 struct snd_soc_dai *dai; restore_acp_i2s_params() local
[all...]
/kernel/linux/linux-5.10/sound/soc/sof/intel/
H A Dhda-compress.c24 struct snd_soc_dai *dai) in hda_probe_compr_assign()
41 struct snd_soc_dai *dai) in hda_probe_compr_free()
62 struct snd_soc_dai *dai) in hda_probe_compr_set_params()
94 struct snd_soc_dai *dai) in hda_probe_compr_trigger()
104 struct snd_soc_dai *dai) in hda_probe_compr_pointer()
109 pstream = &dai->driver->capture; in hda_probe_compr_pointer()
22 hda_probe_compr_assign(struct snd_sof_dev *sdev, struct snd_compr_stream *cstream, struct snd_soc_dai *dai) hda_probe_compr_assign() argument
39 hda_probe_compr_free(struct snd_sof_dev *sdev, struct snd_compr_stream *cstream, struct snd_soc_dai *dai) hda_probe_compr_free() argument
59 hda_probe_compr_set_params(struct snd_sof_dev *sdev, struct snd_compr_stream *cstream, struct snd_compr_params *params, struct snd_soc_dai *dai) hda_probe_compr_set_params() argument
92 hda_probe_compr_trigger(struct snd_sof_dev *sdev, struct snd_compr_stream *cstream, int cmd, struct snd_soc_dai *dai) hda_probe_compr_trigger() argument
101 hda_probe_compr_pointer(struct snd_sof_dev *sdev, struct snd_compr_stream *cstream, struct snd_compr_tstamp *tstamp, struct snd_soc_dai *dai) hda_probe_compr_pointer() argument
/kernel/linux/linux-6.6/sound/soc/sof/amd/
H A Dacp-probes.c25 struct snd_soc_dai *dai, u32 *stream_id) in acp_probes_compr_startup()
47 struct snd_soc_dai *dai) in acp_probes_compr_shutdown()
71 struct snd_soc_dai *dai) in acp_probes_compr_set_params()
103 int cmd, struct snd_soc_dai *dai) in acp_probes_compr_trigger()
112 struct snd_soc_dai *dai) in acp_probes_compr_pointer()
117 pstream = &dai->driver->capture; in acp_probes_compr_pointer()
23 acp_probes_compr_startup(struct sof_client_dev *cdev, struct snd_compr_stream *cstream, struct snd_soc_dai *dai, u32 *stream_id) acp_probes_compr_startup() argument
45 acp_probes_compr_shutdown(struct sof_client_dev *cdev, struct snd_compr_stream *cstream, struct snd_soc_dai *dai) acp_probes_compr_shutdown() argument
68 acp_probes_compr_set_params(struct sof_client_dev *cdev, struct snd_compr_stream *cstream, struct snd_compr_params *params, struct snd_soc_dai *dai) acp_probes_compr_set_params() argument
101 acp_probes_compr_trigger(struct sof_client_dev *cdev, struct snd_compr_stream *cstream, int cmd, struct snd_soc_dai *dai) acp_probes_compr_trigger() argument
109 acp_probes_compr_pointer(struct sof_client_dev *cdev, struct snd_compr_stream *cstream, struct snd_compr_tstamp *tstamp, struct snd_soc_dai *dai) acp_probes_compr_pointer() argument
/kernel/linux/linux-5.10/sound/soc/mediatek/mt8183/
H A Dmt8183-dai-i2s.c180 /* dai component */
704 /* dai ops */
788 struct snd_soc_dai *dai) in mtk_dai_i2s_hw_params()
790 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_dai_i2s_hw_params()
792 return mtk_dai_i2s_config(afe, params, dai->id); in mtk_dai_i2s_hw_params()
795 static int mtk_dai_i2s_set_sysclk(struct snd_soc_dai *dai, in mtk_dai_i2s_set_sysclk() argument
798 struct mtk_base_afe *afe = dev_get_drvdata(dai->dev); in mtk_dai_i2s_set_sysclk()
800 struct mtk_afe_i2s_priv *i2s_priv = afe_priv->dai_priv[dai->id]; in mtk_dai_i2s_set_sysclk()
850 static int mtk_dai_i2s_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) in mtk_dai_i2s_set_fmt() argument
852 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_dai_i2s_set_fmt()
786 mtk_dai_i2s_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) mtk_dai_i2s_hw_params() argument
1053 struct mtk_base_afe_dai *dai; mt8183_dai_i2s_register() local
[all...]
/kernel/linux/linux-6.6/sound/soc/mediatek/mt8183/
H A Dmt8183-dai-i2s.c177 /* dai component */
695 /* dai ops */
774 struct snd_soc_dai *dai) in mtk_dai_i2s_hw_params()
776 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_dai_i2s_hw_params()
778 return mtk_dai_i2s_config(afe, params, dai->id); in mtk_dai_i2s_hw_params()
781 static int mtk_dai_i2s_set_sysclk(struct snd_soc_dai *dai, in mtk_dai_i2s_set_sysclk() argument
784 struct mtk_base_afe *afe = dev_get_drvdata(dai->dev); in mtk_dai_i2s_set_sysclk()
786 struct mtk_afe_i2s_priv *i2s_priv = afe_priv->dai_priv[dai->id]; in mtk_dai_i2s_set_sysclk()
834 static int mtk_dai_i2s_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) in mtk_dai_i2s_set_fmt() argument
836 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_dai_i2s_set_fmt()
772 mtk_dai_i2s_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) mtk_dai_i2s_hw_params() argument
1038 struct mtk_base_afe_dai *dai; mt8183_dai_i2s_register() local
[all...]
/kernel/linux/linux-5.10/sound/soc/fsl/
H A Dfsl_esai.c164 * @dai: pointer to DAI
170 static int fsl_esai_divisor_cal(struct snd_soc_dai *dai, bool tx, u32 ratio, in fsl_esai_divisor_cal() argument
173 struct fsl_esai *esai_priv = snd_soc_dai_get_drvdata(dai); in fsl_esai_divisor_cal()
182 dev_err(dai->dev, "the ratio is out of range (2 ~ %d)\n", in fsl_esai_divisor_cal()
186 dev_err(dai->dev, "the raio must be even if using upper divider\n"); in fsl_esai_divisor_cal()
234 dev_err(dai->dev, "failed to calculate proper divisors\n"); in fsl_esai_divisor_cal()
256 * @dai: pointer to DAI
264 static int fsl_esai_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id, in fsl_esai_set_dai_sysclk() argument
267 struct fsl_esai *esai_priv = snd_soc_dai_get_drvdata(dai); in fsl_esai_set_dai_sysclk()
276 dev_err(dai in fsl_esai_set_dai_sysclk()
367 fsl_esai_set_bclk(struct snd_soc_dai *dai, bool tx, u32 freq) fsl_esai_set_bclk() argument
409 fsl_esai_set_dai_tdm_slot(struct snd_soc_dai *dai, u32 tx_mask, u32 rx_mask, int slots, int slot_width) fsl_esai_set_dai_tdm_slot() argument
428 fsl_esai_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt) fsl_esai_set_dai_fmt() argument
516 fsl_esai_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) fsl_esai_startup() argument
540 fsl_esai_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) fsl_esai_hw_params() argument
762 fsl_esai_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) fsl_esai_trigger() argument
802 fsl_esai_dai_probe(struct snd_soc_dai *dai) fsl_esai_dai_probe() argument
[all...]
/kernel/linux/linux-5.10/sound/soc/sof/
H A Dpcm.c307 * FE dai link trigger actions are always executed in non-atomic context because
429 snd_pcm_uframes_t host, dai; in sof_pcm_pointer() local
446 dai = bytes_to_frames(substream->runtime, in sof_pcm_pointer()
451 spcm->pcm.pcm_id, substream->stream, host, dai); in sof_pcm_pointer()
640 struct snd_sof_dai *dai = in sof_pcm_dai_link_fixup() local
645 if (!dai) { in sof_pcm_dai_link_fixup()
666 switch (dai->comp_dai.config.frame_fmt) { in sof_pcm_dai_link_fixup()
682 switch (dai->dai_config->type) { in sof_pcm_dai_link_fixup()
684 rate->min = dai->dai_config->ssp.fsync_rate; in sof_pcm_dai_link_fixup()
685 rate->max = dai in sof_pcm_dai_link_fixup()
[all...]
/kernel/linux/linux-5.10/sound/soc/stm/
H A Dstm32_adfsdm.c61 struct snd_soc_dai *dai) in stm32_adfsdm_shutdown()
63 struct stm32_adfsdm_priv *priv = snd_soc_dai_get_drvdata(dai); in stm32_adfsdm_shutdown()
74 struct snd_soc_dai *dai) in stm32_adfsdm_dai_prepare()
76 struct stm32_adfsdm_priv *priv = snd_soc_dai_get_drvdata(dai); in stm32_adfsdm_dai_prepare()
89 dev_err(dai->dev, "%s: Failed to set %d sampling rate\n", in stm32_adfsdm_dai_prepare()
99 dev_err(dai->dev, "%s: IIO channel start failed (%d)\n", in stm32_adfsdm_dai_prepare()
109 static int stm32_adfsdm_set_sysclk(struct snd_soc_dai *dai, int clk_id, in stm32_adfsdm_set_sysclk() argument
112 struct stm32_adfsdm_priv *priv = snd_soc_dai_get_drvdata(dai); in stm32_adfsdm_set_sysclk()
116 dev_dbg(dai->dev, "%s: Enter for freq %d\n", __func__, freq); in stm32_adfsdm_set_sysclk()
124 dev_err(dai in stm32_adfsdm_set_sysclk()
60 stm32_adfsdm_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) stm32_adfsdm_shutdown() argument
73 stm32_adfsdm_dai_prepare(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) stm32_adfsdm_dai_prepare() argument
[all...]

Completed in 20 milliseconds

12345678910>>...43