Kuninori Morimoto
0d3a5178c2
ASoC: soc-pcm.c: remove indirect runtime copy
...
substream->runtime will be attached when substream was opened
at snd_pcm_attach_substream(). When it uses DPCM,
FE substream->runtime is attached, but BE substream->runtime is not.
Thus, we are copying FE substream->runtime to BE.
But, we are copyig FE substream->runtime to FE dpcm->runtime first (A),
and copy it to BE dpcm->runtime (B), and copy it to
BE substream->runtime (C).
static int dpcm_fe_dai_open(...) {
...
(A) fe->dpcm[stream].runtime = fe_substream->runtime;
...
}
static int dpcm_be_connect(...) {
...
(B) be->dpcm[stream].runtime = fe->dpcm[stream].runtime;
...
}
int dpcm_be_dai_startup(...) {
...
(C) be_substream->runtime = be->dpcm[stream].runtime;
...
}
It is too roundabout and troublesome.
OTOH, it is directly copying fe_substream->runtime at dpcm_be_reparent()
without using be->dpcm[stream].runtime.
static void dpcm_be_reparent(...)
{
...
for_each_dpcm_fe(be, stream, dpcm) {
...
=> be_substream->runtime = fe_substream->runtime;
break;
}
}
This patch removes indirect copying.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com >
Link: https://lore.kernel.org/r/87v8je64dh.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org >
2023-03-14 13:58:57 +00:00
..
2023-01-25 09:34:20 +01:00
2023-03-07 13:58:12 +00:00
2020-01-03 09:24:08 +01:00
2017-11-02 11:10:55 +01:00
2023-02-03 12:04:02 +00:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-06-19 17:09:55 +02:00
2017-11-02 11:10:55 +01:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2021-07-15 10:22:30 +02:00
2022-10-21 08:17:08 +02:00
2023-02-08 13:39:27 +01:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-02-08 13:00:28 +00:00
2023-03-05 23:36:43 +00:00
2023-01-31 12:10:46 +00:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:35 -07:00
2022-07-13 13:42:35 +02:00
2019-05-30 11:26:35 -07:00
2021-07-19 16:16:56 +02:00
2019-05-30 11:26:35 -07:00
2021-07-19 16:17:14 +02:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2021-08-05 08:24:17 +02:00
2021-10-15 16:10:41 +01:00
2020-07-07 11:59:59 +02:00
2017-11-02 11:10:55 +01:00
2023-02-03 17:19:20 +01:00
2019-02-08 16:58:59 +01:00
2019-05-24 17:27:10 +02:00
2018-07-17 22:25:48 +02:00
2022-08-23 10:14:24 +02:00
2020-01-13 13:40:41 +01:00
2022-02-11 15:18:56 +01:00
2022-12-05 14:05:18 +00:00
2023-02-24 12:58:55 -08:00
2022-12-02 14:07:12 +00:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2020-01-03 09:24:18 +01:00
2020-01-05 16:14:26 +01:00
2022-05-17 11:58:04 +01:00
2022-09-20 12:25:03 +01:00
2022-04-12 12:19:05 +02:00
2017-11-02 11:10:55 +01:00
2022-07-05 13:00:49 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2022-08-24 08:00:26 +02:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2020-07-19 20:49:25 +02:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2017-11-02 11:10:55 +01:00
2021-06-08 17:05:41 +02:00
2019-05-30 11:26:35 -07:00
2020-09-09 18:43:07 +02:00
2019-05-24 17:36:45 +02:00
2022-11-23 07:56:47 +01:00
2019-05-30 11:26:35 -07:00
2022-05-07 22:55:48 +02:00
2022-06-20 09:36:02 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2020-11-05 17:25:17 +00:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2020-11-13 14:22:09 +00:00
2021-12-08 13:07:58 +00:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2022-11-28 13:04:24 +00:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2020-01-03 09:24:19 +01:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-06-19 17:09:55 +02:00
2018-08-02 10:56:59 +01:00
2023-01-27 12:20:55 +00:00
2018-07-02 10:52:47 +01:00
2017-11-13 15:45:57 +01:00
2022-08-16 17:33:11 +01:00
2022-05-17 11:57:53 +01:00
2022-06-10 13:32:20 +01:00
2023-02-28 13:58:48 +00:00
2023-01-31 11:05:12 +00:00
2023-02-15 16:08:52 +00:00
2023-03-14 13:58:57 +00:00
2020-11-30 12:54:02 +00:00
2020-12-09 12:13:38 +00:00
2023-01-30 16:56:41 +00:00
2023-01-31 11:04:53 +00:00
2022-10-21 13:05:03 +01:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:41 -07:00
2017-11-02 11:10:55 +01:00
2019-05-30 11:26:35 -07:00
2020-09-09 18:32:52 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:35 -07:00
2019-06-05 17:37:07 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:35 -07:00
2020-01-03 09:24:20 +01:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:32 -07:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-10-25 11:06:57 +01:00
2019-05-30 11:26:32 -07:00
2020-06-15 20:58:33 +01:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:35 -07:00