linux-stable/sound/soc/mediatek/common
AngeloGioacchino Del Regno e3b3ec967a
ASoC: mediatek: sof-common: Add NULL check for normal_link string
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>
2024-01-11 15:42:09 +00:00
..
Makefile ASoC: mediatek: common: add soundcard driver common code 2023-01-16 11:16:29 +00:00
mtk-afe-fe-dai.c ASoC: mediatek: convert not to use asoc_xxx() 2023-09-26 17:18:38 +02:00
mtk-afe-fe-dai.h ASoC: mediatek: move .suspend/.resume to component 2020-01-21 17:03:54 +00:00
mtk-afe-platform-driver.c ASoC: mediatek: convert not to use asoc_xxx() 2023-09-26 17:18:38 +02:00
mtk-afe-platform-driver.h ASoC: mediatek: Use managed buffer allocation 2019-12-12 15:41:13 +00:00
mtk-base-afe.h ASoC: mediatek: common: add SMC ops and SMC CMD 2023-01-16 11:16:20 +00:00
mtk-btcvsd.c ASoC: mediatek: Convert to generic PCM copy ops 2023-08-18 12:19:18 +02:00
mtk-dsp-sof-common.c ASoC: mediatek: sof-common: Add NULL check for normal_link string 2024-01-11 15:42:09 +00:00
mtk-dsp-sof-common.h ASoC: mediatek: common: revise SOF common code 2023-09-11 01:18:55 +01:00
mtk-soc-card.h ASoC: mediatek: mt8195: extract SOF common code 2022-07-18 13:45:16 +01:00
mtk-soundcard-driver.c ASoC: mediatek: common: soundcard driver add dai_fmt support 2023-06-02 13:29:08 +01:00
mtk-soundcard-driver.h ASoC: mediatek: common: add soundcard driver common code 2023-01-16 11:16:29 +00:00