]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: soc-dai: check return value at snd_soc_dai_set_tdm_slot()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 12 Feb 2025 02:24:38 +0000 (02:24 +0000)
committerMark Brown <broonie@kernel.org>
Sun, 16 Feb 2025 23:51:03 +0000 (23:51 +0000)
commit7f1186a8d738661b941b298fd6d1d5725ed71428
tree3681a8bdc59f35be682988000e220737437c0a73
parent7e1caa679686dde5c24d60b139f234568045758f
ASoC: soc-dai: check return value at snd_soc_dai_set_tdm_slot()

snd_soc_dai_set_tdm_slot() calls .xlate_tdm_slot_mask() or
snd_soc_xlate_tdm_slot_mask(), but didn't check its return value.
Let's check it.

This patch might break existing driver. In such case, let's makes
each func to void instead of int.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/87o6z7yk61.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dai.c