| /linux-6.15/sound/soc/codecs/ |
| H A D | cs42l43-sdw.c | 25 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 D | sdw-mockup.c | 41 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 D | rt1017-sdca-sdw.c | 558 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()
|
| H A D | rt1318-sdw.c | 549 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()
|
| H A D | rt1316-sdw.c | 494 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()
|
| H A D | cs42l42-sdw.c | 68 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 D | rt5682-sdw.c | 89 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 D | rt1308-sdw.c | 493 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()
|
| H A D | max98373-sdw.c | 524 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()
|
| H A D | rt712-sdca-dmic.c | 624 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()
|
| H A D | rt715-sdca.c | 780 static int rt715_sdca_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt715_sdca_set_sdw_stream() argument 783 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt715_sdca_set_sdw_stream() 803 struct sdw_stream_runtime *sdw_stream; in rt715_sdca_pcm_hw_params() local 807 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt715_sdca_pcm_hw_params() 809 if (!sdw_stream) in rt715_sdca_pcm_hw_params() 834 &port_config, 1, sdw_stream); in rt715_sdca_pcm_hw_params() 905 struct sdw_stream_runtime *sdw_stream = in rt715_sdca_pcm_hw_free() local 911 sdw_stream_remove_slave(rt715->slave, sdw_stream); in rt715_sdca_pcm_hw_free()
|
| H A D | rt715.c | 809 static int rt715_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt715_set_sdw_stream() argument 813 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt715_set_sdw_stream() 833 struct sdw_stream_runtime *sdw_stream; in rt715_pcm_hw_params() local 837 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt715_pcm_hw_params() 839 if (!sdw_stream) in rt715_pcm_hw_params() 862 &port_config, 1, sdw_stream); in rt715_pcm_hw_params() 925 struct sdw_stream_runtime *sdw_stream = in rt715_pcm_hw_free() local 931 sdw_stream_remove_slave(rt715->slave, sdw_stream); in rt715_pcm_hw_free()
|
| H A D | rt700.c | 882 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()
|
| H A D | rt711.c | 971 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()
|
| H A D | rt1320-sdw.c | 1158 static int rt1320_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt1320_set_sdw_stream() argument 1161 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt1320_set_sdw_stream() 1180 struct sdw_stream_runtime *sdw_stream; in rt1320_sdw_hw_params() local 1185 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt1320_sdw_hw_params() 1187 if (!sdw_stream) in rt1320_sdw_hw_params() 1215 &port_config, 1, sdw_stream); in rt1320_sdw_hw_params() 1218 dmic_port_config, 2, sdw_stream); in rt1320_sdw_hw_params() 1275 struct sdw_stream_runtime *sdw_stream = in rt1320_sdw_pcm_hw_free() local 1281 sdw_stream_remove_slave(rt1320->sdw_slave, sdw_stream); in rt1320_sdw_pcm_hw_free()
|
| H A D | rt711-sdca.c | 1316 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()
|
| H A D | rt722-sdca.c | 1072 static int rt722_sdca_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt722_sdca_set_sdw_stream() argument 1075 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt722_sdca_set_sdw_stream() 1095 struct sdw_stream_runtime *sdw_stream; in rt722_sdca_pcm_hw_params() local 1100 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt722_sdca_pcm_hw_params() 1102 if (!sdw_stream) in rt722_sdca_pcm_hw_params() 1141 &port_config, 1, sdw_stream); in rt722_sdca_pcm_hw_params() 1201 struct sdw_stream_runtime *sdw_stream = in rt722_sdca_pcm_hw_free() local 1207 sdw_stream_remove_slave(rt722->slave, sdw_stream); in rt722_sdca_pcm_hw_free()
|
| H A D | cs35l56.c | 541 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()
|
| H A D | rt721-sdca.c | 1235 static int rt721_sdca_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt721_sdca_set_sdw_stream() argument 1238 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt721_sdca_set_sdw_stream() 1258 struct sdw_stream_runtime *sdw_stream; in rt721_sdca_pcm_hw_params() local 1263 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt721_sdca_pcm_hw_params() 1265 if (!sdw_stream) in rt721_sdca_pcm_hw_params() 1304 &port_config, 1, sdw_stream); in rt721_sdca_pcm_hw_params() 1382 struct sdw_stream_runtime *sdw_stream = in rt721_sdca_pcm_hw_free() local 1388 sdw_stream_remove_slave(rt721->slave, sdw_stream); in rt721_sdca_pcm_hw_free()
|
| H A D | max98363.c | 272 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()
|
| H A D | cs42l43.h | 117 int cs42l43_sdw_set_stream(struct snd_soc_dai *dai, void *sdw_stream, int direction);
|
| H A D | rt712-sdca.c | 1444 static int rt712_sdca_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, in rt712_sdca_set_sdw_stream() argument 1447 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); in rt712_sdca_set_sdw_stream() 1467 struct sdw_stream_runtime *sdw_stream; in rt712_sdca_pcm_hw_params() local 1472 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); in rt712_sdca_pcm_hw_params() 1474 if (!sdw_stream) in rt712_sdca_pcm_hw_params() 1513 &port_config, 1, sdw_stream); in rt712_sdca_pcm_hw_params() 1581 struct sdw_stream_runtime *sdw_stream = in rt712_sdca_pcm_hw_free() local 1587 sdw_stream_remove_slave(rt712->slave, sdw_stream); in rt712_sdca_pcm_hw_free()
|
| /linux-6.15/sound/soc/sdw_utils/ |
| H A D | soc_sdw_utils.c | 779 struct sdw_stream_runtime *sdw_stream; in asoc_sdw_prepare() local 786 if (IS_ERR(sdw_stream)) { in asoc_sdw_prepare() 788 return PTR_ERR(sdw_stream); in asoc_sdw_prepare() 791 return sdw_prepare_stream(sdw_stream); in asoc_sdw_prepare() 798 struct sdw_stream_runtime *sdw_stream; in asoc_sdw_trigger() local 806 if (IS_ERR(sdw_stream)) { in asoc_sdw_trigger() 808 return PTR_ERR(sdw_stream); in asoc_sdw_trigger() 815 ret = sdw_enable_stream(sdw_stream); in asoc_sdw_trigger() 821 ret = sdw_disable_stream(sdw_stream); in asoc_sdw_trigger() 888 if (IS_ERR(sdw_stream)) { in asoc_sdw_hw_free() [all …]
|
| /linux-6.15/drivers/soundwire/ |
| H A D | stream.c | 1845 struct sdw_stream_runtime *sdw_stream) in set_stream() argument 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() 1961 kfree(sdw_stream->name); in sdw_shutdown_stream() [all …]
|