acrn-kernel/sound/soc/mediatek/common
AngeloGioacchino Del Regno cad471227a ASoC: mediatek: sof-common: Add NULL check for normal_link string
[ Upstream commit e3b3ec967a7d93b9010a5af9a2394c8b5c8f31ed ]

It's not granted that all entries of struct sof_conn_stream declare
a `normal_link` (a non-SOF, direct link) string, and this is the case
for SoCs that support only SOF paths (hence do not support both direct
and SOF usecases).

For example, in the case of MT8188 there is no normal_link string in
any of the sof_conn_stream entries and there will be more drivers
doing that in the future.

To avoid possible NULL pointer KPs, add a NULL check for `normal_link`.

Fixes: 0caf1120c5 ("ASoC: mediatek: mt8195: extract SOF common code")
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://msgid.link/r/20240111105226.117603-1-angelogioacchino.delregno@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-25 15:27:48 -08:00
..
Makefile
mtk-afe-fe-dai.c
mtk-afe-fe-dai.h
mtk-afe-platform-driver.c
mtk-afe-platform-driver.h
mtk-base-afe.h
mtk-btcvsd.c ASoC: mediatek: mtk-btcvsd: Add checks for write and read of mtk_btcvsd_snd 2022-12-31 13:32:18 +01:00
mtk-dsp-sof-common.c ASoC: mediatek: sof-common: Add NULL check for normal_link string 2024-01-25 15:27:48 -08:00
mtk-dsp-sof-common.h
mtk-soc-card.h