Home
last modified time | relevance | path

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

/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 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,
619 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt712_sdca_dmic_set_sdw_stream() argument
638 struct sdw_stream_runtime *sdw_stream; in rt712_sdca_dmic_hw_params()
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()
721 sdw_stream_remove_slave(rt712->slave, sdw_stream); in rt712_sdca_dmic_hw_free()
641 struct sdw_stream_runtime *sdw_stream; rt712_sdca_dmic_hw_params() local
718 struct sdw_stream_runtime *sdw_stream = rt712_sdca_dmic_hw_free() local
H A Drt715-sdca.c777 static int rt715_sdca_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream,
780 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt715_sdca_set_sdw_stream() argument
800 struct sdw_stream_runtime *sdw_stream; in rt715_sdca_pcm_hw_params()
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()
908 sdw_stream_remove_slave(rt715->slave, sdw_stream); in rt715_sdca_pcm_hw_free()
803 struct sdw_stream_runtime *sdw_stream; rt715_sdca_pcm_hw_params() local
905 struct sdw_stream_runtime *sdw_stream = rt715_sdca_pcm_hw_free() local
H A Drt715.c802 static int rt715_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream,
806 snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
826 struct sdw_stream_runtime *sdw_stream; in rt715_pcm_hw_params()
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_params()
924 sdw_stream_remove_slave(rt715->slave, sdw_stream); in rt715_pcm_hw_free()
809 rt715_set_sdw_stream(struct snd_soc_dai * dai,void * sdw_stream,int direction) rt715_set_sdw_stream() argument
833 struct sdw_stream_runtime *sdw_stream; rt715_pcm_hw_params() local
925 struct sdw_stream_runtime *sdw_stream = rt715_pcm_hw_free() local
H A Drt700.c875 static int rt700_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream,
878 snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
897 struct sdw_stream_runtime *sdw_stream; in rt700_pcm_hw_params()
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 =
984 sdw_stream_remove_slave(rt700->slave, sdw_stream); in rt700_pcm_hw_free() local
881 rt700_set_sdw_stream(struct snd_soc_dai * dai,void * sdw_stream,int direction) rt700_set_sdw_stream() argument
903 struct sdw_stream_runtime *sdw_stream; rt700_pcm_hw_params() local
H A Dtas2783-sdw.c909 void *sdw_stream, s32 direction) in tas_set_sdw_stream() argument
911 if (!sdw_stream) in tas_set_sdw_stream()
914 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in tas_set_sdw_stream()
934 struct sdw_stream_runtime *sdw_stream; in tas_sdw_hw_params() local
943 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in tas_sdw_hw_params()
944 if (!sdw_stream) in tas_sdw_hw_params()
981 &stream_config, &port_config, 1, sdw_stream); in tas_sdw_hw_params()
995 struct sdw_stream_runtime *sdw_stream = in tas_sdw_pcm_hw_free() local
998 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,
967 snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
986 struct sdw_stream_runtime *sdw_stream; in rt711_pcm_hw_params()
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 =
1068 sdw_stream_remove_slave(rt711->slave, sdw_stream); in rt711_pcm_hw_free() local
970 rt711_set_sdw_stream(struct snd_soc_dai * dai,void * sdw_stream,int direction) rt711_set_sdw_stream() argument
992 struct sdw_stream_runtime *sdw_stream; rt711_pcm_hw_params() local
H A Drt711-sdca.c1312 static int rt711_sdca_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream,
1315 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt711_sdca_set_sdw_stream() argument
1334 struct sdw_stream_runtime *sdw_stream; in rt711_sdca_pcm_hw_params()
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()
1419 sdw_stream_remove_slave(rt711->slave, sdw_stream); in rt711_sdca_pcm_hw_free()
1337 struct sdw_stream_runtime *sdw_stream; rt711_sdca_pcm_hw_params() local
1416 struct sdw_stream_runtime *sdw_stream = rt711_sdca_pcm_hw_free() local
H A Dcs35l56.c582 struct sdw_stream_runtime *sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in cs35l56_sdw_dai_hw_params()
592 if (!sdw_stream) in cs35l56_sdw_dai_hw_params()
619 1, sdw_stream);
632 struct sdw_stream_runtime *sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
637 sdw_stream_remove_slave(cs35l56->sdw_peripheral, sdw_stream);
643 void *sdw_stream, int direction)
645 snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
560 struct sdw_stream_runtime *sdw_stream = snd_soc_dai_get_dma_data(dai, substream); cs35l56_sdw_dai_hw_params() local
610 struct sdw_stream_runtime *sdw_stream = snd_soc_dai_get_dma_data(dai, substream); cs35l56_sdw_dai_hw_free() local
621 cs35l56_sdw_dai_set_stream(struct snd_soc_dai * dai,void * sdw_stream,int direction) cs35l56_sdw_dai_set_stream() argument
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,
1436 snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
1456 struct sdw_stream_runtime *sdw_stream; in rt712_sdca_pcm_hw_params()
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 =
1576 sdw_stream_remove_slave(rt712->slave, sdw_stream); in rt712_sdca_pcm_hw_free() local
1439 rt712_sdca_set_sdw_stream(struct snd_soc_dai * dai,void * sdw_stream,int direction) rt712_sdca_set_sdw_stream() argument
1462 struct sdw_stream_runtime *sdw_stream; rt712_sdca_pcm_hw_params() local
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()
/linux/sound/soc/sdw_utils/
H A Dsoc_sdw_utils.c977 struct sdw_stream_runtime *sdw_stream; in asoc_sdw_prepare() local
983 sdw_stream = snd_soc_dai_get_stream(dai, substream->stream); in asoc_sdw_prepare()
984 if (IS_ERR(sdw_stream)) { in asoc_sdw_prepare()
986 return PTR_ERR(sdw_stream); in asoc_sdw_prepare()
989 return sdw_prepare_stream(sdw_stream); in asoc_sdw_prepare()
996 struct sdw_stream_runtime *sdw_stream; in asoc_sdw_trigger() local
1003 sdw_stream = snd_soc_dai_get_stream(dai, substream->stream); in asoc_sdw_trigger()
1004 if (IS_ERR(sdw_stream)) { in asoc_sdw_trigger()
1006 return PTR_ERR(sdw_stream); in asoc_sdw_trigger()
1013 ret = sdw_enable_stream(sdw_stream); in asoc_sdw_trigger()
1079 struct sdw_stream_runtime *sdw_stream; asoc_sdw_hw_free() local
[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 …]