]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: SOF: mediatek: Commonize duplicated functions
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 20 Mar 2025 11:53:00 +0000 (12:53 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 20 Mar 2025 18:56:50 +0000 (18:56 +0000)
commit24489150c5d9afea54c6909ba05c4dbdd8846dc0
tree99410e9ac660d41c04101ac0a20b9206ea4c9164
parent6271b746e40ebaf24dc54be5f4248f5a61618871
ASoC: SOF: mediatek: Commonize duplicated functions

In order to reduce duplication, move the ADSP mailbox callbacks
handle_reply(), handle_request(), and other common SOF callbacks
send_msg(), get_bar_index(), pcm_hw_params() and pcm_pointer()
to the mtk-adsp-common.c file.

This cleanup brings no functional differences.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patch.msgid.link/20250320115300.137410-1-angelogioacchino.delregno@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/mediatek/mt8186/mt8186.c
sound/soc/sof/mediatek/mt8195/mt8195.c
sound/soc/sof/mediatek/mtk-adsp-common.c
sound/soc/sof/mediatek/mtk-adsp-common.h