ASoC: mediatek: Add common mtk_afe_component_probe callback
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tue, 16 Apr 2024 07:14:03 +0000 (09:14 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 16 Apr 2024 11:00:02 +0000 (20:00 +0900)
commit9d9b182876a249b393158e9f43c255aeee4ef898
tree5ab4a1245710a1b0132d9d23e4d93b08b4941b2f
parentf103ce4ff6932b6991e1922d1a39c29971ab2938
ASoC: mediatek: Add common mtk_afe_component_probe callback

Multiple MediaTek AFE PCM component drivers are using their own .probe()
callback, but most of those are simply duplicated functions as they are
doing exactly the same thing over and over.

Add a common probe callback for this component to reduce duplication.

Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20240416071410.75620-12-angelogioacchino.delregno@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/common/mtk-afe-platform-driver.c