]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: soc-dai.h: merge DAI call back functions into ops
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 8 Aug 2023 22:54:50 +0000 (22:54 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:26:03 +0000 (16:26 +0200)
commitc9cd20ee73377ef5378b6535327913f1f93e3764
tree3cfe5df06a4a606d6d41c5fca93af0b6d367da00
parentbec4296a8523498ab9543ba5d2d5d5a781257e99
ASoC: soc-dai.h: merge DAI call back functions into ops

[ Upstream commit 3e8bcec0787d1a73703c915c31cb00a2fd18ccbf ]

snd_soc_dai_driver has .ops for call back functions (A), but it also
has other call back functions (B). It is duplicated and confusable.

struct snd_soc_dai_driver {
...
 ^ int (*probe)(...);
 | int (*remove)(...);
(B) int (*compress_new)(...);
 | int (*pcm_new)(...);
 v ...
(A) const struct snd_soc_dai_ops *ops;
...
}

This patch merges (B) into (A).

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87v8dpb0w6.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Stable-dep-of: 0e270f32975f ("ASoC: fsl_sai: replace regmap_write with regmap_update_bits")
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/sound/soc-dai.h
sound/soc/generic/audio-graph-card.c
sound/soc/soc-core.c
sound/soc/soc-dai.c