Home
last modified time | relevance | path

Searched refs:sdw_stream (Results 1 – 23 of 23) sorted by relevance

/linux-6.12.1/sound/soc/codecs/
Dcs42l43-sdw.c25 struct sdw_stream_runtime *sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in cs42l43_sdw_add_peripheral() local
31 if (!sdw_stream) in cs42l43_sdw_add_peripheral()
37 ret = sdw_stream_add_slave(sdw, &sconfig, &pconfig, 1, sdw_stream); in cs42l43_sdw_add_peripheral()
51 struct sdw_stream_runtime *sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in cs42l43_sdw_remove_peripheral() local
54 if (!sdw_stream) in cs42l43_sdw_remove_peripheral()
57 return sdw_stream_remove_slave(sdw, sdw_stream); in cs42l43_sdw_remove_peripheral()
61 int cs42l43_sdw_set_stream(struct snd_soc_dai *dai, void *sdw_stream, int direction) in cs42l43_sdw_set_stream() argument
63 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in cs42l43_sdw_set_stream()
Dsdw-mockup.c41 static int sdw_mockup_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in sdw_mockup_set_sdw_stream() argument
44 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in sdw_mockup_set_sdw_stream()
63 struct sdw_stream_runtime *sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in sdw_mockup_pcm_hw_params() local
66 if (!sdw_stream) in sdw_mockup_pcm_hw_params()
81 &port_config, 1, sdw_stream); in sdw_mockup_pcm_hw_params()
93 struct sdw_stream_runtime *sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in sdw_mockup_pcm_hw_free() local
98 sdw_stream_remove_slave(sdw_mockup->slave, sdw_stream); in sdw_mockup_pcm_hw_free()
Drt1318-sdw.c549 static int rt1318_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt1318_set_sdw_stream() argument
552 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt1318_set_sdw_stream()
572 struct sdw_stream_runtime *sdw_stream; in rt1318_sdw_hw_params() local
577 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt1318_sdw_hw_params()
579 if (!sdw_stream) in rt1318_sdw_hw_params()
607 &port_config, 1, sdw_stream); in rt1318_sdw_hw_params()
653 struct sdw_stream_runtime *sdw_stream = in rt1318_sdw_pcm_hw_free() local
659 sdw_stream_remove_slave(rt1318->sdw_slave, sdw_stream); in rt1318_sdw_pcm_hw_free()
Drt1017-sdca-sdw.c558 static int rt1017_sdca_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt1017_sdca_set_sdw_stream() argument
561 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt1017_sdca_set_sdw_stream()
581 struct sdw_stream_runtime *sdw_stream; in rt1017_sdca_pcm_hw_params() local
586 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt1017_sdca_pcm_hw_params()
588 if (!sdw_stream) in rt1017_sdca_pcm_hw_params()
620 &port_config, 1, sdw_stream); in rt1017_sdca_pcm_hw_params()
660 struct sdw_stream_runtime *sdw_stream = in rt1017_sdca_pcm_hw_free() local
666 sdw_stream_remove_slave(rt1017->sdw_slave, sdw_stream); in rt1017_sdca_pcm_hw_free()
Drt1316-sdw.c494 static int rt1316_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt1316_set_sdw_stream() argument
497 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt1316_set_sdw_stream()
516 struct sdw_stream_runtime *sdw_stream; in rt1316_sdw_hw_params() local
520 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt1316_sdw_hw_params()
522 if (!sdw_stream) in rt1316_sdw_hw_params()
538 &port_config, 1, sdw_stream); in rt1316_sdw_hw_params()
553 struct sdw_stream_runtime *sdw_stream = in rt1316_sdw_pcm_hw_free() local
559 sdw_stream_remove_slave(rt1316->sdw_slave, sdw_stream); in rt1316_sdw_pcm_hw_free()
Dcs42l42-sdw.c68 struct sdw_stream_runtime *sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in cs42l42_sdw_dai_hw_params() local
73 if (!sdw_stream) in cs42l42_sdw_dai_hw_params()
87 sdw_stream); in cs42l42_sdw_dai_hw_params()
121 struct sdw_stream_runtime *sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in cs42l42_sdw_dai_hw_free() local
123 sdw_stream_remove_slave(cs42l42->sdw_peripheral, sdw_stream); in cs42l42_sdw_dai_hw_free()
153 static int cs42l42_sdw_dai_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in cs42l42_sdw_dai_set_sdw_stream() argument
156 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in cs42l42_sdw_dai_set_sdw_stream()
Drt5682-sdw.c89 static int rt5682_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt5682_set_sdw_stream() argument
92 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt5682_set_sdw_stream()
111 struct sdw_stream_runtime *sdw_stream; in rt5682_sdw_hw_params() local
117 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt5682_sdw_hw_params()
118 if (!sdw_stream) in rt5682_sdw_hw_params()
133 &port_config, 1, sdw_stream); in rt5682_sdw_hw_params()
227 struct sdw_stream_runtime *sdw_stream = in rt5682_sdw_hw_free() local
233 sdw_stream_remove_slave(rt5682->slave, sdw_stream); in rt5682_sdw_hw_free()
Drt1308-sdw.c493 static int rt1308_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt1308_set_sdw_stream() argument
496 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt1308_set_sdw_stream()
537 struct sdw_stream_runtime *sdw_stream; in rt1308_sdw_hw_params() local
541 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt1308_sdw_hw_params()
543 if (!sdw_stream) in rt1308_sdw_hw_params()
564 &port_config, 1, sdw_stream); in rt1308_sdw_hw_params()
579 struct sdw_stream_runtime *sdw_stream = in rt1308_sdw_pcm_hw_free() local
585 sdw_stream_remove_slave(rt1308->sdw_slave, sdw_stream); in rt1308_sdw_pcm_hw_free()
Dmax98373-sdw.c524 struct sdw_stream_runtime *sdw_stream; in max98373_sdw_dai_hw_params() local
527 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in max98373_sdw_dai_hw_params()
529 if (!sdw_stream) in max98373_sdw_dai_hw_params()
553 &port_config, 1, sdw_stream); in max98373_sdw_dai_hw_params()
652 struct sdw_stream_runtime *sdw_stream = in max98373_pcm_hw_free() local
658 sdw_stream_remove_slave(max98373->slave, sdw_stream); in max98373_pcm_hw_free()
663 void *sdw_stream, int direction) in max98373_set_sdw_stream() argument
665 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in max98373_set_sdw_stream()
Drt1320-sdw.c4034 static int rt1320_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt1320_set_sdw_stream() argument
4037 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt1320_set_sdw_stream()
4055 struct sdw_stream_runtime *sdw_stream; in rt1320_sdw_hw_params() local
4060 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt1320_sdw_hw_params()
4062 if (!sdw_stream) in rt1320_sdw_hw_params()
4084 &port_config, 1, sdw_stream); in rt1320_sdw_hw_params()
4130 struct sdw_stream_runtime *sdw_stream = in rt1320_sdw_pcm_hw_free() local
4136 sdw_stream_remove_slave(rt1320->sdw_slave, sdw_stream); in rt1320_sdw_pcm_hw_free()
Drt712-sdca-dmic.c624 static int rt712_sdca_dmic_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt712_sdca_dmic_set_sdw_stream() argument
627 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt712_sdca_dmic_set_sdw_stream()
646 struct sdw_stream_runtime *sdw_stream; in rt712_sdca_dmic_hw_params() local
651 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt712_sdca_dmic_hw_params()
653 if (!sdw_stream) in rt712_sdca_dmic_hw_params()
669 &port_config, 1, sdw_stream); in rt712_sdca_dmic_hw_params()
723 struct sdw_stream_runtime *sdw_stream = in rt712_sdca_dmic_hw_free() local
729 sdw_stream_remove_slave(rt712->slave, sdw_stream); in rt712_sdca_dmic_hw_free()
Drt715-sdca.c788 static int rt715_sdca_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt715_sdca_set_sdw_stream() argument
791 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt715_sdca_set_sdw_stream()
811 struct sdw_stream_runtime *sdw_stream; in rt715_sdca_pcm_hw_params() local
815 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt715_sdca_pcm_hw_params()
817 if (!sdw_stream) in rt715_sdca_pcm_hw_params()
842 &port_config, 1, sdw_stream); in rt715_sdca_pcm_hw_params()
913 struct sdw_stream_runtime *sdw_stream = in rt715_sdca_pcm_hw_free() local
919 sdw_stream_remove_slave(rt715->slave, sdw_stream); in rt715_sdca_pcm_hw_free()
Drt715.c817 static int rt715_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt715_set_sdw_stream() argument
821 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt715_set_sdw_stream()
841 struct sdw_stream_runtime *sdw_stream; in rt715_pcm_hw_params() local
845 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt715_pcm_hw_params()
847 if (!sdw_stream) in rt715_pcm_hw_params()
870 &port_config, 1, sdw_stream); in rt715_pcm_hw_params()
933 struct sdw_stream_runtime *sdw_stream = in rt715_pcm_hw_free() local
939 sdw_stream_remove_slave(rt715->slave, sdw_stream); in rt715_pcm_hw_free()
Drt700.c882 static int rt700_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt700_set_sdw_stream() argument
885 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt700_set_sdw_stream()
904 struct sdw_stream_runtime *sdw_stream; in rt700_pcm_hw_params() local
909 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt700_pcm_hw_params()
911 if (!sdw_stream) in rt700_pcm_hw_params()
938 &port_config, 1, sdw_stream); in rt700_pcm_hw_params()
985 struct sdw_stream_runtime *sdw_stream = in rt700_pcm_hw_free() local
991 sdw_stream_remove_slave(rt700->slave, sdw_stream); in rt700_pcm_hw_free()
Drt711.c971 static int rt711_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt711_set_sdw_stream() argument
974 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt711_set_sdw_stream()
993 struct sdw_stream_runtime *sdw_stream; in rt711_pcm_hw_params() local
998 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt711_pcm_hw_params()
1000 if (!sdw_stream) in rt711_pcm_hw_params()
1021 &port_config, 1, sdw_stream); in rt711_pcm_hw_params()
1069 struct sdw_stream_runtime *sdw_stream = in rt711_pcm_hw_free() local
1075 sdw_stream_remove_slave(rt711->slave, sdw_stream); in rt711_pcm_hw_free()
Drt711-sdca.c1316 static int rt711_sdca_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt711_sdca_set_sdw_stream() argument
1319 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt711_sdca_set_sdw_stream()
1338 struct sdw_stream_runtime *sdw_stream; in rt711_sdca_pcm_hw_params() local
1343 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt711_sdca_pcm_hw_params()
1345 if (!sdw_stream) in rt711_sdca_pcm_hw_params()
1366 &port_config, 1, sdw_stream); in rt711_sdca_pcm_hw_params()
1417 struct sdw_stream_runtime *sdw_stream = in rt711_sdca_pcm_hw_free() local
1423 sdw_stream_remove_slave(rt711->slave, sdw_stream); in rt711_sdca_pcm_hw_free()
Drt722-sdca.c1144 static int rt722_sdca_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt722_sdca_set_sdw_stream() argument
1147 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt722_sdca_set_sdw_stream()
1167 struct sdw_stream_runtime *sdw_stream; in rt722_sdca_pcm_hw_params() local
1172 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt722_sdca_pcm_hw_params()
1174 if (!sdw_stream) in rt722_sdca_pcm_hw_params()
1213 &port_config, 1, sdw_stream); in rt722_sdca_pcm_hw_params()
1273 struct sdw_stream_runtime *sdw_stream = in rt722_sdca_pcm_hw_free() local
1279 sdw_stream_remove_slave(rt722->slave, sdw_stream); in rt722_sdca_pcm_hw_free()
Dcs35l56.c541 struct sdw_stream_runtime *sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in cs35l56_sdw_dai_hw_params() local
551 if (!sdw_stream) in cs35l56_sdw_dai_hw_params()
578 1, sdw_stream); in cs35l56_sdw_dai_hw_params()
591 struct sdw_stream_runtime *sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in cs35l56_sdw_dai_hw_free() local
596 sdw_stream_remove_slave(cs35l56->sdw_peripheral, sdw_stream); in cs35l56_sdw_dai_hw_free()
602 void *sdw_stream, int direction) in cs35l56_sdw_dai_set_stream() argument
604 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in cs35l56_sdw_dai_set_stream()
Drt712-sdca.c1399 static int rt712_sdca_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt712_sdca_set_sdw_stream() argument
1402 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt712_sdca_set_sdw_stream()
1422 struct sdw_stream_runtime *sdw_stream; in rt712_sdca_pcm_hw_params() local
1427 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt712_sdca_pcm_hw_params()
1429 if (!sdw_stream) in rt712_sdca_pcm_hw_params()
1468 &port_config, 1, sdw_stream); in rt712_sdca_pcm_hw_params()
1536 struct sdw_stream_runtime *sdw_stream = in rt712_sdca_pcm_hw_free() local
1542 sdw_stream_remove_slave(rt712->slave, sdw_stream); in rt712_sdca_pcm_hw_free()
Dmax98363.c272 void *sdw_stream, int direction) in max98363_set_sdw_stream() argument
274 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in max98363_set_sdw_stream()
Dcs42l43.h114 int cs42l43_sdw_set_stream(struct snd_soc_dai *dai, void *sdw_stream, int direction);
/linux-6.12.1/sound/soc/sdw_utils/
Dsoc_sdw_utils.c701 struct sdw_stream_runtime *sdw_stream; in asoc_sdw_prepare() local
707 sdw_stream = snd_soc_dai_get_stream(dai, substream->stream); in asoc_sdw_prepare()
708 if (IS_ERR(sdw_stream)) { in asoc_sdw_prepare()
710 return PTR_ERR(sdw_stream); in asoc_sdw_prepare()
713 return sdw_prepare_stream(sdw_stream); in asoc_sdw_prepare()
720 struct sdw_stream_runtime *sdw_stream; in asoc_sdw_trigger() local
727 sdw_stream = snd_soc_dai_get_stream(dai, substream->stream); in asoc_sdw_trigger()
728 if (IS_ERR(sdw_stream)) { in asoc_sdw_trigger()
730 return PTR_ERR(sdw_stream); in asoc_sdw_trigger()
737 ret = sdw_enable_stream(sdw_stream); in asoc_sdw_trigger()
[all …]
/linux-6.12.1/drivers/soundwire/
Dstream.c1724 struct sdw_stream_runtime *sdw_stream) in set_stream() argument
1733 ret = snd_soc_dai_set_stream(dai, sdw_stream, substream->stream); in set_stream()
1780 struct sdw_stream_runtime *sdw_stream; in sdw_startup_stream() local
1792 sdw_stream = sdw_alloc_stream(name); in sdw_startup_stream()
1793 if (!sdw_stream) { in sdw_startup_stream()
1799 ret = set_stream(substream, sdw_stream); in sdw_startup_stream()
1805 sdw_release_stream(sdw_stream); in sdw_startup_stream()
1824 struct sdw_stream_runtime *sdw_stream; in sdw_shutdown_stream() local
1830 sdw_stream = snd_soc_dai_get_stream(dai, substream->stream); in sdw_shutdown_stream()
1832 if (IS_ERR(sdw_stream)) { in sdw_shutdown_stream()
[all …]