linux/sound/soc/sh
Kuninori Morimoto 25106550f1
ASoC: soc-dpcm.h: remove snd_soc_dpcm::hw_param
Current soc-pcm.c is coping fe hw_param to dpcm->hw_param (A),
fixup it (B), and copy it to be (C).

	int dpcm_be_dai_hw_params(...)
	{
		...
		for_each_dpcm_be(fe, stream, dpcm) {
			...
			/* copy params for each dpcm */
(A)			memcpy(&dpcm->hw_params, &fe->dpcm[stream].hw_params, ...) ;

			/* perform any hw_params fixups */
(B)			ret = snd_soc_link_be_hw_params_fixup(be, &dpcm->hw_params);
			...

			/* copy the fixed-up hw params for BE dai */
(C)			memcpy(&be->dpcm[stream].hw_params, &dpcm->hw_params, ...);
			...
		}
		...
	}

But here, (1) it is coping hw_params without caring stream (Playback/Capture),
(2) we can get same value from be. We don't need to have dpcm->hw_params.
This patch removes it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Link: https://lore.kernel.org/r/87v8ogsl6h.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-10-19 13:05:34 +01:00
..
rcar ASoC: soc-dpcm.h: remove snd_soc_dpcm::hw_param 2022-10-19 13:05:34 +01:00
dma-sh7760.c ASoC: sh: dma-sh7760: remove unused variable 2021-03-10 13:06:59 +00:00
fsi.c ASoC: sh: Rename set_fmt_new back to set_fmt 2022-06-06 12:34:13 +01:00
hac.c ASoC: sh: Migrate to new style legacy DAI naming flag 2022-06-27 13:16:22 +01:00
Kconfig ASoC: sh: Make SND_SOC_RZ depend on ARCH_RZG2L 2022-04-25 13:59:01 +01:00
Makefile ASoC: sh: Add RZ/G2L SSIF-2 driver 2021-08-13 13:17:16 +01:00
migor.c ASoC: sh: use asoc_substream_to_rtd() 2020-07-23 19:07:25 +01:00
rz-ssi.c ASoC: sh: Replace runtime->status->state reference to runtime->state 2022-09-27 08:49:25 +02:00
sh7760-ac97.c ASoC: sh: sh7760-ac97: use modern dai_link style 2019-06-06 21:37:35 +01:00
siu_dai.c ASoC: siu: convert to SPDX identifiers 2018-06-18 12:16:42 +01:00
siu_pcm.c ASoC: sh: Migrate to new style legacy DAI naming flag 2022-06-27 13:16:22 +01:00
siu.h ASoC: siu: Fix build error by a wrong const prefix 2021-01-27 12:35:18 +00:00
ssi.c ASoC: sh: Migrate to new style legacy DAI naming flag 2022-06-27 13:16:22 +01:00