Home
last modified time | relevance | path

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

12

/linux/sound/soc/codecs/
H A 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()
H A 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()
H A Drt1318-sdw.c548 static int rt1318_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt1318_set_sdw_stream() argument
551 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt1318_set_sdw_stream()
571 struct sdw_stream_runtime *sdw_stream; in rt1318_sdw_hw_params() local
576 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt1318_sdw_hw_params()
578 if (!sdw_stream) in rt1318_sdw_hw_params()
606 &port_config, 1, sdw_stream); in rt1318_sdw_hw_params()
652 struct sdw_stream_runtime *sdw_stream = in rt1318_sdw_pcm_hw_free() local
658 sdw_stream_remove_slave(rt1318->sdw_slave, sdw_stream); in rt1318_sdw_pcm_hw_free()
H A Drt1017-sdca-sdw.c557 static int rt1017_sdca_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt1017_sdca_set_sdw_stream() argument
560 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt1017_sdca_set_sdw_stream()
580 struct sdw_stream_runtime *sdw_stream; in rt1017_sdca_pcm_hw_params() local
585 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt1017_sdca_pcm_hw_params()
587 if (!sdw_stream) in rt1017_sdca_pcm_hw_params()
619 &port_config, 1, sdw_stream); in rt1017_sdca_pcm_hw_params()
659 struct sdw_stream_runtime *sdw_stream = in rt1017_sdca_pcm_hw_free() local
665 sdw_stream_remove_slave(rt1017->sdw_slave, sdw_stream); in rt1017_sdca_pcm_hw_free()
H A Drt1316-sdw.c493 static int rt1316_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt1316_set_sdw_stream() argument
496 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt1316_set_sdw_stream()
515 struct sdw_stream_runtime *sdw_stream; in rt1316_sdw_hw_params() local
519 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt1316_sdw_hw_params()
521 if (!sdw_stream) in rt1316_sdw_hw_params()
537 &port_config, 1, sdw_stream); in rt1316_sdw_hw_params()
552 struct sdw_stream_runtime *sdw_stream = in rt1316_sdw_pcm_hw_free() local
558 sdw_stream_remove_slave(rt1316->sdw_slave, sdw_stream); in rt1316_sdw_pcm_hw_free()
H A 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()
H A Dmax98373-sdw.c523 struct sdw_stream_runtime *sdw_stream; in max98373_sdw_dai_hw_params() local
526 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in max98373_sdw_dai_hw_params()
528 if (!sdw_stream) in max98373_sdw_dai_hw_params()
552 &port_config, 1, sdw_stream); in max98373_sdw_dai_hw_params()
651 struct sdw_stream_runtime *sdw_stream = in max98373_pcm_hw_free() local
657 sdw_stream_remove_slave(max98373->slave, sdw_stream); in max98373_pcm_hw_free()
662 void *sdw_stream, int direction) in max98373_set_sdw_stream() argument
664 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in max98373_set_sdw_stream()
H A Drt1308-sdw.c492 static int rt1308_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt1308_set_sdw_stream() argument
495 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt1308_set_sdw_stream()
536 struct sdw_stream_runtime *sdw_stream; in rt1308_sdw_hw_params() local
540 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt1308_sdw_hw_params()
542 if (!sdw_stream) in rt1308_sdw_hw_params()
563 &port_config, 1, sdw_stream); in rt1308_sdw_hw_params()
578 struct sdw_stream_runtime *sdw_stream = in rt1308_sdw_pcm_hw_free() local
584 sdw_stream_remove_slave(rt1308->sdw_slave, sdw_stream); in rt1308_sdw_pcm_hw_free()
H A 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()
H A Drt712-sdca-dmic.c616 static int rt712_sdca_dmic_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt712_sdca_dmic_set_sdw_stream() argument
619 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt712_sdca_dmic_set_sdw_stream()
638 struct sdw_stream_runtime *sdw_stream; in rt712_sdca_dmic_hw_params() local
643 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt712_sdca_dmic_hw_params()
645 if (!sdw_stream) in rt712_sdca_dmic_hw_params()
661 &port_config, 1, sdw_stream); in rt712_sdca_dmic_hw_params()
715 struct sdw_stream_runtime *sdw_stream = in rt712_sdca_dmic_hw_free() local
721 sdw_stream_remove_slave(rt712->slave, sdw_stream); in rt712_sdca_dmic_hw_free()
H A Drt715-sdca.c777 static int rt715_sdca_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt715_sdca_set_sdw_stream() argument
780 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt715_sdca_set_sdw_stream()
800 struct sdw_stream_runtime *sdw_stream; in rt715_sdca_pcm_hw_params() local
804 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt715_sdca_pcm_hw_params()
806 if (!sdw_stream) in rt715_sdca_pcm_hw_params()
831 &port_config, 1, sdw_stream); in rt715_sdca_pcm_hw_params()
902 struct sdw_stream_runtime *sdw_stream = in rt715_sdca_pcm_hw_free() local
908 sdw_stream_remove_slave(rt715->slave, sdw_stream); in rt715_sdca_pcm_hw_free()
H A Drt700.c875 static int rt700_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt700_set_sdw_stream() argument
878 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt700_set_sdw_stream()
897 struct sdw_stream_runtime *sdw_stream; in rt700_pcm_hw_params() local
902 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt700_pcm_hw_params()
904 if (!sdw_stream) in rt700_pcm_hw_params()
931 &port_config, 1, sdw_stream); in rt700_pcm_hw_params()
978 struct sdw_stream_runtime *sdw_stream = in rt700_pcm_hw_free() local
984 sdw_stream_remove_slave(rt700->slave, sdw_stream); in rt700_pcm_hw_free()
H A Drt715.c802 static int rt715_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt715_set_sdw_stream() argument
806 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt715_set_sdw_stream()
826 struct sdw_stream_runtime *sdw_stream; in rt715_pcm_hw_params() local
830 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt715_pcm_hw_params()
832 if (!sdw_stream) in rt715_pcm_hw_params()
855 &port_config, 1, sdw_stream); in rt715_pcm_hw_params()
918 struct sdw_stream_runtime *sdw_stream = in rt715_pcm_hw_free() local
924 sdw_stream_remove_slave(rt715->slave, sdw_stream); in rt715_pcm_hw_free()
H A Dtas2783-sdw.c877 void *sdw_stream, s32 direction) in tas_set_sdw_stream() argument
879 if (!sdw_stream) in tas_set_sdw_stream()
882 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in tas_set_sdw_stream()
902 struct sdw_stream_runtime *sdw_stream; in tas_sdw_hw_params() local
911 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in tas_sdw_hw_params()
912 if (!sdw_stream) in tas_sdw_hw_params()
949 &stream_config, &port_config, 1, sdw_stream); in tas_sdw_hw_params()
963 struct sdw_stream_runtime *sdw_stream = in tas_sdw_pcm_hw_free() local
966 sdw_stream_remove_slave(tas_dev->sdw_peripheral, sdw_stream); in tas_sdw_pcm_hw_free()
H A Drt711.c964 static int rt711_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt711_set_sdw_stream() argument
967 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt711_set_sdw_stream()
986 struct sdw_stream_runtime *sdw_stream; in rt711_pcm_hw_params() local
991 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt711_pcm_hw_params()
993 if (!sdw_stream) in rt711_pcm_hw_params()
1014 &port_config, 1, sdw_stream); in rt711_pcm_hw_params()
1062 struct sdw_stream_runtime *sdw_stream = in rt711_pcm_hw_free() local
1068 sdw_stream_remove_slave(rt711->slave, sdw_stream); in rt711_pcm_hw_free()
H A Drt711-sdca.c1312 static int rt711_sdca_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt711_sdca_set_sdw_stream() argument
1315 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt711_sdca_set_sdw_stream()
1334 struct sdw_stream_runtime *sdw_stream; in rt711_sdca_pcm_hw_params() local
1339 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt711_sdca_pcm_hw_params()
1341 if (!sdw_stream) in rt711_sdca_pcm_hw_params()
1362 &port_config, 1, sdw_stream); in rt711_sdca_pcm_hw_params()
1413 struct sdw_stream_runtime *sdw_stream = in rt711_sdca_pcm_hw_free() local
1419 sdw_stream_remove_slave(rt711->slave, sdw_stream); in rt711_sdca_pcm_hw_free()
H A Drt721-sdca.c1252 static int rt721_sdca_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt721_sdca_set_sdw_stream() argument
1255 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt721_sdca_set_sdw_stream()
1275 struct sdw_stream_runtime *sdw_stream; in rt721_sdca_pcm_hw_params() local
1280 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt721_sdca_pcm_hw_params()
1282 if (!sdw_stream) in rt721_sdca_pcm_hw_params()
1321 &port_config, 1, sdw_stream); in rt721_sdca_pcm_hw_params()
1399 struct sdw_stream_runtime *sdw_stream = in rt721_sdca_pcm_hw_free() local
1405 sdw_stream_remove_slave(rt721->slave, sdw_stream); in rt721_sdca_pcm_hw_free()
H A Drt722-sdca.c1102 static int rt722_sdca_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt722_sdca_set_sdw_stream() argument
1105 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt722_sdca_set_sdw_stream()
1125 struct sdw_stream_runtime *sdw_stream; in rt722_sdca_pcm_hw_params() local
1130 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt722_sdca_pcm_hw_params()
1132 if (!sdw_stream) in rt722_sdca_pcm_hw_params()
1171 &port_config, 1, sdw_stream); in rt722_sdca_pcm_hw_params()
1231 struct sdw_stream_runtime *sdw_stream = in rt722_sdca_pcm_hw_free() local
1237 sdw_stream_remove_slave(rt722->slave, sdw_stream); in rt722_sdca_pcm_hw_free()
H A Drt712-sdca.c1433 static int rt712_sdca_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt712_sdca_set_sdw_stream() argument
1436 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt712_sdca_set_sdw_stream()
1456 struct sdw_stream_runtime *sdw_stream; in rt712_sdca_pcm_hw_params() local
1461 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt712_sdca_pcm_hw_params()
1463 if (!sdw_stream) in rt712_sdca_pcm_hw_params()
1502 &port_config, 1, sdw_stream); in rt712_sdca_pcm_hw_params()
1570 struct sdw_stream_runtime *sdw_stream = in rt712_sdca_pcm_hw_free() local
1576 sdw_stream_remove_slave(rt712->slave, sdw_stream); in rt712_sdca_pcm_hw_free()
H A Dmax98363.c271 void *sdw_stream, int direction) in max98363_set_sdw_stream() argument
273 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in max98363_set_sdw_stream()
H A Dcs35l56.c592 struct sdw_stream_runtime *sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in cs35l56_sdw_dai_hw_params() local
602 if (!sdw_stream) in cs35l56_sdw_dai_hw_params()
629 1, sdw_stream); in cs35l56_sdw_dai_hw_params()
642 struct sdw_stream_runtime *sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in cs35l56_sdw_dai_hw_free() local
647 sdw_stream_remove_slave(cs35l56->sdw_peripheral, sdw_stream); in cs35l56_sdw_dai_hw_free()
653 void *sdw_stream, int direction) in cs35l56_sdw_dai_set_stream() argument
655 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in cs35l56_sdw_dai_set_stream()
H A Dcs42l43.h116 int cs42l43_sdw_set_stream(struct snd_soc_dai *dai, void *sdw_stream, int direction);
/linux/sound/soc/sdca/
H A Dsdca_class_function.c133 struct sdw_stream_runtime *sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in class_function_sdw_add_peripheral() local
139 if (!sdw_stream) in class_function_sdw_add_peripheral()
154 ret = sdw_stream_add_slave(sdw, &sconfig, &pconfig, 1, sdw_stream); in class_function_sdw_add_peripheral()
168 struct sdw_stream_runtime *sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in class_function_sdw_remove_peripheral() local
171 if (!sdw_stream) in class_function_sdw_remove_peripheral()
174 return sdw_stream_remove_slave(sdw, sdw_stream); in class_function_sdw_remove_peripheral()
177 static int class_function_sdw_set_stream(struct snd_soc_dai *dai, void *sdw_stream, in class_function_sdw_set_stream() argument
180 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in class_function_sdw_set_stream()
/linux/sound/soc/sdw_utils/
H A Dsoc_sdw_utils.c1034 struct sdw_stream_runtime *sdw_stream; in asoc_sdw_prepare() local
1040 sdw_stream = snd_soc_dai_get_stream(dai, substream->stream); in asoc_sdw_prepare()
1041 if (IS_ERR(sdw_stream)) { in asoc_sdw_prepare()
1043 return PTR_ERR(sdw_stream); in asoc_sdw_prepare()
1046 return sdw_prepare_stream(sdw_stream); in asoc_sdw_prepare()
1053 struct sdw_stream_runtime *sdw_stream; in asoc_sdw_trigger() local
1060 sdw_stream = snd_soc_dai_get_stream(dai, substream->stream); in asoc_sdw_trigger()
1061 if (IS_ERR(sdw_stream)) { in asoc_sdw_trigger()
1063 return PTR_ERR(sdw_stream); in asoc_sdw_trigger()
1070 ret = sdw_enable_stream(sdw_stream); in asoc_sdw_trigger()
[all …]
/linux/drivers/soundwire/
H A Dstream.c1845 struct sdw_stream_runtime *sdw_stream) in set_stream() argument
1854 ret = snd_soc_dai_set_stream(dai, sdw_stream, substream->stream); in set_stream()
1903 struct sdw_stream_runtime *sdw_stream; in sdw_startup_stream() local
1915 sdw_stream = sdw_alloc_stream(name, SDW_STREAM_PCM); in sdw_startup_stream()
1916 if (!sdw_stream) { in sdw_startup_stream()
1922 ret = set_stream(substream, sdw_stream); in sdw_startup_stream()
1928 sdw_release_stream(sdw_stream); in sdw_startup_stream()
1947 struct sdw_stream_runtime *sdw_stream; in sdw_shutdown_stream() local
1953 sdw_stream = snd_soc_dai_get_stream(dai, substream->stream); in sdw_shutdown_stream()
1955 if (IS_ERR(sdw_stream)) { in sdw_shutdown_stream()
[all …]

12