linux-stable/sound/soc/mediatek
AngeloGioacchino Del Regno b1d3db6740 ASoC: mediatek: sof-common: Add NULL check for normal_link string
[ Upstream commit e3b3ec967a ]

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:35:55 -08:00
..
common ASoC: mediatek: sof-common: Add NULL check for normal_link string 2024-01-25 15:35:55 -08:00
mt2701 ASoC: mediatek: mt2701-afe-pcm: Convert to platform remove callback returning void 2023-03-20 13:08:36 +00:00
mt6797 ASoC: mediatek: mt6797-afe-pcm: Convert to platform remove callback returning void 2023-03-20 13:08:37 +00:00
mt7986 ASoC: mediatek: mt7986: add machine driver with wm8960 2023-08-17 13:09:18 +01:00
mt8173 ASoC: mediatek: mt8173-rt5650: Map missing jack kcontrols 2023-08-07 14:32:54 +01:00
mt8183 ASoC: mediatek: mt8183-mt6358-ts3a227-max98357: Map missing jack kcontrols 2023-08-07 14:32:57 +01:00
mt8186 ASoC: mediatek: mt8186: fix AUD_PAD_TOP register and offset 2024-01-10 17:16:49 +01:00
mt8188 ASoC: mediatek: mt8188-mt6359: support dynamic pinctrl 2023-11-28 17:19:42 +00:00
mt8192 ASoC: mediatek: mt8192-mt6359: Go back to old headphone pin name 2023-06-09 10:44:38 +01:00
mt8195 ASoC: mediatek: merge DAI call back functions into ops 2023-08-14 13:10:25 +01:00
Kconfig ASoC: mediatek: mt7986: add machine driver with wm8960 2023-08-17 13:09:18 +01:00
Makefile ASoC: mediatek: mt7986: add platform driver 2023-08-17 13:09:17 +01:00